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

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