'. implode(' ยป ', $breadcrumb) .''; } } /** * Allow themable wrapping of all comments. */ function framework_comment_wrapper($content, $node) { if (!$content || $node->type == 'forum') { return '
'. $content .'
'; } else { return '

'. t('Comments') .'

'. $content .'
'; } } /** * Override or insert PHPTemplate variables into the templates. */ function framework_preprocess_page(&$vars) { $vars['tabs2'] = menu_secondary_local_tasks(); } /** * Returns the rendered local tasks. The default implementation renders * them as tabs. Overridden to split the secondary tasks. * * @ingroup themeable */ function phptemplate_menu_local_tasks() { return menu_primary_local_tasks(); } function framework_comment_submitted($comment) { return t('by !username | !datetime', array( '!username' => theme('username', $comment), '!datetime' => format_date($comment->timestamp) )); } function phptemplate_node_submitted($node) { return t('!datetime | by !username', array( '!username' => theme('username', $node), '!datetime' => format_date($node->created), )); } /** * Override or insert variables into the block templates. * * @param $vars * An array of variables to pass to the theme template. * @param $hook * The name of the template being rendered ("block" in this case.) */ function framework_preprocess_block(&$vars, $hook) { $block = $vars['block']; // Special classes for blocks. $classes = array('block'); $classes[] = 'block-' . $block->module; $classes[] = 'region-' . $vars['block_zebra']; $classes[] = $vars['zebra']; $classes[] = 'region-count-' . $vars['block_id']; $classes[] = 'count-' . $vars['id']; $vars['edit_links_array'] = array(); $vars['edit_links'] = ''; if (user_access('administer blocks')) { include_once './' . drupal_get_path('theme', 'framework') . '/template.block-editing.inc'; framework_preprocess_block_editing($vars, $hook); $classes[] = 'with-block-editing'; } // Render block classes. $vars['classes'] = implode(' ', $classes); } /** * Generates IE CSS links. */ function framework_get_ie_styles() { $iecss = ''; return $iecss; } function framework_get_ie6_styles() { $iecss = ''; return $iecss; } /** * Adds even and odd classes to
  • tags in ul.menu lists */ function phptemplate_menu_item($link, $has_children, $menu = '', $in_active_trail = FALSE, $extra_class = NULL) { static $zebra = FALSE; $zebra = !$zebra; $class = ($menu ? 'expanded' : ($has_children ? 'collapsed' : 'leaf')); if (!empty($extra_class)) { $class .= ' '. $extra_class; } if ($in_active_trail) { $class .= ' active-trail'; } if ($zebra) { $class .= ' even'; } else { $class .= ' odd'; } return '
  • '. $link . $menu ."
  • \n"; }