summaryrefslogtreecommitdiff
path: root/themes/garland
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-04-06 13:27:23 +0000
committerDries Buytaert <dries@buytaert.net>2007-04-06 13:27:23 +0000
commit5bbbf10ba84042b8576d67576d98922c0063c6d6 (patch)
treea2eef7bccd7d5289426b3c8edc23f52bc9f6e2ed /themes/garland
parent21c5b71795aec277a8b01ecea74e809a24be0229 (diff)
downloadbrdo-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.php25
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();
}
/**