| 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 |
|
?> |