'. implode(' ยป ', $breadcrumb) .''; } } /** * Allow themable wrapping of all comments. */ function phptemplate_comment_wrapper($content, $type = null) { static $node_type; if (isset($type)) $node_type = $type; if (!$content || $node_type == 'forum') { return '
'. $content . '
'; } else { return '

'. t('Comments') .'

'. $content .'
'; } } /** * Override or insert PHPTemplate variables into the templates. */ function _phptemplate_variables($hook, $vars) { if ($hook == 'page') { if ($secondary = menu_secondary_local_tasks()) { $output = ''; $output .= "\n"; $vars['tabs2'] = $output; } // Hook into color.module if (module_exists('color')) { _color_page_alter($vars); } // Hook into page_title.module if (module_exists('page_title')) { $vars['head_title'] = page_title_page_get_title(); } return $vars; } return array(); } /** * Returns the rendered local tasks. The default implementation renders * them as tabs. * * @ingroup themeable */ function phptemplate_menu_local_tasks() { $output = ''; if ($primary = menu_primary_local_tasks()) { $output .= "\n"; } return $output; } /** * Generates IE CSS links. */ function phptemplate_get_ie_styles() { $iecss = ''; return $iecss; } function phptemplate_get_ie6_styles() { $iecss = ''; return $iecss; } /** * Adds even and odd classes to
  • tags in ul.menu lists */ function phptemplate_menu_item($mid, $children = '', $leaf = true) { static $count = 0; $zebra = ($count % 2) ? 'odd' : 'even'; $count++; return '
  • '. menu_item_link($mid) . $children ."
  • \n"; } /** * Fixes illegal duplicate html id's "edit-sumit". */ function phptemplate_submit($element) { static $dupe_ids = array(); if (isset($dupe_ids[$element['#id']])) { $dupe_ids[$element['#id']]++; $element['#id'] = $element['#id'] .'-'. $dupe_ids[$element['#id']]; } else { $dupe_ids[$element['#id']] = 0; } return theme('button', $element); }