<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>" />
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />	
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="kt-top-nav">
	<div class="container">
        <div class="row">
                <div class="col-md-8">
                <?php
                wp_nav_menu( array(
                'menu'              => 'primary',
                'theme_location'    => 'primary',
                'depth'             => 3,
                'container'         => false,
                'container_class'   => false,
                'fallback_cb'       =>'photographer_fallback',
                'menu_class'        => 'main-menu')
                );
                ?>
				</div>  
				<div class="col-md-4" id="kt-social-area">	
				<ul id="kt-socials">
                    <?php $options = get_option('photographer_settings'); ?>
                    
                    <?php if($options['photographer_add_facebook'] != ''): ?>
                    <li><a href="<?php echo esc_url($options['photographer_add_facebook']); ?>">
                    <i class="fa fa-facebook-square"></i> </a></li>
                    <?php endif; ?>
                    
                    <?php if($options['photographer_add_twitter'] != ''): ?>
                    <li><a href="<?php echo esc_url($options['photographer_add_twitter']); ?>">
                    <i class="fa fa-twitter-square"></i> </a></li>
                    <?php endif; ?>
                    
                    <?php if($options['photographer_add_gplus'] != ''): ?>
                    <li><a href="<?php echo esc_url($options['photographer_add_gplus']); ?>">
                    <i class="fa fa-google-plus-square"></i> </a></li>
                    <?php endif; ?>
                    
                    <?php if($options['photographer_add_rss'] != ''): ?>
                    <li><a href="<?php echo esc_url($options['photographer_add_gplus']); ?>">
                    <i class="fa fa-rss-square"></i> </a></li>
                    <?php endif; ?>
                    
                    <?php if($options['photographer_add_linkedin'] != ''): ?>
                    <li><a href="<?php echo esc_url($options['photographer_add_linkedin']); ?>">
                    <i class="fa fa-linkedin-square"></i> </a></li>
                    <?php endif; ?>
                    
                    <?php if($options['photographer_add_instagram'] != ''): ?>
                    <li><a href="<?php echo esc_url($options['photographer_add_instagram']); ?>">
                    <i class="fa fa-instagram"></i> </a></li>
                    <?php endif; ?>
                    
                    <?php if($options['photographer_add_pinterest'] != ''): ?>
                    <li><a href="<?php echo esc_url($options['photographer_add_pinterest']); ?>">
                    <i class="fa fa-pinterest"></i> </a></li>
                    <?php endif; ?>
                    
                </ul>
				</div> 				
        </div>
	</div>  
</div>

    <?php if (get_header_image() != '') {    ?>
    <div class="container">
        <div class="row">
            <div class="col-md-12  header-image">
                <img class="img-responsive"  src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" />
            </div>
        </div>
    </div>
    <?php } ?>
<div class="container" id="kt-main">
	<div class="row">
		<div id="kt-sidebar" class="col-md-3"> 
            <h1>
            <a href="<?php echo esc_url(home_url()); ?>">
                <?php echo get_bloginfo('name'); ?>
            </a>
            
            </h1>
            
			<?php get_sidebar(); ?>
		</div>