/[drupal]/contributions/themes/internet_services/template.php
ViewVC logotype

Diff of /contributions/themes/internet_services/template.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.16, Thu Jun 26 18:40:37 2008 UTC revision 1.17, Thu May 14 06:27:44 2009 UTC
# Line 1  Line 1 
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    
# Line 30  function internet_services_primary($item Line 21  function internet_services_primary($item
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);

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.2