var/cache/dev/twig/3c/3c5576891cb0aec6baaf09127661b514.php line 65

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. /* Content/Public/Page/show.html.twig */
  16. class __TwigTemplate_2850d31cc6292e70bfe6d7b05a26e8b3 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. $this->blocks = [
  28. 'translations' => [$this, 'block_translations'],
  29. 'seoKeywords' => [$this, 'block_seoKeywords'],
  30. 'seoDescription' => [$this, 'block_seoDescription'],
  31. 'title' => [$this, 'block_title'],
  32. 'body_class' => [$this, 'block_body_class'],
  33. 'stylesheets' => [$this, 'block_stylesheets'],
  34. 'body' => [$this, 'block_body'],
  35. 'slider' => [$this, 'block_slider'],
  36. ];
  37. }
  38. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  39. {
  40. // line 1
  41. return "base.html.twig";
  42. }
  43. protected function doDisplay(array $context, array $blocks = []): iterable
  44. {
  45. $macros = $this->macros;
  46. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Content/Public/Page/show.html.twig"));
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Content/Public/Page/show.html.twig"));
  50. // line 3
  51. $context["page"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["translation"]) || array_key_exists("translation", $context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.', 3, $this->source); })()), "translatable", [], "any", false, false, false, 3);
  52. // line 4
  53. $context["subTitle"] = 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.', 4, $this->source); })()), "session", [], "any", false, false, false, 4), "get", ["subtitle"], "method", false, false, false, 4);
  54. // line 1
  55. $this->parent = $this->loadTemplate("base.html.twig", "Content/Public/Page/show.html.twig", 1);
  56. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  59. }
  60. // line 6
  61. /**
  62. * @return iterable<null|scalar|\Stringable>
  63. */
  64. public function block_translations(array $context, array $blocks = []): iterable
  65. {
  66. $macros = $this->macros;
  67. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translations"));
  69. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "translations"));
  71. // line 7
  72. yield $this->extensions['App\Service\App\PublicTwig']->languagePickerFilter((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 7, $this->source); })()), "locale", "mdl_public_page_show", ["slug" => "slug"]);
  73. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  74. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75. yield from [];
  76. }
  77. // line 10
  78. /**
  79. * @return iterable<null|scalar|\Stringable>
  80. */
  81. public function block_seoKeywords(array $context, array $blocks = []): iterable
  82. {
  83. $macros = $this->macros;
  84. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  85. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seoKeywords"));
  86. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  87. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seoKeywords"));
  88. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Service\App\PublicTwig']->seoKeywordsFilter((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 10, $this->source); })())), "html", null, true);
  89. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  90. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  91. yield from [];
  92. }
  93. // line 11
  94. /**
  95. * @return iterable<null|scalar|\Stringable>
  96. */
  97. public function block_seoDescription(array $context, array $blocks = []): iterable
  98. {
  99. $macros = $this->macros;
  100. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  101. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seoDescription"));
  102. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  103. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seoDescription"));
  104. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Service\App\PublicTwig']->seoDescriptionFilter((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 11, $this->source); })())), "html", null, true);
  105. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  106. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  107. yield from [];
  108. }
  109. // line 13
  110. /**
  111. * @return iterable<null|scalar|\Stringable>
  112. */
  113. public function block_title(array $context, array $blocks = []): iterable
  114. {
  115. $macros = $this->macros;
  116. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  117. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  118. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  119. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  120. // line 14
  121. yield " ";
  122. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["translation"]) || array_key_exists("translation", $context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.', 14, $this->source); })()), "title", [], "any", false, false, false, 14), "html", null, true);
  123. // line 15
  124. if ((isset($context["subTitle"]) || array_key_exists("subTitle", $context) ? $context["subTitle"] : (function () { throw new RuntimeError('Variable "subTitle" does not exist.', 15, $this->source); })())) {
  125. yield " - ";
  126. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["subTitle"]) || array_key_exists("subTitle", $context) ? $context["subTitle"] : (function () { throw new RuntimeError('Variable "subTitle" does not exist.', 15, $this->source); })()), "html", null, true);
  127. }
  128. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  129. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  130. yield from [];
  131. }
  132. // line 18
  133. /**
  134. * @return iterable<null|scalar|\Stringable>
  135. */
  136. public function block_body_class(array $context, array $blocks = []): iterable
  137. {
  138. $macros = $this->macros;
  139. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  140. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_class"));
  141. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  142. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_class"));
  143. yield "page-";
  144. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["translation"]) || array_key_exists("translation", $context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.', 18, $this->source); })()), "slug", [], "any", false, false, false, 18), "html", null, true);
  145. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  146. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  147. yield from [];
  148. }
  149. // line 20
  150. /**
  151. * @return iterable<null|scalar|\Stringable>
  152. */
  153. public function block_stylesheets(array $context, array $blocks = []): iterable
  154. {
  155. $macros = $this->macros;
  156. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  157. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  158. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  159. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  160. // line 21
  161. yield " ";
  162. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  163. yield "
  164. ";
  165. // line 22
  166. if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 22, $this->source); })()), "style", [], "any", false, false, false, 22)) {
  167. // line 23
  168. yield " <style type=\"text/css\">";
  169. yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 23, $this->source); })()), "style", [], "any", false, false, false, 23);
  170. yield "</style>
  171. ";
  172. }
  173. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  174. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  175. yield from [];
  176. }
  177. // line 27
  178. /**
  179. * @return iterable<null|scalar|\Stringable>
  180. */
  181. public function block_body(array $context, array $blocks = []): iterable
  182. {
  183. $macros = $this->macros;
  184. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  185. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  186. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  187. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  188. // line 28
  189. yield " ";
  190. $context["featuredMedia"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["translation"]) || array_key_exists("translation", $context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.', 28, $this->source); })()), "featuredMedia", [], "any", false, false, false, 28);
  191. // line 29
  192. yield "
  193. <div class=\"container-fluid\">
  194. <div class=\"container\">
  195. <div class=\"content\">
  196. ";
  197. // line 33
  198. yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["translation"]) || array_key_exists("translation", $context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.', 33, $this->source); })()), "content", [], "any", false, false, false, 33);
  199. yield "
  200. </div>
  201. </div>
  202. </div>
  203. ";
  204. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  205. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  206. yield from [];
  207. }
  208. // line 38
  209. /**
  210. * @return iterable<null|scalar|\Stringable>
  211. */
  212. public function block_slider(array $context, array $blocks = []): iterable
  213. {
  214. $macros = $this->macros;
  215. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  216. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "slider"));
  217. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  218. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "slider"));
  219. // line 39
  220. yield " ";
  221. $context["featuredMedia"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["translation"]) || array_key_exists("translation", $context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.', 39, $this->source); })()), "featuredMedia", [], "any", false, false, false, 39);
  222. // line 40
  223. yield " ";
  224. yield from $this->loadTemplate("Content/Public/Page/slider.html.twig", "Content/Public/Page/show.html.twig", 40)->unwrap()->yield($context);
  225. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  226. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  227. yield from [];
  228. }
  229. /**
  230. * @codeCoverageIgnore
  231. */
  232. public function getTemplateName(): string
  233. {
  234. return "Content/Public/Page/show.html.twig";
  235. }
  236. /**
  237. * @codeCoverageIgnore
  238. */
  239. public function isTraitable(): bool
  240. {
  241. return false;
  242. }
  243. /**
  244. * @codeCoverageIgnore
  245. */
  246. public function getDebugInfo(): array
  247. {
  248. return array ( 288 => 40, 285 => 39, 272 => 38, 256 => 33, 250 => 29, 247 => 28, 234 => 27, 219 => 23, 217 => 22, 212 => 21, 199 => 20, 175 => 18, 161 => 15, 158 => 14, 145 => 13, 122 => 11, 99 => 10, 88 => 7, 75 => 6, 64 => 1, 62 => 4, 60 => 3, 47 => 1,);
  249. }
  250. public function getSourceContext(): Source
  251. {
  252. return new Source("{% extends 'base.html.twig' %}
  253. {% set page = translation.translatable %}
  254. {% set subTitle = app.session.get('subtitle') %}
  255. {% block translations -%}
  256. {{ page|languagePicker('locale', 'mdl_public_page_show', { 'slug': 'slug' }) }}
  257. {%- endblock %}
  258. {% block seoKeywords -%}{{ page|seo_keywords }}{%- endblock %}
  259. {% block seoDescription -%}{{ page|seo_description }}{%- endblock %}
  260. {% block title %}
  261. {{ translation.title }}
  262. {%- if subTitle %} - {{ subTitle }}{%- endif -%}
  263. {% endblock %}
  264. {% block body_class %}page-{{ translation.slug }}{% endblock %}
  265. {% block stylesheets %}
  266. {{ parent() }}
  267. {% if page.style %}
  268. <style type=\"text/css\">{{ page.style|raw }}</style>
  269. {% endif %}
  270. {% endblock %}
  271. {% block body %}
  272. {% set featuredMedia = translation.featuredMedia %}
  273. <div class=\"container-fluid\">
  274. <div class=\"container\">
  275. <div class=\"content\">
  276. {{ translation.content|raw }}
  277. </div>
  278. </div>
  279. </div>
  280. {% endblock %}
  281. {% block slider %}
  282. {% set featuredMedia = translation.featuredMedia %}
  283. {% include 'Content/Public/Page/slider.html.twig' %}
  284. {% endblock %}
  285. ", "Content/Public/Page/show.html.twig", "/var/www/rs.optima.staging/templates/Content/Public/Page/show.html.twig");
  286. }
  287. }