'. 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; } /** * views template to output a view. * This code was generated by the views theming wizard * Date: Do, 03/27/2008 - 20:12 * View: test_view * * This function goes in your template.php file */ function phptemplate_views_view_list_test_view($view, $nodes, $type) { $fields = _views_get_fields(); $taken = array(); // Set up the fields in nicely named chunks. foreach ($view->field as $id => $field) { $field_name = $field['field']; if (isset($taken[$field_name])) { $field_name = $field['queryname']; } $taken[$field_name] = true; $field_names[$id] = $field_name; } // Set up some variables that won't change. $base_vars = array( 'view' => $view, 'view_type' => $type, ); foreach ($nodes as $i => $node) { $vars = $base_vars; $vars['node'] = $node; $vars['count'] = $i; $vars['stripe'] = $i % 2 ? 'even' : 'odd'; foreach ($view->field as $id => $field) { $name = $field_names[$id]; $vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view); if (isset($field['label'])) { $vars[$name . '_label'] = $field['label']; } } $items[] = _phptemplate_callback('views-list-test_view', $vars); } if ($items) { return theme('item_list', $items); } } // Add CSS styles drupal_add_css(path_to_theme() . '/css/screen.css', 'theme', 'screen, projection'); drupal_add_css(path_to_theme() . '/css/print.css', 'theme', 'print'); // Add favicon if (theme_get_setting('toggle_favicon')) { drupal_set_html_head(''); }