diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-04-06 13:27:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-04-06 13:27:23 +0000 |
commit | 5bbbf10ba84042b8576d67576d98922c0063c6d6 (patch) | |
tree | a2eef7bccd7d5289426b3c8edc23f52bc9f6e2ed /themes/garland | |
parent | 21c5b71795aec277a8b01ecea74e809a24be0229 (diff) | |
download | brdo-5bbbf10ba84042b8576d67576d98922c0063c6d6.tar.gz brdo-5bbbf10ba84042b8576d67576d98922c0063c6d6.tar.bz2 |
- Patch #130987 by merlinofchaos: added theme registry for easier themability.
Diffstat (limited to 'themes/garland')
-rw-r--r-- | themes/garland/template.php | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/themes/garland/template.php b/themes/garland/template.php index 84f136d7c..ea73fdc66 100644 --- a/themes/garland/template.php +++ b/themes/garland/template.php @@ -1,4 +1,6 @@ <?php +// $Id + /** * Sets the body-tag class attribute. * @@ -53,22 +55,17 @@ function phptemplate_comment_wrapper($content, $type = null) { /** * Override or insert PHPTemplate variables into the templates. */ -function _phptemplate_variables($hook, $vars) { - if ($hook == 'page') { - - if ($secondary = menu_secondary_local_tasks()) { - $output = '<span class="clear"></span>'; - $output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n"; - $vars['tabs2'] = $output; - } +function phptemplate_variables_page(&$vars) { + if ($secondary = menu_secondary_local_tasks()) { + $output = '<span class="clear"></span>'; + $output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n"; + $vars['tabs2'] = $output; + } - // Hook into color.module - if (module_exists('color')) { - _color_page_alter($vars); - } - return $vars; + // Hook into color.module + if (module_exists('color')) { + _color_page_alter($vars); } - return array(); } /** |