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

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

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

revision 1.1, Mon Nov 20 15:07:03 2006 UTC revision 1.2, Mon Apr 2 15:51:54 2007 UTC
# Line 0  Line 1 
1    <?php
2    
3    function _phptemplate_variables($hook, $vars = array()) {
4      switch ($hook) {
5        case 'page':
6          if ((arg(0) == 'admin')) {
7            $vars['template_file'] = 'page-admin';
8          }
9          break;
10      }
11            static $count;
12      $count = is_array($count) ? $count : array();
13      $count[$hook] = is_int($count[$hook]) ? $count[$hook] : 1;
14      $vars['zebra'] = ($count[$hook] % 2) ?'odd' : 'even';
15      $vars['seqid'] = $count[$hook]++;
16      return $vars;
17    }
18    
19    function orchard_regions() {
20      return array(
21        'right' => t('right sidebar'),
22        'content' => t('content'),
23        'header' => t('header'),
24        'footer' => t('footer'),
25        'floater' => t('floater'),
26        'content_header' => t('content header')
27      );
28    }
29    ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2