[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/themes/zen/zen/ -> template.php (summary)

(no description)

File Size: 288 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 11 functions

  zen_theme()
  zen_breadcrumb()
  zen_menu_item_link()
  zen_menu_local_tasks()
  zen_preprocess_page()
  zen_preprocess_maintenance_page()
  zen_preprocess_node()
  zen_preprocess_comment()
  zen_preprocess_block()
  zen_id_safe()
  _zen_path()

Functions
Functions that are not part of a class:

zen_theme(&$existing, $type, $theme, $path)   X-Ref
Implements HOOK_theme().


zen_breadcrumb($breadcrumb)   X-Ref
Return a themed breadcrumb trail.

param: $breadcrumb
return:

zen_menu_item_link($link)   X-Ref
Implements theme_menu_item_link()


zen_menu_local_tasks()   X-Ref
Duplicate of theme_menu_local_tasks() but adds clear-block to tabs.


zen_preprocess_page(&$vars, $hook)   X-Ref
Override or insert variables into the page templates.

param: $vars
param: $hook

zen_preprocess_maintenance_page(&$vars, $hook)   X-Ref
Override or insert variables into the maintenance page template.

param: $vars
param: $hook

zen_preprocess_node(&$vars, $hook)   X-Ref
Override or insert variables into the node templates.

param: $vars
param: $hook

zen_preprocess_comment(&$vars, $hook)   X-Ref
Override or insert variables into the comment templates.

param: $vars
param: $hook

zen_preprocess_block(&$vars, $hook)   X-Ref
Override or insert variables into the block templates.

param: $vars
param: $hook

zen_id_safe($string)   X-Ref
Converts a string to a suitable html ID attribute.

http://www.w3.org/TR/html4/struct/global.html#h-7.5.2 specifies what makes a
valid ID attribute in HTML. This function:

- Ensure an ID starts with an alpha character by optionally adding an 'id'.
- Replaces any character except alphanumeric characters with dashes.
- Converts entire string to lowercase.

param: $string
return:

_zen_path()   X-Ref
Returns the path to the Zen theme.

drupal_get_filename() is broken; see #341140. When that is fixed in Drupal 6,
replace _zen_path() with drupal_get_path('theme', 'zen').



Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7