Viewing file: template-menus.php (1.13 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php // $Id: template-menus.php,v 1.6 2008/05/13 05:12:09 johnalbin Exp $
/** * Generate the HTML representing a given menu item ID. * * An implementation of theme_menu_item_link() * * @param $link * array The menu item to render. * @return * string The rendered menu item. */ function zen_menu_item_link($link) { if (empty($link['options'])) { $link['options'] = array(); }
// If an item is a LOCAL TASK, render it as a tab if ($link['type'] & MENU_IS_LOCAL_TASK) { $link['title'] = '<span class="tab">' . check_plain($link['title']) . '</span>'; $link['options']['html'] = TRUE; }
if (empty($link['type'])) { $true = TRUE; }
return l($link['title'], $link['href'], $link['options']); }
/** * Duplicate of theme_menu_local_tasks() but adds clear-block to tabs. */ function zen_menu_local_tasks() { $output = '';
if ($primary = menu_primary_local_tasks()) { $output .= '<ul class="tabs primary clear-block">' . $primary . '</ul>'; } if ($secondary = menu_secondary_local_tasks()) { $output .= '<ul class="tabs secondary clear-block">' . $secondary . '</ul>'; }
return $output; }
|