Esempio n. 1
0
/**
 * Override of theme_menu_item_link().
 */
function elsinore_menu_item_link($link)
{
    if ($link['href'] == 'http://nolink') {
        return '<span class="nolink">' . check_plain($link['title']) . '</span>';
    } else {
        return theme_menu_item_link($link);
    }
}
Esempio n. 2
0
function rootcandy_menu_item_link($link)
{
    if ($link['href'] == 'admin') {
        $link['title'] = t('Dashboard');
    }
    return theme_menu_item_link($link);
}
Esempio n. 3
0
function ogpl_css3_menu_item_link($link)
{
    if ($link['title'] == 'Add To Favorites') {
        return '<a href="javascript:void(0);" onclick="add_to_favourites();" title="Add to Favorites">' . $link['title'] . '</a>';
    }
    return theme_menu_item_link($link);
}
Esempio n. 4
0
function ogpl_alpha_menu_item_link($link)
{
    if ($link['title'] == 'Add To Favorites') {
        return '<a href="javascript:void(0);" onclick="add_to_favourites();">' . $link['title'] . '</a>';
    }
    if ($link['title'] == 'Communities' || $link['title'] == 'Community') {
        return '<a target="blank" href="' . $link['link_path'] . '">' . $link['title'] . '</a>';
    }
    return theme_menu_item_link($link);
}
Esempio n. 5
0
function MNIMobile_menu_item_link($link)
{
    $targetnid = str_replace('node/', '', $link['href']);
    $targettype = db_fetch_object(db_query('SELECT type FROM {node} WHERE nid=%d', $targetnid));
    if ($link['tab_parent'] != 'admin/%' && $targettype->type == "mobile_product_page") {
        //echo "~~".$targetnid."##".$targettype->type."^^".$link['tab_parent']."$$".($link['tab_parent'] == 'node/%' && $targettype->type ="mobile_product_page")."**";
        if (empty($link['localized_options'])) {
            $link['localized_options'] = array();
        }
        $link['localized_options']['html'] = "true";
        return '<h2 class="mobile_product_page_menu">' . l($link['title'], $link['href'], $link['localized_options']) . '</h2><span>' . l('[see more and subscribe]', $link['href'], $link['localized_options']) . '</span>';
    } else {
        return theme_menu_item_link($link);
    }
}
Esempio n. 6
0
function fb_fbml_menu_item_link($link)
{
    global $_fb_canvas_state;
    if ($_fb_canvas_state == 'tabs') {
        // Theme an FBML tab
        $output = "<fb:tab-item href=\"" . url($link['href']) . (isset($link['title']) ? "\" title=\"" . $link['title'] : '') . "\" selected=\"false\">" . $link['title'] . "</fb:tab-item>\n";
        return $output;
    } else {
        return theme_menu_item_link($link);
    }
}
Esempio n. 7
0
function afg_menu_item_link($link) {
  if (
    in_array(
      $link['path'],
      array(
        'user/%/dashboard',
        'user/%/edit/groups'
      )
    )
  ) {
    return '';
  }
  
  return theme_menu_item_link($link);
}