<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>

	<?php if(of_get_option('seo') == 'yes') { ?>
	<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' | '; } ?><?php bloginfo('name'); if(is_home()) { echo ' | '; bloginfo('description'); } ?></title>
	<?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
	
		
	
	<?php endwhile; endif; elseif(is_home()) : ?>
	
		
	<?php endif; ?>
	<?php } else { ?>
	<title><?php wp_title(''); ?></title>
	<?php } ?>

	<link rel="shortcut icon" href="<?php echo of_get_option('favicon','') ?>" type="image/x-icon" />
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">

<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); wp_head(); ?>

</head>

<body <?php body_class(); ?>>

<header>

	<div class="header-content">
		
		<div class="header-bar">
			
			<?php get_template_part( 'includes/header-links' ); ?>
			
			<?php if(of_get_option('include_newsletter') == 'yes') { ?>
				<?php get_template_part( '/includes/newsletter' ); ?>
				
			<?php } ?>
			
		</div>
	</div>
		
</header>
	<div id="logo-holder">
	<?php if(of_get_option('header_blog_title') == 'image') { ?>
		<div id="logo"><?php
			if (is_front_page()) {
				echo '<h1><a href="'.home_url().'/"><img src="'.of_get_option('logo','').'" alt="'.get_bloginfo('name').'" /></a></h1>';
			} else {
				echo '<p><a href="'.home_url().'/"><img src="'.of_get_option('logo','').'" alt="'.get_bloginfo('name').'" /></a></p>';
			}
		?>
           
        </div>
	    <?php } elseif(of_get_option('header_blog_title') == 'text') { ?>
		<div id="text-logo"><?php
			if (is_front_page()) {
				echo '<h1><a href="'.home_url().'/">'.get_bloginfo('name').'</a></h1>';
			} else {
				echo '<p><a href="'.home_url().'/">'.get_bloginfo('name').'</a></p>';
			}
		?></div>
	<?php } ?>
     <div id="topright">
    <div id="top2">
<a onclick="return FlexyBox.OnlineBooking.Show(this.href);ga('send', 'event', 'Online_booking', 'Bord_bestilling', 'Clicked');" href="http://booketbord.flexypos.com/mellemrum" rel="nofollow"><img class="Bordbestilling" src="<?php bloginfo('template_url'); ?>/images/Online bordbestilling Restaurant Aarhus.png"></a>
    </div>
    <div id="top3"><?php dynamic_sidebar('topwidget'); ?></div>
	</div>
</div>
	<?php wp_nav_menu( array( 'theme_location' => 'mobile', 'container' => 'nav', 'depth' => 1, 'container_class' => 'mobile' ) ); ?>

<div class="wrap clearfix fade-in">