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

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

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


Revision 1.2 - (show annotations) (download) (as text)
Mon Apr 2 15:51:54 2007 UTC (2 years, 7 months ago) by psicomante
Branch: MAIN
CVS Tags: DRUPAL-5--1-3, DRUPAL-5--1-2, HEAD
Branch point for: DRUPAL-5
Changes since 1.1: +29 -0 lines
File MIME type: text/x-php
Initial Commit for Drupal 5.x
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 ?>

  ViewVC Help
Powered by ViewVC 1.1.2