<?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;
/* fe/_pages_header.html.twig */
class __TwigTemplate_7af73a8757c11a7e67c60fd7a34bed84 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "fe/_pages_header.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "fe/_pages_header.html.twig"));
// line 1
$context["addEditCoverPhotoBtn"] = false;
// line 2
if ((($tmp = !array_key_exists("image", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 3
yield " ";
$context["image"] = $this->env->getRuntime('PN\ContentBundle\Twig\VarsRuntime')->getDynamicContentAttribute(8, false);
// line 4
yield " ";
$context["addEditCoverPhotoBtn"] = true;
}
// line 6
yield "
";
// line 7
if (Twig\Extension\CoreExtension::testEmpty((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 7, $this->source); })()))) {
// line 8
yield " ";
$context["image"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/img/placeholder-landscape.webp");
}
// line 10
yield "<div class=\"l-featured-section ui-featured-section lazyload ";
yield (((array_key_exists("desktopOnly", $context) && ((isset($context["desktopOnly"]) || array_key_exists("desktopOnly", $context) ? $context["desktopOnly"] : (function () { throw new RuntimeError('Variable "desktopOnly" does not exist.', 10, $this->source); })()) == true))) ? ("l-featured-section--desktop-only") : (""));
yield " ";
yield (((array_key_exists("marginBottomZero", $context) && ((isset($context["marginBottomZero"]) || array_key_exists("marginBottomZero", $context) ? $context["marginBottomZero"] : (function () { throw new RuntimeError('Variable "marginBottomZero" does not exist.', 10, $this->source); })()) == true))) ? ("ui-featured-section--spacing-bottom-0") : (""));
yield " \"
data-bg=\"";
// line 11
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.', 11, $this->source); })()), "html", null, true);
yield "\"
data-delay=\"5000\"
>
<div class=\"l-featured-section-content\">
";
// line 15
if ((($tmp = (isset($context["addEditCoverPhotoBtn"]) || array_key_exists("addEditCoverPhotoBtn", $context) ? $context["addEditCoverPhotoBtn"] : (function () { throw new RuntimeError('Variable "addEditCoverPhotoBtn" does not exist.', 15, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 16
yield " ";
yield $this->env->getRuntime('PN\ContentBundle\Twig\VarsRuntime')->editDynamicContentAttribute(8);
yield "
";
}
// line 18
yield " <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\">
";
// line 23
if (array_key_exists("pageTitle", $context)) {
// line 24
yield " <h1 class=\"l-page-title ui-page-title ";
yield ((( !array_key_exists("description", $context) || Twig\Extension\CoreExtension::testEmpty((isset($context["description"]) || array_key_exists("description", $context) ? $context["description"] : (function () { throw new RuntimeError('Variable "description" does not exist.', 24, $this->source); })())))) ? ("ui-page-title--no-description") : (""));
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["pageTitle"]) || array_key_exists("pageTitle", $context) ? $context["pageTitle"] : (function () { throw new RuntimeError('Variable "pageTitle" does not exist.', 24, $this->source); })()), "html", null, true);
yield "</h1>
";
}
// line 26
yield " ";
if ((array_key_exists("description", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["description"]) || array_key_exists("description", $context) ? $context["description"] : (function () { throw new RuntimeError('Variable "description" does not exist.', 26, $this->source); })())))) {
// line 27
yield " <div class=\"l-page-desc ui-page-desc\">
";
// line 28
if ((CoreExtension::inFilter("<", (isset($context["description"]) || array_key_exists("description", $context) ? $context["description"] : (function () { throw new RuntimeError('Variable "description" does not exist.', 28, $this->source); })())) && CoreExtension::inFilter(">", (isset($context["description"]) || array_key_exists("description", $context) ? $context["description"] : (function () { throw new RuntimeError('Variable "description" does not exist.', 28, $this->source); })())))) {
// line 29
yield " ";
yield (isset($context["description"]) || array_key_exists("description", $context) ? $context["description"] : (function () { throw new RuntimeError('Variable "description" does not exist.', 29, $this->source); })());
yield "
";
} else {
// line 31
yield " ";
yield Twig\Extension\CoreExtension::nl2br($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["description"]) || array_key_exists("description", $context) ? $context["description"] : (function () { throw new RuntimeError('Variable "description" does not exist.', 31, $this->source); })()), "html", null, true));
yield "
";
}
// line 33
yield " </div>
";
}
// line 35
yield " </div>
</div>
</div>
</div>
</div>
</div>
</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "fe/_pages_header.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 131 => 35, 127 => 33, 121 => 31, 115 => 29, 113 => 28, 110 => 27, 107 => 26, 99 => 24, 97 => 23, 90 => 18, 84 => 16, 82 => 15, 75 => 11, 68 => 10, 64 => 8, 62 => 7, 59 => 6, 55 => 4, 52 => 3, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% set addEditCoverPhotoBtn = false %}
{% if image is not defined %}
{% set image = getDCA(8, false) %}
{% set addEditCoverPhotoBtn = true %}
{% endif %}
{% if image is empty %}
{% set image = asset('/assets/img/placeholder-landscape.webp') %}
{% endif %}
<div class=\"l-featured-section ui-featured-section lazyload {{ desktopOnly is defined and desktopOnly == true ? \"l-featured-section--desktop-only\" }} {{ marginBottomZero is defined and marginBottomZero == true ? \"ui-featured-section--spacing-bottom-0\" }} \"
data-bg=\"{{ image }}\"
data-delay=\"5000\"
>
<div class=\"l-featured-section-content\">
{% if addEditCoverPhotoBtn %}
{{ editDCA(8) }}
{% endif %}
<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\">
{% if pageTitle is defined %}
<h1 class=\"l-page-title ui-page-title {{ description is not defined or description is empty ? \"ui-page-title--no-description\" }}\">{{ pageTitle }}</h1>
{% endif %}
{% if description is defined and description is not empty %}
<div class=\"l-page-desc ui-page-desc\">
{% if \"<\" in description|raw and \">\" in description|raw %}
{{ description|raw }}
{% else %}
{{ description|nl2br }}
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>", "fe/_pages_header.html.twig", "/var/www/esorus-shop/templates/fe/_pages_header.html.twig");
}
}