| 1 |
<?php |
<?php |
| 2 |
// $Id: template.php,v 1.10.2.4 2008/06/26 18:38:16 hswong3i Exp $ |
// $Id: template.php,v 1.10.2.5 2009/04/25 06:42:27 hswong3i Exp $ |
|
|
|
|
function internet_services_theme() { |
|
|
return array( |
|
|
'primary' => array( |
|
|
'arguments' => array('form' => NULL, 'items' => NULL), |
|
|
), |
|
|
'mission' => array( |
|
|
'arguments' => array('form' => NULL), |
|
|
), |
|
|
); |
|
|
} |
|
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Return a themed primary menu. |
* Return a themed primary menu. |
| 6 |
*/ |
*/ |
| 7 |
function internet_services_primary($items = array()) { |
function phptemplate_primary($items = array()) { |
| 8 |
$menu_options = menu_get_menus(); |
$menu_options = menu_get_menus(); |
| 9 |
$primary_links = variable_get('menu_primary_links_source', 'primary-links'); |
$primary_links = variable_get('menu_primary_links_source', 'primary-links'); |
| 10 |
$output = '<div class="title">' . $menu_options[$primary_links] . '</div>'; |
$output = '<div id="primary-links-region">'; |
| 11 |
$output .= theme('links', $items); |
$output .= '<div class="title">' . $menu_options[$primary_links] . '</div>'; |
| 12 |
|
$output .= theme('links', $items, array('class' => 'primary-links')); |
| 13 |
|
$output .= '</div>'; |
| 14 |
return $output; |
return $output; |
| 15 |
} |
} |
| 16 |
|
|
| 21 |
* a string containing the mission output, or execute PHP code snippet if |
* a string containing the mission output, or execute PHP code snippet if |
| 22 |
* mission is enclosed with <?php ?>. |
* mission is enclosed with <?php ?>. |
| 23 |
*/ |
*/ |
| 24 |
function internet_services_mission() { |
function phptemplate_mission() { |
| 25 |
$mission = theme_get_setting('mission'); |
$mission = theme_get_setting('mission'); |
| 26 |
if (preg_match('/^<\?php/', $mission)) { |
if (preg_match('/^<\?php/', $mission)) { |
| 27 |
$mission = drupal_eval($mission); |
$mission = drupal_eval($mission); |