<?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'],
'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 20
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.', 20, $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.', 20, $this->source); })()) == false)))) {
// line 21
yield " ";
yield from $this->load("includes/common/default-header.html.twig", 21)->unwrap()->yield($context);
// line 22
yield " ";
}
// line 23
yield " ";
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
// line 24
yield " ";
yield from $this->load("pages/sim/include/booking/modal-booking-securebikepark.html.twig", 24)->unwrap()->yield($context);
// line 25
yield " ";
yield from $this->load("includes/common/default-footer.html.twig", 25)->unwrap()->yield($context);
// line 26
yield "
</div>
";
// line 28
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.', 28, $this->source); })()) == false))) {
// line 29
yield " ";
yield from $this->load("includes/common/default-nav.html.twig", 29)->unwrap()->yield($context);
}
// line 32
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.', 32, $this->source); })()) == true))) {
// line 33
yield " ";
yield from $this->load("includes/sim/body-end-print-scripts.html.twig", 33)->unwrap()->yield($context);
} else {
// line 35
yield " ";
yield from $this->load("includes/sim/body-end-scripts.html.twig", 35)->unwrap()->yield($context);
}
// line 37
yield from $this->unwrap()->yieldBlock('body_end_scripts_requirements', $context, $blocks);
// line 38
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 23
/**
* @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 37
/**
* @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 ( 201 => 37, 179 => 23, 157 => 14, 144 => 38, 142 => 37, 138 => 35, 134 => 33, 132 => 32, 128 => 29, 126 => 28, 122 => 26, 119 => 25, 116 => 24, 113 => 23, 110 => 22, 107 => 21, 105 => 20, 102 => 19, 100 => 18, 98 => 17, 94 => 16, 91 => 15, 88 => 14, 82 => 12, 79 => 11, 73 => 9, 70 => 8, 67 => 7, 64 => 6, 61 => 5, 59 => 4, 54 => 2, 51 => 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\">
{% if (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' %}
{% include 'includes/common/default-footer.html.twig' %}
</div>
{% if isPdfPrint is not defined or isPdfPrint == 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");
}
}