<!doctype html>
<!--[if IE 7 ]> <html lang="en-gb" class="isie ie7 oldie no-js"> <![endif]-->
<!--[if IE 8 ]> <html lang="en-gb" class="isie ie8 oldie no-js"> <![endif]-->
<!--[if IE 9 ]> <html lang="en-gb" class="isie ie9 no-js"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="utf-8">
<?php dttheme_is_mobile_view(); ?>
<title><?php
$status = dttheme_is_plugin_active('all-in-one-seo-pack/all_in_one_seo_pack.php') || dttheme_is_plugin_active('wordpress-seo/wp-seo.php');
if (!$status) :
$title = dttheme_public_title();
if( !empty( $title) )
echo $title;
else
wp_title( '|', true, 'right' );
else :
wp_title( '|', true, 'right' );
endif;
?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /><?php
do_action('load_head_styles_scripts');
if ((dttheme_option('integration', 'enable-header-code'))) {
echo stripslashes(dttheme_option('integration', 'header-code'));
}
#WordPress Default head hook
wp_head();?>
</head>
<?php $body_class_arg = ( dttheme_option("appearance","layout") === "boxed" ) ? array("boxed") : array(); ?>
<body <?php body_class( $body_class_arg ); ?>>
<?php $picker = dttheme_option("general","disable-picker");
if(!isset($picker) && !is_user_logged_in() ): dttheme_color_picker(); endif;
if( is_page_template('tpl-header1.php') ) {
$header = "header1";
}elseif( is_page_template('tpl-header2.php') ){
$header = "header2";
}elseif( is_page_template('tpl-header3.php') ){
$header = "header3";
}elseif( is_page_template('tpl-header4.php') ){
$header = "header4";
}else{
$header = dttheme_option("appearance","header_type");
$header = !empty($header) ? $header : "header1";
}
#Top Bar
require_once(TEMPLATEPATH."/framework/headers/{$header}.php");?>
<!-- **Wrapper** -->
<div class="wrapper">
<!-- **Inner Wrapper** -->
<div class="inner-wrapper">
<!-- Header Wrapper -->
<div id="header-wrapper">
<!-- **Header** -->
<header id="header">
<!-- **Header Container** -->
<div class="container">
<!-- **Logo - End** -->
<div id="logo">
<?php if( dttheme_option('general', 'logo') ):
$url = dttheme_option('general', 'logo-url');
$url = !empty( $url ) ? $url : IAMD_BASE_URL."images/logo.png"; ?>
<a href="<?php echo home_url();?>" title="<?php echo dttheme_blog_title();?>">
<img src="<?php echo $url;?>" alt="<?php echo dttheme_blog_title(); ?>" title="<?php echo dttheme_blog_title(); ?>" />
</a>
<?php else: ?>
<h2><a href="<?php echo home_url();?>" title="<?php echo dttheme_blog_title();?>"><?php echo do_shortcode(get_option('blogname')); ?></a></h2>
<?php endif;?>
</div><!-- **Logo - End** -->
<!-- **Navigation** -->
<div id="primary-menu">
<nav id="main-menu">
<?php $primaryMenu = NULL;
if (function_exists('wp_nav_menu')) :
$primaryMenu = wp_nav_menu(array('theme_location'=>'header_menu','menu_id'=>'','menu_class'=>'menu','fallback_cb'=>'dttheme_default_navigation'
,'echo'=>false,'container'=>false,'walker' => new DTFrontEndMenuWalker()));
endif;
if(!empty($primaryMenu)) echo $primaryMenu;?>
</nav><!-- **Navigation - End** -->
</div>
</div><!-- **Header Container End** -->
</header><!-- **Header - End** -->
</div><!-- Header Wrapper -->
<!-- **Main** -->
<div id="main"><?php
if( is_page() ):
global $post;
dttheme_slider_section( $post->ID);
elseif( is_post_type_archive('product') ):
dttheme_slider_section( get_option('woocommerce_shop_page_id') );
endif;
if( is_page_template('tpl-contact.php') ):
global $post;
$tpl_default_settings = get_post_meta($post->ID,'_tpl_default_settings',TRUE);
$tpl_default_settings = is_array($tpl_default_settings) ? $tpl_default_settings : array();
if(array_key_exists("full-width-section",$tpl_default_settings)):
echo '<div class="fullwidth-map">';
echo do_shortcode($tpl_default_settings['full-width-section']);
echo '</div>';
endif;
endif;
if( !in_array('events-archive',get_body_class()) && !in_array('events-single',get_body_class()) && !in_array('single-tribe_venue',get_body_class())
&& !in_array('single-tribe_organizer',get_body_class()) ) {
$disable_breadcrumb = dttheme_option('general','disable-breadcrumb');
if( empty($disable_breadcrumb) and ( !is_front_page() ) ):
if(!is_page_template('tpl-home.php') ):
echo '<!-- **Breadcrumb** -->';
echo '<section class="breadcrumb-section">';
echo ' <div class="container">';
new dttheme_breadcrumb;
get_search_form();
echo ' </div>';
echo '</section><!-- **Breadcrumb** -->';
endif;
endif;
}?><div class="container">