var/cache/dev/twig/0c/0c630cc062df62e5a359d0f6eca903e8.php line 40

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. /* frontend/product/page/index.html.twig */
  14. class __TwigTemplate_9bc042c40152fa9400f289f317449f82 extends 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->blocks = [
  23.             'metaTitle' => [$this'block_metaTitle'],
  24.             'metaDescription' => [$this'block_metaDescription'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "frontend/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/product/page/index.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/product/page/index.html.twig"));
  40.         $this->parent $this->loadTemplate("frontend/base.html.twig""frontend/product/page/index.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_metaTitle($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaTitle"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaTitle"));
  55.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["page"] ?? null), "metaTitle", [], "any"truetruefalse3)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["page"] ?? null), "metaTitle", [], "any"falsefalsefalse3), twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'3$this->source); })()), "name", [], "any"falsefalsefalse3))) : (twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'3$this->source); })()), "name", [], "any"falsefalsefalse3))), "html"nulltrue);
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.     }
  61.     // line 4
  62.     public function block_metaDescription($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  69.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["page"] ?? null), "metaDescription", [], "any"truetruefalse4)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["page"] ?? null), "metaDescription", [], "any"falsefalsefalse4), twig_slice($this->env$this->extensions['App\Twig\AppExtension']->html_entity_decode(twig_striptags($this->extensions['OneAM\Libraries\BlockEditor\Twig\TwigExtension']->renderContent($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'4$this->source); })()), "introduction", [], "any"falsefalsefalse4)))), 0200))) : (twig_slice($this->env$this->extensions['App\Twig\AppExtension']->html_entity_decode(twig_striptags($this->extensions['OneAM\Libraries\BlockEditor\Twig\TwigExtension']->renderContent($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'4$this->source); })()), "introduction", [], "any"falsefalsefalse4)))), 0200))), "html"nulltrue);
  70.         
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  72.         
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74.     }
  75.     // line 6
  76.     public function block_body($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  83.         // line 7
  84.         echo "    ";
  85.         $this->loadTemplate("frontend/partials/_breadcrumb.html.twig""frontend/product/page/index.html.twig"7)->display($context);
  86.         // line 8
  87.         echo "    <section class=\"space-1\">
  88.         <div class=\"container\">
  89.             <div class=\"position-relative\">
  90.                 <figure class=\"media equal-2-1\">
  91.                     <span style=\"background-image: url('";
  92.         // line 12
  93.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'12$this->source); })()), "background", [], "any"falsefalsefalse12), "publicUrl", [], "any"falsefalsefalse12), "html"nulltrue);
  94.         echo "')\"></span>
  95.                 </figure>
  96.             </div>
  97.         </div>
  98.     </section>
  99.     <section class=\"space-top-lg-1 space-bottom-lg-3 space-bottom-2\">
  100.         <div class=\"container\">
  101.             <h1 class=\"h2\">";
  102.         // line 19
  103.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'19$this->source); })()), "name", [], "any"falsefalsefalse19), "html"nulltrue);
  104.         echo "</h1>
  105.             <div class=\"page-content\">
  106.                 ";
  107.         // line 21
  108.         echo $this->extensions['OneAM\Libraries\BlockEditor\Twig\TwigExtension']->renderContent($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'21$this->source); })()), "content", [], "any"falsefalsefalse21));
  109.         echo "
  110.             </div>
  111.         </div>
  112.     </section>
  113.     <section class=\"space-bottom-2\">
  114.         <div class=\"container\">
  115.             <div class=\"row justify-content-center\">
  116.                 ";
  117.         // line 28
  118.         $context['_parent'] = $context;
  119.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'28$this->source); })()), "pageCallToActions", [], "any"falsefalsefalse28));
  120.         $context['loop'] = [
  121.           'parent' => $context['_parent'],
  122.           'index0' => 0,
  123.           'index'  => 1,
  124.           'first'  => true,
  125.         ];
  126.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  127.             $length count($context['_seq']);
  128.             $context['loop']['revindex0'] = $length 1;
  129.             $context['loop']['revindex'] = $length;
  130.             $context['loop']['length'] = $length;
  131.             $context['loop']['last'] = === $length;
  132.         }
  133.         foreach ($context['_seq'] as $context["_key"] => $context["pageCallToAction"]) {
  134.             // line 29
  135.             echo "                    ";
  136.             $this->loadTemplate("frontend/partials/_call_to_action_card.html.twig""frontend/product/page/index.html.twig"29)->display(twig_array_merge($context, ["callToAction" => twig_get_attribute($this->env$this->source$context["pageCallToAction"], "callToAction", [], "any"falsefalsefalse29), "size" => twig_get_attribute($this->env$this->source$context["pageCallToAction"], "size", [], "any"falsefalsefalse29)]));
  137.             // line 30
  138.             echo "                ";
  139.             ++$context['loop']['index0'];
  140.             ++$context['loop']['index'];
  141.             $context['loop']['first'] = false;
  142.             if (isset($context['loop']['length'])) {
  143.                 --$context['loop']['revindex0'];
  144.                 --$context['loop']['revindex'];
  145.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  146.             }
  147.         }
  148.         $_parent $context['_parent'];
  149.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pageCallToAction'], $context['_parent'], $context['loop']);
  150.         $context array_intersect_key($context$_parent) + $_parent;
  151.         // line 31
  152.         echo "            </div>
  153.         </div>
  154.     </section>
  155. ";
  156.         
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  158.         
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  160.     }
  161.     public function getTemplateName()
  162.     {
  163.         return "frontend/product/page/index.html.twig";
  164.     }
  165.     public function isTraitable()
  166.     {
  167.         return false;
  168.     }
  169.     public function getDebugInfo()
  170.     {
  171.         return array (  176 => 31,  162 => 30,  159 => 29,  142 => 28,  132 => 21,  127 => 19,  117 => 12,  111 => 8,  108 => 7,  98 => 6,  79 => 4,  60 => 3,  37 => 1,);
  172.     }
  173.     public function getSourceContext()
  174.     {
  175.         return new Source("{% extends 'frontend/base.html.twig' %}
  176. {% block metaTitle %}{{ page.metaTitle|default(page.name) }}{% endblock %}
  177. {% block metaDescription %}{{ page.metaDescription|default(page.introduction|block_editor_render|striptags|html_entity_decode|slice(0, 200)) }}{% endblock %}
  178. {% block body %}
  179.     {% include 'frontend/partials/_breadcrumb.html.twig' %}
  180.     <section class=\"space-1\">
  181.         <div class=\"container\">
  182.             <div class=\"position-relative\">
  183.                 <figure class=\"media equal-2-1\">
  184.                     <span style=\"background-image: url('{{ page.background.publicUrl }}')\"></span>
  185.                 </figure>
  186.             </div>
  187.         </div>
  188.     </section>
  189.     <section class=\"space-top-lg-1 space-bottom-lg-3 space-bottom-2\">
  190.         <div class=\"container\">
  191.             <h1 class=\"h2\">{{ page.name }}</h1>
  192.             <div class=\"page-content\">
  193.                 {{ page.content|block_editor_render }}
  194.             </div>
  195.         </div>
  196.     </section>
  197.     <section class=\"space-bottom-2\">
  198.         <div class=\"container\">
  199.             <div class=\"row justify-content-center\">
  200.                 {% for pageCallToAction in page.pageCallToActions %}
  201.                     {% include 'frontend/partials/_call_to_action_card.html.twig' with {callToAction: pageCallToAction.callToAction, size: pageCallToAction.size} %}
  202.                 {% endfor %}
  203.             </div>
  204.         </div>
  205.     </section>
  206. {% endblock %}
  207. ""frontend/product/page/index.html.twig""/var/www/vhosts/dev.oneam.it/astralpool.dev.oneam.it/templates/frontend/product/page/index.html.twig");
  208.     }
  209. }