var/cache/dev/twig/da/dae33bada1190ed31e04a213aeea8ed25cb6b119933be43c06e2167dff0b88a0.php line 78

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @templates/Front/Shop/layout.html.twig */
  14. class __TwigTemplate_6ec0a8a455b2949479b82c4f703c68f7cb0a9cf835b8878102bcad30d3399680 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'head' => [$this'block_head'],
  25.             'title' => [$this'block_title'],
  26.             'metatags' => [$this'block_metatags'],
  27.             'stylesheets' => [$this'block_stylesheets'],
  28.             'javascripts' => [$this'block_javascripts'],
  29.             'javascripts_app' => [$this'block_javascripts_app'],
  30.             'webpack_app' => [$this'block_webpack_app'],
  31.             'header' => [$this'block_header'],
  32.             'content' => [$this'block_content'],
  33.             'footer' => [$this'block_footer'],
  34.             'loaderContainer' => [$this'block_loaderContainer'],
  35.         ];
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@templates/Front/Shop/layout.html.twig"));
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@templates/Front/Shop/layout.html.twig"));
  44.         // line 1
  45.         echo "<!DOCTYPE html>
  46. <html lang=\"";
  47.         // line 3
  48.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "locale", [], "any"falsefalsefalse3), 02), "html"nulltrue);
  49.         echo "\">
  50. ";
  51.         // line 4
  52.         $this->displayBlock('head'$context$blocks);
  53.         // line 74
  54.         echo "
  55. <body class=\"";
  56.         // line 75
  57.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'75$this->source); })()), "request", [], "any"falsefalsefalse75), "attributes", [], "any"falsefalsefalse75), "get", [=> "_route"], "method"falsefalsefalse75), "html"nulltrue);
  58.         echo "\" style=\"background-color: #F2F2F2\">
  59. <!-- Google Tag Manager (noscript) -->
  60. <noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=";
  61.         // line 77
  62.         echo twig_escape_filter($this->env, (isset($context["gtm_code"]) || array_key_exists("gtm_code"$context) ? $context["gtm_code"] : (function () { throw new RuntimeError('Variable "gtm_code" does not exist.'77$this->source); })()), "html"nulltrue);
  63.         echo "\"
  64.                   height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
  65. <!-- End Google Tag Manager (noscript) -->
  66. ";
  67.         // line 80
  68.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.before_body"]);
  69.         echo "
  70. ";
  71.         // line 82
  72.         $this->displayBlock('header'$context$blocks);
  73.         // line 101
  74.         echo "
  75. <div class=\"main-content custom-container\">
  76.     ";
  77.         // line 103
  78.         $this->loadTemplate("@templates/Front/Shop/_flashes.html.twig""@templates/Front/Shop/layout.html.twig"103)->display($context);
  79.         // line 104
  80.         echo "
  81.     ";
  82.         // line 105
  83.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.before_content"]);
  84.         echo "
  85.     ";
  86.         // line 107
  87.         $this->displayBlock('content'$context$blocks);
  88.         // line 109
  89.         echo "
  90.     ";
  91.         // line 110
  92.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.after_content"]);
  93.         echo "
  94. </div>
  95. ";
  96.         // line 113
  97.         $this->displayBlock('footer'$context$blocks);
  98.         // line 116
  99.         echo "
  100. ";
  101.         // line 117
  102.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.after_body"]);
  103.         echo "
  104. ";
  105.         // line 119
  106.         $this->displayBlock('loaderContainer'$context$blocks);
  107.         // line 124
  108.         echo "
  109. <script>
  110.     \$(document).ready(function () {
  111.         let hostname = '";
  112.         // line 127
  113.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'127$this->source); })()), "request", [], "any"falsefalsefalse127), "host", [], "any"falsefalsefalse127), "html"nulltrue);
  114.         echo "';
  115.         let l = document.links;
  116.         let taxaDePodUrl = 'taxadepod.ro';
  117.         let blogUrl = 'asigur.blogspot.com';
  118.         let telUrl = 'tel:';
  119.         let mailUrl = 'mailto:';
  120.         for (let i = 0; i < l.length; i++) {
  121.             let urlPath = l[i].href;
  122.             if (typeof urlPath === 'string' && !urlPath.includes(hostname) && !urlPath.includes(taxaDePodUrl) && !urlPath.includes(blogUrl)
  123.                 && !urlPath.includes(telUrl) && !urlPath.includes(mailUrl)) {
  124.                 l[i].setAttribute('rel','nofollow');
  125.                 l[i].setAttribute('target', '_blank');
  126.                 //UrlExists(urlPath, l[i]);
  127.             }
  128.         }
  129.         function UrlExists(url, element) {
  130.             \$.ajax({
  131.                 url: url,
  132.                 dataType: 'jsonp',
  133.                 statusCode: {
  134.                     200: function() {
  135.                     },
  136.                     404: function() {
  137.                         element.removeAttribute('href');
  138.                     }
  139.                 },
  140.                 error:function(){
  141.                 }
  142.             });
  143.         }
  144.     });
  145. </script>
  146. </body>
  147. <style>
  148.     .custom-container {
  149.         max-width: 1400px;
  150.         width: 100%;
  151.         margin: auto;
  152.     }
  153. </style>
  154. </html>
  155. ";
  156.         
  157.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  158.         
  159.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  160.     }
  161.     // line 4
  162.     public function block_head($context, array $blocks = [])
  163.     {
  164.         $macros $this->macros;
  165.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  166.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  167.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  168.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  169.         // line 5
  170.         echo "    <head>
  171.         ";
  172.         // line 6
  173.         if ((( !twig_get_attribute($this->env$this->source, ($context["app"] ?? null), "environment", [], "any"truetruefalse6) &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "environment", [], "any"falsefalsefalse6))) && (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "environment", [], "any"falsefalsefalse6) == "dev"))) {
  174.             // line 7
  175.             echo "            <meta name=\"robots\" content=\"noindex,nofollow\">
  176.         ";
  177.         }
  178.         // line 9
  179.         echo "        <meta charset=\"utf-8\">
  180.         <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  181.         <meta http-equiv=\"Content-Language\" content=\"ro\">
  182.         <meta name=\"google-site-verification\" content=\"BEtIqk-choaMawpOxG98NtbWKAZK5MuTxV_2-pSHGFQ\">
  183.         <title>";
  184.         // line 14
  185.         $this->displayBlock('title'$context$blocks);
  186.         echo "</title>
  187.         <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=yes, shrink-to-fit=no\" name=\"viewport\">
  188.         ";
  189.         // line 18
  190.         $this->displayBlock('metatags'$context$blocks);
  191.         // line 22
  192.         echo "
  193.         ";
  194.         // line 23
  195.         $this->displayBlock('stylesheets'$context$blocks);
  196.         // line 28
  197.         echo "
  198.         ";
  199.         // line 29
  200.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.head"]);
  201.         echo "
  202.         ";
  203.         // line 31
  204.         $this->displayBlock('javascripts'$context$blocks);
  205.         // line 72
  206.         echo "    </head>
  207. ";
  208.         
  209.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  210.         
  211.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  212.     }
  213.     // line 14
  214.     public function block_title($context, array $blocks = [])
  215.     {
  216.         $macros $this->macros;
  217.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  218.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  219.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  220.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  221.         echo " ";
  222.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.homepage_meta_title"), "html"nulltrue);
  223.         echo " ";
  224.         
  225.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  226.         
  227.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  228.     }
  229.     // line 18
  230.     public function block_metatags($context, array $blocks = [])
  231.     {
  232.         $macros $this->macros;
  233.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  234.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  235.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  236.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  237.         // line 19
  238.         echo "            <meta name=\"description\" content=\"";
  239.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.homepage_meta_description"), "html"nulltrue);
  240.         echo "\">
  241.             <meta name=\"keywords\" content=\"rovinieta online, roviniete online, rovinieta preţ, verificare valabilitate rovinieta, plata rovinieta online, calculator rovinieta\">
  242.         ";
  243.         
  244.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  245.         
  246.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  247.     }
  248.     // line 23
  249.     public function block_stylesheets($context, array $blocks = [])
  250.     {
  251.         $macros $this->macros;
  252.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  253.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  254.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  255.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  256.         // line 24
  257.         echo "            ";
  258.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app"null"bootstrapTheme");
  259.         echo "
  260.             ";
  261.         // line 25
  262.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.stylesheets"]);
  263.         echo "
  264.             <link rel=\"stylesheet\" href=\"";
  265.         // line 26
  266.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/bs-stepper.css"), "html"nulltrue);
  267.         echo "\">
  268.         ";
  269.         
  270.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  271.         
  272.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  273.     }
  274.     // line 31
  275.     public function block_javascripts($context, array $blocks = [])
  276.     {
  277.         $macros $this->macros;
  278.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  279.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  280.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  281.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  282.         // line 32
  283.         echo "            ";
  284.         $this->displayBlock('javascripts_app'$context$blocks);
  285.         // line 35
  286.         echo "            <script src=\"";
  287.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/jquery-ui.min.js"), "html"nulltrue);
  288.         echo "\"></script>
  289.             <script src=\"";
  290.         // line 36
  291.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/popper.min.js"), "html"nulltrue);
  292.         echo "\"></script>
  293.             <script src=\"";
  294.         // line 37
  295.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/bootstrap.min.js"), "html"nulltrue);
  296.         echo "\"></script>
  297.             <script src=\"";
  298.         // line 38
  299.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/leftmenu.js"), "html"nulltrue);
  300.         echo "\"></script>
  301.             <script src=\"";
  302.         // line 39
  303.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/fosjsrouting/js/router.js"), "html"nulltrue);
  304.         echo "\"></script>
  305.             <script src=\"";
  306.         // line 40
  307.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/js/bs-stepper.js"), "html"nulltrue);
  308.         echo "\"></script>
  309.             <script src=\"";
  310.         // line 41
  311.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/js/_bootstrap_select.min.js"), "html"nulltrue);
  312.         echo "\"></script>
  313.             <script src=\"";
  314.         // line 42
  315.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
  316.         echo "\"></script>
  317.             <script src=\"";
  318.         // line 43
  319.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/sentry-bundle.min.js"), "html"nulltrue);
  320.         echo "\"></script>
  321.             <script>
  322.                  if (typeof Sentry !== 'undefined') {
  323.                     Sentry.init({
  324.                         dsn: \"";
  325.         // line 47
  326.         echo twig_escape_filter($this->env, (isset($context["sentry_dsn"]) || array_key_exists("sentry_dsn"$context) ? $context["sentry_dsn"] : (function () { throw new RuntimeError('Variable "sentry_dsn" does not exist.'47$this->source); })()), "html"nulltrue);
  327.         echo "\",
  328.                         integrations: [new Sentry.Integrations.TryCatch({
  329.                             eventTarget: false,
  330.                         })]
  331.                     });
  332.                 }
  333.             </script>
  334.             <script>
  335.                 dataLayer = [];
  336.             </script>
  337.             <!-- Google Tag Manager -->
  338.             <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  339.                         new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  340.                     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  341.                     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  342.                 })(window,document,'script','dataLayer','";
  343.         // line 62
  344.         echo twig_escape_filter($this->env, (isset($context["gtm_code"]) || array_key_exists("gtm_code"$context) ? $context["gtm_code"] : (function () { throw new RuntimeError('Variable "gtm_code" does not exist.'62$this->source); })()), "html"nulltrue);
  345.         echo "');</script>
  346.             <!-- End Google Tag Manager -->
  347.             ";
  348.         // line 64
  349.         $this->displayBlock('webpack_app'$context$blocks);
  350.         // line 67
  351.         echo "            ";
  352.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'67$this->source); })()), "request", [], "any"falsefalsefalse67), "attributes", [], "any"falsefalsefalse67), "get", [=> "_route"], "method"falsefalsefalse67) == "sylius_shop_homepage")) {
  353.             // line 68
  354.             echo "                ";
  355.             $this->loadTemplate("@templates/ShopCustom/one_signal.html.twig""@templates/Front/Shop/layout.html.twig"68)->display($context);
  356.             // line 69
  357.             echo "            ";
  358.         }
  359.         // line 70
  360.         echo "            ";
  361.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.javascripts"]);
  362.         echo "
  363.         ";
  364.         
  365.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  366.         
  367.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  368.     }
  369.     // line 32
  370.     public function block_javascripts_app($context, array $blocks = [])
  371.     {
  372.         $macros $this->macros;
  373.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  374.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts_app"));
  375.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  376.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts_app"));
  377.         // line 33
  378.         echo "                <script src=\"";
  379.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/app.js"), "html"nulltrue);
  380.         echo "\"></script>
  381.             ";
  382.         
  383.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  384.         
  385.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  386.     }
  387.     // line 64
  388.     public function block_webpack_app($context, array $blocks = [])
  389.     {
  390.         $macros $this->macros;
  391.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  392.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""webpack_app"));
  393.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  394.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""webpack_app"));
  395.         // line 65
  396.         echo "                ";
  397.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app"null"bootstrapTheme");
  398.         echo "
  399.             ";
  400.         
  401.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  402.         
  403.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  404.     }
  405.     // line 82
  406.     public function block_header($context, array $blocks = [])
  407.     {
  408.         $macros $this->macros;
  409.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  410.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  411.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  412.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  413.         // line 83
  414.         echo "    <div class=\"custom-container\">
  415.         <div style=\"max-width: 100%\">
  416.             <div class=\"bg-white\">
  417.                 <header>
  418.                     ";
  419.         // line 87
  420.         $this->loadTemplate("@templates/Front/Shop/v2/_header.html.twig""@templates/Front/Shop/layout.html.twig"87)->display($context);
  421.         // line 88
  422.         echo "
  423.                     ";
  424.         // line 89
  425.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.after_header"]);
  426.         echo "
  427.                 </header>
  428.             </div>
  429.         </div>
  430.         <div class=\"custom-container shop-navbar-container\">
  431.             <div class=\"container-rounded\">
  432.                 ";
  433.         // line 96
  434.         $this->loadTemplate("@templates/Front/Shop/_shop_navbar.html.twig""@templates/Front/Shop/layout.html.twig"96)->display($context);
  435.         // line 97
  436.         echo "            </div>
  437.         </div>
  438.     </div>
  439. ";
  440.         
  441.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  442.         
  443.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  444.     }
  445.     // line 107
  446.     public function block_content($context, array $blocks = [])
  447.     {
  448.         $macros $this->macros;
  449.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  450.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  451.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  452.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  453.         // line 108
  454.         echo "    ";
  455.         
  456.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  457.         
  458.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  459.     }
  460.     // line 113
  461.     public function block_footer($context, array $blocks = [])
  462.     {
  463.         $macros $this->macros;
  464.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  465.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  466.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  467.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  468.         // line 114
  469.         echo "    ";
  470.         $this->loadTemplate("@templates/Front/Shop/v2/_footer.html.twig""@templates/Front/Shop/layout.html.twig"114)->display($context);
  471.         
  472.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  473.         
  474.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  475.     }
  476.     // line 119
  477.     public function block_loaderContainer($context, array $blocks = [])
  478.     {
  479.         $macros $this->macros;
  480.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  481.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""loaderContainer"));
  482.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  483.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""loaderContainer"));
  484.         // line 120
  485.         echo "    <div class=\"loading-overlay loaderContainer\" data-js-loading-overlay>
  486.         <img src=\"";
  487.         // line 121
  488.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/spinner.gif"), "html"nulltrue);
  489.         echo "\" style=\"width: 50px; pointer-events: none\"/>
  490.     </div>
  491. ";
  492.         
  493.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  494.         
  495.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  496.     }
  497.     public function getTemplateName()
  498.     {
  499.         return "@templates/Front/Shop/layout.html.twig";
  500.     }
  501.     public function isTraitable()
  502.     {
  503.         return false;
  504.     }
  505.     public function getDebugInfo()
  506.     {
  507.         return array (  566 => 121,  563 => 120,  553 => 119,  542 => 114,  532 => 113,  522 => 108,  512 => 107,  499 => 97,  497 => 96,  487 => 89,  484 => 88,  482 => 87,  476 => 83,  466 => 82,  453 => 65,  443 => 64,  430 => 33,  420 => 32,  407 => 70,  404 => 69,  401 => 68,  398 => 67,  396 => 64,  391 => 62,  373 => 47,  366 => 43,  362 => 42,  358 => 41,  354 => 40,  350 => 39,  346 => 38,  342 => 37,  338 => 36,  333 => 35,  330 => 32,  320 => 31,  308 => 26,  304 => 25,  299 => 24,  289 => 23,  275 => 19,  265 => 18,  244 => 14,  233 => 72,  231 => 31,  226 => 29,  223 => 28,  221 => 23,  218 => 22,  216 => 18,  209 => 14,  202 => 9,  198 => 7,  196 => 6,  193 => 5,  183 => 4,  127 => 127,  122 => 124,  120 => 119,  115 => 117,  112 => 116,  110 => 113,  104 => 110,  101 => 109,  99 => 107,  94 => 105,  91 => 104,  89 => 103,  85 => 101,  83 => 82,  78 => 80,  72 => 77,  67 => 75,  64 => 74,  62 => 4,  58 => 3,  54 => 1,);
  508.     }
  509.     public function getSourceContext()
  510.     {
  511.         return new Source("<!DOCTYPE html>
  512. <html lang=\"{{ app.request.locale|slice(0, 2) }}\">
  513. {% block head %}
  514.     <head>
  515.         {% if app.environment is not defined and app.environment is not null and app.environment == 'dev' %}
  516.             <meta name=\"robots\" content=\"noindex,nofollow\">
  517.         {% endif %}
  518.         <meta charset=\"utf-8\">
  519.         <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  520.         <meta http-equiv=\"Content-Language\" content=\"ro\">
  521.         <meta name=\"google-site-verification\" content=\"BEtIqk-choaMawpOxG98NtbWKAZK5MuTxV_2-pSHGFQ\">
  522.         <title>{% block title %} {{'app.ui.homepage_meta_title'|trans}} {% endblock %}</title>
  523.         <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=yes, shrink-to-fit=no\" name=\"viewport\">
  524.         {% block metatags %}
  525.             <meta name=\"description\" content=\"{{'app.ui.homepage_meta_description'|trans}}\">
  526.             <meta name=\"keywords\" content=\"rovinieta online, roviniete online, rovinieta preţ, verificare valabilitate rovinieta, plata rovinieta online, calculator rovinieta\">
  527.         {% endblock %}
  528.         {% block stylesheets %}
  529.             {{ encore_entry_link_tags('app', null, 'bootstrapTheme') }}
  530.             {{ sonata_block_render_event('sylius.shop.layout.stylesheets') }}
  531.             <link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/bs-stepper.css') }}\">
  532.         {% endblock %}
  533.         {{ sonata_block_render_event('sylius.shop.layout.head') }}
  534.         {% block javascripts %}
  535.             {% block javascripts_app %}
  536.                 <script src=\"{{ asset('assets/shop/js/app.js') }}\"></script>
  537.             {% endblock javascripts_app %}
  538.             <script src=\"{{ asset('assets/shop/js/jquery-ui.min.js') }}\"></script>
  539.             <script src=\"{{ asset('assets/shop/js/popper.min.js') }}\"></script>
  540.             <script src=\"{{ asset('assets/shop/js/bootstrap.min.js') }}\"></script>
  541.             <script src=\"{{ asset('assets/shop/js/leftmenu.js') }}\"></script>
  542.             <script src=\"{{ asset('/bundles/fosjsrouting/js/router.js') }}\"></script>
  543.             <script src=\"{{ asset('/assets/shop/js/bs-stepper.js') }}\"></script>
  544.             <script src=\"{{ asset('/assets/shop/js/_bootstrap_select.min.js') }}\"></script>
  545.             <script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\"></script>
  546.             <script src=\"{{ asset('assets/shop/js/sentry-bundle.min.js') }}\"></script>
  547.             <script>
  548.                  if (typeof Sentry !== 'undefined') {
  549.                     Sentry.init({
  550.                         dsn: \"{{ sentry_dsn }}\",
  551.                         integrations: [new Sentry.Integrations.TryCatch({
  552.                             eventTarget: false,
  553.                         })]
  554.                     });
  555.                 }
  556.             </script>
  557.             <script>
  558.                 dataLayer = [];
  559.             </script>
  560.             <!-- Google Tag Manager -->
  561.             <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  562.                         new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  563.                     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  564.                     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  565.                 })(window,document,'script','dataLayer','{{ gtm_code }}');</script>
  566.             <!-- End Google Tag Manager -->
  567.             {% block webpack_app %}
  568.                 {{ encore_entry_script_tags('app', null, 'bootstrapTheme') }}
  569.             {% endblock webpack_app %}
  570.             {% if app.request.attributes.get('_route') == 'sylius_shop_homepage' %}
  571.                 {% include '@templates/ShopCustom/one_signal.html.twig' %}
  572.             {% endif %}
  573.             {{ sonata_block_render_event('sylius.shop.layout.javascripts') }}
  574.         {% endblock %}
  575.     </head>
  576. {% endblock %}
  577. <body class=\"{{ app.request.attributes.get('_route') }}\" style=\"background-color: #F2F2F2\">
  578. <!-- Google Tag Manager (noscript) -->
  579. <noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id={{ gtm_code }}\"
  580.                   height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
  581. <!-- End Google Tag Manager (noscript) -->
  582. {{ sonata_block_render_event('sylius.shop.layout.before_body') }}
  583. {% block header %}
  584.     <div class=\"custom-container\">
  585.         <div style=\"max-width: 100%\">
  586.             <div class=\"bg-white\">
  587.                 <header>
  588.                     {% include '@templates/Front/Shop/v2/_header.html.twig' %}
  589.                     {{ sonata_block_render_event('sylius.shop.layout.after_header') }}
  590.                 </header>
  591.             </div>
  592.         </div>
  593.         <div class=\"custom-container shop-navbar-container\">
  594.             <div class=\"container-rounded\">
  595.                 {% include '@templates/Front/Shop/_shop_navbar.html.twig' %}
  596.             </div>
  597.         </div>
  598.     </div>
  599. {% endblock %}
  600. <div class=\"main-content custom-container\">
  601.     {% include '@templates/Front/Shop/_flashes.html.twig' %}
  602.     {{ sonata_block_render_event('sylius.shop.layout.before_content') }}
  603.     {% block content %}
  604.     {% endblock %}
  605.     {{ sonata_block_render_event('sylius.shop.layout.after_content') }}
  606. </div>
  607. {% block footer %}
  608.     {% include '@templates/Front/Shop/v2/_footer.html.twig' %}
  609. {% endblock %}
  610. {{ sonata_block_render_event('sylius.shop.layout.after_body') }}
  611. {% block loaderContainer %}
  612.     <div class=\"loading-overlay loaderContainer\" data-js-loading-overlay>
  613.         <img src=\"{{ asset('assets/shop/images/spinner.gif') }}\" style=\"width: 50px; pointer-events: none\"/>
  614.     </div>
  615. {% endblock %}
  616. <script>
  617.     \$(document).ready(function () {
  618.         let hostname = '{{ app.request.host }}';
  619.         let l = document.links;
  620.         let taxaDePodUrl = 'taxadepod.ro';
  621.         let blogUrl = 'asigur.blogspot.com';
  622.         let telUrl = 'tel:';
  623.         let mailUrl = 'mailto:';
  624.         for (let i = 0; i < l.length; i++) {
  625.             let urlPath = l[i].href;
  626.             if (typeof urlPath === 'string' && !urlPath.includes(hostname) && !urlPath.includes(taxaDePodUrl) && !urlPath.includes(blogUrl)
  627.                 && !urlPath.includes(telUrl) && !urlPath.includes(mailUrl)) {
  628.                 l[i].setAttribute('rel','nofollow');
  629.                 l[i].setAttribute('target', '_blank');
  630.                 //UrlExists(urlPath, l[i]);
  631.             }
  632.         }
  633.         function UrlExists(url, element) {
  634.             \$.ajax({
  635.                 url: url,
  636.                 dataType: 'jsonp',
  637.                 statusCode: {
  638.                     200: function() {
  639.                     },
  640.                     404: function() {
  641.                         element.removeAttribute('href');
  642.                     }
  643.                 },
  644.                 error:function(){
  645.                 }
  646.             });
  647.         }
  648.     });
  649. </script>
  650. </body>
  651. <style>
  652.     .custom-container {
  653.         max-width: 1400px;
  654.         width: 100%;
  655.         margin: auto;
  656.     }
  657. </style>
  658. </html>
  659. ""@templates/Front/Shop/layout.html.twig""/vhosts/newrca.roviniete.ro/templates/Front/Shop/layout.html.twig");
  660.     }
  661. }