<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <?php echo body_tag(array('id' => @$bodyid, 'class' => @$bodyclass)); ?> <?php fire_plugin_hook('public_body', array('view' => $this)); ?> <!-- <header> <div class="container"> <?php fire_plugin_hook('public_header', array('view' => $this)); ?> <h1 class="site-title text-center"><?php echo link_to_home_page(theme_logo()); ?> </h1> </div> <nav class="navbar navbar-default" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#primary-navigation"> <span class="sr-only">Menu</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div>
function wd_print_header_body() { global $wd_data; $header_layout = 'v1'; if (isset($wd_data['wd_header_layout'])) { $header_layout = $wd_data['wd_header_layout']; } ?> <div class="header-middle"> <div class="wd_mobile_menu_content"> <?php if (has_nav_menu('mobile')) { wp_nav_menu(array('container_class' => 'mobile-menu', 'theme_location' => 'mobile')); } else { wp_nav_menu(array('container_class' => 'mobile-menu', 'theme_location' => 'primary')); } ?> </div> <div class="header-middle-content container <?php echo $header_layout != 'v1' ? 'visible-xs' : ''; ?> "> <?php theme_logo(); ?> <div class="header_woo_content"> <?php if ($header_layout == 'v1') { ?> <div class="shopping-cart shopping-cart-wrapper visible-phone"> <?php echo wd_tini_cart(); ?> </div> <?php } ?> <div class="phone_quick_menu_1 visible-xs"> <div class="mobile_my_account"> <?php if (is_user_logged_in()) { ?> <a class="bold-upper-small" href="<?php echo get_permalink(get_option('woocommerce_myaccount_page_id')); ?> " title="<?php _e('My Account', 'wpdance'); ?> "><?php _e('My Account', 'wpdance'); ?> </a> <?php } else { ?> <a class="bold-upper-small" href="<?php echo get_permalink(get_option('woocommerce_myaccount_page_id')); ?> " title="<?php _e('Login / Register', 'wpdance'); ?> "><?php _e('Login / Register', 'wpdance'); ?> </a> <?php } ?> </div> </div> <?php if ($header_layout == 'v1') { ?> <div class="mobile_cart_container visible-xs"> <div class="mobile_cart"> <?php global $woocommerce; if (isset($woocommerce) && isset($woocommerce->cart)) { $cart_url = $woocommerce->cart->get_cart_url(); echo "<a class='bold-upper-small' href='{$cart_url}' title='View Cart'>" . __('View Cart', 'wpdance') . "</a>"; } ?> </div> <div class="mobile_cart_number">0</div> </div> <?php } ?> </div> <div class="clear"></div> </div> </div><!-- end .header-middle --> <?php }
function wd_print_header_body() { ?> <div class="header-middle"> <div class="header-middle-content"> <?php theme_logo(); ?> <div class="header_woo_content"> <div class="header-bottom-wishlist"> <?php echo wd_tini_account(); //TODO : account form goes here ?> </div> <div class="shopping-cart shopping-cart-wrapper"> <?php echo wd_tini_cart(); ?> </div> <div class="phone_quick_menu_1 visible-phone"> <div class="mobile_my_account"> <?php if (is_user_logged_in()) { ?> <a href="<?php echo get_permalink(get_option('woocommerce_myaccount_page_id')); ?> " title="<?php _e('My Account', 'wpdance'); ?> "><?php _e('My Account', 'wpdance'); ?> </a> <?php } else { ?> <a href="<?php echo get_permalink(get_option('woocommerce_myaccount_page_id')); ?> " title="<?php _e('Login / Register', 'wpdance'); ?> "><?php _e('Login / Register', 'wpdance'); ?> </a> <?php } ?> </div> </div> <div class="mobile_cart_container visible-phone"> <div class="mobile_cart"> <?php global $woocommerce; if (isset($woocommerce) && isset($woocommerce->cart)) { $cart_url = $woocommerce->cart->get_cart_url(); echo "<a href='{$cart_url}' title='View Cart'>View Cart</a>"; } ?> </div> <div class="mobile_cart_number">0</div> </div> </div> <div class="header_search"><?php wd_product_search_form(); ?> </div> </div> </div><!-- end .header-middle --> <?php wp_reset_query(); ?> <?php }
<?php // We can have no logo by setting the image value to "none" if (strtolower($theLayout['logo']['img']) !== 'none') { // logo - smaller layouts (phone/tablet view) ?> <div class="logoDefault visible-desktop"><?php theme_logo('', array('image' => $themePath . 'assets/images/logo.png', 'class' => '')); ?> </div> <?php // logo - default (desktop view) if ($is_responsive) { ?> <div class="logoResponsive hidden-desktop"><?php theme_logo('', array('image' => $themePath . 'assets/images/logo.png', 'class' => '')); ?> </div> <?php } } // foreground slider $ss = get_ss($theHeader); if (isset($ss['ss-type']) && $ss['ss-type'] == 'ss-bgSlider') { $ss_h = $ss["height"] ? $ss["height"] : 500; $ss_w = $ss["width"] ? $ss["width"] : 960; //$ss_css = ($ss["width"]) ? 'width:'. $ss["width"] .'px;' : 'width:960px;'; $ss_css = 'height:' . $ss_h . 'px;'; $ratio = round($ss_w / $ss_h, 3); ?> <ul id="mainpage_slider_foreground" style="<?php
?> > <?php theme_color_switcher('render'); ?> <!-- Begin Container --> <div class="container"> <!-- Begin Header --> <div id="header"> <!-- Site Logo --> <a href="<?php echo home_url('/'); ?> " class="logo"> <img src="<?php theme_logo(); ?> " alt="" /> </a> <!-- SearchBox --> <?php get_search_form(); ?> <div class="clear"></div> </div> <!-- End Header --> <!-- Start Main Nav --> <div id="MainNav"> <a href="<?php echo home_url('/'); ?>