Пример #1
0
 function tm_polygon_header_add_to_cart_fragment($fragments)
 {
     ob_start();
     $cart_html = tm_polygon_minicart();
     echo "" . $cart_html;
     $fragments['.mini-cart__button'] = ob_get_clean();
     return $fragments;
 }
Пример #2
0
}
?>
					</div>
				</nav>
				<!-- #site-navigation -->

				<?php 
if (class_exists('WooCommerce') && Kirki::get_option('tm-polygon', 'header_layout_mini_cart_enable') == 1) {
    ?>
					<div class="<?php 
    echo esc_attr($tm_polygon_cart_class);
    ?>
 search-cart hidden-xs hidden-sm">
						<div class="mini-cart">
							<?php 
    echo tm_polygon_minicart();
    ?>
							<div class="widget_shopping_cart_content"></div>
						</div>
					</div>
				<?php 
}
?>
				<?php 
if (Kirki::get_option('tm-polygon', 'header_layout_search_enable') == 1) {
    ?>
					<div class="search-cart hidden-xs hidden-sm">
						<div class="search-box">
							<?php 
    get_search_form();
    ?>