templates/layouts/layout.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale }}">
  3. <head>
  4.     <meta name="google-site-verification" content="kGY5yRmESNV2q-G_dgN3iC98E6vRbJtj3vv0tS5pF_U" />
  5.     <meta charset="UTF-8">
  6.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  8.     {# we're using the deferred extension here to make sure this block is rendered after all helper calls #}
  9.     {% block layout_head_meta deferred %}
  10.         {{ pimcore_head_title() }}
  11.         {{ pimcore_head_meta() }}
  12.         {% if pimcore_placeholder('canonical').count() %}
  13.             <link rel="canonical" href="{{ pimcore_placeholder('canonical') }}"/>
  14.         {% endif %}
  15.     {% endblock %}
  16.     <!-- Favicon -->
  17.     <link rel="icon" type="image/x-icon" href="/mecstore/assets/images/icons/icon-mecstore.ico">
  18.     <!-- cookie banner -->
  19.     <script id="IusCookie" src=https://js.cookietagmanager.net/www_mecstore_it_1004310691/iuscookie.min.js type="text/javascript"></script>
  20.     <script>
  21.         WebFontConfig = {
  22.             google: { families: ['Open+Sans:300,400,600,700,800', 'Poppins:200,300,400,500,600,700,800', 'Oswald:300,400,500,600,700,800'] }
  23.         };
  24.         (function (d) {
  25.             var wf = d.createElement('script'), s = d.scripts[0];
  26.             wf.src = '/mecstore/assets/js/webfont.js';
  27.             wf.async = true;
  28.             s.parentNode.insertBefore(wf, s);
  29.         })(document);
  30.     </script>
  31.     <!-- Plugins CSS File -->
  32.     <link rel="stylesheet" href="/mecstore/assets/css/bootstrap.min.css">
  33.     <!-- Main CSS File -->
  34.     <link rel="stylesheet" href="/mecstore/assets/css/custom.css">
  35.     <link rel="stylesheet" href="/mecstore/assets/css/demo21.min.css">
  36.     <link rel="stylesheet" href="/mecstore/assets/css/select2.min.css">
  37.     <link rel="stylesheet" type="text/css" href="/mecstore/assets/vendor/fontawesome-free/css/all.min.css">
  38.     <style>
  39.         .wishlist-count{display:block !important;}
  40.         .c-cards .c-card .bordered-card .card-info {    
  41.             word-wrap: break-word;
  42.             max-width: 200px;
  43.         }
  44.         {% if app.user and app.user.partner.isMecstoreHQ == true %}
  45.             .product-single-qty{display:none;}
  46.         {% endif %}
  47.     </style>
  48.     {% if editmode %}
  49.         <link rel="stylesheet" href="/static/css/editmode.css">        
  50.     {% endif %}
  51.         {% apply spaceless %}
  52.             {% if not document is defined or not document %}
  53.                 {% set document = pimcore_document(1) %}
  54.             {% endif %}
  55.             {% if document is instanceof('\\Pimcore\\Model\\Document\\Link') %}
  56.                 {# @var document \Pimcore\Model\Document\Link #}
  57.                 {% set document = document.getObject() %}
  58.             {% endif %}
  59.             {% if document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  60.                 {% if document.getTitle() is not empty %}
  61.                     {% do pimcore_head_title().set(document.getTitle()) %}
  62.                 {% endif %}
  63.             {% endif %}
  64.             {% if document.getDescription() is not empty %}
  65.                 {% do pimcore_head_meta().setDescription(document.getDescription()) %}
  66.             {% endif %}
  67.             {#{% do pimcore_head_title().append('ALEA - Ecommerce Solutions') %}
  68.             {% do pimcore_head_title().setSeparator(' : ') %}#}
  69.             {% set isPortal = ((isPortal is defined) and isPortal) %}  
  70.             {% set wesbiteName = document.getProperty('website_name') %}         
  71.         {% endapply %}
  72.         {% if wesbiteName == 'b2b' and app.user %}  
  73.             {% if app.user.usertype == 'customer' %}
  74.                 <script>window.location="/account/logout";</script>
  75.             {% endif %}
  76.         {% endif %}
  77.         
  78.         {% block head_stylesheets deferred %}
  79.             {{ pimcore_head_link() }}
  80.         {% endblock %}  
  81.         <script>
  82.             var HOST_URL = "http://fld19.aleaweb.com";
  83.         </script>    
  84.         {% set currentPath = path(app.request.attributes.get('_route'),
  85.                        app.request.attributes.get('_route_params')) %}
  86. </head>
  87. <body>
  88.     <script type="text/javascript">
  89.     (function(window, document, dataLayerName, id) {
  90.     window[dataLayerName]=window[dataLayerName]||[],window[dataLayerName].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName('script')[0],tags=document.createElement('script');
  91.     function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString()}document.cookie=a+"="+b+d+"; path=/"}
  92.     var isStgDebug=(window.location.href.match("stg_debug")||document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?14:-1);
  93.     var qP=[];dataLayerName!=="dataLayer"&&qP.push("data_layer_name="+dataLayerName),isStgDebug&&qP.push("stg_debug");var qPString=qP.length>0?("?"+qP.join("&")):"";
  94.     tags.async=!0,tags.src="https://mecstore.containers.piwik.pro/"+id+".js"+qPString,scripts.parentNode.insertBefore(tags,scripts);
  95.     !function(a,n,i){a[n]=a[n]||{};for(var c=0;c<i.length;c++)!function(i){a[n][i]=a[n][i]||{},a[n][i].api=a[n][i].api||function(){var a=[].slice.call(arguments,0);"string"==typeof a[0]&&window[dataLayerName].push({event:n+"."+i+":"+a[0],parameters:[].slice.call(arguments,1)})}}(i[c])}(window,"ppms",["tm","cm"]);
  96.     })(window, document, 'dataLayer', '4e702d43-d771-464f-90e7-572c5b7cd426');
  97.     </script>
  98.     <div class="page-wrapper">
  99.         {{ pimcore_inc(document.getProperty('header')) }}      
  100.         <main class="main">
  101.             {% for label, messages in app.flashes %}   
  102.                   
  103.                 {% for message in messages %}               
  104.                     <div class="alert alert-{{ label }} alert-dismissable">
  105.                         <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  106.                        {{message}}
  107.                     </div>
  108.                 {% endfor %}
  109.             {% endfor %}
  110.             {{ block('content') }}
  111.         </main>
  112.         <!-- End .main -->
  113.         {{ pimcore_inc(document.getProperty('footer')) }}
  114.     </div><!-- End .page-wrapper -->
  115.     {{ pimcore_inc(document.getProperty('overlay')) }}
  116.     {{ pimcore_inc(document.getProperty('mobile-menu')) }}  
  117.     {{ pimcore_inc(document.getProperty('scrolltop')) }}  
  118.     <div class="loading-overlay">
  119.         <div class="bounce-loader">
  120.             <div class="bounce1"></div>
  121.             <div class="bounce2"></div>
  122.             <div class="bounce3"></div>
  123.         </div>
  124.     </div>
  125.     {# <div class="chat-bot">
  126.         <i class="icon-chat"></i>
  127.     </div> #}
  128.     
  129.     {# output scripts added before #}
  130.     {% block headscripts deferred %}
  131.         {{ pimcore_head_script() }}
  132.     {% endblock %}
  133.     {% block inlinescripts deferred %}
  134.         {{ pimcore_inline_script() }}
  135.     {% endblock %}
  136.     <!-- Plugins JS File -->
  137.     <script src="/mecstore/assets/js/jquery.min.js"></script>
  138.     <script src="/mecstore/assets/js/bootstrap.bundle.min.js"></script>
  139.     <script src="/mecstore/assets/js/plugins.min.js"></script>
  140.     <script src="/mecstore/assets/js/optional/isotope.pkgd.min.js"></script>
  141.     <script src="/mecstore/assets/js/jquery.appear.min.js"></script>
  142.     <script src="/mecstore/assets/js/jquery.plugin.min.js"></script>
  143.     <script src="/mecstore/assets/js/jquery.countdown.min.js"></script>
  144.     <script src="/mecstore/assets/js/nouislider.min.js"></script>
  145.     <script src="/mecstore/assets/js/custom.js"></script>
  146.     <!-- Main JS File -->
  147.     <script src="/mecstore/assets/js/select2.min.js"></script>
  148.     <script src="/mecstore/assets/js/main.js"></script>   
  149.     <div class="modal fade availability-popup" id="emptyModal" tabindex="-1" role="dialog" aria-labelledby="emptyModalLabel" aria-hidden="true"></div> 
  150.     <!-- Begin of Chaport Live Chat code -->
  151.     <script type="text/javascript">
  152.     (function(w,d,v3){
  153.     w.chaportConfig = {
  154.     appId : '6423fbc53d8cf5e3c87353d7'
  155.     };
  156.     
  157.     if(w.chaport)return;v3=w.chaport={};v3._q=[];v3._l={};v3.q=function(){v3._q.push(arguments)};v3.on=function(e,fn){if(!v3._l[e])v3._l[e]=[];v3._l[e].push(fn)};var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://app.chaport.com/javascripts/insert.js';var ss=d.getElementsByTagName('script')[0];ss.parentNode.insertBefore(s,ss)})(window, document);
  158.     </script>
  159.     <!-- End of Chaport Live Chat code -->
  160. </body>
  161. </html>