<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* pages/sim/home.html.twig */
class __TwigTemplate_b1a41de4fda23f6150716783883ada02 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'footer_positioning_desktop' => [$this, 'block_footer_positioning_desktop'],
'content' => [$this, 'block_content'],
'body_end_scripts_requirements' => [$this, 'block_body_end_scripts_requirements'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layouts/sim/default.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/sim/home.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/sim/home.html.twig"));
// line 3
$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"]));
// line 4
$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); })())));
// line 1
$this->parent = $this->load("layouts/sim/default.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 6
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_footer_positioning_desktop(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_positioning_desktop"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_positioning_desktop"));
yield "fixed";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 8
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 9
yield " <main id=\"is-Features\" class=\"is-Widget\" role=\"main\" tabindex=\"-1\">
<div class=\"is-Features-Container";
// line 10
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); })())))) {
yield " is-Features-Container_WithLogoBaseline";
}
yield "\" id=\"is-WidgetFormsArea\">
";
// line 11
yield from $this->load("modules/search-widget/main-forms.html.twig", 11)->unwrap()->yield($context);
// line 12
yield " ";
yield from $this->load("includes/sim/baseline-sim.html.twig", 12)->unwrap()->yield($context);
// line 13
yield " </div>
<div class=\"is-Features-Container\" id=\"is-WidgetResultsArea\">
";
// line 15
yield from $this->load("modules/search-widget/main-results.html.twig", 15)->unwrap()->yield($context);
// line 16
yield " </div>
</main>
<section id=\"is-POIInfosWrapper\" class=\"is-hide\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"is-Infos-Header-Title\">
<a class=\"is-POIInfos-CloseBtn\" role=\"button\" aria-label=\"";
// line 19
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("close"), "html", null, true);
yield "\"><i class=\"is-Icon is-Icon-com-close-thin\" aria-hidden=\"true\"></i></a>
<div class=\"is-POIInfosOverlay\"></div>
<div class=\"is-POIInfosContainer\"></div>
</section>
<section role=\"complementary\">
<div id=\"is-MapNav\">
<button type=\"button\" id=\"is-MapNav-HideMapButton\" class=\"is-HideMapButton\" aria-label=\"";
// line 25
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("map_nav.hide_map"), "html", null, true);
yield "\">
<i class=\"is-Icon is-Icon-com-close\" aria-hidden=\"true\"></i>
</button>
</div>
<div id=\"is-Map\" class=\"is-Map\" role=\"application\"></div>
";
// line 30
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); })()))) {
// line 31
yield " ";
yield from $this->load("includes/sim/map-logo.html.twig", 31)->unwrap()->yield($context);
// line 32
yield " ";
}
// line 33
yield " </section>
";
// line 34
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); })())))) {
// line 35
yield " <div class=\"is-Modal is-fade\" data-news-ids=\"";
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);
yield "\" id=\"is-LandingPopup\" tabindex=\"-1\" role=\"dialog\" aria-live=\"polite\">
<div class=\"is-Modal-Dialog is-Modal-LaunchNews\" role=\"document\">
<div class=\"is-Modal-Content\">
<div class=\"is-Modal-Body\">
<button type=\"button\" class=\"is-Close\" data-dismiss=\"modal\" aria-label=\"";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("close"), "html", null, true);
yield "\"><span aria-hidden=\"true\">×</span></button>
";
// line 40
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["news"]) {
// line 41
yield " <div class=\"is-News-Content\">
";
// line 42
if (CoreExtension::getAttribute($this->env, $this->source, $context["news"], "picture", [], "any", true, true, false, 42)) {
// line 43
yield " <img class=\"img-responsive\" src=\"";
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);
yield "\" tabindex=\"0\" alt=\"";
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);
yield "\" title=\"";
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);
yield "\" aria-label=\"";
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);
yield "\">
";
} else {
// line 45
yield " <p class=\"is-LaunchNews-Title\">";
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);
yield "</p>
";
}
// line 47
yield " </div>
";
// line 48
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)))) {
// line 49
yield " <div class=\"is-Modal-Footer\">
<a class=\"is-Button is-Button_Primary\" href=\"";
// line 50
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);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("more_info"), "html", null, true);
yield "</a>
</div>
";
}
// line 53
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['news'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 54
yield " </div>
</div>
</div>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 61
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body_end_scripts_requirements(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_end_scripts_requirements"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_end_scripts_requirements"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/sim/home.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'layouts/sim/default.html.twig' %}
{% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'sim', section: 'sim' } %}
{% set displayScheduleFavorites = displayFavorites is defined and displayFavorites == true and scheduleFavorites is defined and scheduleFavorites is not empty %}
{% block footer_positioning_desktop %}fixed{% endblock %}
{% block content %}
<main id=\"is-Features\" class=\"is-Widget\" role=\"main\" tabindex=\"-1\">
<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\">
{% include 'modules/search-widget/main-forms.html.twig' %}
{% include 'includes/sim/baseline-sim.html.twig' %}
</div>
<div class=\"is-Features-Container\" id=\"is-WidgetResultsArea\">
{% include 'modules/search-widget/main-results.html.twig' %}
</div>
</main>
<section id=\"is-POIInfosWrapper\" class=\"is-hide\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"is-Infos-Header-Title\">
<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>
<div class=\"is-POIInfosOverlay\"></div>
<div class=\"is-POIInfosContainer\"></div>
</section>
<section role=\"complementary\">
<div id=\"is-MapNav\">
<button type=\"button\" id=\"is-MapNav-HideMapButton\" class=\"is-HideMapButton\" aria-label=\"{{ 'map_nav.hide_map'|trans }}\">
<i class=\"is-Icon is-Icon-com-close\" aria-hidden=\"true\"></i>
</button>
</div>
<div id=\"is-Map\" class=\"is-Map\" role=\"application\"></div>
{% if display_logo_on_map is defined and display_logo_on_map %}
{% include 'includes/sim/map-logo.html.twig' %}
{% endif %}
</section>
{% if launchNews is defined and launchNews is not empty %}
<div class=\"is-Modal is-fade\" data-news-ids=\"{{ launchNewsId }}\" id=\"is-LandingPopup\" tabindex=\"-1\" role=\"dialog\" aria-live=\"polite\">
<div class=\"is-Modal-Dialog is-Modal-LaunchNews\" role=\"document\">
<div class=\"is-Modal-Content\">
<div class=\"is-Modal-Body\">
<button type=\"button\" class=\"is-Close\" data-dismiss=\"modal\" aria-label=\"{{ 'close' | trans }}\"><span aria-hidden=\"true\">×</span></button>
{% for news in launchNews %}
<div class=\"is-News-Content\">
{% if news.picture is defined %}
<img class=\"img-responsive\" src=\"{{ news.picture }}\" tabindex=\"0\" alt=\"{{ news.title }}\" title=\"{{ news.title }}\" aria-label=\"{{ news.title }}\">
{% else %}
<p class=\"is-LaunchNews-Title\">{{ news.title }}</p>
{% endif %}
</div>
{% if news.moreInfoLink.url is defined and news.moreInfoLink.url is not empty %}
<div class=\"is-Modal-Footer\">
<a class=\"is-Button is-Button_Primary\" href=\"{{ news.moreInfoLink.url }}\">{{ 'more_info' | trans }}</a>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% block body_end_scripts_requirements %}
{% endblock %}
", "pages/sim/home.html.twig", "/var/www/html/templates/pages/sim/home.html.twig");
}
}