<?php
GLOBAL $webnus_options;
?>
<?php if( $webnus_options->webnus_header1_sticky() ): ?>
<div id="sticker">
<?php endif; ?>
<header id="header">
<div  class="container">
<div class="four columns logo"><a href="<?php echo home_url( '/' ); ?>">
<?php

global $homedark_options_meta;

$meta = $homedark_options_meta->the_meta();

$background = '';


if(isset($meta) && !empty($meta)){

	
	$logo= isset($meta['webnus_homedark_options'][0]['logo'])?$meta['webnus_homedark_options'][0]['logo']:null;
	$logo_width= isset($meta['webnus_homedark_options'][0]['logo_width'])?$meta['webnus_homedark_options'][0]['logo_width']:null;
	
}

$logo = !empty($logo) ? $logo : $webnus_options->webnus_logo();
$logo_width = !empty($logo_width)? $logo_width : $webnus_options->webnus_logo_width();

if(!empty($logo))
{
?>
<img src="<?php echo $logo; ?>" width="<?php  echo !empty($logo_width)?$logo_width:"120"; ?>" id="img-logo" alt="logo">
<?php 
}else{ ?>
<h1 id="site-title"><?php bloginfo( 'name' ); ?>
<small>
<?php 
                
	$slogan = $webnus_options->webnus_slogan();
   
	if( empty($slogan))
		bloginfo( 'description' );
	else
		echo $slogan;
                
                
?>
</small></h1>

<?php } ?>
</a></div>
<nav id="nav-wrap" class="nav-wrap1 twelve columns">
		<div id="search-form">
			<form action="<?php echo home_url( '/' ); ?>" method="get">
				<input type="text" class="search-text-box" id="search-box" name="s">
			</form>
		</div>
				<?php
					if ( has_nav_menu( 'header-menu' ) ) { 
						wp_nav_menu( array( 'theme_location' => 'header-menu', 'container' => 'false', 'menu_id' => 'nav', 'depth' => '5', 'fallback_cb' => 'wp_page_menu', 'items_wrap' => '<ul id="%1$s">%3$s</ul>') );
					}
				?>
	</nav>
		<!-- /nav-wrap -->
</div>
<div id="search-form2">
<form action="<?php echo home_url( '/' ); ?>" method="get">
	<input name="s" type="text" class="search-text-box2">
</form>
</div>
</header>
<?php if( $webnus_options->webnus_header1_sticky() ): ?>
</div>
<?php endif; ?>
<!-- end-header -->
