Exemplo n.º 1
0
        ?>
			<?php 
        if ($topbar_phone) {
            ?>
			<span class="info-phone"><span class="info-icon-wrapper"><i class="fa fa-phone"></i></span><span><?php 
            echo esc_html($topbar_phone);
            ?>
</span></span>
			<?php 
        }
        ?>
			<?php 
        // --- include shopping cart icon for wooCommerce ---
        if ($show_cart) {
            if (class_exists('Woocommerce')) {
                echo cmo_get_wc_mini_cart(2);
            }
        }
        ?>
		</div>
	</div>
	<?php 
    }
    ?>

	<nav class="container">
		<div class="mobile-nav">
			<button type="button" id="navbar-toggle" class="toggle-button" data-target="mobile-menu-container">
				<span class="sr-only">Toggle navigation</span> 
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
Exemplo n.º 2
0
 function cmo_add_wc_cart_fragments($fragments)
 {
     $cmo_header_style = cmo_get_page_theme_option('header_style', 'header-style');
     if ($cmo_header_style == 'style-3' || $cmo_header_style == 'style-6') {
         $fragments['cmo_wc_mini_cart'] = cmo_get_wc_mini_cart(2);
     } else {
         $fragments['cmo_wc_mini_cart'] = cmo_get_wc_mini_cart(1);
     }
     return $fragments;
 }