var/cache/dev/twig/23/233de2294345c3b088f5f76b0a9aed08.php line 102

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_084322bfd360f552101e7221599f735b 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 (string) $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 (string) $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 (string) $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 (string) (((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 39
  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.', 39, $this->source); })()) == true))) {
  140. // line 40
  141. yield " ";
  142. yield from $this->load("includes/sim/body-end-print-scripts.html.twig", 40)->unwrap()->yield($context);
  143. } else {
  144. // line 42
  145. yield " ";
  146. yield from $this->load("includes/sim/body-end-scripts.html.twig", 42)->unwrap()->yield($context);
  147. }
  148. // line 44
  149. yield from $this->unwrap()->yieldBlock('body_end_scripts_requirements', $context, $blocks);
  150. // line 45
  151. yield "</body>
  152. </html>
  153. ";
  154. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  155. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  156. yield from [];
  157. }
  158. // line 14
  159. /**
  160. * @return iterable<null|scalar|\Stringable>
  161. */
  162. public function block_head_scripts_requirements(array $context, array $blocks = []): iterable
  163. {
  164. $macros = $this->macros;
  165. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  166. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_scripts_requirements"));
  167. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  168. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_scripts_requirements"));
  169. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  170. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  171. yield from [];
  172. }
  173. // line 22
  174. /**
  175. * @return iterable<null|scalar|\Stringable>
  176. */
  177. public function block_footer_positioning_mobile(array $context, array $blocks = []): iterable
  178. {
  179. $macros = $this->macros;
  180. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  181. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_positioning_mobile"));
  182. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  183. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_positioning_mobile"));
  184. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  185. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  186. yield from [];
  187. }
  188. // line 23
  189. /**
  190. * @return iterable<null|scalar|\Stringable>
  191. */
  192. public function block_footer_positioning_desktop(array $context, array $blocks = []): iterable
  193. {
  194. $macros = $this->macros;
  195. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  196. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_positioning_desktop"));
  197. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  198. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_positioning_desktop"));
  199. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  200. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  201. yield from [];
  202. }
  203. // line 32
  204. /**
  205. * @return iterable<null|scalar|\Stringable>
  206. */
  207. public function block_content(array $context, array $blocks = []): iterable
  208. {
  209. $macros = $this->macros;
  210. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  211. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  212. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  213. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  214. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  215. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  216. yield from [];
  217. }
  218. // line 44
  219. /**
  220. * @return iterable<null|scalar|\Stringable>
  221. */
  222. public function block_body_end_scripts_requirements(array $context, array $blocks = []): iterable
  223. {
  224. $macros = $this->macros;
  225. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  226. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_end_scripts_requirements"));
  227. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  228. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_end_scripts_requirements"));
  229. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  230. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  231. yield from [];
  232. }
  233. /**
  234. * @codeCoverageIgnore
  235. */
  236. public function getTemplateName(): string
  237. {
  238. return "layouts/sim/default.html.twig";
  239. }
  240. /**
  241. * @codeCoverageIgnore
  242. */
  243. public function isTraitable(): bool
  244. {
  245. return false;
  246. }
  247. /**
  248. * @codeCoverageIgnore
  249. */
  250. public function getDebugInfo(): array
  251. {
  252. return array ( 261 => 44, 239 => 32, 217 => 23, 195 => 22, 173 => 14, 160 => 45, 158 => 44, 154 => 42, 150 => 40, 148 => 39, 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,);
  253. }
  254. public function getSourceContext(): Source
  255. {
  256. return new Source("<!DOCTYPE html>
  257. <html lang=\"{{ app.request.locale }}\">
  258. <head>
  259. {% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: \x27sim\x27, section: \x27sim\x27 } %}
  260. {% include \x27includes/common/head.html.twig\x27 %}
  261. {% include \x27includes/sim/stylesheets.html.twig\x27 %}
  262. {% include \x27includes/sim/head-scripts.html.twig\x27 %}
  263. {% if ios_app_id is defined and ios_app_id is not empty %}
  264. <meta name=\"apple-itunes-app\" content=\"app-id={{ ios_app_id }}\">
  265. {% endif %}
  266. {% if android_app_id is defined and android_app_id is not empty %}
  267. <meta name=\"google-play-app\" content=\"app-id={{ android_app_id }}\">
  268. {% endif %}
  269. {% block head_scripts_requirements %}{% endblock %}
  270. </head>
  271. <body class=\"is-Layout_SIM_Default{{ (display_mode is defined and display_mode == constant(\x27App\\\\EventSubscriber\\\\TwigGlobalSubscriber::DISPLAY_MODE_WEBVIEW\x27)) ? \x27 is-Layout_WebView\x27 : \x27\x27 }}\">
  272. {% include \x27includes/common/accessibility-quick-links.twig\x27 %}
  273. {% include \x27includes/common/body-begin-scripts.html.twig\x27 %}
  274. <div id=\"body\" role=\"presentation\">
  275. {# Declare default empty blocks so block() never throws when child doesn\x27t override.
  276. Hidden in HTML comments so any child override doesn\x27t render visibly. #}
  277. <!--{% block footer_positioning_mobile %}{% endblock %}-->
  278. <!--{% block footer_positioning_desktop %}{% endblock %}-->
  279. {% if enable_web_harmony is defined and enable_web_harmony == true %}
  280. {% include \x27includes/common/web-harmony.html.twig\x27 with {
  281. footer_positioning_mobile: block(\x27footer_positioning_mobile\x27),
  282. footer_positioning_desktop: block(\x27footer_positioning_desktop\x27),
  283. } %}
  284. {% elseif (isPdfPrint is not defined or isPdfPrint == false) and (isWithoutHeader is not defined or isWithoutHeader == false) %}
  285. {% include \x27includes/common/default-header.html.twig\x27 %}
  286. {% endif %}
  287. {% block content %}{% endblock %}
  288. {% include \x27pages/sim/include/booking/modal-booking-securebikepark.html.twig\x27 %}
  289. {% if enable_web_harmony is defined and enable_web_harmony == false %}
  290. {% include \x27includes/common/default-footer.html.twig\x27 %}
  291. {% endif %}
  292. </div>
  293. {# Include plugins, utils, etc. files #}
  294. {% if isPdfPrint is defined and isPdfPrint == true %}
  295. {% include \x27includes/sim/body-end-print-scripts.html.twig\x27 %}
  296. {% else %}
  297. {% include \x27includes/sim/body-end-scripts.html.twig\x27 %}
  298. {% endif %}
  299. {% block body_end_scripts_requirements %}{% endblock %}
  300. </body>
  301. </html>
  302. ", "layouts/sim/default.html.twig", "/var/www/html/templates/layouts/sim/default.html.twig");
  303. }
  304. }