var/cache/dev/twig/18/188691877163badde6240e52106fd565.php line 42

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. /* @standard/pagelayout.html.twig */
  16. class __TwigTemplate_b924f5c0cd8dc57a1630f706a8569866 extends Netgen\Bundle\SiteBundle\Templating\Twig\DebugTemplate
  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->parent = false;
  28. $this->blocks = [
  29. 'meta' => [$this, 'block_meta'],
  30. 'stylesheets' => [$this, 'block_stylesheets'],
  31. 'content' => [$this, 'block_content'],
  32. 'javascripts' => [$this, 'block_javascripts'],
  33. ];
  34. }
  35. protected function doDisplay(array $context, array $blocks = []): iterable
  36. {
  37. $macros = $this->macros;
  38. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@standard/pagelayout.html.twig"));
  40. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@standard/pagelayout.html.twig"));
  42. // line 1
  43. yield "<!doctype html>
  44. <html lang=\"";
  45. // line 2
  46. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 2, $this->source); })()), "request", [], "any", false, false, false, 2), "locale", [], "any", false, false, false, 2), ["_" => "-"]), "html", null, true);
  47. yield "\">
  48. <head>
  49. <link rel=\"icon\" type=\"image/x-icon\" href=\"";
  50. // line 4
  51. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/ibexaadminui/img/favicon.ico"), "html", null, true);
  52. yield "\" />
  53. <meta charset=\"utf-8\">
  54. ";
  55. // line 7
  56. yield from $this->unwrap()->yieldBlock('meta', $context, $blocks);
  57. // line 8
  58. yield "
  59. ";
  60. // line 9
  61. if ((array_key_exists("content", $context) && !array_key_exists("title", $context))) {
  62. // line 10
  63. yield " ";
  64. $context["title"] = $this->extensions['Ibexa\Core\MVC\Symfony\Templating\Twig\Extension\ContentExtension']->getTranslatedContentName((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 10, $this->source); })()));
  65. // line 11
  66. yield " ";
  67. }
  68. // line 12
  69. yield " <title>";
  70. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("title", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 12, $this->source); })()), "Home")) : ("Home")), "html", null, true);
  71. yield "</title>
  72. <meta name=\"generator\" content=\"Exponential Platform DXP\"/>
  73. ";
  74. // line 14
  75. if ((array_key_exists("content", $context) && Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 14, $this->source); })()), "contentInfo", [], "any", false, false, false, 14), "mainLocationId", [], "any", false, false, false, 14))) {
  76. // line 15
  77. yield " <link rel=\"canonical\" href=\"";
  78. yield $this->extensions['Ibexa\Core\MVC\Symfony\Templating\Twig\Extension\RoutingExtension']->getPath((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 15, $this->source); })()));
  79. yield "\" />
  80. ";
  81. }
  82. // line 17
  83. yield "
  84. ";
  85. // line 18
  86. yield from $this->unwrap()->yieldBlock('stylesheets', $context, $blocks);
  87. // line 21
  88. yield "</head>
  89. <body>
  90. ";
  91. // line 23
  92. yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
  93. // line 25
  94. yield "
  95. ";
  96. // line 26
  97. yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);
  98. // line 29
  99. yield "</body>
  100. </html>
  101. ";
  102. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  103. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  104. yield from [];
  105. }
  106. // line 7
  107. /**
  108. * @return iterable<null|scalar|\Stringable>
  109. */
  110. public function block_meta(array $context, array $blocks = []): iterable
  111. {
  112. $macros = $this->macros;
  113. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  114. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
  115. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  116. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
  117. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  118. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  119. yield from [];
  120. }
  121. // line 18
  122. /**
  123. * @return iterable<null|scalar|\Stringable>
  124. */
  125. public function block_stylesheets(array $context, array $blocks = []): iterable
  126. {
  127. $macros = $this->macros;
  128. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  129. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  130. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  131. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  132. // line 19
  133. yield " ";
  134. yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  135. yield "
  136. ";
  137. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  138. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139. yield from [];
  140. }
  141. // line 23
  142. /**
  143. * @return iterable<null|scalar|\Stringable>
  144. */
  145. public function block_content(array $context, array $blocks = []): iterable
  146. {
  147. $macros = $this->macros;
  148. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  149. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  150. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  151. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  152. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  153. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  154. yield from [];
  155. }
  156. // line 26
  157. /**
  158. * @return iterable<null|scalar|\Stringable>
  159. */
  160. public function block_javascripts(array $context, array $blocks = []): iterable
  161. {
  162. $macros = $this->macros;
  163. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  164. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  165. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  166. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  167. // line 27
  168. yield " ";
  169. yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  170. yield "
  171. ";
  172. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  173. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  174. yield from [];
  175. }
  176. /**
  177. * @codeCoverageIgnore
  178. */
  179. public function getTemplateName(): string
  180. {
  181. return "@standard/pagelayout.html.twig";
  182. }
  183. /**
  184. * @codeCoverageIgnore
  185. */
  186. public function isTraitable(): bool
  187. {
  188. return false;
  189. }
  190. /**
  191. * @codeCoverageIgnore
  192. */
  193. public function getDebugInfo(): array
  194. {
  195. return array ( 206 => 27, 193 => 26, 171 => 23, 157 => 19, 144 => 18, 122 => 7, 109 => 29, 107 => 26, 104 => 25, 102 => 23, 98 => 21, 96 => 18, 93 => 17, 87 => 15, 85 => 14, 79 => 12, 76 => 11, 73 => 10, 71 => 9, 68 => 8, 66 => 7, 60 => 4, 55 => 2, 52 => 1,);
  196. }
  197. public function getSourceContext(): Source
  198. {
  199. return new Source("<!doctype html>
  200. <html lang=\"{{ app.request.locale|replace({'_': '-'}) }}\">
  201. <head>
  202. <link rel=\"icon\" type=\"image/x-icon\" href=\"{{ asset('bundles/ibexaadminui/img/favicon.ico') }}\" />
  203. <meta charset=\"utf-8\">
  204. {% block meta %}{% endblock %}
  205. {% if content is defined and title is not defined %}
  206. {% set title = ibexa_content_name( content ) %}
  207. {% endif %}
  208. <title>{{ title|default( 'Home' ) }}</title>
  209. <meta name=\"generator\" content=\"Exponential Platform DXP\"/>
  210. {% if content is defined and content.contentInfo.mainLocationId %}
  211. <link rel=\"canonical\" href=\"{{ ibexa_path(content) }}\" />
  212. {% endif %}
  213. {% block stylesheets %}
  214. {{ encore_entry_link_tags('app') }}
  215. {% endblock %}
  216. </head>
  217. <body>
  218. {% block content %}
  219. {% endblock %}
  220. {% block javascripts %}
  221. {{ encore_entry_script_tags('app') }}
  222. {% endblock %}
  223. </body>
  224. </html>
  225. ", "@standard/pagelayout.html.twig", "/var/www/vhosts/platformv4.alpha.se7enx.com/httpdocs/platformvlegacy4.alpha.se7enx.com/templates/themes/standard/pagelayout.html.twig");
  226. }
  227. }