<?php
global $anomica_theme_options;
$header_search = ( !isset($anomica_theme_options['header_search']) ) ? '1' : esc_attr($anomica_theme_options['header_search']);

?>
	
<div class="header-controls">
	<?php if( $header_search=='1'): ?>
	<div class="search_box"> <a href="#"><span class="ti-search"></span></a> </div>
	<?php endif; ?>
	<?php
	$wc_header_icon = ( isset($anomica_theme_options['wc-header-icon']) && trim($anomica_theme_options['wc-header-icon'])!='' ) ? esc_attr($anomica_theme_options['wc-header-icon']) : '1' ;
	if( function_exists('is_woocommerce') && $wc_header_icon=='1' ){
	global $woocommerce;
	?>
	<div class="themetechmount-header-cart-link-wrapper"> <a href="<?php echo esc_url($woocommerce->cart->get_cart_url()); ?>" class="themetechmount-header-cart-link"><span class="ti-bag"></span> <span class="themetechmount-cart-qty"> <span class="cart-contents"></span></span> </a> </div>
	<?php } ?>
</div>