var/cache/dev/twig/13/13a3d835b31b8fc48fceb1d1e157fb20.php line 91

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