<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* frontend/product/page/index.html.twig */
class __TwigTemplate_9bc042c40152fa9400f289f317449f82 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'metaTitle' => [$this, 'block_metaTitle'],
'metaDescription' => [$this, 'block_metaDescription'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "frontend/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/product/page/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/product/page/index.html.twig"));
$this->parent = $this->loadTemplate("frontend/base.html.twig", "frontend/product/page/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_metaTitle($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaTitle"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaTitle"));
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "metaTitle", [], "any", true, true, false, 3)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "metaTitle", [], "any", false, false, false, 3), 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", false, false, false, 3))) : (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", false, false, false, 3))), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 4
public function block_metaDescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "metaDescription", [], "any", true, true, false, 4)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "metaDescription", [], "any", false, false, false, 4), twig_slice($this->env, $this->extensions['App\Twig\AppExtension']->html_entity_decode(twig_striptags($this->extensions['OneAM\Libraries\BlockEditor\Twig\TwigExtension']->renderContent($this->env, 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.', 4, $this->source); })()), "introduction", [], "any", false, false, false, 4)))), 0, 200))) : (twig_slice($this->env, $this->extensions['App\Twig\AppExtension']->html_entity_decode(twig_striptags($this->extensions['OneAM\Libraries\BlockEditor\Twig\TwigExtension']->renderContent($this->env, 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.', 4, $this->source); })()), "introduction", [], "any", false, false, false, 4)))), 0, 200))), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 6
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 7
echo " ";
$this->loadTemplate("frontend/partials/_breadcrumb.html.twig", "frontend/product/page/index.html.twig", 7)->display($context);
// line 8
echo " <section class=\"space-1\">
<div class=\"container\">
<div class=\"position-relative\">
<figure class=\"media equal-2-1\">
<span style=\"background-image: url('";
// line 12
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 12, $this->source); })()), "background", [], "any", false, false, false, 12), "publicUrl", [], "any", false, false, false, 12), "html", null, true);
echo "')\"></span>
</figure>
</div>
</div>
</section>
<section class=\"space-top-lg-1 space-bottom-lg-3 space-bottom-2\">
<div class=\"container\">
<h1 class=\"h2\">";
// line 19
echo twig_escape_filter($this->env, 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.', 19, $this->source); })()), "name", [], "any", false, false, false, 19), "html", null, true);
echo "</h1>
<div class=\"page-content\">
";
// line 21
echo $this->extensions['OneAM\Libraries\BlockEditor\Twig\TwigExtension']->renderContent($this->env, 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.', 21, $this->source); })()), "content", [], "any", false, false, false, 21));
echo "
</div>
</div>
</section>
<section class=\"space-bottom-2\">
<div class=\"container\">
<div class=\"row justify-content-center\">
";
// line 28
$context['_parent'] = $context;
$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", false, false, false, 28));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["pageCallToAction"]) {
// line 29
echo " ";
$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", false, false, false, 29), "size" => twig_get_attribute($this->env, $this->source, $context["pageCallToAction"], "size", [], "any", false, false, false, 29)]));
// line 30
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pageCallToAction'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 31
echo " </div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "frontend/product/page/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'frontend/base.html.twig' %}
{% block metaTitle %}{{ page.metaTitle|default(page.name) }}{% endblock %}
{% block metaDescription %}{{ page.metaDescription|default(page.introduction|block_editor_render|striptags|html_entity_decode|slice(0, 200)) }}{% endblock %}
{% block body %}
{% include 'frontend/partials/_breadcrumb.html.twig' %}
<section class=\"space-1\">
<div class=\"container\">
<div class=\"position-relative\">
<figure class=\"media equal-2-1\">
<span style=\"background-image: url('{{ page.background.publicUrl }}')\"></span>
</figure>
</div>
</div>
</section>
<section class=\"space-top-lg-1 space-bottom-lg-3 space-bottom-2\">
<div class=\"container\">
<h1 class=\"h2\">{{ page.name }}</h1>
<div class=\"page-content\">
{{ page.content|block_editor_render }}
</div>
</div>
</section>
<section class=\"space-bottom-2\">
<div class=\"container\">
<div class=\"row justify-content-center\">
{% for pageCallToAction in page.pageCallToActions %}
{% include 'frontend/partials/_call_to_action_card.html.twig' with {callToAction: pageCallToAction.callToAction, size: pageCallToAction.size} %}
{% endfor %}
</div>
</div>
</section>
{% endblock %}
", "frontend/product/page/index.html.twig", "/var/www/vhosts/dev.oneam.it/astralpool.dev.oneam.it/templates/frontend/product/page/index.html.twig");
}
}