templates/module-layout.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale }}" data-language="{{ app.request.locale }}" data-device="{{ app.request.locale }}">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     {% if document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  7.         {% if document.getTitle() is not empty %}
  8.             {% do pimcore_head_title().set(document.getTitle()) %}
  9.         {% endif %}
  10.         {% if document.getDescription() is not empty %}
  11.             {% do pimcore_head_meta().setDescription(document.getDescription()) %}
  12.         {% endif %}
  13.     {% endif %}
  14.     {% block layout_head_meta deferred %}
  15.     {{ pimcore_head_title() }}
  16.     {{ pimcore_head_meta() }}
  17.     {% if pimcore_placeholder('canonical').count() %}
  18.         <link rel="canonical" href="{{ pimcore_placeholder('canonical') }}"/>
  19.     {% endif %}
  20.     {% endblock %}
  21.     {% block head_stylesheets deferred %}
  22.     {{ pimcore_head_link() }}
  23.     {% endblock %}
  24.     {% if editmode %}
  25.         <link href="/bundles/app/static/backend/css/basic/normalize.css" rel="stylesheet" type="text/css" media="screen" />
  26.         <link href="/bundles/app/static/backend/css/basic/editmode.css" rel="stylesheet" type="text/css" media="screen" />
  27.         <link href="/bundles/app/static/backend/css/tabnavigation/tabs.css" rel="stylesheet" type="text/css" media="screen" />
  28.         <link href="/bundles/app/static/backend/css/multiselect/simple-multiselect.css" rel="stylesheet" type="text/css" media="screen" /><!-- selectBox Peter -->
  29.         <link href="/bundles/app/static/backend/css/schemaorg/jquery.timepicker.css" rel="stylesheet" type="text/css" />
  30.         <link href="/bundles/app/static/backend/css/schemaorg/schemaorgmap.css" rel="stylesheet" type="text/css" />
  31.         <script type="text/javascript">
  32.             window.parent.$(window.parent.document).find('.pimcore_icon_cleanup').parent().parent().parent().parent().hide();
  33.         </script>
  34.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><?php echo "\r\n";?>
  35.         <style>
  36.             .pimcore_editable{
  37.                 min-height:16px!IMPORTANT;
  38.             }
  39.             .pimcore_editable input.x-form-text{
  40.                 height:31px!IMPORTANT;
  41.             }
  42.         </style>
  43.         {# Frontend Part #}
  44.     {% else %}
  45.     <link rel="stylesheet" media="screen" href="/bundles/app/static/frontend/css/compress.css" />
  46.         <!-- Kopf include -->
  47.     <link rel="apple-touch-icon" sizes="180x180" href="/bundles/app/static/frontend/images/favicon/apple-touch-icon.png">
  48.     <link rel="icon" type="image/png" sizes="32x32" href="/bundles/app/static/frontend/images/favicon/favicon-32x32.png">
  49.     <link rel="icon" type="image/png" sizes="16x16" href="/bundles/app/static/frontend/images/favicon/favicon-16x16.png">
  50.     <link rel="manifest" href="/bundles/app/static/frontend/images/favicon/site.webmanifest">
  51.     <link rel="mask-icon" href="/bundles/app/static/frontend/images/favicon/safari-pinned-tab.svg" color="#e50000">
  52.     <link rel="shortcut icon" href="/bundles/app/static/frontend/images/favicon/favicon.ico">
  53.     <meta name="msapplication-TileColor" content="#e50000">
  54.     <meta name="msapplication-config" content="/bundles/app/static/frontend/images/favicon/browserconfig.xml">
  55.     <meta name="theme-color" content="#ffffff">
  56. {#        #}{##}
  57. {#        {% if pimcore_link('strukturierteDaten').isEmpty() is not empty %}#}
  58. {#            {% set strukturierteDatenId = pimcore_link('strukturierteDaten').getId()  %}#}
  59. {#            {{ show_snippet(strukturierteDatenId, []) }}#}
  60. {#        {% endif %} #}
  61.      <link rel="stylesheet" media="screen" href="/bundles/app/static/frontend/css/front-page.css" />
  62.     {% if document.getProperty('page_startseite') %}
  63.     <link rel="stylesheet" media="screen" href="/bundles/app/static/frontend/css/front-page.css" />
  64.     {% endif %}
  65.         {# gibt aus den Objekten  Meta-Tags / etc. vor Ende Head aus #}
  66.         {{ codevorendehead_allgemein() | raw }}
  67.     {% endif %}
  68. </head>
  69. {% if editmode %}
  70. <body style="background-image:url(/bundles/app/static/backend/image/edm-style/tab-nav-bg.png) repeat-x bottom;">
  71. {{ block('content') }}
  72. {% if editmode %}
  73.     <script src="/bundles/app/static/backend/js/jquery/jquery-3.2.1.min.js"></script>
  74.     <script type="text/javascript" src="/bundles/app/static/backend/js/schemaorg/jquery.timepicker.js"></script>
  75.     <script type ="text/javascript" src="/bundles/app/static/backend/js/jquery/multiselect/simple-multiselect.js"></script>
  76.     <script type="text/javascript">
  77.         window.parent.$(window.parent.document).find('.pimcore_icon_cleanup').parent().parent().parent().parent().hide();
  78.     </script>
  79.     <script>
  80.         function ReadCookie(cookieName) {
  81.             var theCookie=" "+document.cookie;
  82.             var ind=theCookie.indexOf(" "+cookieName+"=");
  83.             if (ind==-1) ind=theCookie.indexOf(";"+cookieName+"=");
  84.             if (ind==-1 || cookieName=="") return "";
  85.             var ind1=theCookie.indexOf(";",ind+1);
  86.             if (ind1==-1) ind1=theCookie.length;
  87.             return unescape(theCookie.substring(ind+cookieName.length+2,ind1));
  88.         }
  89.         $( document ).ready(function() {
  90.             var cookieName = "edmtab" + '<?=$this->document->getId()?>';
  91.             var CookieVal = ReadCookie(cookieName);
  92.             if(CookieVal.length > 0){
  93.                 $('#' + CookieVal).attr('checked','checked');
  94.             }
  95.             $('input.tabContent').on('change', function(e) {
  96.                 var tabnr = $(this).attr('id');
  97.                 console.log(e);
  98.                 document.cookie = cookieName + "=" + tabnr;
  99.             });
  100.         });
  101.     </script>
  102. {% endif %}
  103. {% else %}
  104. <body class="standard"  data-status="" itemscope="" itemtype="http://schema.org/WebPage">
  105. {{ codenachanfangbody_allgemein() | raw }}
  106. {% set bgImageSrc = pimcore_image("BackgroundImagePage").getSrc() %}
  107. {% if theme is not defined or theme is empty %}
  108.     {% set theme = document.getProperty('theme_doc') ? document.getProperty('theme_doc') : "neutral" %}
  109. {% endif %}
  110. <div data-theme="rent">
  111.     <div class="layout-page gradient-page {{ document.getProperty('page_startseite') ? 'frontpage' : '' }}">
  112.         <aside class="side-bar gradient-page">
  113.             <figure class="logo {{ theme }} {{ document.getProperty('page_startseite') ? 'side-bar-logo--frontpage' : '' }}">
  114.                 <a href="{{ logo_link }}">
  115.                     <img width="123" height="101" src="{{ glanzerLogo }}" alt="{{ glanzerLogoAlt }}"/>
  116.                 </a>
  117.             </figure>
  118.             <nav class="navigation">
  119.                 <ul class="no-bullet font-light theme-indicator-wrp" data-menu="sidebar">
  120.                     <li class="theme-indicator theme-indicator--mobile shops">
  121.                         <a class="theme-title theme-title--mobile" href="{{ url_shops }}">
  122.                             <div class="label centered-flex">
  123.                                 <span class="uppercase font-bold">{{ text_shops }}</span>
  124.                                 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 300" width="50" height="300"
  125.                                      preserveAspectRatio="xMaxYMax meet">
  126.                                     <text class="tab-text"
  127.                                           transform="matrix(6.123234e-17 -1 1 6.123234e-17 42.7734 258)">{{ text_shops }}</text>
  128.                                 </svg>
  129.                             </div>
  130.                         </a>
  131.                     </li>
  132.                     <li class="theme-indicator theme-indicator--mobile rent">
  133.                         <a class="theme-title theme-title--mobile" href="{{ url_rent }}">
  134.                             <div class="label centered-flex">
  135.                                 <span class="uppercase font-bold">{{ text_rent }}</span>
  136.                                 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 300" width="50" height="300"
  137.                                      preserveAspectRatio="xMaxYMax meet">
  138.                                     <text class="tab-text" transform="matrix(6.123234e-17 -1 1 6.123234e-17 42.7734 280)">{{ text_rent }}</text>
  139.                                 </svg>
  140.                             </div>
  141.                         </a>
  142.                     </li>
  143.                     <li class="theme-indicator theme-indicator--mobile homes">
  144.                         <a class="theme-title theme-title--mobile" href="{{ url_homes }}">
  145.                             <div class="label centered-flex">
  146.                                 <span class="uppercase font-bold">{{ text_homes }}</span>
  147.                                 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 300" width="50" height="300"
  148.                                      preserveAspectRatio="xMaxYMax meet">
  149.                                     <text class="tab-text"
  150.                                           transform="matrix(6.123234e-17 -1 1 6.123234e-17 42.7734 300)">{{ text_homes }}</text>
  151.                                 </svg>
  152.                             </div>
  153.                         </a>
  154.                     </li>
  155.                 </ul>
  156.                 <header class="header constrainer-maxsize edgepadding {{ document.getProperty('page_startseite') ? 'header-front-page' : '' }}">
  157.                     {#  <?php echo $this->render('AppBundle:Includes:menue.html.php', ['contacts' => $contacts]); ?>
  158.                     #}
  159.                     {{ include('includes/side-navigation/menue.html.twig') }}
  160.                 </header>
  161.                 {{ include('includes/side-navigation/navigation.html.twig') }}
  162.             </nav>
  163.             <script type="text/javascript">
  164.                 var _skd = window._skd || {};
  165.                 _skd.callbacks = _skd.callbacks || {};
  166.                 _skd.callbacks.dsr = _skd.callbacks.dsr || {};
  167.                 _skd.callbacks.dsr.viewConfirmation = function(data){
  168.                     window.location.href = window.location.href.split("#")[0]+'/booking-success?total='+data.total;
  169.                 }
  170.             </script>
  171.             <script>
  172.                 (function () {        
  173.                 
  174.                     if (typeof window.selt === 'undefined') {
  175.                         window.selt = {
  176.                             modules: {}
  177.                         };
  178.                     } else if (!window.selt.modules) {
  179.                         window.selt.modules = {};
  180.                     }
  181.                     var moduleName = 'sidebar_module'; // naming convention XXX_module
  182.                     selt.modules[moduleName] = {
  183.                         name: moduleName,
  184.                         init: function () {
  185.                             if (selt.debug) console.log('initialize', this.name);
  186.                             var navigation = document.querySelectorAll('[data-menu="sidebar"] li'),
  187.                                 navigationLinks = document.querySelectorAll('[data-menu="sidebar"] li a'),
  188.                                 hoverClass = 'peek',
  189.                                 timeOutID;
  190.                             // uses touchend event to add special class for touch devices
  191.                             function setHoverState(e) {
  192.                                 if (Modernizr.mq('(min-width: 480px)')) {
  193.                                     var hasHoverState = this.classList.contains(hoverClass),
  194.                                         me = this;
  195.                                     [].forEach.call(navigation, function (el) {
  196.                                         el.classList.remove(hoverClass);
  197.                                     });
  198.                                     switch (e.type) {
  199.                                         case 'touchend':
  200.                                             if (!hasHoverState) {
  201.                                                 clearTimeout(timeOutID);
  202.                                                 setTimeout(function () {
  203.                                                     me.classList.remove(hoverClass);
  204.                                                 }, 2000)
  205.                                                 // e.preventDefault();
  206.                                             }
  207.                                             break;
  208.                                         case 'mouseleave':
  209.                                             return false;
  210.                                             break;
  211.                                     }
  212.                                     me.classList.add(hoverClass);
  213.                                 }
  214.                             }
  215.                             [].forEach.call(navigation, function (el) {
  216.                                 // touch device handling to open dropdown
  217.                                 el.addEventListener('touchend', function (e) {
  218.                                     setHoverState.call(this, e);
  219.                                 }, false);
  220.                                 // mouse handling of off canvas menu items to mimic touch handling
  221.                                 el.addEventListener('mouseenter', function (e) {
  222.                                     setHoverState.call(this, e);
  223.                                 }, false);
  224.                                 el.addEventListener('mouseleave', function (e) {
  225.                                     setHoverState.call(this, e);
  226.                                 }, false);
  227.                             });
  228.                         }
  229.                     }
  230.                 }());
  231.             </script>
  232.         </aside>
  233.         <main class="sidebar-offset gradient-page {{ document.getProperty('home') ? 'home' : '' }}">
  234.             {{ include('includes/side-navigation/menue.html.twig') }}
  235.             {{ include('includes/side-navigation/navigation.html.twig') }}
  236.             <div class="main-wrapper-js">
  237.                 {% if not editmode %}
  238.                     {{ block('content') }}
  239.                 {% endif %}
  240.             </div>
  241.             <div class="footer-wrapper-js">
  242.                 {# <?php
  243.                 /* Footer-Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
  244.                 echo $this->action("footer""Footer""AppBundle", []);
  245.                 echo PHP_EOL;
  246.                 ?> #}
  247.                 {#{ include('footer/footer.html.twig') } #}
  248.                 {{ render(controller(
  249.                     'App\\Controller\\FooterController::footerAction', {max: 3}
  250.                 )) }}
  251.             </div>
  252.         </main>
  253.     </div>
  254.     <!-- Page Tab element  -->
  255.     {% if pimcore_checkbox('buttonSeitenrandRechts').isChecked() and pimcore_link('buttonSeitenrandRechts_link').isEmpty() == false %}
  256.         {% set button_target = pimcore_link('buttonSeitenrandRechts_link').getTarget() %}
  257.         {%  set target = (button_target != '') ? button_target : '_self' %}
  258.         {%  set buttonclass = (pimcore_device("phone") == 'phone') ? 'onlinebuchen-p' : 'onlinebuchen-d' %}
  259.         <div class="sidetab centered-flex font-light theme-color-bg {{ buttonclass }}">
  260.             <a class="no-underline" href="{{pimcore_link('buttonSeitenrandRechts_link').getHref() }}" target="{{ target }}">
  261.                 {{ pimcore_textarea("buttonSeitenrandRechts_text",{"nl2br": true,}) }}
  262.             </a>
  263.         </div>
  264.         {% if document.getProperty('sidetab_shop') %}
  265.             <div class="sidetab shops centered-flex font-light {{ buttonclass }}" data-theme="shops">
  266.                 <a class="no-underline" href="{{ pimcore_input("href_shop") }}" target="_blank" >
  267.                     {{ 'label_shop'|trans }}
  268.                 </a>
  269.             </div>
  270.         {% endif %}
  271.     {% endif %}
  272. </div> <!-- ende data-theme -->
  273. {{ include('includes/frontend-fuss.html.twig') }}
  274. {% set incTemplates = show_includes() %}
  275. {% endif %}
  276. </body>
  277. </html>