menu

Wrap links in span tags

  1. function THEMENAME_links($links, $attributes = array('class' => 'links')) {
  2.   global $language;
  3.   $output = '';
  4.   if (isset($attributes['add_span'])) {
  5.     $span_class = $attributes['add_span'];

Fix for expanded menu overide for set MID - needs to collapse MID properly when not ative

  1. /**
  2. * Implementation of theme_menu_item().
  3. * Add active class and custom id to current menu item links.
  4. */
  5. function zen_menu_item($mid, $children = '', $leaf = TRUE) {
  6.   // store a list of the me

expanded menu overide for set MID - needs to collapse MID properly when not ative

  1. /**
  2. * Implementation of theme_menu_item().
  3. * Add active class and custom id to current menu item links.
  4. */
  5. function zen_menu_item($mid, $children = '', $leaf = TRUE) {
  6.   // store a list of the me

Fix for Fix for expanded menu overide for set MID

  1. /**
  2. * Implementation of theme_menu_item().
  3. * Add active class and custom id to current menu item links.
  4. */
  5. function zen_menu_item($mid, $children = '', $leaf = TRUE) {
  6.   $item = menu_get_item($mi

Fix for expanded menu overide for set MID

  1. /**
  2. * Implementation of theme_menu_item().
  3. * Add active class and custom id to current menu item links.
  4. */
  5. function zen_menu_item($mid, $children = '', $leaf = TRUE) {
  6.   $item = menu_get_item($mi

expanded menu overide for set MID

  1. /**
  2. * Implementation of theme_menu_item().
  3. * Add active class and custom id to current menu item links.
  4. */
  5. function zen_menu_item($mid, $children = '', $leaf = TRUE) {
  6.   $item = menu_get_item($mi

Tirando links dos pais no menu

  1. <?php
  2.  
  3. function seutema_menu_item_link($link) {
  4.   if (empty($link['localized_options'])) {
  5.     $link['localized_options'] = array();
  6.   }
  7.  
  8.   if ($link['has_children']) {
  9.     return $link['title

theme menu

  1. /**
  2.  * Implements theme_menu_item_link()
  3.  */
  4. function garland_menu_item_link($link) {
  5.   if (empty($link['localized_options'])) {
  6.     $link['localized_options'] = array();
  7.   }
  8.  
  9.   // If an item

Adding tab

  1. function uc_deliverynote_menu_alter(&$items) {
  2. $items['admin/store/orders/%uc_order/deliverynote'] = array(
  3.     'page callback' => 'uc_deliverynote_report',
  4.     'access arguments' => array('view al

Hide title for pages in the primary links menu

  1. /**
  2.  * Hide the title of the page if there is an entry for its path in the primary-menu (at any depth).
  3.  * Usefull when primary links use huge font, to avoid repeating the same information on screen.
  4.  *
Syndicate content