/**
  * Display the menu.
  *
  * @since 1.0.0
  */
 public function show_menu()
 {
     $class = 'menu genesis-nav-menu menu-header';
     if (genesis_superfish_enabled()) {
         $class .= ' js-superfish';
     }
     genesis_nav_menu(array('theme_location' => 'header', 'menu_class' => $class));
 }
Esempio n. 2
0
/**
 * Echo the "Secondary Navigation" menu.
 *
 * Applies the `genesis_secondary_nav` and legacy `genesis_do_subnav` filters.
 *
 * @since 1.0.0
 *
 * @uses genesis_nav_menu() Display a navigation menu.
 * @uses genesis_nav_menu_supported() Checks for support of specific nav menu.
 */
function genesis_do_subnav()
{
    //* Do nothing if menu not supported
    if (!genesis_nav_menu_supported('secondary')) {
        return;
    }
    $class = 'menu genesis-nav-menu menu-secondary';
    if (genesis_superfish_enabled()) {
        $class .= ' js-superfish';
    }
    genesis_nav_menu(array('theme_location' => 'secondary', 'menu_class' => $class));
}
function foundation_do_nav()
{
    //* Do nothing if menu not supported
    if (!genesis_nav_menu_supported('primary') || !has_nav_menu('primary')) {
        return;
    }
    $class = 'menu';
    if (genesis_superfish_enabled()) {
        $class .= ' js-superfish';
    }
    if (genesis_a11y('headings')) {
        printf('<h2 class="screen-reader-text">%s</h2>', __('Main navigation', 'genesis'));
    }
    genesis_nav_menu(array('theme_location' => 'primary', 'menu_class' => $class));
}
function gb3_genesis_footer_output($output, $backtotop_text, $creds_text)
{
    ob_start();
    genesis_nav_menu(array('theme_location' => 'footer', 'container' => 'div', 'container_class' => 'site-info-nav', 'menu_class' => 'menu genesis-nav-menu menu-footer list-inline', 'depth' => 1));
    $footer_nav = ob_get_contents();
    ob_end_clean();
    $backtotop_text = '<a id="gototop" href="#" class="btn btn-primary btn-sm back-to-top" role="button" title="Click to return on the top page" data-toggle="tooltip" data-placement="left"><i class="glyphicon glyphicon-chevron-up"></i></a>';
    $creds_text = 'Copyright [footer_copyright] <a href="' . esc_url(home_url('/')) . '" title="' . esc_attr(get_bloginfo('name')) . ' rel="nofollow"">' . get_bloginfo('name') . '</a> &middot; All Rights Reserved';
    $creds_text = apply_filters('genesis_footer_creds_text', $creds_text);
    $creds = $creds_text ? sprintf('<div class="creds">%s</div></div>', $creds_text) : '';
    $output = '<div class="site-info">';
    $output .= $footer_nav;
    $output .= $creds;
    $output .= '</div>';
    $output .= $backtotop_text;
    return $output;
}
Esempio n. 5
0
function amazingtimes_tertiary_menu()
{
    register_nav_menu('tertiary', 'Tertiary Navigation Menu');
    genesis_nav_menu(array('theme_location' => 'tertiary', 'menu_class' => 'menu genesis-nav-menu menu-tertiary'));
}
Esempio n. 6
0
function baselines_do_header_nav()
{
    genesis_nav_menu(array('theme_location' => 'header'));
}
Esempio n. 7
0
 /**
  * Render the specified nav
  *
  * @since 1.0.0
  *
  * @param string $html Placeholder for the returning HTML
  * @param string $theme_location Theme's location for this nav
  * @param string $menu_name  Added to the class to identify the nav
  * @return string|bool
  */
 public function render_nav($html, $theme_location, $menu_name)
 {
     if (!genesis_nav_menu_supported($theme_location)) {
         return false;
     }
     $class = 'menu genesis-nav-menu menu-' . $menu_name;
     if (genesis_superfish_enabled()) {
         $class .= ' js-superfish';
     }
     return genesis_nav_menu(array('theme_location' => $theme_location, 'menu_class' => $class, 'echo' => false));
 }
Esempio n. 8
0
/**
 * Replaces Default Navigation and adds the "und" Logo
 */
function und_do_nav()
{
    //* Do nothing if menu not supported
    if (!genesis_nav_menu_supported('primary')) {
        return;
    }
    $class = 'menu genesis-nav-menu menu-primary';
    if (genesis_superfish_enabled()) {
        $class .= ' js-superfish';
    }
    $items_wrap = '<ul id="%1$s" class="%2$s"><li class="logo-icon-li"><a href="/"><svg class="icon icon-logo logo-icon-und" viewBox="0 0 77 32"><use xlink:href="#icon-logo"></use></svg></a></li>%3$s</ul>';
    genesis_nav_menu(array('theme_location' => 'primary', 'menu_class' => $class, 'items_wrap' => $items_wrap));
}
Esempio n. 9
0
/**
 * Outputs Footer Navigation Menu
 *
 * @return string Navigation menu markup.
 * @since  1.0.0
 */
function utility_pro_do_footer_nav()
{
    genesis_nav_menu(array('menu_class' => 'menu genesis-nav-menu menu-footer', 'theme_location' => 'footer'));
}
function altitude_footer_menu()
{
    genesis_nav_menu(array('theme_location' => 'footer', 'container' => false, 'depth' => 1, 'fallback_cb' => false, 'menu_class' => 'genesis-nav-menu'));
}
function aggressive_footer_menu()
{
    register_nav_menu('footer', 'Footer Menu');
    genesis_nav_menu(array('theme_location' => 'footer', 'menu_class' => 'menu genesis-nav-menu menu-footer'));
}