<!-- Getting positions -->
<?php 
	$wpmlPosition 		 = get_field('wpml_menu_position','options');
	$contactInfoPosition = get_field('contact_position','options');
	$wooCartPosition 	 = get_field('card_position','options');
 ?>

<!-- Left Side -->	                   
	                   
                    <div class="preLeft">

	<!-- WPML Menu -->
	                    <?php if($wpmlPosition == "left"): ?>
	                       <?php
				                $wpml = array(
									'container' 	  => false,
				                    'menu_class'      => 'list-unstyled list-inline languageSwitcher',
				                    'theme_location'   => 'wpml_menu'
				                );
								if ( has_nav_menu( "wpml_menu" ) ) {
				                	wp_nav_menu( $wpml );
								}
				            ?>
				            <?php endif; ?>
				            <ul class="list-unstyled list-inline verticalTop">
	<!-- Contact Info -->
					            <?php if($contactInfoPosition == 'left'): ?>
					            		
				            		<?php 
		                      			$contactInfo = get_field('contact_info','options');
										if($contactInfo):
											foreach($contactInfo as $info):
	                      		 	?>
		                      						<li><i class="fa <?php echo $info['icon']; ?>"></i><?php echo $info['text']; ?></li>
			                      			<?php endforeach; ?>
			                      		<?php endif; ?>
					            		
					            <?php endif; ?>
	<!-- Woo Cart -->
					            <?php if($wooCartPosition == "left"): ?>
				            	
					            		<?php if(is_woocommerce_active() && get_field("show_cart","options")): ?>
			                      		<li>
			                      			<div class="cartBtn">
						                      	<p><i class="fa fa-shopping-cart"></i>
						                      		<?php _e('My Cart','um_lang'); ?>
						                      		<span class="cart_totlWrapper">
							                        	<span class="cart_totl">
							                        	<?php 
							                        		global $woocommerce; 
							                        		echo $woocommerce->cart->cart_contents_count;
							                        	?>
							                        	</span>
						                    		</span>
						                      	</p>
						                        
					                    	</div>
					                        <div class="cart_content"><?php the_widget("WC_Widget_Cart"); ?></div>
			                      		</li>
					            		
					            	<?php endif; ?>
				           	 <?php endif; ?>
			            	</ul>
	                    </div>
	                    
	                    
<!-- Right Side -->	                   
	                   
                    <div class="preRight text-right">

	<!-- WPML Menu -->
	                    <?php if($wpmlPosition == "right"): ?>
	                       <?php
				                $wpml = array(
									'container' 	  => false,
				                    'menu_class'      => 'list-unstyled list-inline languageSwitcher',
				                    'theme_location'   => 'wpml_menu'
				                );
								if ( has_nav_menu( "wpml_menu" ) ) {
				                	wp_nav_menu( $wpml );
								}
				            ?>
				            <?php endif; ?>
				            <ul class="list-unstyled list-inline verticalTop">

	<!-- Contact Info -->
					            <?php if($contactInfoPosition == 'right'): ?>
					            		
				            		<?php 
		                      			$contactInfo = get_field('contact_info','options');
										if($contactInfo):
											foreach($contactInfo as $info):
	                      		 	?>
		                      						<li><i class="fa <?php echo $info['icon']; ?>"></i><?php echo $info['text']; ?></li>
			                      			<?php endforeach; ?>
			                      		<?php endif; ?>
					            		
					            <?php endif; ?>
	<!-- Woo Cart -->
					            <?php if($wooCartPosition == "right"): ?>
				            	
				            		<?php if(is_woocommerce_active() && get_field("show_cart","options")): ?>
		                      		<li>
		                      			<div class="cartBtn">
					                      	<p><i class="fa fa-shopping-cart"></i>
					                      		<?php _e('My Cart','um_lang'); ?>
					                      		<span class="cart_totlWrapper">
						                        	<span class="cart_totl">
						                        	<?php 
						                        		global $woocommerce; 
						                        		echo $woocommerce->cart->cart_contents_count;
						                        	?>
						                        	</span>
					                    		</span>
					                      	</p>
					                        
				                    	</div>
				                        <div class="cart_content"><?php the_widget("WC_Widget_Cart"); ?></div>
		                      		</li>
				            		<?php endif; ?>	
				            	<?php endif; ?>
			            	</ul>
	                    </div>