<header id="header" role="banner">
	<div class="container">
			<div class="ya-logo pull-left">
				<a  href="<?php echo site_url() ?>">
					<img src="<?php echo ya_options()->getCpanelValue('sitelogo'); ?>" alt="<?php bloginfo('name'); ?>">
				</a>
			</div>
			<?php if ( has_nav_menu('primary_menu') ): ?>
			<!-- Primary navbar -->
			<nav id="access" class="primary-menu" role="navigation">
				<div <?php ya_navbar_class(); ?>>
					<div class="navbar-inner">
						<div class="container">
							<button data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar" type="button">
					    		<span class="icon-bar"></span>
					            <span class="icon-bar"></span>
					            <span class="icon-bar"></span>
					  		</button>
							<div class="nav-collapse collapse">
								<?php
									$menu_class = 'nav nav-pills';
		                        	if ( 'mega' == ya_options()->getCpanelValue('menu_type') ){
										$menu_class .= ' nav-mega';
									} else $menu_class .= ' nav-css';
	                        	?>
								<?php wp_nav_menu(array('theme_location' => 'primary_menu', 'menu_class' => $menu_class)); ?>
							</div>
						</div>
					</div>
				</div>
			</nav>
			<!-- /Primary navbar -->
			<?php endif; ?>
	</div>
</header>

<?php if ( is_active_sidebar_YA('banner') ): ?>
<div class="banner" id="banner">
	<div class="container">
		<?php dynamic_sidebar('banner'); ?>
	</div>
</div>
<?php endif; ?>
