var/cache/dev/twig/41/416d66576eb6ebdd8b8c8a5dcf27b7c2.php line 120

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. /* layouts/common/default.html.twig */
  16. class __TwigTemplate_37e7dde2275f3f2c3e1d7232bd75fadb 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->parent = false;
  28. $this->blocks = [
  29. 'head_scripts_requirements' => [$this, 'block_head_scripts_requirements'],
  30. 'content' => [$this, 'block_content'],
  31. 'body_end_scripts_requirements' => [$this, 'block_body_end_scripts_requirements'],
  32. ];
  33. }
  34. protected function doDisplay(array $context, array $blocks = []): iterable
  35. {
  36. $macros = $this->macros;
  37. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layouts/common/default.html.twig"));
  39. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layouts/common/default.html.twig"));
  41. // line 1
  42. yield "<!DOCTYPE html>
  43. <html lang=\"";
  44. // line 2
  45. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 2, $this->source); })()), "request", [], "any", false, false, false, 2), "locale", [], "any", false, false, false, 2), "html", null, true);
  46. yield "\">
  47. <head>
  48. ";
  49. // line 4
  50. $context["pageAttributes"] = ((array_key_exists("pageAttributes", $context)) ? ((isset($context["pageAttributes"]) || array_key_exists("pageAttributes", $context) ? $context["pageAttributes"] : (function () { throw new RuntimeError('Variable "pageAttributes" does not exist.', 4, $this->source); })())) : (["group" => "common", "section" => ((array_key_exists("pageSection", $context)) ? ((isset($context["pageSection"]) || array_key_exists("pageSection", $context) ? $context["pageSection"] : (function () { throw new RuntimeError('Variable "pageSection" does not exist.', 4, $this->source); })())) : ("unknown"))]));
  51. // line 5
  52. yield " ";
  53. yield from $this->load("includes/common/head.html.twig", 5)->unwrap()->yield($context);
  54. // line 6
  55. if ((CoreExtension::getAttribute($this->env, $this->source, ($context["pageAttributes"] ?? null), "section", [], "any", true, true, false, 6) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageAttributes"]) || array_key_exists("pageAttributes", $context) ? $context["pageAttributes"] : (function () { throw new RuntimeError('Variable "pageAttributes" does not exist.', 6, $this->source); })()), "section", [], "any", false, false, false, 6) == "sim"))) {
  56. // line 7
  57. yield " ";
  58. yield from $this->load("includes/sim/stylesheets.html.twig", 7)->unwrap()->yield($context);
  59. }
  60. // line 9
  61. yield from $this->unwrap()->yieldBlock('head_scripts_requirements', $context, $blocks);
  62. // line 10
  63. if ((array_key_exists("paymentScripts", $context) && (isset($context["paymentScripts"]) || array_key_exists("paymentScripts", $context) ? $context["paymentScripts"] : (function () { throw new RuntimeError('Variable "paymentScripts" does not exist.', 10, $this->source); })()))) {
  64. // line 11
  65. yield " ";
  66. yield from $this->load("includes/ticketing/payment-scripts.html.twig", 11)->unwrap()->yield($context);
  67. }
  68. // line 13
  69. yield "</head>
  70. <body class=\"is-Layout_Common_Default is-Layout_WithNavMenu ";
  71. // line 14
  72. yield ((CoreExtension::getAttribute($this->env, $this->source, ($context["pageAttributes"] ?? null), "bodyClasses", [], "any", true, true, false, 14)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((" " . CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageAttributes"]) || array_key_exists("pageAttributes", $context) ? $context["pageAttributes"] : (function () { throw new RuntimeError('Variable "pageAttributes" does not exist.', 14, $this->source); })()), "bodyClasses", [], "any", false, false, false, 14)), "html", null, true)) : (""));
  73. yield (((array_key_exists("display_mode", $context) && ((isset($context["display_mode"]) || array_key_exists("display_mode", $context) ? $context["display_mode"] : (function () { throw new RuntimeError('Variable "display_mode" does not exist.', 14, $this->source); })()) == Twig\Extension\CoreExtension::constant("App\\EventSubscriber\\TwigGlobalSubscriber::DISPLAY_MODE_WEBVIEW")))) ? (" is-Layout_WebView") : (""));
  74. yield "\">
  75. ";
  76. // line 15
  77. yield from $this->load("includes/common/accessibility-quick-links.twig", 15)->unwrap()->yield($context);
  78. // line 16
  79. yield from $this->load("includes/common/body-begin-scripts.html.twig", 16)->unwrap()->yield($context);
  80. // line 17
  81. yield "<div id=\"body\">
  82. ";
  83. // line 18
  84. yield from $this->load("includes/common/default-header.html.twig", 18)->unwrap()->yield($context);
  85. // line 19
  86. yield " <div class=\"is-container\" id=\"is-Content\">
  87. ";
  88. // line 20
  89. yield from $this->load("includes/common/mask.html.twig", 20)->unwrap()->yield(CoreExtension::merge($context, ["global" => true, "id" => "is-Global-Mask"]));
  90. // line 21
  91. if (((((isset($context["display_mode"]) || array_key_exists("display_mode", $context) ? $context["display_mode"] : (function () { throw new RuntimeError('Variable "display_mode" does not exist.', 21, $this->source); })()) != Twig\Extension\CoreExtension::constant("App\\EventSubscriber\\TwigGlobalSubscriber::DISPLAY_MODE_WEBVIEW")) && array_key_exists("steps", $context)) && !Twig\Extension\CoreExtension::testEmpty((isset($context["steps"]) || array_key_exists("steps", $context) ? $context["steps"] : (function () { throw new RuntimeError('Variable "steps" does not exist.', 21, $this->source); })())))) {
  92. // line 22
  93. yield " <div class=\"is-text-center\">
  94. ";
  95. // line 23
  96. yield from $this->load("includes/ticketing/header-steps.html.twig", 23)->unwrap()->yield($context);
  97. // line 24
  98. yield " </div>
  99. ";
  100. }
  101. // line 26
  102. yield " <main id=\"is-Main\" role=\"main\" tabindex=\"-1\">
  103. ";
  104. // line 27
  105. yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
  106. // line 28
  107. yield " </main>
  108. </div>
  109. ";
  110. // line 30
  111. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\PageController::getFooterAction", ["filigree" => ((array_key_exists("filigree", $context)) ? ((isset($context["filigree"]) || array_key_exists("filigree", $context) ? $context["filigree"] : (function () { throw new RuntimeError('Variable "filigree" does not exist.', 30, $this->source); })())) : (false))]));
  112. yield "
  113. </div>
  114. ";
  115. // line 32
  116. if ((($tmp = !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  117. // line 33
  118. yield " ";
  119. yield from $this->load("pages/account/userLogin.html.twig", 33)->unwrap()->yield($context);
  120. }
  121. // line 35
  122. yield "
  123. ";
  124. // line 36
  125. if (( !array_key_exists("isPdfPrint", $context) || ((isset($context["isPdfPrint"]) || array_key_exists("isPdfPrint", $context) ? $context["isPdfPrint"] : (function () { throw new RuntimeError('Variable "isPdfPrint" does not exist.', 36, $this->source); })()) == false))) {
  126. // line 37
  127. yield " ";
  128. yield from $this->load("includes/common/default-nav.html.twig", 37)->unwrap()->yield($context);
  129. }
  130. // line 40
  131. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageAttributes"]) || array_key_exists("pageAttributes", $context) ? $context["pageAttributes"] : (function () { throw new RuntimeError('Variable "pageAttributes" does not exist.', 40, $this->source); })()), "section", [], "any", false, false, false, 40) == "sim")) {
  132. // line 41
  133. yield " ";
  134. yield from $this->load("includes/sim/body-end-scripts.html.twig", 41)->unwrap()->yield($context);
  135. }
  136. // line 43
  137. yield from $this->unwrap()->yieldBlock('body_end_scripts_requirements', $context, $blocks);
  138. // line 44
  139. yield "</body>
  140. </html>
  141. ";
  142. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  143. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  144. yield from [];
  145. }
  146. // line 9
  147. /**
  148. * @return iterable<null|scalar|\Stringable>
  149. */
  150. public function block_head_scripts_requirements(array $context, array $blocks = []): iterable
  151. {
  152. $macros = $this->macros;
  153. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  154. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_scripts_requirements"));
  155. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  156. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_scripts_requirements"));
  157. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  158. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  159. yield from [];
  160. }
  161. // line 27
  162. /**
  163. * @return iterable<null|scalar|\Stringable>
  164. */
  165. public function block_content(array $context, array $blocks = []): iterable
  166. {
  167. $macros = $this->macros;
  168. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  169. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  170. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  171. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  172. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  173. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  174. yield from [];
  175. }
  176. // line 43
  177. /**
  178. * @return iterable<null|scalar|\Stringable>
  179. */
  180. public function block_body_end_scripts_requirements(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", "body_end_scripts_requirements"));
  185. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  186. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_end_scripts_requirements"));
  187. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  188. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  189. yield from [];
  190. }
  191. /**
  192. * @codeCoverageIgnore
  193. */
  194. public function getTemplateName(): string
  195. {
  196. return "layouts/common/default.html.twig";
  197. }
  198. /**
  199. * @codeCoverageIgnore
  200. */
  201. public function isTraitable(): bool
  202. {
  203. return false;
  204. }
  205. /**
  206. * @codeCoverageIgnore
  207. */
  208. public function getDebugInfo(): array
  209. {
  210. return array ( 205 => 43, 183 => 27, 161 => 9, 148 => 44, 146 => 43, 142 => 41, 140 => 40, 136 => 37, 134 => 36, 131 => 35, 127 => 33, 125 => 32, 120 => 30, 116 => 28, 114 => 27, 111 => 26, 107 => 24, 105 => 23, 102 => 22, 100 => 21, 98 => 20, 95 => 19, 93 => 18, 90 => 17, 88 => 16, 86 => 15, 81 => 14, 78 => 13, 74 => 11, 72 => 10, 70 => 9, 66 => 7, 64 => 6, 61 => 5, 59 => 4, 54 => 2, 51 => 1,);
  211. }
  212. public function getSourceContext(): Source
  213. {
  214. return new Source("<!DOCTYPE html>
  215. <html lang=\"{{ app.request.locale }}\">
  216. <head>
  217. {% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'common', section: (pageSection is defined ? pageSection : 'unknown') } %}
  218. {% include 'includes/common/head.html.twig' %}
  219. {% if pageAttributes.section is defined and pageAttributes.section == 'sim' %}
  220. {% include 'includes/sim/stylesheets.html.twig' %}
  221. {% endif %}
  222. {% block head_scripts_requirements %}{% endblock %}
  223. {% if paymentScripts is defined and paymentScripts %}
  224. {% include 'includes/ticketing/payment-scripts.html.twig' %}
  225. {% endif %}
  226. </head>
  227. <body class=\"is-Layout_Common_Default is-Layout_WithNavMenu {{ pageAttributes.bodyClasses is defined ? ' ' ~ pageAttributes.bodyClasses : '' }}{{ (display_mode is defined and display_mode == constant('App\\\\EventSubscriber\\\\TwigGlobalSubscriber::DISPLAY_MODE_WEBVIEW')) ? ' is-Layout_WebView' : '' }}\">
  228. {% include 'includes/common/accessibility-quick-links.twig' %}
  229. {% include 'includes/common/body-begin-scripts.html.twig' %}
  230. <div id=\"body\">
  231. {% include 'includes/common/default-header.html.twig' %}
  232. <div class=\"is-container\" id=\"is-Content\">
  233. {% include 'includes/common/mask.html.twig' with {global: true, id:'is-Global-Mask'} %}
  234. {% if display_mode != constant('App\\\\EventSubscriber\\\\TwigGlobalSubscriber::DISPLAY_MODE_WEBVIEW') and steps is defined and steps is not empty %}
  235. <div class=\"is-text-center\">
  236. {% include 'includes/ticketing/header-steps.html.twig' %}
  237. </div>
  238. {% endif %}
  239. <main id=\"is-Main\" role=\"main\" tabindex=\"-1\">
  240. {% block content %}{% endblock %}
  241. </main>
  242. </div>
  243. {{ render(controller('App\\\\Controller\\\\PageController::getFooterAction', { 'filigree': (filigree is defined) ? filigree : false } )) }}
  244. </div>
  245. {% if not is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  246. {% include 'pages/account/userLogin.html.twig' %}
  247. {% endif %}
  248. {% if (isPdfPrint is not defined or isPdfPrint == false) %}
  249. {% include 'includes/common/default-nav.html.twig' %}
  250. {% endif %}
  251. {# Include plugins, utils, etc. files #}
  252. {% if pageAttributes.section == 'sim' %}
  253. {% include 'includes/sim/body-end-scripts.html.twig' %}
  254. {% endif %}
  255. {% block body_end_scripts_requirements %}{% endblock %}
  256. </body>
  257. </html>
  258. ", "layouts/common/default.html.twig", "/var/www/html/templates/layouts/common/default.html.twig");
  259. }
  260. }