summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--zen/template-menus.php4
-rw-r--r--zen/template.php17
2 files changed, 11 insertions, 10 deletions
diff --git a/zen/template-menus.php b/zen/template-menus.php
index 6ff7af2..1f5533c 100644
--- a/zen/template-menus.php
+++ b/zen/template-menus.php
@@ -11,7 +11,7 @@
* @return
* string The rendered menu item.
*/
-function phptemplate_menu_item_link($link) {
+function zen_menu_item_link($link) {
if (empty($link['options'])) {
$link['options'] = array();
}
@@ -32,7 +32,7 @@ function phptemplate_menu_item_link($link) {
/**
* Duplicate of theme_menu_local_tasks() but adds clear-block to tabs.
*/
-function phptemplate_menu_local_tasks() {
+function zen_menu_local_tasks() {
$output = '';
if ($primary = menu_primary_local_tasks()) {
diff --git a/zen/template.php b/zen/template.php
index d65c398..c7c1747 100644
--- a/zen/template.php
+++ b/zen/template.php
@@ -47,7 +47,7 @@ include_once 'template-menus.php';
* @return
* A string containing the breadcrumb output.
*/
-function phptemplate_breadcrumb($breadcrumb) {
+function zen_breadcrumb($breadcrumb) {
$show_breadcrumb = theme_get_setting('zen_breadcrumb');
$show_breadcrumb_home = theme_get_setting('zen_breadcrumb_home');
$breadcrumb_separator = theme_get_setting('zen_breadcrumb_separator');
@@ -72,9 +72,10 @@ function phptemplate_breadcrumb($breadcrumb) {
/*
* CREATE OR MODIFY VARIABLES FOR YOUR THEME
*
- * The most powerful function available to themers is _phptemplate_variables().
- * It allows you to pass newly created variables to different template (tpl.php)
- * files in your theme. Or even unset ones you don't want to use.
+ * The most powerful functions available to themers are the
+ * THEME_preprocess_HOOK() functions. They allow you to pass newly created
+ * variables to different template (tpl.php) files in your theme. Or even unset
+ * ones you don't want to use.
*
* It works by switching on the hook, or name of the theme function, such as:
* - page
@@ -94,7 +95,7 @@ function phptemplate_breadcrumb($breadcrumb) {
* @param $vars
* A sequential array of variables to pass to the theme template.
*/
-function phptemplate_preprocess_page(&$vars) {
+function zen_preprocess_page(&$vars) {
global $user, $theme;
// Set a new $is_admin variable. This is determined by looking at the
@@ -173,7 +174,7 @@ function phptemplate_preprocess_page(&$vars) {
* @param $vars
* A sequential array of variables to pass to the theme template.
*/
-function phptemplate_preprocess_node(&$vars) {
+function zen_preprocess_node(&$vars) {
global $user;
// Set a new $is_admin variable. This is determined by looking at the
@@ -217,7 +218,7 @@ function phptemplate_preprocess_node(&$vars) {
* @param $vars
* A sequential array of variables to pass to the theme template.
*/
-function phptemplate_preprocess_comment(&$vars) {
+function zen_preprocess_comment(&$vars) {
global $user;
// Set a new $is_admin variable. This is determined by looking at the
@@ -276,7 +277,7 @@ function phptemplate_preprocess_comment(&$vars) {
* @param $vars
* A sequential array of variables to pass to the theme template.
*/
-function phptemplate_preprocess_block(&$vars) {
+function zen_preprocess_block(&$vars) {
global $user;
// Set a new $is_admin variable. This is determined by looking at the