var/cache/dev/twig/66/663c7856f65c2ab830edb8ab4b587a71.php line 100

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. /* pages/sim/home.html.twig */
  16. class __TwigTemplate_bbbc214981a4d59d14c715dec62fea9c 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->blocks = [
  28. 'content' => [$this, 'block_content'],
  29. 'body_end_scripts_requirements' => [$this, 'block_body_end_scripts_requirements'],
  30. ];
  31. }
  32. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33. {
  34. // line 1
  35. return "layouts/sim/default.html.twig";
  36. }
  37. protected function doDisplay(array $context, array $blocks = []): iterable
  38. {
  39. $macros = $this->macros;
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/sim/home.html.twig"));
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/sim/home.html.twig"));
  44. // line 3
  45. $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.', 3, $this->source); })())) : (["group" => "sim", "section" => "sim"]));
  46. // line 4
  47. $context["displayScheduleFavorites"] = (((array_key_exists("displayFavorites", $context) && ((isset($context["displayFavorites"]) || array_key_exists("displayFavorites", $context) ? $context["displayFavorites"] : (function () { throw new RuntimeError('Variable "displayFavorites" does not exist.', 4, $this->source); })()) == true)) && array_key_exists("scheduleFavorites", $context)) && !Twig\Extension\CoreExtension::testEmpty((isset($context["scheduleFavorites"]) || array_key_exists("scheduleFavorites", $context) ? $context["scheduleFavorites"] : (function () { throw new RuntimeError('Variable "scheduleFavorites" does not exist.', 4, $this->source); })())));
  48. // line 1
  49. $this->parent = $this->load("layouts/sim/default.html.twig", 1);
  50. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  51. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53. }
  54. // line 6
  55. /**
  56. * @return iterable<null|scalar|\Stringable>
  57. */
  58. public function block_content(array $context, array $blocks = []): iterable
  59. {
  60. $macros = $this->macros;
  61. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  63. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  65. // line 7
  66. yield " <main id=\"is-Features\" class=\"is-Widget\" role=\"main\" tabindex=\"-1\">
  67. <div class=\"is-Features-Container";
  68. // line 8
  69. if (((array_key_exists("display_base_line", $context) && (isset($context["display_base_line"]) || array_key_exists("display_base_line", $context) ? $context["display_base_line"] : (function () { throw new RuntimeError('Variable "display_base_line" does not exist.', 8, $this->source); })())) && !(((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 8, $this->source); })()) == "schedule") && (isset($context["displayScheduleFavorites"]) || array_key_exists("displayScheduleFavorites", $context) ? $context["displayScheduleFavorites"] : (function () { throw new RuntimeError('Variable "displayScheduleFavorites" does not exist.', 8, $this->source); })())))) {
  70. yield " is-Features-Container_WithLogoBaseline";
  71. }
  72. yield "\" id=\"is-WidgetFormsArea\">
  73. ";
  74. // line 9
  75. yield from $this->load("modules/search-widget/main-forms.html.twig", 9)->unwrap()->yield($context);
  76. // line 10
  77. yield " ";
  78. yield from $this->load("includes/sim/baseline-sim.html.twig", 10)->unwrap()->yield($context);
  79. // line 11
  80. yield " </div>
  81. <div class=\"is-Features-Container\" id=\"is-WidgetResultsArea\">
  82. ";
  83. // line 13
  84. yield from $this->load("modules/search-widget/main-results.html.twig", 13)->unwrap()->yield($context);
  85. // line 14
  86. yield " </div>
  87. <section id=\"is-POIInfosWrapper\" class=\"is-hide\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"is-Infos-Header-Title\">
  88. <a class=\"is-POIInfos-CloseBtn\" role=\"button\" aria-label=\"";
  89. // line 16
  90. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("close"), "html", null, true);
  91. yield "\"><i class=\"is-Icon is-Icon-com-close-thin\" aria-hidden=\"true\"></i></a>
  92. <div class=\"is-POIInfosOverlay\"></div>
  93. <div class=\"is-POIInfosContainer\"></div>
  94. </section>
  95. <section>
  96. <div id=\"is-MapNav\">
  97. <button type=\"button\" id=\"is-MapNav-HideMapButton\" class=\"is-HideMapButton\" aria-label=\"";
  98. // line 22
  99. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("map_nav.hide_map"), "html", null, true);
  100. yield "\">
  101. <i class=\"is-Icon is-Icon-com-close\" aria-hidden=\"true\"></i>
  102. </button>
  103. </div>
  104. <div id=\"is-Map\" class=\"is-Map\" role=\"application\"></div>
  105. ";
  106. // line 27
  107. if ((array_key_exists("display_logo_on_map", $context) && (isset($context["display_logo_on_map"]) || array_key_exists("display_logo_on_map", $context) ? $context["display_logo_on_map"] : (function () { throw new RuntimeError('Variable "display_logo_on_map" does not exist.', 27, $this->source); })()))) {
  108. // line 28
  109. yield " ";
  110. yield from $this->load("includes/sim/map-logo.html.twig", 28)->unwrap()->yield($context);
  111. // line 29
  112. yield " ";
  113. }
  114. // line 30
  115. yield " </section>
  116. ";
  117. // line 31
  118. if ((array_key_exists("launchNews", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["launchNews"]) || array_key_exists("launchNews", $context) ? $context["launchNews"] : (function () { throw new RuntimeError('Variable "launchNews" does not exist.', 31, $this->source); })())))) {
  119. // line 32
  120. yield " <div class=\"is-Modal is-fade\" data-news-ids=\"";
  121. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["launchNewsId"]) || array_key_exists("launchNewsId", $context) ? $context["launchNewsId"] : (function () { throw new RuntimeError('Variable "launchNewsId" does not exist.', 32, $this->source); })()), "html", null, true);
  122. yield "\" id=\"is-LandingPopup\" tabindex=\"-1\" aria-modal=\"true\" role=\"dialog\" aria-live=\"polite\">
  123. <div class=\"is-Modal-Dialog is-Modal-LaunchNews\">
  124. <div class=\"is-Modal-Content\">
  125. <div class=\"is-Modal-Body\">
  126. <button type=\"button\" class=\"is-Close\" data-dismiss=\"modal\" aria-label=\"";
  127. // line 36
  128. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("close"), "html", null, true);
  129. yield "\"><span aria-hidden=\"true\">&times;</span></button>
  130. ";
  131. // line 37
  132. $context['_parent'] = $context;
  133. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["launchNews"]) || array_key_exists("launchNews", $context) ? $context["launchNews"] : (function () { throw new RuntimeError('Variable "launchNews" does not exist.', 37, $this->source); })()));
  134. foreach ($context['_seq'] as $context["_key"] => $context["news"]) {
  135. // line 38
  136. yield " <div class=\"is-News-Content\">
  137. ";
  138. // line 39
  139. if (CoreExtension::getAttribute($this->env, $this->source, $context["news"], "picture", [], "any", true, true, false, 39)) {
  140. // line 40
  141. yield " <img class=\"img-responsive\" src=\"";
  142. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["news"], "picture", [], "any", false, false, false, 40), "html", null, true);
  143. yield "\" tabindex=\"0\" alt=\"";
  144. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["news"], "title", [], "any", false, false, false, 40), "html", null, true);
  145. yield "\" title=\"";
  146. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["news"], "title", [], "any", false, false, false, 40), "html", null, true);
  147. yield "\" aria-label=\"";
  148. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["news"], "title", [], "any", false, false, false, 40), "html", null, true);
  149. yield "\">
  150. ";
  151. } else {
  152. // line 42
  153. yield " <p class=\"is-LaunchNews-Title\">";
  154. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["news"], "title", [], "any", false, false, false, 42), "html", null, true);
  155. yield "</p>
  156. ";
  157. }
  158. // line 44
  159. yield " </div>
  160. ";
  161. // line 45
  162. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["news"], "moreInfoLink", [], "any", false, true, false, 45), "url", [], "any", true, true, false, 45) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["news"], "moreInfoLink", [], "any", false, false, false, 45), "url", [], "any", false, false, false, 45)))) {
  163. // line 46
  164. yield " <div class=\"is-Modal-Footer\">
  165. <a class=\"is-Button is-Button_Primary\" href=\"";
  166. // line 47
  167. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["news"], "moreInfoLink", [], "any", false, false, false, 47), "url", [], "any", false, false, false, 47), "html", null, true);
  168. yield "\">";
  169. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("more_info"), "html", null, true);
  170. yield "</a>
  171. </div>
  172. ";
  173. }
  174. // line 50
  175. yield " ";
  176. }
  177. $_parent = $context['_parent'];
  178. unset($context['_seq'], $context['_key'], $context['news'], $context['_parent']);
  179. $context = array_intersect_key($context, $_parent) + $_parent;
  180. // line 51
  181. yield " </div>
  182. </div>
  183. </div>
  184. </div>
  185. ";
  186. }
  187. // line 56
  188. yield " </main>
  189. ";
  190. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  191. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  192. yield from [];
  193. }
  194. // line 58
  195. /**
  196. * @return iterable<null|scalar|\Stringable>
  197. */
  198. public function block_body_end_scripts_requirements(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", "body_end_scripts_requirements"));
  203. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  204. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_end_scripts_requirements"));
  205. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  206. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  207. yield from [];
  208. }
  209. /**
  210. * @codeCoverageIgnore
  211. */
  212. public function getTemplateName(): string
  213. {
  214. return "pages/sim/home.html.twig";
  215. }
  216. /**
  217. * @codeCoverageIgnore
  218. */
  219. public function isTraitable(): bool
  220. {
  221. return false;
  222. }
  223. /**
  224. * @codeCoverageIgnore
  225. */
  226. public function getDebugInfo(): array
  227. {
  228. return array ( 216 => 58, 204 => 56, 197 => 51, 191 => 50, 183 => 47, 180 => 46, 178 => 45, 175 => 44, 169 => 42, 157 => 40, 155 => 39, 152 => 38, 148 => 37, 144 => 36, 136 => 32, 134 => 31, 131 => 30, 128 => 29, 125 => 28, 123 => 27, 115 => 22, 106 => 16, 102 => 14, 100 => 13, 96 => 11, 93 => 10, 91 => 9, 85 => 8, 82 => 7, 69 => 6, 58 => 1, 56 => 4, 54 => 3, 41 => 1,);
  229. }
  230. public function getSourceContext(): Source
  231. {
  232. return new Source("{% extends 'layouts/sim/default.html.twig' %}
  233. {% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'sim', section: 'sim' } %}
  234. {% set displayScheduleFavorites = displayFavorites is defined and displayFavorites == true and scheduleFavorites is defined and scheduleFavorites is not empty %}
  235. {% block content %}
  236. <main id=\"is-Features\" class=\"is-Widget\" role=\"main\" tabindex=\"-1\">
  237. <div class=\"is-Features-Container{% if display_base_line is defined and display_base_line and not (activeTab == 'schedule' and displayScheduleFavorites) %} is-Features-Container_WithLogoBaseline{% endif %}\" id=\"is-WidgetFormsArea\">
  238. {% include 'modules/search-widget/main-forms.html.twig' %}
  239. {% include 'includes/sim/baseline-sim.html.twig' %}
  240. </div>
  241. <div class=\"is-Features-Container\" id=\"is-WidgetResultsArea\">
  242. {% include 'modules/search-widget/main-results.html.twig' %}
  243. </div>
  244. <section id=\"is-POIInfosWrapper\" class=\"is-hide\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"is-Infos-Header-Title\">
  245. <a class=\"is-POIInfos-CloseBtn\" role=\"button\" aria-label=\"{{ 'close' | trans }}\"><i class=\"is-Icon is-Icon-com-close-thin\" aria-hidden=\"true\"></i></a>
  246. <div class=\"is-POIInfosOverlay\"></div>
  247. <div class=\"is-POIInfosContainer\"></div>
  248. </section>
  249. <section>
  250. <div id=\"is-MapNav\">
  251. <button type=\"button\" id=\"is-MapNav-HideMapButton\" class=\"is-HideMapButton\" aria-label=\"{{ 'map_nav.hide_map'|trans }}\">
  252. <i class=\"is-Icon is-Icon-com-close\" aria-hidden=\"true\"></i>
  253. </button>
  254. </div>
  255. <div id=\"is-Map\" class=\"is-Map\" role=\"application\"></div>
  256. {% if display_logo_on_map is defined and display_logo_on_map %}
  257. {% include 'includes/sim/map-logo.html.twig' %}
  258. {% endif %}
  259. </section>
  260. {% if launchNews is defined and launchNews is not empty %}
  261. <div class=\"is-Modal is-fade\" data-news-ids=\"{{ launchNewsId }}\" id=\"is-LandingPopup\" tabindex=\"-1\" aria-modal=\"true\" role=\"dialog\" aria-live=\"polite\">
  262. <div class=\"is-Modal-Dialog is-Modal-LaunchNews\">
  263. <div class=\"is-Modal-Content\">
  264. <div class=\"is-Modal-Body\">
  265. <button type=\"button\" class=\"is-Close\" data-dismiss=\"modal\" aria-label=\"{{ 'close' | trans }}\"><span aria-hidden=\"true\">&times;</span></button>
  266. {% for news in launchNews %}
  267. <div class=\"is-News-Content\">
  268. {% if news.picture is defined %}
  269. <img class=\"img-responsive\" src=\"{{ news.picture }}\" tabindex=\"0\" alt=\"{{ news.title }}\" title=\"{{ news.title }}\" aria-label=\"{{ news.title }}\">
  270. {% else %}
  271. <p class=\"is-LaunchNews-Title\">{{ news.title }}</p>
  272. {% endif %}
  273. </div>
  274. {% if news.moreInfoLink.url is defined and news.moreInfoLink.url is not empty %}
  275. <div class=\"is-Modal-Footer\">
  276. <a class=\"is-Button is-Button_Primary\" href=\"{{ news.moreInfoLink.url }}\">{{ 'more_info' | trans }}</a>
  277. </div>
  278. {% endif %}
  279. {% endfor %}
  280. </div>
  281. </div>
  282. </div>
  283. </div>
  284. {% endif %}
  285. </main>
  286. {% endblock %}
  287. {% block body_end_scripts_requirements %}
  288. {% endblock %}
  289. ", "pages/sim/home.html.twig", "/var/www/html/templates/pages/sim/home.html.twig");
  290. }
  291. }