<?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;
/* home/homePage/index.html.twig */
class __TwigTemplate_2fe2c06b241767f4da718c12bca8ee19 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", "home/homePage/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", "home/homePage/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("home/homePage/_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/home/home.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 "
";
// line 15
yield from $this->load("home/homePage/_header.html.twig", 15)->unwrap()->yield($context);
// line 16
yield " ";
yield from $this->load("home/homePage/_info.html.twig", 16)->unwrap()->yield($context);
// line 17
yield "
";
// line 19
yield " <div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"new-arrivals\" data-l-lazy-section-type=\"products\" data-l-lazy-section-url=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_new_arrivals_section_ajax");
yield "\"></div>
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"recommended-for-you\" data-l-lazy-section-type=\"products\" data-l-lazy-section-url=\"";
// line 20
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_recommended_for_you_section_ajax");
yield "\"></div>
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"featured-offers-3\" data-l-lazy-section-type=\"simple\" data-l-lazy-section-url=\"";
// line 22
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_third_banners_section_ajax");
yield "\"></div>
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"featured-offers-2\" data-l-lazy-section-type=\"simple\" data-l-lazy-section-url=\"";
// line 23
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_second_banners_section_ajax");
yield "\"></div>
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"best-seller\" data-l-lazy-section-type=\"products\" data-l-lazy-section-url=\"";
// line 24
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_best_seller_section_ajax");
yield "\"></div>
";
// line 28
if ((($tmp = Twig\Extension\CoreExtension::constant("App\\BaseBundle\\SystemConfiguration::ENABLE_COLLECTION")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 29
yield " <div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"featured-collections\" data-l-lazy-section-type=\"simple\" data-l-lazy-section-url=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_collection_section_ajax");
yield "\"></div>
";
}
// line 31
yield " <div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"featured-offers-4\" data-l-lazy-section-type=\"simple\" data-l-lazy-section-url=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_fourth_banners_section_ajax");
yield "\"></div>
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"featured-reading\" data-l-lazy-section-type=\"simple\" data-l-lazy-section-url=\"";
// line 32
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_blog_section_ajax");
yield "\"></div>
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"featured-categories-products\" data-l-lazy-section-type=\"products\" data-l-lazy-section-url=\"";
// line 35
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_featured_category_section_ajax");
yield "\"></div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 38
/**
* @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 39
yield " ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
";
// line 40
yield $macros["͜macros"]->getTemplateForMacro("macro_assetCSS", $context, 40, $this->getSourceContext())->macro_assetCSS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/home/home.lazy.styles.css"), true]);
yield "
";
// line 42
yield $macros["͜macros"]->getTemplateForMacro("macro_assetJS", $context, 42, $this->getSourceContext())->macro_assetJS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/home/home.js")]);
yield "
";
// line 43
yield $macros["͜macros"]->getTemplateForMacro("macro_assetJS", $context, 43, $this->getSourceContext())->macro_assetJS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/home/home.lazy.js"), true]);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "home/homePage/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 247 => 43, 243 => 42, 238 => 40, 233 => 39, 220 => 38, 207 => 35, 201 => 32, 196 => 31, 190 => 29, 188 => 28, 181 => 24, 177 => 23, 173 => 22, 168 => 20, 163 => 19, 160 => 17, 157 => 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 \"home/homePage/_critical_css.css.twig\" %}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{{ macros.assetCSS(asset('pages-assets/home/home.styles.css')) }}
{% endblock %}
{% block content %}
{% include \"home/homePage/_header.html.twig\" %}
{% include \"home/homePage/_info.html.twig\" %}
{# <div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"featured-offers\" data-l-lazy-section-type=\"simple\" data-l-lazy-section-url=\"{{ path('fe_home_first_banners_section_ajax') }}\"></div>#}
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"new-arrivals\" data-l-lazy-section-type=\"products\" data-l-lazy-section-url=\"{{ path('fe_home_new_arrivals_section_ajax') }}\"></div>
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"recommended-for-you\" data-l-lazy-section-type=\"products\" data-l-lazy-section-url=\"{{ path('fe_home_recommended_for_you_section_ajax') }}\"></div>
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"featured-offers-3\" data-l-lazy-section-type=\"simple\" data-l-lazy-section-url=\"{{ path('fe_home_third_banners_section_ajax') }}\"></div>
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"featured-offers-2\" data-l-lazy-section-type=\"simple\" data-l-lazy-section-url=\"{{ path('fe_home_second_banners_section_ajax') }}\"></div>
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"best-seller\" data-l-lazy-section-type=\"products\" data-l-lazy-section-url=\"{{ path('fe_home_best_seller_section_ajax') }}\"></div>
{% if constant(\"App\\\\BaseBundle\\\\SystemConfiguration::ENABLE_COLLECTION\") %}
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"featured-collections\" data-l-lazy-section-type=\"simple\" data-l-lazy-section-url=\"{{ path('fe_home_collection_section_ajax') }}\"></div>
{% endif %}
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"featured-offers-4\" data-l-lazy-section-type=\"simple\" data-l-lazy-section-url=\"{{ path('fe_home_fourth_banners_section_ajax') }}\"></div>
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"featured-reading\" data-l-lazy-section-type=\"simple\" data-l-lazy-section-url=\"{{ path('fe_home_blog_section_ajax') }}\"></div>
<div class=\"l-lazy-section ui-lazy-section loading\" data-l-lazy-section=\"featured-categories-products\" data-l-lazy-section-type=\"products\" data-l-lazy-section-url=\"{{ path('fe_home_featured_category_section_ajax') }}\"></div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ macros.assetCSS(asset('pages-assets/home/home.lazy.styles.css'), true) }}
{{ macros.assetJS(asset('pages-assets/home/home.js')) }}
{{ macros.assetJS(asset('pages-assets/home/home.lazy.js'), true) }}
{% endblock %}
", "home/homePage/index.html.twig", "/var/www/esorus-shop/templates/home/homePage/index.html.twig");
}
}