echo '<a href="' . esc_url($site_url) . '" title="' . esc_attr($site_description) . '"><img src="' . esc_url($logo_url) . '" alt="' . esc_attr($site_title) . '" /></a>' . "\n"; } // End IF Statement echo '<' . $heading_tag . ' class="site-title"><a href="' . esc_url($site_url) . '">' . $site_title . '</a></' . $heading_tag . '>' . "\n"; if ($site_description) { echo '<span class="site-description">' . $site_description . '</span>' . "\n"; } ?> </div><!-- /#logo --> <h3 class="nav-toggle icon"><a href="#navigation"><?php _e('Navigation', 'woothemes'); ?> </a></h3> <div id="navigation" class=""> <?php woo_nav_inside(); ?> <?php if (function_exists('has_nav_menu') && has_nav_menu('primary-menu')) { wp_nav_menu(array('sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav fr', 'theme_location' => 'primary-menu')); } else { ?> <ul id="main-nav" class="nav fr"> <?php if (get_option('woo_custom_nav_menu') == 'true') { if (function_exists('woo_custom_navigation_output')) { woo_custom_navigation_output('name=Woo Menu 1'); } } else { ?>
function woo_nav() { global $woo_options; woo_nav_before(); ?> <nav id="navigation" class="col-full" role="navigation"> <?php $menu_class = 'menus'; $number_icons = 0; $icons = array('woo_nav_rss', 'woo_nav_search', 'woo_header_cart_link'); foreach ($icons as $icon) { if (isset($woo_options[$icon]) && 'true' == $woo_options[$icon]) { $number_icons++; } } if (isset($woo_options['woo_subscribe_email']) && '' != $woo_options['woo_subscribe_email']) { $number_icons++; } if (0 < $number_icons) { $menu_class .= ' nav-icons nav-icons-' . $number_icons; if (isset($woo_options['woo_header_cart_link']) && 'true' == $woo_options['woo_header_cart_link']) { if (isset($woo_options['woo_header_cart_total']) && 'true' == $woo_options['woo_header_cart_total']) { $menu_class .= ' cart-extended'; } } } ?> <section class="<?php echo $menu_class; ?> "> <?php woo_nav_inside(); ?> </section><!-- /.menus --> <a href="#top" class="nav-close"><span><?php _e('Return to Content', 'woothemes'); ?> </span></a> </nav> <?php woo_nav_after(); }
function woo_nav() { global $woo_options; woo_nav_before(); ?> <nav id="navigation" class="col-full" role="navigation"> <section class="menus"> <?php woo_nav_inside(); ?> <a href="<?php echo home_url(); ?> " class="nav-home"><span><?php _e('Home', 'woothemes'); ?> </span></a> <?php if (function_exists('has_nav_menu') && has_nav_menu('primary-menu')) { echo '<h3>' . woo_get_menu_name('primary-menu') . '</h3>'; wp_nav_menu(array('sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav fl', 'theme_location' => 'primary-menu')); } else { ?> <ul id="main-nav" class="nav fl"> <?php if (get_option('woo_custom_nav_menu') == 'true') { if (function_exists('woo_custom_navigation_output')) { woo_custom_navigation_output('name=Woo Menu 1'); } } else { ?> <?php if (is_page()) { $highlight = 'page_item'; } else { $highlight = 'page_item current_page_item'; } ?> <li class="<?php echo esc_attr($highlight); ?> "><a href="<?php echo esc_url(home_url('/')); ?> "><?php _e('Home', 'woothemes'); ?> </a></li> <?php wp_list_pages('sort_column=menu_order&depth=6&title_li=&exclude='); ?> <?php } ?> </ul><!-- /#nav --> <?php } ?> </section><!-- /.menus --> <a href="#top" class="nav-close"><span><?php _e('Return to Content', 'woothemes'); ?> </span></a> </nav> <?php woo_nav_after(); }
function woo_nav() { global $woo_options; woo_nav_before(); ?> <nav id="navigation" class="col-full" role="navigation"> <section class="menus"> <?php woo_nav_inside(); ?> </section><!-- /.menus --> <a href="#top" class="nav-close"><span><?php _e('Return to Content', 'woothemes'); ?> </span></a> </nav> <?php woo_nav_after(); }