templates/Mobile/Shop/layout.html.twig line 26

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 %} Roviniete.ro {% endblock %}</title>
  13.         <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=yes" name="viewport">
  14.         {% block metatags %}
  15.             <meta name="description" content="Cumpara roviniete online! Aici gasesti toate informaţiile legate de taxa de drum din Romania: legislaţie, calculator rovinieta si verificare valabilitate.">
  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.             {{ encore_entry_link_tags('bootstrap-fix', null, 'bootstrapTheme') }}
  21.             {{ sonata_block_render_event('sylius.shop.layout.stylesheets') }}
  22.             <link rel="stylesheet" href="/assets/shop/css/bs-stepper.css">
  23.         {% endblock %}
  24.         {{ sonata_block_render_event('sylius.shop.layout.head') }}
  25.         {% block javascripts %}
  26.             {% block javascripts_app %}
  27.                 <script src="{{ asset('assets/shop/js/app.js') }}"></script>
  28.             {% endblock javascripts_app %}
  29.             <script src="{{ asset('assets/shop/js/jquery-ui.min.js') }}"></script>
  30.             <script src="{{ asset('assets/shop/js/popper.min.js') }}"></script>
  31.             <script src="{{ asset('assets/shop/js/bootstrap.min.js') }}"></script>
  32.             <script src="{{ asset('assets/shop/js/leftmenu.js') }}"></script>
  33.             <script src="{{ asset('/bundles/fosjsrouting/js/router.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/jquery.validate.min.js') }}"></script>
  37.             <script src="{{ asset('assets/shop/js/sentry-bundle.min.js') }}"></script>
  38.             <script>
  39.                  if (typeof Sentry !== 'undefined') {
  40.                     Sentry.init({
  41.                         dsn: "{{ sentry_dsn }}",
  42.                         integrations: [new Sentry.Integrations.TryCatch({
  43.                             eventTarget: false,
  44.                         })]
  45.                     });
  46.                 }
  47.             </script>
  48.             <script src="{{ asset('/assets/shop/js/bs-stepper.js') }}"></script>
  49.             <script>
  50.                 dataLayer = [];
  51.             </script>
  52.             <!-- Google Tag Manager -->
  53.             <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  54.                         new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  55.                     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  56.                     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  57.                 })(window,document,'script','dataLayer','{{ gtm_code }}');</script>
  58.             <!-- End Google Tag Manager -->
  59.             {% block webpack_app %}
  60.                 {{ encore_entry_script_tags('app', null, 'bootstrapTheme') }}
  61.             {% endblock webpack_app %}
  62.             {% if app.request.attributes.get('_route') == 'sylius_shop_homepage' %}
  63.                 {% include '@templates/ShopCustom/one_signal.html.twig' %}
  64.             {% endif %}
  65.             {{ sonata_block_render_event('sylius.shop.layout.javascripts') }}
  66.         {% endblock %}
  67.     </head>
  68. {% endblock %}
  69. <body class="{{ app.request.attributes.get('_route') }}" style="background-color: #F2F2F2">
  70. <!-- Google Tag Manager (noscript) -->
  71. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ gtm_code }}"
  72.                   height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  73. <!-- End Google Tag Manager (noscript) -->
  74. {% block mobile_header %}
  75.     {% include '@templates/Front/Shop/v2/_header.html.twig' %}
  76. {% endblock %}
  77. {% block content %}
  78. {% endblock %}
  79. {% block footer %}
  80.     {% include '@templates/Front/Shop/v2/_footer.html.twig' %}
  81. {% endblock %}
  82. {% block loaderContainer %}
  83.     <div class="loading-overlay" data-js-loading-overlay>
  84.         <img src="{{ asset('assets/shop/images/spinner.gif') }}" style="width: 50px; pointer-events: none"/>
  85.     </div>
  86. {% endblock %}
  87. <script>
  88.     $(document).ready(function () {
  89.         let hostname = '{{ app.request.host }}';
  90.         let l = document.links;
  91.         let taxaDePodUrl = 'taxadepod.ro';
  92.         let blogUrl = 'asigur.blogspot.com';
  93.         let telUrl = 'tel:';
  94.         let mailUrl = 'mailto:';
  95.         for (let i = 0; i < l.length; i++) {
  96.             let urlPath = l[i].href;
  97.             if (typeof urlPath === 'string' && !urlPath.includes(hostname) && !urlPath.includes(taxaDePodUrl) && !urlPath.includes(blogUrl)
  98.                 && !urlPath.includes(telUrl) && !urlPath.includes(mailUrl)) {
  99.                 l[i].setAttribute('rel','nofollow');
  100.                 l[i].setAttribute('target', '_blank');
  101.                // UrlExists(urlPath, l[i]);
  102.             }
  103.         }
  104.         function UrlExists(url, element) {
  105.             $.ajax({
  106.                 url: url,
  107.                 dataType: 'jsonp',
  108.                 statusCode: {
  109.                     200: function() {
  110.                     },
  111.                     404: function() {
  112.                         element.removeAttribute('href');
  113.                     }
  114.                 },
  115.                 error:function(){
  116.                 }
  117.             });
  118.         }
  119.     });
  120. </script>
  121. </body>
  122. </html>
  123. <style>
  124. </style>