templates/Front/Shop/layout.html.twig line 23

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale|slice(0, 2) }}">
  3. {% block head %}
  4.     <head>
  5.         {% if app.environment is not defined and app.environment is not null and app.environment == 'dev' %}
  6.             <meta name="robots" content="noindex,nofollow">
  7.         {% endif %}
  8.         <meta charset="utf-8">
  9.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10.         <meta http-equiv="Content-Language" content="ro">
  11.         <meta name="google-site-verification" content="BEtIqk-choaMawpOxG98NtbWKAZK5MuTxV_2-pSHGFQ">
  12.         <title>{% block title %} {{'app.ui.homepage_meta_title'|trans}} {% endblock %}</title>
  13.         <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=yes, shrink-to-fit=no" name="viewport">
  14.         {% block metatags %}
  15.             <meta name="description" content="{{'app.ui.homepage_meta_description'|trans}}">
  16.             <meta name="keywords" content="rovinieta online, roviniete online, rovinieta preţ, verificare valabilitate rovinieta, plata rovinieta online, calculator rovinieta">
  17.         {% endblock %}
  18.         {% block stylesheets %}
  19.             {{ encore_entry_link_tags('app', null, 'bootstrapTheme') }}
  20.             {{ sonata_block_render_event('sylius.shop.layout.stylesheets') }}
  21.             <link rel="stylesheet" href="{{ asset('/assets/shop/css/bs-stepper.css') }}">
  22.         {% endblock %}
  23.         {{ sonata_block_render_event('sylius.shop.layout.head') }}
  24.         {% block javascripts %}
  25.             {% block javascripts_app %}
  26.                 <script src="{{ asset('assets/shop/js/app.js') }}"></script>
  27.             {% endblock javascripts_app %}
  28.             <script src="{{ asset('assets/shop/js/jquery-ui.min.js') }}"></script>
  29.             <script src="{{ asset('assets/shop/js/popper.min.js') }}"></script>
  30.             <script src="{{ asset('assets/shop/js/bootstrap.min.js') }}"></script>
  31.             <script src="{{ asset('assets/shop/js/leftmenu.js') }}"></script>
  32.             <script src="{{ asset('/bundles/fosjsrouting/js/router.js') }}"></script>
  33.             <script src="{{ asset('/assets/shop/js/bs-stepper.js') }}"></script>
  34.             <script src="{{ asset('/assets/shop/js/_bootstrap_select.min.js') }}"></script>
  35.             <script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
  36.             <script src="{{ asset('assets/shop/js/sentry-bundle.min.js') }}"></script>
  37.             <script>
  38.                  if (typeof Sentry !== 'undefined') {
  39.                     Sentry.init({
  40.                         dsn: "{{ sentry_dsn }}",
  41.                         integrations: [new Sentry.Integrations.TryCatch({
  42.                             eventTarget: false,
  43.                         })]
  44.                     });
  45.                 }
  46.             </script>
  47.             <script>
  48.                 dataLayer = [];
  49.             </script>
  50.             <!-- Google Tag Manager -->
  51.             <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  52.                         new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  53.                     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  54.                     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  55.                 })(window,document,'script','dataLayer','{{ gtm_code }}');</script>
  56.             <!-- End Google Tag Manager -->
  57.             {% block webpack_app %}
  58.                 {{ encore_entry_script_tags('app', null, 'bootstrapTheme') }}
  59.             {% endblock webpack_app %}
  60.             {% if app.request.attributes.get('_route') == 'sylius_shop_homepage' %}
  61.                 {% include '@templates/ShopCustom/one_signal.html.twig' %}
  62.             {% endif %}
  63.             {{ sonata_block_render_event('sylius.shop.layout.javascripts') }}
  64.         {% endblock %}
  65.     </head>
  66. {% endblock %}
  67. <body class="{{ app.request.attributes.get('_route') }}" style="background-color: #F2F2F2">
  68. <!-- Google Tag Manager (noscript) -->
  69. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ gtm_code }}"
  70.                   height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  71. <!-- End Google Tag Manager (noscript) -->
  72. {{ sonata_block_render_event('sylius.shop.layout.before_body') }}
  73. {% block header %}
  74.     <div class="custom-container">
  75.         <div style="max-width: 100%">
  76.             <div class="bg-white">
  77.                 <header>
  78.                     {% include '@templates/Front/Shop/v2/_header.html.twig' %}
  79.                     {{ sonata_block_render_event('sylius.shop.layout.after_header') }}
  80.                 </header>
  81.             </div>
  82.         </div>
  83.         <div class="custom-container shop-navbar-container">
  84.             <div class="container-rounded">
  85.                 {% include '@templates/Front/Shop/_shop_navbar.html.twig' %}
  86.             </div>
  87.         </div>
  88.     </div>
  89. {% endblock %}
  90. <div class="main-content custom-container">
  91.     {% include '@templates/Front/Shop/_flashes.html.twig' %}
  92.     {{ sonata_block_render_event('sylius.shop.layout.before_content') }}
  93.     {% block content %}
  94.     {% endblock %}
  95.     {{ sonata_block_render_event('sylius.shop.layout.after_content') }}
  96. </div>
  97. {% block footer %}
  98.     {% include '@templates/Front/Shop/v2/_footer.html.twig' %}
  99. {% endblock %}
  100. {{ sonata_block_render_event('sylius.shop.layout.after_body') }}
  101. {% block loaderContainer %}
  102.     <div class="loading-overlay loaderContainer" data-js-loading-overlay>
  103.         <img src="{{ asset('assets/shop/images/spinner.gif') }}" style="width: 50px; pointer-events: none"/>
  104.     </div>
  105. {% endblock %}
  106. <script>
  107.     $(document).ready(function () {
  108.         let hostname = '{{ app.request.host }}';
  109.         let l = document.links;
  110.         let taxaDePodUrl = 'taxadepod.ro';
  111.         let blogUrl = 'asigur.blogspot.com';
  112.         let telUrl = 'tel:';
  113.         let mailUrl = 'mailto:';
  114.         for (let i = 0; i < l.length; i++) {
  115.             let urlPath = l[i].href;
  116.             if (typeof urlPath === 'string' && !urlPath.includes(hostname) && !urlPath.includes(taxaDePodUrl) && !urlPath.includes(blogUrl)
  117.                 && !urlPath.includes(telUrl) && !urlPath.includes(mailUrl)) {
  118.                 l[i].setAttribute('rel','nofollow');
  119.                 l[i].setAttribute('target', '_blank');
  120.                 //UrlExists(urlPath, l[i]);
  121.             }
  122.         }
  123.         function UrlExists(url, element) {
  124.             $.ajax({
  125.                 url: url,
  126.                 dataType: 'jsonp',
  127.                 statusCode: {
  128.                     200: function() {
  129.                     },
  130.                     404: function() {
  131.                         element.removeAttribute('href');
  132.                     }
  133.                 },
  134.                 error:function(){
  135.                 }
  136.             });
  137.         }
  138.     });
  139. </script>
  140. </body>
  141. <style>
  142.     .custom-container {
  143.         max-width: 1400px;
  144.         width: 100%;
  145.         margin: auto;
  146.     }
  147. </style>
  148. </html>