예제 #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);
    }
}
예제 #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);
}
예제 #3
0
파일: template.php 프로젝트: kkaefer/Atrium
/**
 * 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);
}