var/cache/dev/twig/68/68193e500c7a30074431f40a6ef50cd2.php line 142

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* home/homePage/index.html.twig */
  16. class __TwigTemplate_2fe2c06b241767f4da718c12bca8ee19 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. // line 3
  28. $_trait_0 = $this->load("@PNSeo/FrontEnd/seo.html.twig", 3);
  29. if (!$_trait_0->unwrap()->isTraitable()) {
  30. throw new RuntimeError('Template "'."@PNSeo/FrontEnd/seo.html.twig".'" cannot be used as a trait.', 3, $this->source);
  31. }
  32. $_trait_0_blocks = $_trait_0->unwrap()->getBlocks();
  33. $this->traits = $_trait_0_blocks;
  34. $this->blocks = array_merge(
  35. $this->traits,
  36. [
  37. 'criticalCSS' => [$this, 'block_criticalCSS'],
  38. 'stylesheets' => [$this, 'block_stylesheets'],
  39. 'content' => [$this, 'block_content'],
  40. 'javascripts' => [$this, 'block_javascripts'],
  41. ]
  42. );
  43. }
  44. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  45. {
  46. // line 1
  47. return "fe/base.html.twig";
  48. }
  49. protected function doDisplay(array $context, array $blocks = []): iterable
  50. {
  51. $macros = $this->macros;
  52. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "home/homePage/index.html.twig"));
  54. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "home/homePage/index.html.twig"));
  56. // line 2
  57. $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);
  58. // line 4
  59. $macros["͜macros"] = $this->macros["͜macros"] = $this->load("fe/macros.html.twig", 4)->unwrap();
  60. // line 1
  61. $this->parent = $this->load("fe/base.html.twig", 1);
  62. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  63. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  64. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65. }
  66. // line 6
  67. /**
  68. * @return iterable<null|scalar|\Stringable>
  69. */
  70. public function block_criticalCSS(array $context, array $blocks = []): iterable
  71. {
  72. $macros = $this->macros;
  73. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "criticalCSS"));
  75. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "criticalCSS"));
  77. // line 7
  78. yield " ";
  79. yield from $this->load("home/homePage/_critical_css.css.twig", 7)->unwrap()->yield($context);
  80. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  81. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  82. yield from [];
  83. }
  84. // line 9
  85. /**
  86. * @return iterable<null|scalar|\Stringable>
  87. */
  88. public function block_stylesheets(array $context, array $blocks = []): iterable
  89. {
  90. $macros = $this->macros;
  91. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  92. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  93. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  94. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  95. // line 10
  96. yield " ";
  97. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  98. yield "
  99. ";
  100. // line 11
  101. 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")]);
  102. yield "
  103. ";
  104. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  105. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  106. yield from [];
  107. }
  108. // line 13
  109. /**
  110. * @return iterable<null|scalar|\Stringable>
  111. */
  112. public function block_content(array $context, array $blocks = []): iterable
  113. {
  114. $macros = $this->macros;
  115. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  116. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  117. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  118. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  119. // line 14
  120. yield "
  121. ";
  122. // line 15
  123. yield from $this->load("home/homePage/_header.html.twig", 15)->unwrap()->yield($context);
  124. // line 16
  125. yield " ";
  126. yield from $this->load("home/homePage/_info.html.twig", 16)->unwrap()->yield($context);
  127. // line 17
  128. yield "
  129. ";
  130. // line 19
  131. 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=\"";
  132. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_new_arrivals_section_ajax");
  133. yield "\"></div>
  134. <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=\"";
  135. // line 20
  136. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_recommended_for_you_section_ajax");
  137. yield "\"></div>
  138. <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=\"";
  139. // line 22
  140. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_third_banners_section_ajax");
  141. yield "\"></div>
  142. <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=\"";
  143. // line 23
  144. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_second_banners_section_ajax");
  145. yield "\"></div>
  146. <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=\"";
  147. // line 24
  148. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_best_seller_section_ajax");
  149. yield "\"></div>
  150. ";
  151. // line 28
  152. if ((($tmp = Twig\Extension\CoreExtension::constant("App\\BaseBundle\\SystemConfiguration::ENABLE_COLLECTION")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  153. // line 29
  154. 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=\"";
  155. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_collection_section_ajax");
  156. yield "\"></div>
  157. ";
  158. }
  159. // line 31
  160. 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=\"";
  161. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_fourth_banners_section_ajax");
  162. yield "\"></div>
  163. <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=\"";
  164. // line 32
  165. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_blog_section_ajax");
  166. yield "\"></div>
  167. <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=\"";
  168. // line 35
  169. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fe_home_featured_category_section_ajax");
  170. yield "\"></div>
  171. ";
  172. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  173. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  174. yield from [];
  175. }
  176. // line 38
  177. /**
  178. * @return iterable<null|scalar|\Stringable>
  179. */
  180. public function block_javascripts(array $context, array $blocks = []): iterable
  181. {
  182. $macros = $this->macros;
  183. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  184. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  185. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  186. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  187. // line 39
  188. yield " ";
  189. yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  190. yield "
  191. ";
  192. // line 40
  193. 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]);
  194. yield "
  195. ";
  196. // line 42
  197. 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")]);
  198. yield "
  199. ";
  200. // line 43
  201. 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]);
  202. yield "
  203. ";
  204. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  205. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  206. yield from [];
  207. }
  208. /**
  209. * @codeCoverageIgnore
  210. */
  211. public function getTemplateName(): string
  212. {
  213. return "home/homePage/index.html.twig";
  214. }
  215. /**
  216. * @codeCoverageIgnore
  217. */
  218. public function isTraitable(): bool
  219. {
  220. return false;
  221. }
  222. /**
  223. * @codeCoverageIgnore
  224. */
  225. public function getDebugInfo(): array
  226. {
  227. 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,);
  228. }
  229. public function getSourceContext(): Source
  230. {
  231. return new Source("{% extends 'fe/base.html.twig' %}
  232. {% set seo = seoPage.seo %}
  233. {% use '@PNSeo/FrontEnd/seo.html.twig' %}
  234. {% import 'fe/macros.html.twig' as macros %}
  235. {% block criticalCSS %}
  236. {% include \"home/homePage/_critical_css.css.twig\" %}
  237. {% endblock %}
  238. {% block stylesheets %}
  239. {{ parent() }}
  240. {{ macros.assetCSS(asset('pages-assets/home/home.styles.css')) }}
  241. {% endblock %}
  242. {% block content %}
  243. {% include \"home/homePage/_header.html.twig\" %}
  244. {% include \"home/homePage/_info.html.twig\" %}
  245. {# <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>#}
  246. <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>
  247. <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>
  248. <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>
  249. <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>
  250. <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>
  251. {% if constant(\"App\\\\BaseBundle\\\\SystemConfiguration::ENABLE_COLLECTION\") %}
  252. <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>
  253. {% endif %}
  254. <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>
  255. <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>
  256. <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>
  257. {% endblock %}
  258. {% block javascripts %}
  259. {{ parent() }}
  260. {{ macros.assetCSS(asset('pages-assets/home/home.lazy.styles.css'), true) }}
  261. {{ macros.assetJS(asset('pages-assets/home/home.js')) }}
  262. {{ macros.assetJS(asset('pages-assets/home/home.lazy.js'), true) }}
  263. {% endblock %}
  264. ", "home/homePage/index.html.twig", "/var/www/esorus-shop/templates/home/homePage/index.html.twig");
  265. }
  266. }