173 lines
6.2 KiB
PHP
173 lines
6.2 KiB
PHP
<!DOCTYPE html>
|
|
<!--[if IE 7]>
|
|
<html id="ie7" <?php language_attributes(); ?>>
|
|
<![endif]-->
|
|
<!--[if IE 8]>
|
|
<html id="ie8" <?php language_attributes(); ?>>
|
|
<![endif]-->
|
|
<!--[if !(IE 7) | !(IE 8) ]><!-->
|
|
<html <?php language_attributes(); ?>>
|
|
<!--<![endif]--><head>
|
|
<?php dt_get_google_fonts( of_get_option( 'fonts-list' ), dt_get_web_font_effect() ); ?>
|
|
<meta http-equiv="Content-Type" content="text/html" />
|
|
<meta name="google-site-verification" content="lsE39E774PYnxYT9HLfOX3HK_LYKIUbfLdz0SClVuYw" />
|
|
<meta name="RATING" content="RTA-5042-1996-1400-1577-RTA" />
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
|
<meta name="p:domain_verify" content="4b115b9979a514a7933eb46d3f9c4651"/>
|
|
<?php
|
|
/* Tourn off responsivness if option "misc-off_responsivness" is set
|
|
* Another part of this action located in functions.php (dt_tourn_off_responsivness function) and footer.php (set javascript global)
|
|
* dt_is_responsive() located on /modules/helpers/template-helpers.php
|
|
*/
|
|
if ( dt_is_responsive() ) : ?>
|
|
|
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
|
<?php endif; ?>
|
|
<?php if ( dt_is_retina_on() ): ?>
|
|
<script>(function(w){var dpr=((w.devicePixelRatio===undefined)?1:w.devicePixelRatio);if(!!w.navigator.standalone){var r=new XMLHttpRequest();r.open('GET','<?php echo get_template_directory_uri();?>/set-cookie.php?devicePixelRatio='+dpr,false);r.send()}else{document.cookie='devicePixelRatio='+dpr+'; path=/'}})(window)</script>
|
|
<?php endif; ?>
|
|
<link href='https://fonts.googleapis.com/css?family=Advent+Pro:600' rel='stylesheet' type='text/css'>
|
|
<link href='https://fonts.googleapis.com/css?family=Cabin:700' rel='stylesheet' type='text/css'>
|
|
<title><?php
|
|
/*
|
|
* Print the <title> tag based on what is being viewed.
|
|
*/
|
|
global $page, $paged;
|
|
|
|
// Add the blog name.
|
|
bloginfo( 'name' );
|
|
|
|
wp_title( '|' );
|
|
|
|
// Add the blog description for the home/front page.
|
|
$site_description = get_bloginfo( 'description', 'display' );
|
|
if ( $site_description && ( is_home() || is_front_page() ) ) {
|
|
echo " | $site_description";
|
|
}
|
|
|
|
// Add a page number if necessary:
|
|
if ( $paged >= 2 || $page >= 2 ) {
|
|
echo ' | ' . sprintf( __( 'Page %s', LANGUAGE_ZONE ), max( $paged, $page ) );
|
|
}
|
|
?></title>
|
|
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
|
|
|
|
<?php echo dt_core_get_favicon( of_get_option( 'branding-favicon' ) ); ?>
|
|
|
|
<?php
|
|
// Google analitics code
|
|
if ( ! is_preview() ) {
|
|
echo of_get_option( 'misc-analitics_code', '' );
|
|
}
|
|
|
|
// add custom classes for fullscreen slider homepage
|
|
$body_class = array();
|
|
if ( dt_storage( 'is_homepage' ) && ! dt_storage( 'have_obo_slider' ) ) {
|
|
$page_opts = get_post_meta( get_the_ID(), '_dt_slider_layout_options', true );
|
|
if ( isset( $page_opts['slider'] ) && 'fullscreen_slider' == $page_opts['slider'] ) {
|
|
$body_class[] = 'fs-enabled';
|
|
|
|
if ( ! empty( $page_opts['fs_hide_content'] ) ) { $body_class[] = 'fs-no-content'; }
|
|
|
|
if ( ! empty( $page_opts['fs_hide_footer'] ) ) { $body_class[] = 'fs-no-footer'; }
|
|
}
|
|
}
|
|
|
|
wp_head();
|
|
?>
|
|
<?php if ( is_singular() ) wp_enqueue_script( "comment-reply" ); ?>
|
|
|
|
<link href='/wp-content/themes/dt-nimble-child/css/custom.css' rel='stylesheet' type='text/css'>
|
|
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
|
|
<script>
|
|
window.addEventListener("load", function(){
|
|
window.cookieconsent.initialise({
|
|
"palette": {
|
|
"popup": {
|
|
"background": "#000"
|
|
},
|
|
"button": {
|
|
"background": "#f1d600"
|
|
}
|
|
},
|
|
"position": "top",
|
|
"type": "opt-in"
|
|
})});
|
|
|
|
|
|
|
|
</script>
|
|
<script>
|
|
function getCookie(name)
|
|
{
|
|
var re = new RegExp(name + "=([^;]+)");
|
|
var value = re.exec(document.cookie);
|
|
return (value != null) ? unescape(value[1]) : null;
|
|
}
|
|
|
|
var test=(getCookie("cookieconsent_status"));
|
|
|
|
if(test=="dismiss")
|
|
{
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
|
ga('create', 'UA-106010342-1', 'auto');
|
|
ga('send', 'pageview');
|
|
|
|
|
|
|
|
(function(w){var dpr=((w.devicePixelRatio===undefined)?1:w.devicePixelRatio);if(!!w.navigator.standalone){var r=new XMLHttpRequest();r.open('GET','<?php echo get_template_directory_uri();?>/set-cookie.php?devicePixelRatio='+dpr,false);r.send()}else{document.cookie='devicePixelRatio='+dpr+'; path=/'}})(window);
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body <?php body_class( $body_class ); ?>>
|
|
<div id="flashcontainer"></div>
|
|
<!--<div style="position:fixed;top:20px;right:10px;z-index:10000;">
|
|
<?php //echo do_shortcode('[nwadcart_widget]'); ?>
|
|
</div>
|
|
//-->
|
|
|
|
|
|
<?php if ( dt_is_retina_on() ): ?>
|
|
|
|
<noscript>
|
|
<style id="devicePixelRatio" media="only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)">#devicePixelRatio{background-image:url("<?php echo get_template_directory_uri(); ?>/set-cookie.php?devicePixelRatio=2")}</style>
|
|
</noscript>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
$class = array();
|
|
if ( dt_storage( 'is_homepage' ) && ! dt_storage( 'have_obo_slider' ) && ! dt_storage( 'is_blog' ) ) {
|
|
$slider_options = get_post_meta( get_the_ID(), '_dt_slider_layout_options', true );
|
|
if( $slider_options && isset($slider_options['slider']) ) {
|
|
switch( $slider_options['slider'] ) {
|
|
case 'carousel': $class[] = 'carous'; break;
|
|
case 'photo_stack': $class[] = 'vert';
|
|
}
|
|
}
|
|
}
|
|
|
|
$class = implode( ' ', $class );
|
|
if ( ! empty( $class ) ) {
|
|
$class = ' class="' . $class . '"';
|
|
}
|
|
?>
|
|
|
|
<div id="wrap">
|
|
|
|
|
|
<div <?php if( of_get_option('boxed_layout-enable') ): ?> class="boxed" <?php endif; ?> id="page">
|
|
|
|
<div id="<?php dt_main_block_class_changer(); ?>"<?php echo $class; ?>>
|
|
<div id="main-menu" class="but-wrap"><a class="button big" href="javascript:void(0)"><span><?php _e('Menu ', LANGUAGE_ZONE); ?><i class="line-one"></i><i class="line-two"></i><i class="line-three"></i><i class="line-four"></i></span></a></div>
|