<?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;
/* product/frontEnd/category/index.html.twig */
class __TwigTemplate_520c84f72923c1efe8dde50040d1b673 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", "product/frontEnd/category/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", "product/frontEnd/category/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 7
/**
* @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 8
yield " ";
yield from $this->load("product/frontEnd/category/_critical_css.css.twig", 8)->unwrap()->yield($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 11
/**
* @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 12
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
";
// line 13
yield $macros["͜macros"]->getTemplateForMacro("macro_assetCSS", $context, 13, $this->getSourceContext())->macro_assetCSS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/categories/categories.styles.css")]);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 16
/**
* @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 17
yield " ";
$context["pageTitle"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 17, $this->source); })()), "seo", [], "any", false, false, false, 17), "title", [], "any", false, false, false, 17);
// line 18
yield "
";
// line 19
$context["coverPhoto"] = null;
// line 20
yield " ";
if (( !Twig\Extension\CoreExtension::testEmpty((isset($context["parentCategory"]) || array_key_exists("parentCategory", $context) ? $context["parentCategory"] : (function () { throw new RuntimeError('Variable "parentCategory" does not exist.', 20, $this->source); })())) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["parentCategory"]) || array_key_exists("parentCategory", $context) ? $context["parentCategory"] : (function () { throw new RuntimeError('Variable "parentCategory" does not exist.', 20, $this->source); })()), "post", [], "any", false, false, false, 20), "imageByType", [Twig\Extension\CoreExtension::constant("\\App\\MediaBundle\\Entity\\Image::TYPE_COVER_PHOTO")], "method", false, false, false, 20))) {
// line 21
yield " ";
$context["coverPhoto"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["parentCategory"]) || array_key_exists("parentCategory", $context) ? $context["parentCategory"] : (function () { throw new RuntimeError('Variable "parentCategory" does not exist.', 21, $this->source); })()), "post", [], "any", false, false, false, 21), "imageByType", [Twig\Extension\CoreExtension::constant("\\App\\MediaBundle\\Entity\\Image::TYPE_COVER_PHOTO")], "method", false, false, false, 21), "assetPath", [], "any", false, false, false, 21));
// line 22
yield " ";
}
// line 23
yield "
";
// line 24
$context["pageDescription"] = null;
// line 25
yield " ";
if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["parentCategory"]) || array_key_exists("parentCategory", $context) ? $context["parentCategory"] : (function () { throw new RuntimeError('Variable "parentCategory" does not exist.', 25, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 26
yield " ";
$context["pageTitle"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["parentCategory"]) || array_key_exists("parentCategory", $context) ? $context["parentCategory"] : (function () { throw new RuntimeError('Variable "parentCategory" does not exist.', 26, $this->source); })()), "title", [], "any", false, false, false, 26);
// line 27
yield " ";
$context["pageDescription"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["parentCategory"]) || array_key_exists("parentCategory", $context) ? $context["parentCategory"] : (function () { throw new RuntimeError('Variable "parentCategory" does not exist.', 27, $this->source); })()), "post", [], "any", false, false, false, 27), "content", [], "any", false, false, false, 27), "brief", [], "any", false, false, false, 27);
// line 28
yield " ";
}
// line 29
yield "
";
// line 30
yield from $this->load("fe/_pages_header.html.twig", 30)->unwrap()->yield(CoreExtension::merge($context, ["pageTitle" => (isset($context["pageTitle"]) || array_key_exists("pageTitle", $context) ? $context["pageTitle"] : (function () { throw new RuntimeError('Variable "pageTitle" does not exist.', 30, $this->source); })()), "description" => (isset($context["pageDescription"]) || array_key_exists("pageDescription", $context) ? $context["pageDescription"] : (function () { throw new RuntimeError('Variable "pageDescription" does not exist.', 30, $this->source); })()), "image" => (isset($context["coverPhoto"]) || array_key_exists("coverPhoto", $context) ? $context["coverPhoto"] : (function () { throw new RuntimeError('Variable "coverPhoto" does not exist.', 30, $this->source); })()), "marginBottomZero" => true]));
// line 31
yield "
<div class=\"l-lazy-section ui-lazy-section loading\"
data-l-lazy-section=\"categories\"
data-l-lazy-section-type=\"simple\"
data-l-lazy-section-url=\"";
// line 35
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "attributes", [], "any", false, false, false, 35), "get", ["_route"], "method", false, false, false, 35), Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "attributes", [], "any", false, false, false, 35), "get", ["_route_params"], "method", false, false, false, 35), ["content" => true])), "html", null, true);
yield "\"
></div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 40
/**
* @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 41
yield " ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
";
// line 42
yield $macros["͜macros"]->getTemplateForMacro("macro_assetCSS", $context, 42, $this->getSourceContext())->macro_assetCSS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/categories/categories.lazy.styles.css"), true]);
yield "
";
// line 44
yield $macros["͜macros"]->getTemplateForMacro("macro_assetJS", $context, 44, $this->getSourceContext())->macro_assetJS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/categories/categories.js")]);
yield "
";
// line 45
yield $macros["͜macros"]->getTemplateForMacro("macro_assetJS", $context, 45, $this->getSourceContext())->macro_assetJS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/categories/categories.lazy.js"), true]);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "product/frontEnd/category/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 239 => 45, 235 => 44, 230 => 42, 225 => 41, 212 => 40, 197 => 35, 191 => 31, 189 => 30, 186 => 29, 183 => 28, 180 => 27, 177 => 26, 174 => 25, 172 => 24, 169 => 23, 166 => 22, 163 => 21, 160 => 20, 158 => 19, 155 => 18, 152 => 17, 139 => 16, 126 => 13, 121 => 12, 108 => 11, 96 => 8, 83 => 7, 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 \"product/frontEnd/category/_critical_css.css.twig\" %}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{{ macros.assetCSS(asset('pages-assets/categories/categories.styles.css')) }}
{% endblock %}
{% block content %}
{% set pageTitle = seoPage.seo.title %}
{% set coverPhoto = null %}
{% if parentCategory is not empty and parentCategory.post.imageByType(constant(\"\\\\App\\\\MediaBundle\\\\Entity\\\\Image::TYPE_COVER_PHOTO\")) %}
{% set coverPhoto = asset(parentCategory.post.imageByType(constant(\"\\\\App\\\\MediaBundle\\\\Entity\\\\Image::TYPE_COVER_PHOTO\")).assetPath) %}
{% endif %}
{% set pageDescription = null %}
{% if parentCategory is not empty %}
{% set pageTitle = parentCategory.title %}
{% set pageDescription = parentCategory.post.content.brief %}
{% endif %}
{% include \"fe/_pages_header.html.twig\" with {\"pageTitle\": pageTitle, description: pageDescription, \"image\" : coverPhoto, \"marginBottomZero\": true } %}
<div class=\"l-lazy-section ui-lazy-section loading\"
data-l-lazy-section=\"categories\"
data-l-lazy-section-type=\"simple\"
data-l-lazy-section-url=\"{{ path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')|merge({'content':true})) }}\"
></div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ macros.assetCSS(asset('pages-assets/categories/categories.lazy.styles.css'), true) }}
{{ macros.assetJS(asset('pages-assets/categories/categories.js')) }}
{{ macros.assetJS(asset('pages-assets/categories/categories.lazy.js'), true) }}
{% endblock %}
", "product/frontEnd/category/index.html.twig", "/var/www/esorus-shop/templates/product/frontEnd/category/index.html.twig");
}
}