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

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

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

revision 1.3, Wed Jan 23 03:32:52 2008 UTC revision 1.4, Fri Jan 25 03:10:53 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  function phptemplate_menu_tree($pid = 1) {  
   if ($tree = menu_tree($pid)) {  
     $output .= "<ul>";  
     if ($pid == 1) {  
       $output .= "<li><a href=\"node\">home</a></li>";  
     };  
     $output .= $tree;  
     $output .= "</ul>";  
     return $output;  
   }  
 }  
 function phptemplate_menu_item($mid, $children = '', $leaf = TRUE) {  
   //return '<li class="'. ($leaf ? 'leaf' : ($children ? 'expanded' : 'collapsed')) .'">'. menu_item_link($mid) . $children ."</li>\n";  
   return '<li>'. menu_item_link($mid) . $children ."</li>";  
 }  
 function phptemplate_system_themes($form) {  
   foreach (element_children($form) as $key) {  
     $row = array();  
     if (is_array($form[$key]['description'])) {  
       $row[] = drupal_render($form[$key]['description']) . drupal_render($form[$key]['screenshot']) ;  
       $row[] = array('data' => drupal_render($form['status'][$key]), 'align' => 'center');  
       if ($form['theme_default']) {  
         $row[] = array('data' => drupal_render($form['theme_default'][$key]) . drupal_render($form[$key]['operations']), 'align' => 'center');  
       }  
     }  
     $rows[] = $row;  
   }  
   $header = array(t('Name/Screenshot'), t('Enabled'), t('Default'));  
   $output = theme('table', $header, $rows);  
   $output .= drupal_render($form);  
   return $output;  
 }  
3  function phptemplate_system_user($form) {  function phptemplate_system_user($form) {
4    foreach (element_children($form) as $key) {    foreach (element_children($form) as $key) {
5      $row = array();      $row = array();

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.2