Ejemplo n.º 1
0
    function wd_print_header_top()
    {
        global $wd_data;
        ?>
			<div class="header-top" id="header-top">
				<div class="header-top-content container">
					<div class="nav wd_mega_menu_wrapper">
						<?php 
        if (has_nav_menu('primary')) {
            wp_nav_menu(array('container_class' => 'main-menu pc-menu wd-mega-menu-wrapper', 'theme_location' => 'primary', 'walker' => new WD_Walker_Nav_Menu()));
        } else {
            wp_nav_menu(array('container_class' => 'main-menu pc-menu wd-mega-menu-wrapper', 'walker' => new WD_Walker_Nav_Menu()));
        }
        ?>
					</div>
					<div class="header_woo_content visible-sticky">
						<div class="shopping-cart shopping-cart-wrapper">
							<?php 
        echo wd_tini_cart();
        ?>
						</div>
					</div>
					<div class="wd_mobile_menu_wrapper hidden-sticky">
						<span class="menu-icon"></span>
					</div>
					
					<div class="header_search hidden-sticky"><?php 
        get_search_form();
        ?>
</div>
					<div class="header-account hidden-sticky">
						<?php 
        echo wd_tini_account();
        ?>
					</div>
					<div class="header-currency hidden-sticky">
						<?php 
        wd_header_currency_convert();
        ?>
					</div>
					<div class="header-language hidden-sticky">
						<?php 
        do_action('icl_language_selector');
        ?>
					</div>
					
					<div class="clear"></div>
				</div>
			</div>
		<?php 
    }
Ejemplo n.º 2
0
 function wd_update_tini_account()
 {
     die($_tini_account_html = wd_tini_account());
 }
Ejemplo n.º 3
0
    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 
    }