var/cache/dev/twig/ed/ed04104cab0667a73e21b1f628a2ecde.php line 161

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. /* cms/frontEnd/blog/index.html.twig */
  16. class __TwigTemplate_aa2a9ed625fd68b6126c6fe441ffa0c3 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", "cms/frontEnd/blog/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", "cms/frontEnd/blog/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 7
  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 8
  78. yield " ";
  79. yield from $this->load("cms/frontEnd/blog/_critical_css.css.twig", 8)->unwrap()->yield($context);
  80. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  81. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  82. yield from [];
  83. }
  84. // line 11
  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 12
  96. yield " ";
  97. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  98. yield "
  99. ";
  100. // line 13
  101. yield $macros["͜macros"]->getTemplateForMacro("macro_assetCSS", $context, 13, $this->getSourceContext())->macro_assetCSS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/magazine/magazine.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 16
  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 17
  120. yield " ";
  121. $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);
  122. // line 18
  123. yield " ";
  124. $context["pageDescription"] = null;
  125. // line 19
  126. yield "
  127. ";
  128. // line 20
  129. yield from $this->load("fe/_pages_header.html.twig", 20)->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.', 20, $this->source); })()), "marginBottomZero" => true]));
  130. // line 21
  131. yield "
  132. <div class=\"l-lazy-section ui-lazy-section loading\"
  133. data-l-lazy-section=\"blogs\"
  134. data-l-lazy-section-type=\"simple\"
  135. data-l-lazy-section-url=\"";
  136. // line 28
  137. 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.', 28, $this->source); })()), "request", [], "any", false, false, false, 28), "attributes", [], "any", false, false, false, 28), "get", ["_route"], "method", false, false, false, 28), 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.', 28, $this->source); })()), "request", [], "any", false, false, false, 28), "attributes", [], "any", false, false, false, 28), "get", ["_route_params"], "method", false, false, false, 28), ["content" => true])), "html", null, true);
  138. yield "\"
  139. ></div>
  140. ";
  141. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  142. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  143. yield from [];
  144. }
  145. // line 33
  146. /**
  147. * @return iterable<null|scalar|\Stringable>
  148. */
  149. public function block_javascripts(array $context, array $blocks = []): iterable
  150. {
  151. $macros = $this->macros;
  152. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  153. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  154. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  155. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  156. // line 34
  157. yield " ";
  158. yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  159. yield "
  160. ";
  161. // line 35
  162. yield $macros["͜macros"]->getTemplateForMacro("macro_assetCSS", $context, 35, $this->getSourceContext())->macro_assetCSS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/magazine/magazine.lazy.styles.css"), true]);
  163. yield "
  164. ";
  165. // line 37
  166. yield $macros["͜macros"]->getTemplateForMacro("macro_assetJS", $context, 37, $this->getSourceContext())->macro_assetJS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/magazine/magazine.js")]);
  167. yield "
  168. ";
  169. // line 38
  170. yield $macros["͜macros"]->getTemplateForMacro("macro_assetJS", $context, 38, $this->getSourceContext())->macro_assetJS(...[$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("pages-assets/magazine/magazine.lazy.js"), true]);
  171. yield "
  172. ";
  173. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  174. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  175. yield from [];
  176. }
  177. /**
  178. * @codeCoverageIgnore
  179. */
  180. public function getTemplateName(): string
  181. {
  182. return "cms/frontEnd/blog/index.html.twig";
  183. }
  184. /**
  185. * @codeCoverageIgnore
  186. */
  187. public function isTraitable(): bool
  188. {
  189. return false;
  190. }
  191. /**
  192. * @codeCoverageIgnore
  193. */
  194. public function getDebugInfo(): array
  195. {
  196. return array ( 214 => 38, 210 => 37, 205 => 35, 200 => 34, 187 => 33, 172 => 28, 163 => 21, 161 => 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,);
  197. }
  198. public function getSourceContext(): Source
  199. {
  200. return new Source("{% extends 'fe/base.html.twig' %}
  201. {% set seo = seoPage.seo %}
  202. {% use '@PNSeo/FrontEnd/seo.html.twig' %}
  203. {% import 'fe/macros.html.twig' as macros %}
  204. {% block criticalCSS %}
  205. {% include \"cms/frontEnd/blog/_critical_css.css.twig\" %}
  206. {% endblock %}
  207. {% block stylesheets %}
  208. {{ parent() }}
  209. {{ macros.assetCSS(asset('pages-assets/magazine/magazine.styles.css')) }}
  210. {% endblock %}
  211. {% block content %}
  212. {% set pageTitle = seoPage.seo.title %}
  213. {% set pageDescription = null %}
  214. {% include \"fe/_pages_header.html.twig\" with {\"pageTitle\": pageTitle, \"marginBottomZero\": true } %}
  215. <div class=\"l-lazy-section ui-lazy-section loading\"
  216. data-l-lazy-section=\"blogs\"
  217. data-l-lazy-section-type=\"simple\"
  218. data-l-lazy-section-url=\"{{ path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')|merge({'content':true})) }}\"
  219. ></div>
  220. {% endblock %}
  221. {% block javascripts %}
  222. {{ parent() }}
  223. {{ macros.assetCSS(asset('pages-assets/magazine/magazine.lazy.styles.css'), true) }}
  224. {{ macros.assetJS(asset('pages-assets/magazine/magazine.js')) }}
  225. {{ macros.assetJS(asset('pages-assets/magazine/magazine.lazy.js'), true) }}
  226. {% endblock %}
  227. ", "cms/frontEnd/blog/index.html.twig", "/var/www/esorus-shop/templates/cms/frontEnd/blog/index.html.twig");
  228. }
  229. }