<?php

	/*
	*
	*	Header 3
	*	------------------------------------------------
	* 	Copyright Swift Ideas 2015 - http://www.swiftideas.com
	*
	*	Output for header-3
	*
	*/
	
	$uplift_options = uplift_get_theme_opts();
	$fullwidth_header    = $uplift_options['fullwidth_header'];
?>
<?php 
			$all_flag = pll_the_languages( array( 'raw' => 1 ) );
			$anchorLang = '';		
			foreach($all_flag as $fl)
			{
				$name 			= $fl['name'];
				$url 			= $fl['url'];
				$flag 			= $fl['flag'];
				$slug 			= $fl['slug'];
				{
					{
						$anchorLang .= '<a href="'.$url.'" title="'.$name.'" data-slug="'.$slug.'">'.$slug.'</a>'. PHP_EOL;
					}
				} 
			}	
		?>

<?php if ( $fullwidth_header ) { ?>
<header id="header" class="sticky-header fw-header clearfix">
<?php } else { ?>
<header id="header" class="sticky-header clearfix aa">
<?php } ?>
	<?php do_action('uplift_header_start'); ?>
	<div class="container">
		<div class="row">	
			<?php echo uplift_logo( 'col-sm-4 logo-left' ); ?>			
			<?php echo uplift_main_menu( 'main-navigation', 'float-2' ); ?>	
			<div class="minemenus">
				<?php echo do_shortcode('[minemenu name="162"]'); ?>
			</div>
			<div class="header-right col-sm-4">	
				<span class="languagE">
					<?php echo $anchorLang; ?>				
				</span>				
				<?php echo uplift_header_aux( 'right' ); ?>
			</div>
		
		</div> <!-- CLOSE .row -->
	</div> <!-- CLOSE .container -->
	<?php do_action('uplift_header_end'); ?>
</header>