<?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_2a647ed5033062346afbfc805bb225e0 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>
<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 18
yield (string) $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 24
yield (string) $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\" aria-label=\"";
// line 28
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("map_nav.map_label"), "html", null, true);
yield "\"></div>
";
// line 29
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.', 29, $this->source); })()))) {
// line 30
yield " ";
yield from $this->load("includes/sim/map-logo.html.twig", 30)->unwrap()->yield($context);
// line 31
yield " ";
}
// line 32
yield " </section>
</main>
";
// 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 (string) $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\" aria-modal=\"true\" role=\"dialog\" aria-live=\"polite\">
<div class=\"is-Modal-Dialog is-Modal-LaunchNews\">
<div class=\"is-Modal-Content\">
<div class=\"is-Modal-Body\">
<button type=\"button\" class=\"is-Close\" data-dismiss=\"modal\" aria-label=\"";
// line 39
yield (string) $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 (string) $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 (string) $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 (string) $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 (string) $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 (string) $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 (string) $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 (string) $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 ( 241 => 61, 225 => 54, 219 => 53, 211 => 50, 208 => 49, 206 => 48, 203 => 47, 197 => 45, 185 => 43, 183 => 42, 180 => 41, 176 => 40, 172 => 39, 164 => 35, 162 => 34, 158 => 32, 155 => 31, 152 => 30, 150 => 29, 146 => 28, 139 => 24, 130 => 18, 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 \x27layouts/sim/default.html.twig\x27 %}
{% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: \x27sim\x27, section: \x27sim\x27 } %}
{% 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 == \x27schedule\x27 and displayScheduleFavorites) %} is-Features-Container_WithLogoBaseline{% endif %}\" id=\"is-WidgetFormsArea\">
{% include \x27modules/search-widget/main-forms.html.twig\x27 %}
{% include \x27includes/sim/baseline-sim.html.twig\x27 %}
</div>
<div class=\"is-Features-Container\" id=\"is-WidgetResultsArea\">
{% include \x27modules/search-widget/main-results.html.twig\x27 %}
</div>
<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=\"{{ \x27close\x27 | 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=\"{{ \x27map_nav.hide_map\x27|trans }}\">
<i class=\"is-Icon is-Icon-com-close\" aria-hidden=\"true\"></i>
</button>
</div>
<div id=\"is-Map\" class=\"is-Map\" role=\"application\" aria-label=\"{{ \x27map_nav.map_label\x27|trans }}\"></div>
{% if display_logo_on_map is defined and display_logo_on_map %}
{% include \x27includes/sim/map-logo.html.twig\x27 %}
{% endif %}
</section>
</main>
{% if launchNews is defined and launchNews is not empty %}
<div class=\"is-Modal is-fade\" data-news-ids=\"{{ launchNewsId }}\" id=\"is-LandingPopup\" tabindex=\"-1\" aria-modal=\"true\" role=\"dialog\" aria-live=\"polite\">
<div class=\"is-Modal-Dialog is-Modal-LaunchNews\">
<div class=\"is-Modal-Content\">
<div class=\"is-Modal-Body\">
<button type=\"button\" class=\"is-Close\" data-dismiss=\"modal\" aria-label=\"{{ \x27close\x27 | 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 }}\">{{ \x27more_info\x27 | 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");
}
}