<?php
/* Header Fixed Style */
?>
<?php
if ( get_option('storeup_topbar') != 'on' ) {
	if ( is_active_sidebar( 'topbarleft') || is_active_sidebar( 'topbarright') ){ ?>
		<div class="topbar">
			<div class="inner">
				<div class="topbar-left">
					<?php  if ( is_active_sidebar( 'topbarleft' ) ) : dynamic_sidebar('topbarleft');  endif; ?>
				</div><!-- /one_half -->
				<div class="topbar-right">
					<?php  if ( is_active_sidebar( 'topbarright' ) ) : dynamic_sidebar('topbarright');  endif; ?>
				</div><!-- /one_half last -->
			</div><!-- /inner -->
		</div><!-- /topbar -->
		<div class="clear"></div>
	<?php
	}
} ?>

<header>
	<div id="fixedheader" class="header">
		<div class="header-area">

			<div class="logo">
				<?php storeup_generator( 'storeup_logo', 'storeup_header_dark_logo' ); ?>
			</div><!-- /logo -->

			<div class="header-rightpart">
				<div class="primarymenu menuwrap">
				<?php storeup_generator( 'storeup_primary_menu' ); ?>
				<?php 
					if ( has_nav_menu( 'primary-menu' ) ) {  ?>
						<div id="iva-mobile-nav-icon" class="iva-mobile-dropdown"><span></span><span></span><span></span><span></span></div>
					<?php } ?>
				</div>
				<?php  if ( is_active_sidebar( 'header_widget_area_1' ) ) : dynamic_sidebar('header_widget_area_1');  endif; ?>
			</div>

		</div><!-- .header-area-->
		<?php // Mobile menu
			storeup_generator( 'storeup_mobile_menu' );
		?>
	</div><!-- #fixedheader-->
</header><!-- .header-->
<?php
