<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* cms/frontEnd/faq/index.html.twig */
class __TwigTemplate_6e983202070334fedeb60d251e86e8c9 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
// line 3
$_trait_0 = $this->load("@PNSeo/FrontEnd/seo.html.twig", 3);
if (!$_trait_0->unwrap()->isTraitable()) {
throw new RuntimeError('Template "'."@PNSeo/FrontEnd/seo.html.twig".'" cannot be used as a trait.', 3, $this->source);
}
$_trait_0_blocks = $_trait_0->unwrap()->getBlocks();
$this->traits = $_trait_0_blocks;
$this->blocks = array_merge(
$this->traits,
[
'criticalCSS' => [$this, 'block_criticalCSS'],
'stylesheets' => [$this, 'block_stylesheets'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
]
);
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "fe/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "cms/frontEnd/faq/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", "cms/frontEnd/faq/index.html.twig"));
// line 2
$context["seo"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["seoPage"]) || array_key_exists("seoPage", $context) ? $context["seoPage"] : (function () { throw new RuntimeError('Variable "seoPage" does not exist.', 2, $this->source); })()), "seo", [], "any", false, false, false, 2);
// line 4
$macros["͜macros"] = $this->macros["͜macros"] = $this->load("fe/macros.html.twig", 4)->unwrap();
// line 1
$this->parent = $this->load("fe/base.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 6
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_criticalCSS(array $context, array $blocks = []): iterable
{
$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", "criticalCSS"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "criticalCSS"));
// line 7
yield " ";
yield from $this->load("cms/frontEnd/faq/_critical_css.css.twig", 7)->unwrap()->yield($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 9
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 10
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
";
// line 11
yield $macros["͜macros"]->getTemplateForMacro("macro_assetCSS", $context, 11, $this->getSourceContext())->macro_assetCSS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/faqs/faqs.styles.css")]);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 13
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 14
yield " ";
$context["image"] = $this->env->getRuntime('PN\ContentBundle\Twig\VarsRuntime')->getDynamicContentAttribute(8, false);
// line 15
yield " ";
if (Twig\Extension\CoreExtension::testEmpty((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 15, $this->source); })()))) {
// line 16
yield " ";
$context["image"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/placeholder-landscape.webp");
// line 17
yield " ";
}
// line 18
yield " <div class=\"wrapper-featured-section\">
<div class=\"l-featured-section ui-featured-section--spacing-bottom-0 ui-featured-section lazyload\"
data-bg=\"";
// line 20
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 20, $this->source); })()), "html", null, true);
yield "\" data-delay=\"5000\">
<div class=\"l-featured-section-content\">
<div class=\"l-container\">
<div class=\"l-flex-row\">
<div class=\"l-flex-col-lg-12\">
<div class=\"l-featured-section-content-box\">
<div class=\"l-page-title-box\">
<div class=\"wrapper-page-title\">
<h1 class=\"wrapper-page-subtitle\">
";
// line 29
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("faqs_txt"), "html", null, true);
yield "
</h1>
<h2 class=\"l-page-title ui-page-title ui-page-title--no-description\">
";
// line 32
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ask_us_anything_txt"), "html", null, true);
yield "
</h2>
<div class=\"wrapper-page-address\">
<p>";
// line 35
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("have_any_questions_txt"), "html", null, true);
yield "</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"l-container wrapper-faqs\">
<div class=\"l-flex-row wrapper-faqs-row\">
";
// line 50
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["faqs"]) || array_key_exists("faqs", $context) ? $context["faqs"] : (function () { throw new RuntimeError('Variable "faqs" does not exist.', 50, $this->source); })()));
$context['_iterated'] = false;
$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["faq"]) {
// line 51
yield " <div class=\"l-flex-col-xl-4\">
<div class=\"wrapper-faq\">
<span class=\"circle\"></span>
<h4 class=\"title\">
";
// line 55
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["faq"], "question", [], "any", false, false, false, 55), "html", null, true);
yield "
</h4>
<div class=\"body\">
<p>";
// line 58
yield Twig\Extension\CoreExtension::nl2br($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["faq"], "answer", [], "any", false, false, false, 58), "html", null, true));
yield "</p>
</div>
</div>
</div>
";
// line 62
if ((0 == CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 62) % 3)) {
// line 63
yield " <div class=\"l-flex-col-xl-12\">
<div class=\"wrapper-faqs-row-separator\">
</div>
</div>
";
}
// line 68
yield " ";
$context['_iterated'] = true;
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
if (!$context['_iterated']) {
// line 69
yield " ";
yield from $this->load("fe/_not_found_content.html.twig", 69)->unwrap()->yield($context);
// line 70
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['faq'], $context['_parent'], $context['_iterated'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
yield "
<div class=\"l-flex-col-xl-12\">
<div class=\"wrapper-faqs-cta\">
<div class=\"l-flex-row wrapper-faqs-cta-row\">
<div class=\"l-flex-col-xl-8\">
<h4>";
// line 76
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("still_have_questions_text"), "html", null, true);
yield "</h4>
<p>";
// line 77
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cannot_find_answer_txt"), "html", null, true);
yield "</p>
</div>
<div class=\"l-flex-col-xl-4 cta-wrapper\">
<a href=\"";
// line 80
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_contact_index");
yield "\" class=\"btn btn-primary btn-md btn-rounded\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("get_in_touch_txt"), "html", null, true);
yield "</a>
</div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 91
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 92
yield " ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
";
// line 93
yield $macros["͜macros"]->getTemplateForMacro("macro_assetCSS", $context, 93, $this->getSourceContext())->macro_assetCSS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/faqs/faqs.lazy.styles.css"), true]);
yield "
";
// line 95
yield $macros["͜macros"]->getTemplateForMacro("macro_assetJS", $context, 95, $this->getSourceContext())->macro_assetJS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/faqs/faqs.js")]);
yield "
";
// line 96
yield $macros["͜macros"]->getTemplateForMacro("macro_assetJS", $context, 96, $this->getSourceContext())->macro_assetJS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/faqs/faqs.lazy.js"), true]);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "cms/frontEnd/faq/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 345 => 96, 341 => 95, 336 => 93, 331 => 92, 318 => 91, 295 => 80, 289 => 77, 285 => 76, 278 => 71, 272 => 70, 269 => 69, 256 => 68, 249 => 63, 247 => 62, 240 => 58, 234 => 55, 228 => 51, 210 => 50, 192 => 35, 186 => 32, 180 => 29, 168 => 20, 164 => 18, 161 => 17, 158 => 16, 155 => 15, 152 => 14, 139 => 13, 126 => 11, 121 => 10, 108 => 9, 96 => 7, 83 => 6, 72 => 1, 70 => 4, 68 => 2, 55 => 1, 33 => 3,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'fe/base.html.twig' %}
{% set seo = seoPage.seo %}
{% use '@PNSeo/FrontEnd/seo.html.twig' %}
{% import 'fe/macros.html.twig' as macros %}
{% block criticalCSS %}
{% include \"cms/frontEnd/faq/_critical_css.css.twig\" %}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{{ macros.assetCSS(asset('pages-assets/faqs/faqs.styles.css')) }}
{% endblock %}
{% block content %}
{% set image = getDCA(8, false) %}
{% if image is empty %}
{% set image = asset('assets/img/placeholder-landscape.webp') %}
{% endif %}
<div class=\"wrapper-featured-section\">
<div class=\"l-featured-section ui-featured-section--spacing-bottom-0 ui-featured-section lazyload\"
data-bg=\"{{ image }}\" data-delay=\"5000\">
<div class=\"l-featured-section-content\">
<div class=\"l-container\">
<div class=\"l-flex-row\">
<div class=\"l-flex-col-lg-12\">
<div class=\"l-featured-section-content-box\">
<div class=\"l-page-title-box\">
<div class=\"wrapper-page-title\">
<h1 class=\"wrapper-page-subtitle\">
{{ \"faqs_txt\"|trans }}
</h1>
<h2 class=\"l-page-title ui-page-title ui-page-title--no-description\">
{{ \"ask_us_anything_txt\"|trans }}
</h2>
<div class=\"wrapper-page-address\">
<p>{{ \"have_any_questions_txt\"|trans }}</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"l-container wrapper-faqs\">
<div class=\"l-flex-row wrapper-faqs-row\">
{% for faq in faqs %}
<div class=\"l-flex-col-xl-4\">
<div class=\"wrapper-faq\">
<span class=\"circle\"></span>
<h4 class=\"title\">
{{ faq.question }}
</h4>
<div class=\"body\">
<p>{{ faq.answer|nl2br }}</p>
</div>
</div>
</div>
{% if loop.index is divisible by(3) %}
<div class=\"l-flex-col-xl-12\">
<div class=\"wrapper-faqs-row-separator\">
</div>
</div>
{% endif %}
{% else %}
{% include \"fe/_not_found_content.html.twig\" %}
{% endfor %}
<div class=\"l-flex-col-xl-12\">
<div class=\"wrapper-faqs-cta\">
<div class=\"l-flex-row wrapper-faqs-cta-row\">
<div class=\"l-flex-col-xl-8\">
<h4>{{ \"still_have_questions_text\"|trans }}</h4>
<p>{{ \"cannot_find_answer_txt\"|trans }}</p>
</div>
<div class=\"l-flex-col-xl-4 cta-wrapper\">
<a href=\"{{ path('fe_contact_index') }}\" class=\"btn btn-primary btn-md btn-rounded\">{{ \"get_in_touch_txt\"|trans }}</a>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ macros.assetCSS(asset('pages-assets/faqs/faqs.lazy.styles.css'), true) }}
{{ macros.assetJS(asset('pages-assets/faqs/faqs.js')) }}
{{ macros.assetJS(asset('pages-assets/faqs/faqs.lazy.js'), true) }}
{% endblock %}
", "cms/frontEnd/faq/index.html.twig", "/var/www/esorus-shop/templates/cms/frontEnd/faq/index.html.twig");
}
}