system/modules/pct_theme_templates/templates/theme/fe_page.html5 line 199

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="<?php echo $this->language?>"<?php if ($this->isRTL): ?> dir="rtl"<?php endif; ?>>
  3. <head>
  4. <?php
  5. $bundles array_keys(\Contao\System::getContainer()->getParameter('kernel.bundles'));
  6. ?>
  7. <?php $this->block('head'); ?>
  8.     <meta charset="<?= $this->charset ?>">
  9.     <title><?= $this->title ?></title>
  10.     <base href="<?= $this->base ?>">
  11.     <?php $this->block('meta'); ?>
  12.     <meta name="robots" content="<?= $this->robots ?>">
  13.     <meta name="description" content="<?= $this->description ?>">
  14.     <meta name="generator" content="Contao Open Source CMS">
  15.     <?php $this->endblock(); ?>
  16.     <meta name="viewport" content="height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0, target-densitydpi=device-dpi">
  17.     <link rel="apple-touch-icon" sizes="180x180" href="files/cto_layout/img/favicon/apple-touch-icon.png">
  18.     <link rel="icon" type="image/png" sizes="32x32" href="files/cto_layout/img/favicon/favicon-32x32.png">
  19.     <link rel="icon" type="image/png" sizes="16x16" href="files/cto_layout/img/favicon/favicon-16x16.png">
  20.     <link rel="manifest" href="files/cto_layout/img/favicon/site.webmanifest">
  21.     <link rel="mask-icon" href="files/cto_layout/img/favicon/safari-pinned-tab.svg" color="#5bbad5">
  22.     <?php if ( isset($this->canonical) && !empty($this->canonical) ): ?>
  23.     <link rel="canonical" href="<?= $this->canonical ?>">
  24.     <?php endif; ?>
  25.     <?php echo $this->stylesheets?>
  26.     <link rel="preload" as="font" crossorigin="anonymous" href="files/cto_layout/fonts/fontawesome-webfont.woff2">
  27.     <?php if( $this->seo_protocol == 'http2' ): ?>
  28.     <link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/css/animate.css">
  29.     <link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/css/font-awesome.min.css">
  30.     <link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/css/themify-icons.css">
  31.     <link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/css/tinymce.css">
  32.     <?php if( \in_array('pct_customelements_plugin_customcatalog'$bundles) ): ?>
  33.     <link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/css/customcatalog.css">
  34.     <?php endif; ?>
  35.     <link rel="stylesheet" type="text/css" media="screen" href="files/cto_layout/css/styles.css">
  36.     <?php else: ?>
  37.     <link rel="stylesheet preload" as="style" type="text/css" media="screen" href="<?php
  38.         $objCombiner = new \Contao\Combiner();
  39.         $objCombiner->add('files/cto_layout/css/animate.css');
  40.         $objCombiner->add('files/cto_layout/scripts/isotope/isotope_styles.css');
  41.         $objCombiner->add('files/cto_layout/css/font-awesome.min.css');
  42.         $objCombiner->add('files/cto_layout/css/themify-icons.css');
  43.         $objCombiner->add('files/cto_layout/css/tinymce.css');
  44.         if( \in_array('pct_customelements_plugin_customcatalog'$bundles) )
  45.         {
  46.             $objCombiner->add('files/cto_layout/css/customcatalog.css');    
  47.         }
  48.         $objCombiner->add('files/cto_layout/css/styles.css');
  49.         $strFile $objCombiner->getCombinedFile();
  50.         global $objPage;
  51.         if( empty($GLOBALS['TL_DEBUG']) && empty($objPage->staticFiles) )
  52.         {
  53.             $objFile = new \Contao\File$strFile.'.minified.css' );
  54.             if( $objFile->exists() === false && class_exists('\MatthiasMullie\Minify\CSS') )
  55.             {
  56.                 $objMinify = new \MatthiasMullie\Minify\CSS();
  57.                 $objMinify->add\file_get_contents(TL_ROOT.'/'.$strFile) );    
  58.                 $objFile->write$objMinify->minify() );
  59.                 $objFile->renameTo$strFile.'.minified.css' );
  60.                 $objFile->close();
  61.                 $strFile .= '.minified.css';
  62.             }
  63.             else 
  64.             {
  65.                 $strFile .= '.minified.css';
  66.             }
  67.         }
  68.         echo $strFile?>">
  69.     <?php endif; ?>
  70.     <?php if($this->pct_layout_css): ?>
  71.     <link id="layout_css" rel="stylesheet preload" as="style" title="layout_css" type="text/css" href="<?php echo $this->pct_layout_css?>">
  72.     <?php endif; ?>
  73.     <?php if(defined('PCT_FRONTEND_QUICKEDIT_ACTIVE')): ?>
  74.     <?php if( PCT_FRONTEND_QUICKEDIT_ACTIVE ): ?>    
  75.     <link rel="stylesheet" type="text/css" href="files/cto_layout/css/fq_styles.css">
  76.     <?php endif; ?>
  77.     <?php endif; ?>
  78.     <?php if(filesize(TL_ROOT.'/files/cto_layout/css/customize.css') > 0): ?><link rel="stylesheet preload" as="style" type="text/css" href="files/cto_layout/css/customize.css"><?php endif; ?>
  79.     <link rel="stylesheet preload" as="style" type="text/css" media="print" href="files/cto_layout/css/print.css">
  80.     <?= $this->pct_structured_data?>
  81.     
  82.    <?php echo $this->head?>
  83. <?php $this->endblock(); ?>
  84. </head>
  85. <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">
  86. <?php if (!empty($this->sections['body_top'])): ?><div class="body_top"><?php echo $this->sections['body_top']; ?></div><?php endif; ?>
  87. <div class="body">
  88. <?php $this->block('body'); ?>
  89.     <div id="contentwrapper">
  90.         <div id="fix-wrapper">
  91.         <div id="top-wrapper">
  92.             <?php if (!empty($this->sections['top_section'])): ?>
  93.                 <?php $this->block('top_section'); ?>
  94.                     <div id="top">
  95.                         <div class="inside">
  96.                             <?php echo $this->sections['top_section']; ?>
  97.                             <hr class="clear">
  98.                         </div>
  99.                         <?php if (!empty($this->sections['body_top'])): ?><div class="offcanvas-trigger"><span class="line1"></span><span class="line2"></span></div><?php endif; ?>
  100.                     </div>
  101.                 <?php $this->endblock(); ?>
  102.             <?php endif; ?>
  103.             <?php $this->block('header'); ?>
  104.                 <?php if ($this->header): ?>
  105.                     <header id="header" class="header original" itemscope itemtype="http://schema.org/WPHeader">
  106.                         <div class="inside">
  107.                             <?php echo $this->header?>
  108.                         <div class="clear"></div>
  109.                         </div>
  110.                     </header>
  111.                     <div class="clear"></div>
  112.                 <?php endif; ?>
  113.             <?php $this->endblock(); ?>
  114.         </div>
  115.         </div>
  116.         <?php $this->block('slider'); ?>
  117.             <div id="slider"<?php if(empty(trim$this->sections['slider']))): ?> class="empty"<?php endif; ?>>
  118.                 <?php if(!empty(trim$this->sections['slider']))): ?>
  119.                 <div class="inside">
  120.                     <?php echo trim$this->sections['slider'] ); ?>
  121.                 </div>
  122.                 <?php endif; ?>
  123.             </div>
  124.         <?php $this->endblock(); ?>
  125.         <?php if (!empty($this->sections['breadcrumb'])): ?>
  126.             <?php $this->block('breadcrumb'); ?>
  127.                 <div id="breadcrumb"><?php echo $this->sections['breadcrumb']; ?></div>
  128.             <?php $this->endblock(); ?>
  129.         <?php endif; ?>
  130.         <?php $this->block('container'); ?>
  131.             <div id="wrapper">
  132.                 <div id="container">
  133.                     <?php $this->block('main'); ?>
  134.                         <section id="main" itemscope itemtype="http://schema.org/WebPageElement" itemprop="mainContentOfPage">
  135.                             <div class="inside">
  136.                                 <?php echo $this->main?>
  137.                             </div>
  138.                         </section>
  139.                     <?php $this->endblock(); ?>
  140.                     <?php $this->block('left'); ?>
  141.                         <?php if ($this->left): ?>
  142.                             <aside id="left">
  143.                                 <div class="inside">
  144.                                     <?php echo $this->left?>
  145.                                 </div>
  146.                             </aside>
  147.                         <?php endif; ?>
  148.                     <?php $this->endblock(); ?>
  149.                     <?php $this->block('right'); ?>
  150.                         <?php if ($this->right): ?>
  151.                             <aside id="right">
  152.                                 <div class="inside">
  153.                                     <?php echo $this->right?>
  154.                                 </div>
  155.                             </aside>
  156.                         <?php endif; ?>
  157.                     <?php $this->endblock(); ?>
  158.                 </div>
  159.             </div>
  160.         <?php $this->endblock(); ?>
  161.         <?php $this->block('footer'); ?>
  162.             <?php if ($this->footer): ?>
  163.                 <footer id="footer" itemscope itemtype="http://schema.org/WPFooter">
  164.                     <div class="inside">
  165.                         <?php echo $this->footer?>
  166.                         <a href="{{env::request}}#contentwrapper" class="totop"></a>
  167.                     </div>
  168.                 </footer>
  169.             <?php endif; ?>
  170.         <?php $this->endblock(); ?>
  171.         <?php if (!empty($this->sections['bottom'])): ?>
  172.             <?php $this->block('bottom'); ?>
  173.                 <div id="bottom">
  174.                     <div class="inside">
  175.                         <?php echo $this->sections['bottom']; ?>
  176.                     </div>
  177.                 </div>
  178.             <?php $this->endblock(); ?>
  179.         <?php endif; ?>
  180.     </div>
  181. </div>
  182. <div class="body_bottom"><?php echo $this->sections['body_bottom']; ?></div>
  183. <?php if ($this->header): ?>
  184. <div id="stickyheader" class="stickyheader Fixed">
  185.     <div class="header cloned">
  186.         <div class="inside">
  187.             <?php echo $this->header?>
  188.             <div class="clear"></div>
  189.         </div>
  190.     </div>
  191. </div>
  192. <?php endif; ?>
  193. <?php if (!empty($this->sections['body'])): ?><?php echo $this->sections['body']; ?><?php endif; ?>
  194. <?php if( !empty($this->sections['mmenu_top']) || !empty($this->sections['mmenu_middle']) || !empty($this->sections['mmenu_bottom']) || !empty($GLOBALS['ONEPAGE_NAVI']) ): ?>
  195. <div id="mmenu">
  196. <div class="scrollable">
  197. <div class="inside">
  198. <div id="mmenu_top" class="block"><?php echo $this->sections['mmenu_top']; ?></div>
  199. <div id="mmenu_middle" class="block"><?php echo $this->sections['mmenu_middle']; ?><?php if(isset($GLOBALS['ONEPAGE_NAVI'])): ?>{{insert_module::<?= $GLOBALS['ONEPAGE_NAVI']; ?>}}<?php endif; ?>
  200. </div>
  201. </div>
  202. <div id="mmenu_bottom" class="block"><?php echo $this->sections['mmenu_bottom']; ?></div>
  203. </div>
  204. </div>
  205. <div class="mmenu_overlay"></div>
  206. <?php endif; ?>
  207. {{megamenu}}
  208. <?= $this->jsonLdScripts ?? ''?>
  209. <script>jQuery.noConflict();</script>
  210. <?php echo $this->mooScripts?>
  211. <?php echo $this->framework?>
  212. <?php if( $this->seo_protocol == 'http2' ): ?>
  213. <script src="files/cto_layout/scripts/doubletaptogo/doubletaptogo.js"></script>
  214. <?php if( isset($this->seo_scripts_files) && !empty($this->seo_scripts_files) ): ?>    
  215. <?php foreach($this->seo_scripts_files as $file): ?>
  216. <script src="<?= $file?>"></script>
  217. <?php endforeach; endif; ?>
  218. <script src="files/cto_layout/scripts/scripts.js"></script>
  219. <?php else: ?>
  220. <script defer src="<?php
  221. $objCombiner = new \Contao\Combiner();
  222. $objCombiner->add('files/cto_layout/scripts/doubletaptogo/doubletaptogo.js');
  223. if( isset($this->seo_scripts_files) && !empty($this->seo_scripts_files) )    
  224. {
  225.     foreach($this->seo_scripts_files as $file)
  226.     {
  227.         $objCombiner->add($file);
  228.     }
  229. }
  230. $objCombiner->add('files/cto_layout/scripts/scripts.js');
  231. $strFile $objCombiner->getCombinedFile();
  232. global $objPage;
  233. if( empty($GLOBALS['TL_DEBUG']) && empty($objPage->staticPlugins) )
  234. {
  235.     $objFile = new \Contao\File$strFile.'.minified.js' );
  236.     if( $objFile->exists() === false && class_exists('\MatthiasMullie\Minify\JS') )
  237.     {
  238.         $objMinify = new \MatthiasMullie\Minify\JS();
  239.         $objMinify->add\file_get_contents(TL_ROOT.'/'.$strFile) );    
  240.         $objFile->write$objMinify->minify() );
  241.         $objFile->renameTo$strFile.'.minified.js' );
  242.         $objFile->close();
  243.         $strFile .= '.minified.js';
  244.     }
  245.     else 
  246.     {
  247.         $strFile .= '.minified.js';
  248.     }
  249. }
  250. echo $strFile?>"></script>
  251. <?php endif; ?>
  252. <?php echo $this->mootools?>
  253. <?php if(filesize(TL_ROOT.'/files/cto_layout/scripts/customize.js') > 0): ?><script src="files/cto_layout/scripts/customize.js"></script><?php endif; ?>
  254. <?php $this->endblock(); ?>
  255. <div id="viewport-pixel"></div>
  256. <div id="outdated-browser">You are using an outdated browser. The website may not be displayed correctly. <span>Close</span></div>
  257. </body>
  258. </html>