Exemplo n.º 1
0
function MNIMobile_menu_item($link, $has_children, $menu = '', $in_active_trail = false, $extra_class = null)
{
    if (strpos($link, "mobile_product_page_menu") !== 0) {
        if ($in_active_trail) {
            $class .= ' active-trail';
        }
        return '<li>' . $link . $menu . '</li>';
    } else {
        return theme_menu_item($link);
    }
}
Exemplo n.º 2
0
/**
 * Menu item theme override. Adds a child element to expanded/expandable
 * elements so that a spite icon can be added.
 */
function ginkgo_menu_item($link, $has_children, $menu = '', $in_active_trail = FALSE, $extra_class = NULL)
{
    if ($has_children) {
        // Allow the parent class to determine the icon's actual styling.
        $icon = "<span class='icon'></span>";
        $link = "{$icon} {$link}";
    }
    return theme_menu_item($link, $has_children, $menu, $in_active_trail, $extra_class);
}
Exemplo n.º 3
0
/**
 * Menu item theme override. Adds a child element to expanded/expandable
 * elements so that a spite icon can be added.
 */
function ginkgo_menu_item($link, $has_children, $menu = '', $in_active_trail = FALSE, $extra_class = NULL)
{
    if ($has_children) {
        $icon = "<span class='icon'></span>";
        $link = "{$icon} {$link}";
    }
    return theme_menu_item($link, $has_children, $menu, $in_active_trail, $extra_class);
}