'. 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); } 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; } /** * Returns the custom search box */ function custom_search_box($search_box,$custom_path) { global $theme; $image_src = 'src="' . check_url($custom_path) . path_to_theme() . '/images/search-button.png"'; $search_box = str_replace('size="15"', '', $search_box); $search_box = str_replace('type="submit"', 'type="image"', $search_box); $search_box = str_replace('value="' . t('Search') . '"', $image_src, $search_box); return $search_box; } /** * Returns the custom search results */ function phptemplate_search_item($item, $type) { $output = '
'. check_plain($item['title']) .'
'; $output .= '
'. ($item['snippet'] ? '

'. $item['snippet'] .'

' : '') .'
'; return $output; } /** * Theme a user profile page */ function phptemplate_user_profile($account, $fields) { $output = '
'; $output .= theme('user_picture', $account); foreach ($fields as $category => $items) { if (strlen($category) > 0) { $output .= '

'. check_plain($category) .'

'; } $output .= '
'; foreach ($items as $item) { if (isset($item['title'])) { $output .= '
'. $item['title'] .'
'; } $output .= '
'. $item['value'] .'
'; } $output .= '
'; } $output .= '
'; return $output; }