<?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;
/* layouts/sim/default.html.twig */
class __TwigTemplate_2c3c2745d2026e690bbb9a61491e63b1 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->parent = false;
$this->blocks = [
'head_scripts_requirements' => [$this, 'block_head_scripts_requirements'],
'footer_positioning_mobile' => [$this, 'block_footer_positioning_mobile'],
'footer_positioning_desktop' => [$this, 'block_footer_positioning_desktop'],
'content' => [$this, 'block_content'],
'body_end_scripts_requirements' => [$this, 'block_body_end_scripts_requirements'],
];
}
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", "layouts/sim/default.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layouts/sim/default.html.twig"));
// line 1
yield "<!DOCTYPE html>
<html lang=\"";
// line 2
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 2, $this->source); })()), "request", [], "any", false, false, false, 2), "locale", [], "any", false, false, false, 2), "html", null, true);
yield "\">
<head>
";
// line 4
$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.', 4, $this->source); })())) : (["group" => "sim", "section" => "sim"]));
// line 5
yield " ";
yield from $this->load("includes/common/head.html.twig", 5)->unwrap()->yield($context);
// line 6
yield " ";
yield from $this->load("includes/sim/stylesheets.html.twig", 6)->unwrap()->yield($context);
// line 7
yield " ";
yield from $this->load("includes/sim/head-scripts.html.twig", 7)->unwrap()->yield($context);
// line 8
yield " ";
if ((array_key_exists("ios_app_id", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["ios_app_id"]) || array_key_exists("ios_app_id", $context) ? $context["ios_app_id"] : (function () { throw new RuntimeError('Variable "ios_app_id" does not exist.', 8, $this->source); })())))) {
// line 9
yield " <meta name=\"apple-itunes-app\" content=\"app-id=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["ios_app_id"]) || array_key_exists("ios_app_id", $context) ? $context["ios_app_id"] : (function () { throw new RuntimeError('Variable "ios_app_id" does not exist.', 9, $this->source); })()), "html", null, true);
yield "\">
";
}
// line 11
yield " ";
if ((array_key_exists("android_app_id", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["android_app_id"]) || array_key_exists("android_app_id", $context) ? $context["android_app_id"] : (function () { throw new RuntimeError('Variable "android_app_id" does not exist.', 11, $this->source); })())))) {
// line 12
yield " <meta name=\"google-play-app\" content=\"app-id=";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["android_app_id"]) || array_key_exists("android_app_id", $context) ? $context["android_app_id"] : (function () { throw new RuntimeError('Variable "android_app_id" does not exist.', 12, $this->source); })()), "html", null, true);
yield "\">
";
}
// line 14
yield " ";
yield from $this->unwrap()->yieldBlock('head_scripts_requirements', $context, $blocks);
// line 15
yield "</head>
<body class=\"is-Layout_SIM_Default";
// line 16
yield (((array_key_exists("display_mode", $context) && ((isset($context["display_mode"]) || array_key_exists("display_mode", $context) ? $context["display_mode"] : (function () { throw new RuntimeError('Variable "display_mode" does not exist.', 16, $this->source); })()) == Twig\Extension\CoreExtension::constant("App\\EventSubscriber\\TwigGlobalSubscriber::DISPLAY_MODE_WEBVIEW")))) ? (" is-Layout_WebView") : (""));
yield "\">
";
// line 17
yield from $this->load("includes/common/accessibility-quick-links.twig", 17)->unwrap()->yield($context);
// line 18
yield from $this->load("includes/common/body-begin-scripts.html.twig", 18)->unwrap()->yield($context);
// line 19
yield "<div id=\"body\" role=\"presentation\">
";
// line 22
yield " <!--";
yield from $this->unwrap()->yieldBlock('footer_positioning_mobile', $context, $blocks);
yield "-->
<!--";
// line 23
yield from $this->unwrap()->yieldBlock('footer_positioning_desktop', $context, $blocks);
yield "-->
";
// line 24
if ((array_key_exists("enable_web_harmony", $context) && ((isset($context["enable_web_harmony"]) || array_key_exists("enable_web_harmony", $context) ? $context["enable_web_harmony"] : (function () { throw new RuntimeError('Variable "enable_web_harmony" does not exist.', 24, $this->source); })()) == true))) {
// line 25
yield " ";
yield from $this->load("includes/common/web-harmony.html.twig", 25)->unwrap()->yield(CoreExtension::merge($context, ["footer_positioning_mobile" => $this->unwrap()->renderBlock("footer_positioning_mobile", $context, $blocks), "footer_positioning_desktop" => $this->unwrap()->renderBlock("footer_positioning_desktop", $context, $blocks)]));
// line 29
yield " ";
} elseif ((( !array_key_exists("isPdfPrint", $context) || ((isset($context["isPdfPrint"]) || array_key_exists("isPdfPrint", $context) ? $context["isPdfPrint"] : (function () { throw new RuntimeError('Variable "isPdfPrint" does not exist.', 29, $this->source); })()) == false)) && ( !array_key_exists("isWithoutHeader", $context) || ((isset($context["isWithoutHeader"]) || array_key_exists("isWithoutHeader", $context) ? $context["isWithoutHeader"] : (function () { throw new RuntimeError('Variable "isWithoutHeader" does not exist.', 29, $this->source); })()) == false)))) {
// line 30
yield " ";
yield from $this->load("includes/common/default-header.html.twig", 30)->unwrap()->yield($context);
// line 31
yield " ";
}
// line 32
yield " ";
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
// line 33
yield " ";
yield from $this->load("pages/sim/include/booking/modal-booking-securebikepark.html.twig", 33)->unwrap()->yield($context);
// line 34
yield " ";
if ((array_key_exists("enable_web_harmony", $context) && ((isset($context["enable_web_harmony"]) || array_key_exists("enable_web_harmony", $context) ? $context["enable_web_harmony"] : (function () { throw new RuntimeError('Variable "enable_web_harmony" does not exist.', 34, $this->source); })()) == false))) {
// line 35
yield " ";
yield from $this->load("includes/common/default-footer.html.twig", 35)->unwrap()->yield($context);
// line 36
yield " ";
}
// line 37
yield "</div>
";
// line 38
if (( !array_key_exists("isPdfPrint", $context) || (((isset($context["isPdfPrint"]) || array_key_exists("isPdfPrint", $context) ? $context["isPdfPrint"] : (function () { throw new RuntimeError('Variable "isPdfPrint" does not exist.', 38, $this->source); })()) == false) && ((isset($context["enable_web_harmony"]) || array_key_exists("enable_web_harmony", $context) ? $context["enable_web_harmony"] : (function () { throw new RuntimeError('Variable "enable_web_harmony" does not exist.', 38, $this->source); })()) == false)))) {
// line 39
yield " ";
yield from $this->load("includes/common/default-nav.html.twig", 39)->unwrap()->yield($context);
}
// line 42
if ((array_key_exists("isPdfPrint", $context) && ((isset($context["isPdfPrint"]) || array_key_exists("isPdfPrint", $context) ? $context["isPdfPrint"] : (function () { throw new RuntimeError('Variable "isPdfPrint" does not exist.', 42, $this->source); })()) == true))) {
// line 43
yield " ";
yield from $this->load("includes/sim/body-end-print-scripts.html.twig", 43)->unwrap()->yield($context);
} else {
// line 45
yield " ";
yield from $this->load("includes/sim/body-end-scripts.html.twig", 45)->unwrap()->yield($context);
}
// line 47
yield from $this->unwrap()->yieldBlock('body_end_scripts_requirements', $context, $blocks);
// line 48
yield "</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
// line 14
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_head_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", "head_scripts_requirements"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_scripts_requirements"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 22
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_footer_positioning_mobile(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_mobile"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_positioning_mobile"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 23
/**
* @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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 32
/**
* @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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 47
/**
* @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 "layouts/sim/default.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 267 => 47, 245 => 32, 223 => 23, 201 => 22, 179 => 14, 166 => 48, 164 => 47, 160 => 45, 156 => 43, 154 => 42, 150 => 39, 148 => 38, 145 => 37, 142 => 36, 139 => 35, 136 => 34, 133 => 33, 130 => 32, 127 => 31, 124 => 30, 121 => 29, 118 => 25, 116 => 24, 112 => 23, 107 => 22, 104 => 19, 102 => 18, 100 => 17, 96 => 16, 93 => 15, 90 => 14, 84 => 12, 81 => 11, 75 => 9, 72 => 8, 69 => 7, 66 => 6, 63 => 5, 61 => 4, 56 => 2, 53 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<!DOCTYPE html>
<html lang=\"{{ app.request.locale }}\">
<head>
{% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'sim', section: 'sim' } %}
{% include 'includes/common/head.html.twig' %}
{% include 'includes/sim/stylesheets.html.twig' %}
{% include 'includes/sim/head-scripts.html.twig' %}
{% if ios_app_id is defined and ios_app_id is not empty %}
<meta name=\"apple-itunes-app\" content=\"app-id={{ ios_app_id }}\">
{% endif %}
{% if android_app_id is defined and android_app_id is not empty %}
<meta name=\"google-play-app\" content=\"app-id={{ android_app_id }}\">
{% endif %}
{% block head_scripts_requirements %}{% endblock %}
</head>
<body class=\"is-Layout_SIM_Default{{ (display_mode is defined and display_mode == constant('App\\\\EventSubscriber\\\\TwigGlobalSubscriber::DISPLAY_MODE_WEBVIEW')) ? ' is-Layout_WebView' : '' }}\">
{% include 'includes/common/accessibility-quick-links.twig' %}
{% include 'includes/common/body-begin-scripts.html.twig' %}
<div id=\"body\" role=\"presentation\">
{# Declare default empty blocks so block() never throws when child doesn't override.
Hidden in HTML comments so any child override doesn't render visibly. #}
<!--{% block footer_positioning_mobile %}{% endblock %}-->
<!--{% block footer_positioning_desktop %}{% endblock %}-->
{% if enable_web_harmony is defined and enable_web_harmony == true %}
{% include 'includes/common/web-harmony.html.twig' with {
footer_positioning_mobile: block('footer_positioning_mobile'),
footer_positioning_desktop: block('footer_positioning_desktop'),
} %}
{% elseif (isPdfPrint is not defined or isPdfPrint == false) and (isWithoutHeader is not defined or isWithoutHeader == false) %}
{% include 'includes/common/default-header.html.twig' %}
{% endif %}
{% block content %}{% endblock %}
{% include 'pages/sim/include/booking/modal-booking-securebikepark.html.twig' %}
{% if enable_web_harmony is defined and enable_web_harmony == false %}
{% include 'includes/common/default-footer.html.twig' %}
{% endif %}
</div>
{% if isPdfPrint is not defined or isPdfPrint == false and enable_web_harmony == false %}
{% include 'includes/common/default-nav.html.twig' %}
{% endif %}
{# Include plugins, utils, etc. files #}
{% if isPdfPrint is defined and isPdfPrint == true %}
{% include 'includes/sim/body-end-print-scripts.html.twig' %}
{% else %}
{% include 'includes/sim/body-end-scripts.html.twig' %}
{% endif %}
{% block body_end_scripts_requirements %}{% endblock %}
</body>
</html>
", "layouts/sim/default.html.twig", "/var/www/html/templates/layouts/sim/default.html.twig");
}
}