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

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. 'footer_positioning_mobile' => [$this, 'block_footer_positioning_mobile'],
  31. 'footer_positioning_desktop' => [$this, 'block_footer_positioning_desktop'],
  32. 'content' => [$this, 'block_content'],
  33. 'body_end_scripts_requirements' => [$this, 'block_body_end_scripts_requirements'],
  34. ];
  35. }
  36. protected function doDisplay(array $context, array $blocks = []): iterable
  37. {
  38. $macros = $this->macros;
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layouts/sim/default.html.twig"));
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layouts/sim/default.html.twig"));
  43. // line 1
  44. yield "<!DOCTYPE html>
  45. <html lang=\"";
  46. // line 2
  47. 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);
  48. yield "\">
  49. <head>
  50. ";
  51. // line 4
  52. $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"]));
  53. // line 5
  54. yield " ";
  55. yield from $this->load("includes/common/head.html.twig", 5)->unwrap()->yield($context);
  56. // line 6
  57. yield " ";
  58. yield from $this->load("includes/sim/stylesheets.html.twig", 6)->unwrap()->yield($context);
  59. // line 7
  60. yield " ";
  61. yield from $this->load("includes/sim/head-scripts.html.twig", 7)->unwrap()->yield($context);
  62. // line 8
  63. yield " ";
  64. 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); })())))) {
  65. // line 9
  66. yield " <meta name=\"apple-itunes-app\" content=\"app-id=";
  67. 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);
  68. yield "\">
  69. ";
  70. }
  71. // line 11
  72. yield " ";
  73. 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); })())))) {
  74. // line 12
  75. yield " <meta name=\"google-play-app\" content=\"app-id=";
  76. 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);
  77. yield "\">
  78. ";
  79. }
  80. // line 14
  81. yield " ";
  82. yield from $this->unwrap()->yieldBlock('head_scripts_requirements', $context, $blocks);
  83. // line 15
  84. yield "</head>
  85. <body class=\"is-Layout_SIM_Default";
  86. // line 16
  87. 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") : (""));
  88. yield "\">
  89. ";
  90. // line 17
  91. yield from $this->load("includes/common/accessibility-quick-links.twig", 17)->unwrap()->yield($context);
  92. // line 18
  93. yield from $this->load("includes/common/body-begin-scripts.html.twig", 18)->unwrap()->yield($context);
  94. // line 19
  95. yield "<div id=\"body\" role=\"presentation\">
  96. ";
  97. // line 22
  98. yield " <!--";
  99. yield from $this->unwrap()->yieldBlock('footer_positioning_mobile', $context, $blocks);
  100. yield "-->
  101. <!--";
  102. // line 23
  103. yield from $this->unwrap()->yieldBlock('footer_positioning_desktop', $context, $blocks);
  104. yield "-->
  105. ";
  106. // line 24
  107. if ((array_key_exists("enable_web_harmony", $context) && ((isset($context["enable_web_harmony"]) || array_key_exists("enable_web_harmony", $context) ? $context["enable_web_harmony"] : (function () { throw new RuntimeError('Variable "enable_web_harmony" does not exist.', 24, $this->source); })()) == true))) {
  108. // line 25
  109. yield " ";
  110. yield from $this->load("includes/common/web-harmony.html.twig", 25)->unwrap()->yield(CoreExtension::merge($context, ["footer_positioning_mobile" => $this->unwrap()->renderBlock("footer_positioning_mobile", $context, $blocks), "footer_positioning_desktop" => $this->unwrap()->renderBlock("footer_positioning_desktop", $context, $blocks)]));
  111. // line 29
  112. yield " ";
  113. } elseif ((( !array_key_exists("isPdfPrint", $context) || ((isset($context["isPdfPrint"]) || array_key_exists("isPdfPrint", $context) ? $context["isPdfPrint"] : (function () { throw new RuntimeError('Variable "isPdfPrint" does not exist.', 29, $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.', 29, $this->source); })()) == false)))) {
  114. // line 30
  115. yield " ";
  116. yield from $this->load("includes/common/default-header.html.twig", 30)->unwrap()->yield($context);
  117. // line 31
  118. yield " ";
  119. }
  120. // line 32
  121. yield " ";
  122. yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
  123. // line 33
  124. yield " ";
  125. yield from $this->load("pages/sim/include/booking/modal-booking-securebikepark.html.twig", 33)->unwrap()->yield($context);
  126. // line 34
  127. yield " ";
  128. if ((array_key_exists("enable_web_harmony", $context) && ((isset($context["enable_web_harmony"]) || array_key_exists("enable_web_harmony", $context) ? $context["enable_web_harmony"] : (function () { throw new RuntimeError('Variable "enable_web_harmony" does not exist.', 34, $this->source); })()) == false))) {
  129. // line 35
  130. yield " ";
  131. yield from $this->load("includes/common/default-footer.html.twig", 35)->unwrap()->yield($context);
  132. // line 36
  133. yield " ";
  134. }
  135. // line 37
  136. yield "</div>
  137. ";
  138. // line 38
  139. 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.', 38, $this->source); })()) == false) && ((isset($context["enable_web_harmony"]) || array_key_exists("enable_web_harmony", $context) ? $context["enable_web_harmony"] : (function () { throw new RuntimeError('Variable "enable_web_harmony" does not exist.', 38, $this->source); })()) == false)))) {
  140. // line 39
  141. yield " ";
  142. yield from $this->load("includes/common/default-nav.html.twig", 39)->unwrap()->yield($context);
  143. }
  144. // line 42
  145. 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.', 42, $this->source); })()) == true))) {
  146. // line 43
  147. yield " ";
  148. yield from $this->load("includes/sim/body-end-print-scripts.html.twig", 43)->unwrap()->yield($context);
  149. } else {
  150. // line 45
  151. yield " ";
  152. yield from $this->load("includes/sim/body-end-scripts.html.twig", 45)->unwrap()->yield($context);
  153. }
  154. // line 47
  155. yield from $this->unwrap()->yieldBlock('body_end_scripts_requirements', $context, $blocks);
  156. // line 48
  157. yield "</body>
  158. </html>
  159. ";
  160. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  161. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  162. yield from [];
  163. }
  164. // line 14
  165. /**
  166. * @return iterable<null|scalar|\Stringable>
  167. */
  168. public function block_head_scripts_requirements(array $context, array $blocks = []): iterable
  169. {
  170. $macros = $this->macros;
  171. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  172. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_scripts_requirements"));
  173. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  174. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_scripts_requirements"));
  175. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  176. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  177. yield from [];
  178. }
  179. // line 22
  180. /**
  181. * @return iterable<null|scalar|\Stringable>
  182. */
  183. public function block_footer_positioning_mobile(array $context, array $blocks = []): iterable
  184. {
  185. $macros = $this->macros;
  186. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  187. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_positioning_mobile"));
  188. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  189. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_positioning_mobile"));
  190. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  191. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  192. yield from [];
  193. }
  194. // line 23
  195. /**
  196. * @return iterable<null|scalar|\Stringable>
  197. */
  198. public function block_footer_positioning_desktop(array $context, array $blocks = []): iterable
  199. {
  200. $macros = $this->macros;
  201. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  202. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_positioning_desktop"));
  203. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  204. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_positioning_desktop"));
  205. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  206. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  207. yield from [];
  208. }
  209. // line 32
  210. /**
  211. * @return iterable<null|scalar|\Stringable>
  212. */
  213. public function block_content(array $context, array $blocks = []): iterable
  214. {
  215. $macros = $this->macros;
  216. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  217. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  218. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  219. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  220. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  221. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  222. yield from [];
  223. }
  224. // line 47
  225. /**
  226. * @return iterable<null|scalar|\Stringable>
  227. */
  228. public function block_body_end_scripts_requirements(array $context, array $blocks = []): iterable
  229. {
  230. $macros = $this->macros;
  231. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  232. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_end_scripts_requirements"));
  233. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  234. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_end_scripts_requirements"));
  235. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  236. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  237. yield from [];
  238. }
  239. /**
  240. * @codeCoverageIgnore
  241. */
  242. public function getTemplateName(): string
  243. {
  244. return "layouts/sim/default.html.twig";
  245. }
  246. /**
  247. * @codeCoverageIgnore
  248. */
  249. public function isTraitable(): bool
  250. {
  251. return false;
  252. }
  253. /**
  254. * @codeCoverageIgnore
  255. */
  256. public function getDebugInfo(): array
  257. {
  258. return array ( 267 => 47, 245 => 32, 223 => 23, 201 => 22, 179 => 14, 166 => 48, 164 => 47, 160 => 45, 156 => 43, 154 => 42, 150 => 39, 148 => 38, 145 => 37, 142 => 36, 139 => 35, 136 => 34, 133 => 33, 130 => 32, 127 => 31, 124 => 30, 121 => 29, 118 => 25, 116 => 24, 112 => 23, 107 => 22, 104 => 19, 102 => 18, 100 => 17, 96 => 16, 93 => 15, 90 => 14, 84 => 12, 81 => 11, 75 => 9, 72 => 8, 69 => 7, 66 => 6, 63 => 5, 61 => 4, 56 => 2, 53 => 1,);
  259. }
  260. public function getSourceContext(): Source
  261. {
  262. return new Source("<!DOCTYPE html>
  263. <html lang=\"{{ app.request.locale }}\">
  264. <head>
  265. {% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'sim', section: 'sim' } %}
  266. {% include 'includes/common/head.html.twig' %}
  267. {% include 'includes/sim/stylesheets.html.twig' %}
  268. {% include 'includes/sim/head-scripts.html.twig' %}
  269. {% if ios_app_id is defined and ios_app_id is not empty %}
  270. <meta name=\"apple-itunes-app\" content=\"app-id={{ ios_app_id }}\">
  271. {% endif %}
  272. {% if android_app_id is defined and android_app_id is not empty %}
  273. <meta name=\"google-play-app\" content=\"app-id={{ android_app_id }}\">
  274. {% endif %}
  275. {% block head_scripts_requirements %}{% endblock %}
  276. </head>
  277. <body class=\"is-Layout_SIM_Default{{ (display_mode is defined and display_mode == constant('App\\\\EventSubscriber\\\\TwigGlobalSubscriber::DISPLAY_MODE_WEBVIEW')) ? ' is-Layout_WebView' : '' }}\">
  278. {% include 'includes/common/accessibility-quick-links.twig' %}
  279. {% include 'includes/common/body-begin-scripts.html.twig' %}
  280. <div id=\"body\" role=\"presentation\">
  281. {# Declare default empty blocks so block() never throws when child doesn't override.
  282. Hidden in HTML comments so any child override doesn't render visibly. #}
  283. <!--{% block footer_positioning_mobile %}{% endblock %}-->
  284. <!--{% block footer_positioning_desktop %}{% endblock %}-->
  285. {% if enable_web_harmony is defined and enable_web_harmony == true %}
  286. {% include 'includes/common/web-harmony.html.twig' with {
  287. footer_positioning_mobile: block('footer_positioning_mobile'),
  288. footer_positioning_desktop: block('footer_positioning_desktop'),
  289. } %}
  290. {% elseif (isPdfPrint is not defined or isPdfPrint == false) and (isWithoutHeader is not defined or isWithoutHeader == false) %}
  291. {% include 'includes/common/default-header.html.twig' %}
  292. {% endif %}
  293. {% block content %}{% endblock %}
  294. {% include 'pages/sim/include/booking/modal-booking-securebikepark.html.twig' %}
  295. {% if enable_web_harmony is defined and enable_web_harmony == false %}
  296. {% include 'includes/common/default-footer.html.twig' %}
  297. {% endif %}
  298. </div>
  299. {% if isPdfPrint is not defined or isPdfPrint == false and enable_web_harmony == false %}
  300. {% include 'includes/common/default-nav.html.twig' %}
  301. {% endif %}
  302. {# Include plugins, utils, etc. files #}
  303. {% if isPdfPrint is defined and isPdfPrint == true %}
  304. {% include 'includes/sim/body-end-print-scripts.html.twig' %}
  305. {% else %}
  306. {% include 'includes/sim/body-end-scripts.html.twig' %}
  307. {% endif %}
  308. {% block body_end_scripts_requirements %}{% endblock %}
  309. </body>
  310. </html>
  311. ", "layouts/sim/default.html.twig", "/var/www/html/templates/layouts/sim/default.html.twig");
  312. }
  313. }