<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>"<?php if ($this->isRTL): ?> dir="rtl"<?php endif; ?>>
<head>
<?php $this->block('head'); ?>
<?php $this->block('meta'); ?>
<meta charset="<?php echo $this->charset; ?>">
<meta name="robots" content="<?php echo $this->robots; ?>">
<meta name="description" content="<?php echo $this->description; ?>">
<meta name="keywords" content="<?php echo $this->keywords; ?>">
<meta name="generator" content="Contao Open Source CMS">
<?php $this->endblock(); ?>
<title><?php echo $this->title; ?></title>
<base href="<?php echo $this->base; ?>">
<link rel="shortcut icon" href="files/cto_layout/img/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="files/cto_layout/img/apple-touch-icon.png">
<?php echo $this->framework; ?>
<?php echo $this->mooScripts; ?>
<?php echo $this->stylesheets; ?>
<script src="assets/jquery/js/jquery.min.js"></script>
<script>
/**
* PrivacyManager
*/
var PrivacyManager =
{
/**
* The privacy localStorage key
* @var string
*/
privacy_session : 'user_privacy_settings',
/**
* Get the selected privacy checkbox values from a formular array
* @param array
* @return array
*/
getUserSelectionFromFormData: function (arrSubmitted)
{
if (arrSubmitted == null || arrSubmitted == undefined)
{
return [];
}
var arrReturn = [];
for (var k in arrSubmitted)
{
var v = arrSubmitted[k];
if (v['name'] == 'privacy')
{
arrReturn.push(v['value']);
}
}
return arrReturn;
},
/**
* Access control
* @param string
*/
hasAccess : function (varSelection)
{
var token = localStorage.getItem( this.privacy_session );
if( token == undefined )
{
return false;
}
// convert to string
if( typeof(varSelection) == 'number' )
{
varSelection = varSelection.toString();
}
// convert to array
if( typeof(varSelection) == 'string' )
{
varSelection = varSelection.split(',');
}
for(i in varSelection)
{
var value = varSelection[i].toString().replace(' ','');
if( token.indexOf( value ) >= 0 )
{
return true;
}
}
return false;
},
/**
* Clear privacy settings and redirect page
* @param boolean
*/
optout: function (strRedirect)
{
// clear local storage
localStorage.removeItem(this.privacy_session);
localStorage.removeItem(this.privacy_session+'_expires');
// fire event
jQuery(document).trigger('Privacy.clear_privacy_settings',{});
// log
console.log('Privacy settings cleared');
// redirect
if (strRedirect != undefined)
{
location.href = strRedirect;
}
else
{
location.reload();
}
},
/**
* Clear all cookies and localstorage
*/
clearAll: function()
{
var host = window.location.hostname;
var domain = host.substring( host.indexOf('.') , host.length);
// clear all cookies
document.cookie.split(";").forEach(function(c)
{
document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/"+ ";domain="+host);
document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/"+ ";domain="+domain);
});
// clear whole localstorage
window.localStorage.clear();
for (var i = 0; i <= localStorage.length; i++)
{
localStorage.removeItem(localStorage.key(i));
}
// log
console.log('Cookies and localstorage cleared');
}
};
</script>
<script>
/**
* Univerasl optin protection
* @param string Type of element to be protected e.g. img or iframe etc.
*/
PrivacyManager.optin = function(strElementType)
{
if(strElementType == undefined || strElementType == '')
{
return;
}
// user settings not applied yet
if(localStorage.getItem(this.privacy_session) == undefined || localStorage.getItem(this.privacy_session) == '' || localStorage.getItem(this.privacy_session) <= 0)
{
return
}
// find all scripts having a data-src attribute
var targets = jQuery(strElementType+'[data-src]');
if(targets.length > 0)
{
jQuery.each(targets,function(i,e)
{
var privacy = jQuery(e).data('privacy');
if(privacy == undefined)
{
privacy = 0;
}
var attr = 'src';
if(strElementType == 'link')
{
attr = 'href';
}
else if(strElementType == 'object')
{
attr = 'data';
}
if(localStorage.getItem('user_privacy_settings').indexOf(privacy) >= 0)
{
jQuery(e).attr(attr,jQuery(e).data('src') );
}
});
}
}
jQuery(document).on('Privacy.changed', function()
{
PrivacyManager.optin('script');
PrivacyManager.optin('link');
PrivacyManager.optin('iframe');
PrivacyManager.optin('object');
PrivacyManager.optin('img');
});
jQuery(document).ready(function()
{
PrivacyManager.optin('script');
PrivacyManager.optin('link');
PrivacyManager.optin('iframe');
PrivacyManager.optin('object');
PrivacyManager.optin('img');
});
</script>
<?php if( $this->seo_protocol == 'http2' ): ?>
<link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/scripts/swiper/swiper.min.css">
<link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/scripts/mmenu/mmenu.css">
<link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/css/animate.css">
<link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/scripts/jquery.mb.YTPlayer/css/YTPlayer.css">
<link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/scripts/isotope/isotope_styles.css">
<link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/css/framework.css">
<link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/css/customelements.css">
<link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/css/customcatalog.css">
<link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/css/styles.css">
<?php else: ?>
<link rel="stylesheet" type="text/css" media="screen" href="<?php
$objCombiner = new \Contao\Combiner();
$objCombiner->add('files/cto_layout/scripts/swiper/swiper.min.css');
$objCombiner->add('files/cto_layout/scripts/mmenu/mmenu.css');
$objCombiner->add('files/cto_layout/css/animate.css');
$objCombiner->add('files/cto_layout/scripts/jquery.mb.YTPlayer/css/YTPlayer.css');
$objCombiner->add('files/cto_layout/scripts/isotope/isotope_styles.css');
$objCombiner->add('files/cto_layout/css/font-awesome.min.css');
$objCombiner->add('files/cto_layout/css/framework.css');
$objCombiner->add('files/cto_layout/css/customelements.css');
$objCombiner->add('files/cto_layout/css/customcatalog.css');
$objCombiner->add('files/cto_layout/css/styles.css');
echo $objCombiner->getCombinedFile();?>">
<?php endif; ?>
<?php if($this->pct_layout_css): ?>
<link id="layout_css" rel="stylesheet" title="layout_css" type="text/css" href="<?php echo $this->pct_layout_css; ?>">
<?php endif; ?>
<link id="layout_css_temp" rel="stylesheet" title="layout_css_temp" href="files/cto_layout/themedesigner/css/5_1583408487.css">
<?php if(filesize(TL_ROOT.'/files/cto_layout/css/customize.css') > 0): ?><link rel="stylesheet" type="text/css" href="files/cto_layout/css/customize.css"><?php endif; ?>
<?php echo $this->head; ?>
<script>
function initGoogleAnalytics()
{
(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-155725062-1', 'auto');
<?php if (Config::get('privacyAnonymizeGA')): ?>
ga('set', 'anonymizeIp', true);
<?php endif; ?>
ga('send', 'pageview');
}
// Optin privacy setting token
if(localStorage.getItem('user_privacy_settings') >= 3)
{
initGoogleAnalytics();
}
// listen to Eclipse.user_privacy Event
jQuery(document).on('Eclipse.user_privacy',function(event,params)
{
if(params.level >= 3)
{
initGoogleAnalytics();
}
});
</script>
<?php $this->endblock(); ?>
</head>
<body class="{{ua::class}}<?php if ($this->class) echo ' ' . trim(preg_replace('/fa(?:-[-\w]+|\b)/','', $this->class)); ?>"<?php if ($this->onload): ?> onload="<?php echo $this->onload; ?>"<?php endif; ?> itemscope itemtype="http://schema.org/WebPage">
<?php if (!empty($this->sections['body_top'])): ?><div class="body_top"><?php echo $this->sections['body_top']; ?></div><?php endif; ?>
<div>
<?php $this->block('body'); ?>
<div id="contentwrapper">
<div id="fix-wrapper">
<div id="top-wrapper">
<?php if (!empty($this->sections['top_section'])): ?>
<?php $this->block('top_section'); ?>
<div id="top">
<div class="inside">
<?php echo $this->sections['top_section']; ?>
<hr class="clear">
</div>
<div class="offcanvas-trigger"><span class="line1"></span><span class="line2"></span></div>
</div>
<?php $this->endblock(); ?>
<?php endif; ?>
<?php $this->block('header'); ?>
<?php if ($this->header): ?>
<header id="header" class="header original" itemscope itemtype="http://schema.org/WPHeader">
<div class="inside">
<?php echo $this->header; ?>
<div class="clear"></div>
</div>
</header>
<div class="clear"></div>
<?php endif; ?>
<?php $this->endblock(); ?>
</div>
</div>
<?php $this->block('slider'); ?>
<div id="slider"<?php if(empty(trim( $this->sections['slider']))): ?> class="empty"<?php endif; ?>>
<?php if(!empty(trim( $this->sections['slider']))): ?>
<div class="inside">
<?php echo trim( $this->sections['slider'] ); ?>
</div>
<?php endif; ?>
</div>
<?php $this->endblock(); ?>
<?php if (!empty($this->sections['breadcrumb'])): ?>
<?php $this->block('breadcrumb'); ?>
<div id="breadcrumb"><?php echo $this->sections['breadcrumb']; ?></div>
<?php $this->endblock(); ?>
<?php endif; ?>
<?php $this->block('container'); ?>
<div id="wrapper">
<div id="container">
<?php $this->block('main'); ?>
<section id="main" itemscope itemtype="http://schema.org/WebPageElement" itemprop="mainContentOfPage">
<div class="inside">
<?php echo $this->main; ?>
</div>
</section>
<?php $this->endblock(); ?>
<?php $this->block('left'); ?>
<?php if ($this->left): ?>
<aside id="left">
<div class="inside">
<?php echo $this->left; ?>
</div>
</aside>
<?php endif; ?>
<?php $this->endblock(); ?>
<?php $this->block('right'); ?>
<?php if ($this->right): ?>
<aside id="right">
<div class="inside">
<?php echo $this->right; ?>
</div>
</aside>
<?php endif; ?>
<?php $this->endblock(); ?>
</div>
</div>
<?php $this->endblock(); ?>
<?php $this->block('footer'); ?>
<?php if ($this->footer): ?>
<footer id="footer" itemscope itemtype="http://schema.org/WPFooter">
<div class="inside">
<?php echo $this->footer; ?>
<a href="{{env::request}}#contentwrapper" class="totop"></a>
</div>
</footer>
<?php endif; ?>
<?php $this->endblock(); ?>
<?php if (!empty($this->sections['bottom'])): ?>
<?php $this->block('bottom'); ?>
<div id="bottom">
<div class="inside">
<?php echo $this->sections['bottom']; ?>
</div>
</div>
<?php $this->endblock(); ?>
<?php endif; ?>
</div>
</div>
<div class="body_bottom"><?php echo $this->sections['body_bottom']; ?></div>
<?php if (!empty($this->sections['body'])): ?><?php echo $this->sections['body']; ?><?php endif; ?>
<?php if (!empty($this->sections['mmenu_top'])): ?><div id="mmenu_top"><?php echo $this->sections['mmenu_top']; ?></div><?php endif; ?>
<?php if (!empty($this->sections['mmenu_bottom'])): ?><div id="mmenu_bottom"><?php echo $this->sections['mmenu_bottom']; ?></div><?php endif; ?>
<script>jQuery.noConflict();</script>
<script src="assets/jquery-ui/js/jquery-ui.min.js"></script>
<?php echo $this->mootools; ?>
<?php if( $this->seo_protocol == 'http2' ): ?>
<script src="files/cto_layout/scripts/cookie/jquery.cookie.js"></script>
<script src="files/cto_layout/scripts/mmenu/mmenu.js"></script>
<script src="files/cto_layout/scripts/waypoints/waypoints.min.js"></script>
<script src="files/cto_layout/scripts/jquery.mb.YTPlayer/inc/jquery.mb.YTPlayer.js"></script>
<script src="files/cto_layout/scripts/isotope/jquery.isotope.min.js"></script>
<script src="files/cto_layout/scripts/typed/js/typed.js"></script>
<script src="files/cto_layout/scripts/countup/countUp.min.js"></script>
<script src="files/cto_layout/scripts/parallax/jquery.stellar.min.js"></script>
<script src="files/cto_layout/scripts/doubletaptogo/doubletaptogo.js"></script>
<script src="files/cto_layout/scripts/easypiecharts/easypiechart.min.js"></script>
<script src="files/cto_layout/scripts/swiper/swiper.jquery.min.js"></script>
<script src="files/cto_layout/scripts/scripts.js"></>
<?php else: ?>
<script src="<?php
$objCombiner = new \Contao\Combiner();
$objCombiner->add('files/cto_layout/scripts/cookie/jquery.cookie.js');
$objCombiner->add('files/cto_layout/scripts/mmenu/mmenu.js');
$objCombiner->add('files/cto_layout/scripts/waypoints/waypoints.min.js');
$objCombiner->add('files/cto_layout/scripts/jquery.mb.YTPlayer/inc/jquery.mb.YTPlayer.js');
$objCombiner->add('files/cto_layout/scripts/isotope/jquery.isotope.min.js');
$objCombiner->add('files/cto_layout/scripts/typed/js/typed.js');
$objCombiner->add('files/cto_layout/scripts/countup/countUp.min.js');
$objCombiner->add('files/cto_layout/scripts/parallax/jquery.stellar.min.js');
$objCombiner->add('files/cto_layout/scripts/doubletaptogo/doubletaptogo.js');
$objCombiner->add('files/cto_layout/scripts/easypiecharts/easypiechart.min.js');
$objCombiner->add('files/cto_layout/scripts/swiper/swiper.jquery.min.js');
$objCombiner->add('files/cto_layout/scripts/scripts.js');
echo $objCombiner->getCombinedFile();?>"></script>
<?php endif; ?>
<?php if(filesize(TL_ROOT.'/files/cto_layout/scripts/customize.js') > 0): ?><script src="files/cto_layout/scripts/customize.js"></script><?php endif; ?>
<?php $this->endblock(); ?>
</body>
</html>