var/cache/dev/twig/f7/f71e7d6c15d29c5aaa9db6a21d846c4e4acb6deaf9caef7d3ccebac29911873d.php line 50

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. /* @lavidabreve/full/main.html.twig */
  14. class __TwigTemplate_213ee0dcc29a6f94e10c0dca28c7a353123a5c9f385478438d4e2219d2c7a8ae extends \eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate
  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->blocks = [
  23.             'metatags' => [$this'block_metatags'],
  24.             'content' => [$this'block_content'],
  25.             'modules' => [$this'block_modules'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@ezdesign/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@lavidabreve/full/main.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@lavidabreve/full/main.html.twig"));
  40.         $this->parent $this->loadTemplate("@ezdesign/layout.html.twig""@lavidabreve/full/main.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_metatags($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  55.         // line 4
  56.         echo "    ";
  57.         $this->displayParentBlock("metatags"$context$blocks);
  58.         echo "
  59.     ";
  60.         // line 5
  61.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("AppBundle:Block:paginationMeta", ["locationId" => twig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'5$this->source); })()), "id", [], "any"falsefalsefalse5)]));
  62.         echo "
  63.     <!--
  64.     Start of global snippet: Please do not remove
  65.     Place this snippet between the <head> and </head> tags on every page of your site.
  66.     -->
  67.     <!-- Google tag (gtag.js) -->
  68.     <script async src=\"https://www.googletagmanager.com/gtag/js?id=DC-4625548\"></script>
  69.     <script>
  70.         window.dataLayer = window.dataLayer || [];
  71.         function gtag(){dataLayer.push(arguments);}
  72.         gtag('js', new Date());
  73.         gtag('config', 'DC-4625548');
  74.     </script>
  75.     <script>
  76.         gtag('event', 'conversion', {
  77.             'allow_custom_scripts': true,
  78.             'u10': 'Landing RAPA',
  79.             'u24': 'https://rapa.movistarplus.es/',
  80.             'send_to': 'DC-4625548/movis00a/lpg_m0+standard'
  81.         });
  82.         window.addEventListener('load', function () {
  83.             let btnHire = document.getElementsByClassName(\"hire-now\")
  84.             for (var i = 0; i < btnHire.length; i++) {
  85.                 btnHire[i].addEventListener('mousedown', gtagBtn, false);
  86.             }
  87.             let btnWatch = document.getElementsByClassName(\"watch-now\")
  88.             for (var i = 0; i < btnHire.length; i++) {
  89.                 btnWatch[i].addEventListener('mousedown', gtagBtn2, false);
  90.             }
  91.         });
  92.         const gtagBtn = ()=> {
  93.             let noScript = document.createElement('div');
  94.             noScript.innerHTML ='<noscript> <img src=\"https://ad.doubleclick.net/ddm/activity/src=4625548;type=movis00a;cat=eng_b0;u10=[Landing RAPA];u24=[https://rapa.movistarplus.es/];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;npa=;gdpr=\${GDPR};gdpr_consent=\${GDPR_CONSENT_755};ord=1?\" width=\"1\" height=\"1\" alt=\"\"/></noscript>';
  95.             document.body.appendChild(noScript);
  96.                 gtag('event', 'conversion', {
  97.                     'allow_custom_scripts': true,
  98.                     'u10': 'Landing RAPA',
  99.                     'u24': 'https://rapa.movistarplus.es/',
  100.                     'send_to': 'DC-4625548/movis00a/eng_b0+standard'
  101.                 });
  102.             console.log('Click contratar');
  103.         };
  104.         const gtagBtn2 = ()=> {
  105.             let noScript = document.createElement('div');
  106.             noScript.innerHTML ='<noscript> <img src=\"https://ad.doubleclick.net/ddm/activity/src=4625548;type=movis00a;cat=eng_v0;u10=[Landing RAPA];u24=[https://rapa.movistarplus.es/];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;npa=;gdpr=\${GDPR};gdpr_consent=\${GDPR_CONSENT_755};ord=1?\" width=\"1\" height=\"1\" alt=\"\"/></noscript>';
  107.             document.body.appendChild(noScript);
  108.             gtag('event', 'conversion', {
  109.                 'allow_custom_scripts': true,
  110.                 'u10': 'Landing RAPA',
  111.                 'u24': 'https://rapa.movistarplus.es/',
  112.                 'send_to': 'DC-4625548/movis00a/eng_v0+standard'
  113.             });
  114.           //  document.write('<noscript> <img src=\"https://ad.doubleclick.net/ddm/activity/src=4625548;type=movis00a;cat=eng_v0;u10=[Landing RAPA];u24=[https://rapa.movistarplus.es/];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;npa=;gdpr=\${GDPR};gdpr_consent=\${GDPR_CONSENT_755};ord=1?\" width=\"1\" height=\"1\" alt=\"\"/></noscript>');
  115.             console.log('Click ver')
  116.         };
  117.     </script>
  118.     <noscript>
  119.         <img src=\"https://ad.doubleclick.net/ddm/activity/src=4625548;type=movis00a;cat=lpg_m0;u10=[Landing RAPA];u24=[https://rapa.movistarplus.es/];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;npa=;gdpr=\${GDPR};gdpr_consent=\${GDPR_CONSENT_755};ord=1?\" width=\"1\" height=\"1\" alt=\"\"/>
  120.     </noscript>
  121. ";
  122.         
  123.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  124.         
  125.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  126.     }
  127.     // line 72
  128.     public function block_content($context, array $blocks = [])
  129.     {
  130.         $macros $this->macros;
  131.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  132.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  133.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  134.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  135.         // line 73
  136.         echo "    <div class=\"m-shows-header h3\">
  137.         <div class=\"menu-header\">
  138.             ";
  139.         // line 75
  140.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("AppBundle:Menu:callToActionButtons", ["location" => twig_get_attribute($this->env$this->source, (isset($context["ezpublish"]) || array_key_exists("ezpublish"$context) ? $context["ezpublish"] : (function () { throw new RuntimeError('Variable "ezpublish" does not exist.'75$this->source); })()), "rootLocation", [], "any"falsefalsefalse75)]));
  141.         echo "
  142.             <div class=\"wrapper row\">
  143.                 ";
  144.         // line 77
  145.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("AppBundle:Block:renderIconBlock", ["contentId" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ezpublish"]) || array_key_exists("ezpublish"$context) ? $context["ezpublish"] : (function () { throw new RuntimeError('Variable "ezpublish" does not exist.'77$this->source); })()), "rootLocation", [], "any"falsefalsefalse77), "contentId", [], "any"falsefalsefalse77)]));
  146.         echo "
  147.                 ";
  148.         // line 79
  149.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("AppBundle:Menu:header", ["locationId" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ezpublish"]) || array_key_exists("ezpublish"$context) ? $context["ezpublish"] : (function () { throw new RuntimeError('Variable "ezpublish" does not exist.'79$this->source); })()), "rootLocation", [], "any"falsefalsefalse79), "id", [], "any"falsefalsefalse79)]));
  150.         echo "
  151.                 <a href=\"";
  152.         // line 82
  153.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("ez_urlalias", ["locationId" => (isset($context["base_locationId"]) || array_key_exists("base_locationId"$context) ? $context["base_locationId"] : (function () { throw new RuntimeError('Variable "base_locationId" does not exist.'82$this->source); })()), "siteaccess" => "originales"]), "html"nulltrue);
  154.         echo "\" class=\"e-arrow-link\" rel=\"follow\">
  155.                     ";
  156.         // line 83
  157.         echo twig_include($this->env$context"icons/link-arrow.svg.twig");
  158.         echo "
  159.                     <img src=\"/assets/images/logo-originales.svg\"/>
  160.                 </a>
  161.                 <a href=\"#\" class=\"menu-toggle\" rel=\"follow\">
  162.                     ";
  163.         // line 87
  164.         echo twig_include($this->env$context"icons/menu.svg.twig");
  165.         echo "
  166.                 </a>
  167.             </div>
  168.         </div>
  169.     </div>
  170.     ";
  171.         // line 93
  172.         $this->displayBlock('modules'$context$blocks);
  173.         
  174.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  175.         
  176.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  177.     }
  178.     public function block_modules($context, array $blocks = [])
  179.     {
  180.         $macros $this->macros;
  181.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  182.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""modules"));
  183.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  184.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""modules"));
  185.         // line 94
  186.         echo "        ";
  187.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("AppBundle:Block:renderBlocks", ["locationId" => twig_get_attribute($this->env$this->source, (isset($context["location"]) || array_key_exists("location"$context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.'94$this->source); })()), "id", [], "any"falsefalsefalse94)]));
  188.         echo "
  189.     ";
  190.         
  191.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  192.         
  193.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  194.     }
  195.     public function getTemplateName()
  196.     {
  197.         return "@lavidabreve/full/main.html.twig";
  198.     }
  199.     public function isTraitable()
  200.     {
  201.         return false;
  202.     }
  203.     public function getDebugInfo()
  204.     {
  205.         return array (  221 => 94,  202 => 93,  193 => 87,  186 => 83,  182 => 82,  176 => 79,  171 => 77,  166 => 75,  162 => 73,  152 => 72,  75 => 5,  70 => 4,  60 => 3,  37 => 1,);
  206.     }
  207.     public function getSourceContext()
  208.     {
  209.         return new Source("{% extends '@ezdesign/layout.html.twig' %}
  210. {% block metatags %}
  211.     {{ parent() }}
  212.     {{ render(controller('AppBundle:Block:paginationMeta', { 'locationId': location.id } )) }}
  213.     <!--
  214.     Start of global snippet: Please do not remove
  215.     Place this snippet between the <head> and </head> tags on every page of your site.
  216.     -->
  217.     <!-- Google tag (gtag.js) -->
  218.     <script async src=\"https://www.googletagmanager.com/gtag/js?id=DC-4625548\"></script>
  219.     <script>
  220.         window.dataLayer = window.dataLayer || [];
  221.         function gtag(){dataLayer.push(arguments);}
  222.         gtag('js', new Date());
  223.         gtag('config', 'DC-4625548');
  224.     </script>
  225.     <script>
  226.         gtag('event', 'conversion', {
  227.             'allow_custom_scripts': true,
  228.             'u10': 'Landing RAPA',
  229.             'u24': 'https://rapa.movistarplus.es/',
  230.             'send_to': 'DC-4625548/movis00a/lpg_m0+standard'
  231.         });
  232.         window.addEventListener('load', function () {
  233.             let btnHire = document.getElementsByClassName(\"hire-now\")
  234.             for (var i = 0; i < btnHire.length; i++) {
  235.                 btnHire[i].addEventListener('mousedown', gtagBtn, false);
  236.             }
  237.             let btnWatch = document.getElementsByClassName(\"watch-now\")
  238.             for (var i = 0; i < btnHire.length; i++) {
  239.                 btnWatch[i].addEventListener('mousedown', gtagBtn2, false);
  240.             }
  241.         });
  242.         const gtagBtn = ()=> {
  243.             let noScript = document.createElement('div');
  244.             noScript.innerHTML ='<noscript> <img src=\"https://ad.doubleclick.net/ddm/activity/src=4625548;type=movis00a;cat=eng_b0;u10=[Landing RAPA];u24=[https://rapa.movistarplus.es/];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;npa=;gdpr=\${GDPR};gdpr_consent=\${GDPR_CONSENT_755};ord=1?\" width=\"1\" height=\"1\" alt=\"\"/></noscript>';
  245.             document.body.appendChild(noScript);
  246.                 gtag('event', 'conversion', {
  247.                     'allow_custom_scripts': true,
  248.                     'u10': 'Landing RAPA',
  249.                     'u24': 'https://rapa.movistarplus.es/',
  250.                     'send_to': 'DC-4625548/movis00a/eng_b0+standard'
  251.                 });
  252.             console.log('Click contratar');
  253.         };
  254.         const gtagBtn2 = ()=> {
  255.             let noScript = document.createElement('div');
  256.             noScript.innerHTML ='<noscript> <img src=\"https://ad.doubleclick.net/ddm/activity/src=4625548;type=movis00a;cat=eng_v0;u10=[Landing RAPA];u24=[https://rapa.movistarplus.es/];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;npa=;gdpr=\${GDPR};gdpr_consent=\${GDPR_CONSENT_755};ord=1?\" width=\"1\" height=\"1\" alt=\"\"/></noscript>';
  257.             document.body.appendChild(noScript);
  258.             gtag('event', 'conversion', {
  259.                 'allow_custom_scripts': true,
  260.                 'u10': 'Landing RAPA',
  261.                 'u24': 'https://rapa.movistarplus.es/',
  262.                 'send_to': 'DC-4625548/movis00a/eng_v0+standard'
  263.             });
  264.           //  document.write('<noscript> <img src=\"https://ad.doubleclick.net/ddm/activity/src=4625548;type=movis00a;cat=eng_v0;u10=[Landing RAPA];u24=[https://rapa.movistarplus.es/];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;npa=;gdpr=\${GDPR};gdpr_consent=\${GDPR_CONSENT_755};ord=1?\" width=\"1\" height=\"1\" alt=\"\"/></noscript>');
  265.             console.log('Click ver')
  266.         };
  267.     </script>
  268.     <noscript>
  269.         <img src=\"https://ad.doubleclick.net/ddm/activity/src=4625548;type=movis00a;cat=lpg_m0;u10=[Landing RAPA];u24=[https://rapa.movistarplus.es/];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;npa=;gdpr=\${GDPR};gdpr_consent=\${GDPR_CONSENT_755};ord=1?\" width=\"1\" height=\"1\" alt=\"\"/>
  270.     </noscript>
  271. {% endblock %}
  272. {% block content %}
  273.     <div class=\"m-shows-header h3\">
  274.         <div class=\"menu-header\">
  275.             {{ render(controller('AppBundle:Menu:callToActionButtons', { 'location': ezpublish.rootLocation } )) }}
  276.             <div class=\"wrapper row\">
  277.                 {{ render(controller('AppBundle:Block:renderIconBlock', { 'contentId': ezpublish.rootLocation.contentId } )) }}
  278.                 {{ render(controller('AppBundle:Menu:header', {'locationId': ezpublish.rootLocation.id } )) }}
  279.                 <a href=\"{{ url( 'ez_urlalias', {'locationId': base_locationId, 'siteaccess': 'originales'} ) }}\" class=\"e-arrow-link\" rel=\"follow\">
  280.                     {{ include('icons/link-arrow.svg.twig') }}
  281.                     <img src=\"/assets/images/logo-originales.svg\"/>
  282.                 </a>
  283.                 <a href=\"#\" class=\"menu-toggle\" rel=\"follow\">
  284.                     {{ include('icons/menu.svg.twig') }}
  285.                 </a>
  286.             </div>
  287.         </div>
  288.     </div>
  289.     {% block modules %}
  290.         {{ render(controller('AppBundle:Block:renderBlocks', { 'locationId': location.id } )) }}
  291.     {% endblock %}
  292. {% endblock %}
  293. ""@lavidabreve/full/main.html.twig""/var/www/app/Resources/views/themes/lavidabreve/full/main.html.twig");
  294.     }
  295. }