<?php
/**
 * The Header for our theme.
 *
 *
 * @package Indigo Lite
 */
?>
<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale = 1.0, maximum-scale=2.0, user-scalable=yes" />
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
	<?php if ( function_exists( 'wp_body_open' ) ) {
    wp_body_open();
	} else {
    do_action( 'wp_body_open' );
	} ?>
	<div id="container">
		<div id="header">
  			<div id="headerin">
    			<div id="logo">
  					<?php the_custom_logo(); ?>
    				<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
        				<h1 class="site-title">
          					<?php bloginfo( 'name' ); ?>
        				</h1>
        			</a>
     			</div>

			<?php if ( has_nav_menu( 'main-menu' ) ) {
    		wp_nav_menu(
				array(
					'theme_location' => 'main-menu',
					'container_id'   => 'mainmenu',
					'menu_class' 	 => 'mainnav superfish',
					'fallback_cb'	 => false
					)
			);
			wp_nav_menu(
				array(
					'theme_location' => 'main-menu',
					'container_class'   => 'mmenu',
					'menu_class' 	 => 'navmenu',
					'fallback_cb'	 => false
				)
			);
  			} ?>
  		</div>
	</div>
    <?php if (is_front_page() &&  has_header_image() ) : ?>
  		<div id="titlewrapper">
  			<div class="frontwidget-bg-img" style="background-image:url(<?php header_image();?>);"></div>
       		<div id="titleinner">
    			<h2 class="site-description">
      				<?php bloginfo( 'description' ); ?>
    			</h2>
  			</div>
		</div>
	<?php endif; ?>
