</div> </div> </div> </section> </header> <!--end #logo--> <header class="site-menu"> <section class="container"> <div class="inner non-responsive clearfix"> <?php echo twoot_generator('menu'); ?> <?php if (twoot_get_checked_func('woo_activated')) { echo twoot_woo_generator('mini_cart'); } ?> </div> <?php echo twoot_generator('responsive_menu'); ?> </section> </header> <!--end #menu--> </div> <!--end #header--> <div class="clear"></div> <?php
function responsive_menu() { $html = '<nav class="responsive-menu-wrap hide">'; $html .= '<div class="responsive-menu-switch-wrap clearfix">'; $html .= '<a href="#" class="responsive-menu-switch twoot-icon open" id="toggle-top-responsive-menu"></a>'; if (twoot_get_checked_func('woo_activated')) { $html .= twoot_woo_generator('responsive_mini_cart'); } $html .= '</div>'; $html .= '<div class="responsive-menu top-responsive-menu hide">'; $html .= '<ul>'; if (has_nav_menu('top_menu')) { $args = array('container' => '', 'items_wrap' => '%3$s', 'depth' => 0, 'echo' => false, 'theme_location' => 'top_menu'); $html .= wp_nav_menu($args); } else { $args = array('title_li' => 0, 'depth' => 0, 'echo' => false, 'sort_column' => 'menu_order'); $html .= wp_list_pages($args); } $html .= '</ul>'; $html .= '</div>'; $html .= '</nav>'; return $html; }