var/cache/dev/twig/03/039d0bcf8561574c503f8a89aa47a609.php line 114

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/sim/default.html.twig */
  16. class __TwigTemplate_2c3c2745d2026e690bbb9a61491e63b1 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/sim/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/sim/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" => "sim", "section" => "sim"]));
  51. // line 5
  52. yield " ";
  53. yield from $this->load("includes/common/head.html.twig", 5)->unwrap()->yield($context);
  54. // line 6
  55. yield " ";
  56. yield from $this->load("includes/sim/stylesheets.html.twig", 6)->unwrap()->yield($context);
  57. // line 7
  58. yield " ";
  59. yield from $this->load("includes/sim/head-scripts.html.twig", 7)->unwrap()->yield($context);
  60. // line 8
  61. yield " ";
  62. if ((array_key_exists("ios_app_id", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["ios_app_id"]) || array_key_exists("ios_app_id", $context) ? $context["ios_app_id"] : (function () { throw new RuntimeError('Variable "ios_app_id" does not exist.', 8, $this->source); })())))) {
  63. // line 9
  64. yield " <meta name=\"apple-itunes-app\" content=\"app-id=";
  65. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["ios_app_id"]) || array_key_exists("ios_app_id", $context) ? $context["ios_app_id"] : (function () { throw new RuntimeError('Variable "ios_app_id" does not exist.', 9, $this->source); })()), "html", null, true);
  66. yield "\">
  67. ";
  68. }
  69. // line 11
  70. yield " ";
  71. if ((array_key_exists("android_app_id", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["android_app_id"]) || array_key_exists("android_app_id", $context) ? $context["android_app_id"] : (function () { throw new RuntimeError('Variable "android_app_id" does not exist.', 11, $this->source); })())))) {
  72. // line 12
  73. yield " <meta name=\"google-play-app\" content=\"app-id=";
  74. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["android_app_id"]) || array_key_exists("android_app_id", $context) ? $context["android_app_id"] : (function () { throw new RuntimeError('Variable "android_app_id" does not exist.', 12, $this->source); })()), "html", null, true);
  75. yield "\">
  76. ";
  77. }
  78. // line 14
  79. yield " ";
  80. yield from $this->unwrap()->yieldBlock('head_scripts_requirements', $context, $blocks);
  81. // line 15
  82. yield "</head>
  83. <body class=\"is-Layout_SIM_Default";
  84. // line 16
  85. 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.', 16, $this->source); })()) == Twig\Extension\CoreExtension::constant("App\\EventSubscriber\\TwigGlobalSubscriber::DISPLAY_MODE_WEBVIEW")))) ? (" is-Layout_WebView") : (""));
  86. yield "\">
  87. ";
  88. // line 17
  89. yield from $this->load("includes/common/accessibility-quick-links.twig", 17)->unwrap()->yield($context);
  90. // line 18
  91. yield from $this->load("includes/common/body-begin-scripts.html.twig", 18)->unwrap()->yield($context);
  92. // line 19
  93. yield "<div id=\"body\" role=\"presentation\">
  94. ";
  95. // line 20
  96. 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.', 20, $this->source); })()) == false)) && ( !array_key_exists("isWithoutHeader", $context) || ((isset($context["isWithoutHeader"]) || array_key_exists("isWithoutHeader", $context) ? $context["isWithoutHeader"] : (function () { throw new RuntimeError('Variable "isWithoutHeader" does not exist.', 20, $this->source); })()) == false)))) {
  97. // line 21
  98. yield " ";
  99. yield from $this->load("includes/common/default-header.html.twig", 21)->unwrap()->yield($context);
  100. // line 22
  101. yield " ";
  102. }
  103. // line 23
  104. yield " ";
  105. yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
  106. // line 24
  107. yield " ";
  108. yield from $this->load("pages/sim/include/booking/modal-booking-securebikepark.html.twig", 24)->unwrap()->yield($context);
  109. // line 25
  110. yield " ";
  111. yield from $this->load("includes/common/default-footer.html.twig", 25)->unwrap()->yield($context);
  112. // line 26
  113. yield "
  114. </div>
  115. ";
  116. // line 28
  117. 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.', 28, $this->source); })()) == false))) {
  118. // line 29
  119. yield " ";
  120. yield from $this->load("includes/common/default-nav.html.twig", 29)->unwrap()->yield($context);
  121. }
  122. // line 32
  123. 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.', 32, $this->source); })()) == true))) {
  124. // line 33
  125. yield " ";
  126. yield from $this->load("includes/sim/body-end-print-scripts.html.twig", 33)->unwrap()->yield($context);
  127. } else {
  128. // line 35
  129. yield " ";
  130. yield from $this->load("includes/sim/body-end-scripts.html.twig", 35)->unwrap()->yield($context);
  131. }
  132. // line 37
  133. yield from $this->unwrap()->yieldBlock('body_end_scripts_requirements', $context, $blocks);
  134. // line 38
  135. yield "</body>
  136. </html>
  137. ";
  138. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140. yield from [];
  141. }
  142. // line 14
  143. /**
  144. * @return iterable<null|scalar|\Stringable>
  145. */
  146. public function block_head_scripts_requirements(array $context, array $blocks = []): iterable
  147. {
  148. $macros = $this->macros;
  149. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  150. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_scripts_requirements"));
  151. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  152. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_scripts_requirements"));
  153. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  154. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  155. yield from [];
  156. }
  157. // line 23
  158. /**
  159. * @return iterable<null|scalar|\Stringable>
  160. */
  161. public function block_content(array $context, array $blocks = []): iterable
  162. {
  163. $macros = $this->macros;
  164. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  165. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  166. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  167. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  168. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  169. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  170. yield from [];
  171. }
  172. // line 37
  173. /**
  174. * @return iterable<null|scalar|\Stringable>
  175. */
  176. public function block_body_end_scripts_requirements(array $context, array $blocks = []): iterable
  177. {
  178. $macros = $this->macros;
  179. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  180. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_end_scripts_requirements"));
  181. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  182. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_end_scripts_requirements"));
  183. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  184. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  185. yield from [];
  186. }
  187. /**
  188. * @codeCoverageIgnore
  189. */
  190. public function getTemplateName(): string
  191. {
  192. return "layouts/sim/default.html.twig";
  193. }
  194. /**
  195. * @codeCoverageIgnore
  196. */
  197. public function isTraitable(): bool
  198. {
  199. return false;
  200. }
  201. /**
  202. * @codeCoverageIgnore
  203. */
  204. public function getDebugInfo(): array
  205. {
  206. return array ( 201 => 37, 179 => 23, 157 => 14, 144 => 38, 142 => 37, 138 => 35, 134 => 33, 132 => 32, 128 => 29, 126 => 28, 122 => 26, 119 => 25, 116 => 24, 113 => 23, 110 => 22, 107 => 21, 105 => 20, 102 => 19, 100 => 18, 98 => 17, 94 => 16, 91 => 15, 88 => 14, 82 => 12, 79 => 11, 73 => 9, 70 => 8, 67 => 7, 64 => 6, 61 => 5, 59 => 4, 54 => 2, 51 => 1,);
  207. }
  208. public function getSourceContext(): Source
  209. {
  210. return new Source("<!DOCTYPE html>
  211. <html lang=\"{{ app.request.locale }}\">
  212. <head>
  213. {% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'sim', section: 'sim' } %}
  214. {% include 'includes/common/head.html.twig' %}
  215. {% include 'includes/sim/stylesheets.html.twig' %}
  216. {% include 'includes/sim/head-scripts.html.twig' %}
  217. {% if ios_app_id is defined and ios_app_id is not empty %}
  218. <meta name=\"apple-itunes-app\" content=\"app-id={{ ios_app_id }}\">
  219. {% endif %}
  220. {% if android_app_id is defined and android_app_id is not empty %}
  221. <meta name=\"google-play-app\" content=\"app-id={{ android_app_id }}\">
  222. {% endif %}
  223. {% block head_scripts_requirements %}{% endblock %}
  224. </head>
  225. <body class=\"is-Layout_SIM_Default{{ (display_mode is defined and display_mode == constant('App\\\\EventSubscriber\\\\TwigGlobalSubscriber::DISPLAY_MODE_WEBVIEW')) ? ' is-Layout_WebView' : '' }}\">
  226. {% include 'includes/common/accessibility-quick-links.twig' %}
  227. {% include 'includes/common/body-begin-scripts.html.twig' %}
  228. <div id=\"body\" role=\"presentation\">
  229. {% if (isPdfPrint is not defined or isPdfPrint == false) and (isWithoutHeader is not defined or isWithoutHeader == false) %}
  230. {% include 'includes/common/default-header.html.twig' %}
  231. {% endif %}
  232. {% block content %}{% endblock %}
  233. {% include 'pages/sim/include/booking/modal-booking-securebikepark.html.twig' %}
  234. {% include 'includes/common/default-footer.html.twig' %}
  235. </div>
  236. {% if isPdfPrint is not defined or isPdfPrint == false %}
  237. {% include 'includes/common/default-nav.html.twig' %}
  238. {% endif %}
  239. {# Include plugins, utils, etc. files #}
  240. {% if isPdfPrint is defined and isPdfPrint == true %}
  241. {% include 'includes/sim/body-end-print-scripts.html.twig' %}
  242. {% else %}
  243. {% include 'includes/sim/body-end-scripts.html.twig' %}
  244. {% endif %}
  245. {% block body_end_scripts_requirements %}{% endblock %}
  246. </body>
  247. </html>
  248. ", "layouts/sim/default.html.twig", "/var/www/html/templates/layouts/sim/default.html.twig");
  249. }
  250. }