<?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\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* pages/_institutional_page.html.twig */
class __TwigTemplate_90bfc7d4567aedd89f8dcc066a8c7b11 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 = [
'page_class' => [$this, 'block_page_class'],
'header_search' => [$this, 'block_header_search'],
'header_search_mobile' => [$this, 'block_header_search_mobile'],
'stylesheets' => [$this, 'block_stylesheets'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.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/_institutional_page.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/_institutional_page.html.twig"));
// line 3
if (array_key_exists("form", $context)) {
// line 4
yield "\t";
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 4, $this->source); })()), ["form_theme.html.twig"], true);
}
// line 1
$this->parent = $this->load("base.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 7
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_page_class(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", "page_class"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
// line 8
yield "\tpage institutional-page
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 11
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_search(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", "header_search"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 12
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_search_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", "header_search_mobile"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search_mobile"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 14
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 15
yield "\t";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
\t";
// line 16
yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("institutional_styles");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 19
/**
* @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 20
yield "\t<div class=\"container-fluid px-0\" id=\"institutional-page\">
\t\t";
// line 21
$context["in_band"] = false;
// line 22
yield "\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "sections", [], "any", true, true, false, 22)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 22, $this->source); })()), "sections", [], "any", false, false, false, 22), [])) : ([])));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
// line 23
yield "\t\t\t";
$context["wave"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["section"], "wave", [], "any", true, true, false, 23)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["section"], "wave", [], "any", false, false, false, 23), "none")) : ("none"));
// line 24
yield "\t\t\t";
if (((isset($context["wave"]) || array_key_exists("wave", $context) ? $context["wave"] : (function () { throw new RuntimeError('Variable "wave" does not exist.', 24, $this->source); })()) == "bottom")) {
// line 25
yield "\t\t\t\t";
$context["wave"] = "none";
// line 26
yield "\t\t\t";
} elseif (((isset($context["wave"]) || array_key_exists("wave", $context) ? $context["wave"] : (function () { throw new RuntimeError('Variable "wave" does not exist.', 26, $this->source); })()) == "top")) {
// line 27
yield "\t\t\t\t";
$context["wave"] = "start";
// line 28
yield "\t\t\t";
}
// line 29
yield "\t\t\t";
$context["wants_band"] = CoreExtension::inFilter((isset($context["wave"]) || array_key_exists("wave", $context) ? $context["wave"] : (function () { throw new RuntimeError('Variable "wave" does not exist.', 29, $this->source); })()), ["start", "join"]);
// line 30
yield "
\t\t\t";
// line 31
if (((($tmp = (isset($context["wants_band"]) || array_key_exists("wants_band", $context) ? $context["wants_band"] : (function () { throw new RuntimeError('Variable "wants_band" does not exist.', 31, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp) && !(($tmp = (isset($context["in_band"]) || array_key_exists("in_band", $context) ? $context["in_band"] : (function () { throw new RuntimeError('Variable "in_band" does not exist.', 31, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
// line 32
yield "\t\t\t\t";
$context["bandStart"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["section"], "waveColor", [], "any", true, true, false, 32)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["section"], "waveColor", [], "any", false, false, false, 32), "#00AAD7")) : ("#00AAD7"));
// line 33
yield "\t\t\t\t";
$context["bandEnd"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["section"], "waveColorEnd", [], "any", true, true, false, 33)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["section"], "waveColorEnd", [], "any", false, false, false, 33), "#FFFFFF")) : ("#FFFFFF"));
// line 34
yield "\t\t\t\t<div class=\"inst-band\" style=\"--band-color: ";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["bandStart"]) || array_key_exists("bandStart", $context) ? $context["bandStart"] : (function () { throw new RuntimeError('Variable "bandStart" does not exist.', 34, $this->source); })()), "html", null, true);
yield "; --band-color-end: ";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["bandEnd"]) || array_key_exists("bandEnd", $context) ? $context["bandEnd"] : (function () { throw new RuntimeError('Variable "bandEnd" does not exist.', 34, $this->source); })()), "html", null, true);
yield "\">
\t\t\t\t\t<div class=\"inst-band__wave\" aria-hidden=\"true\">
\t\t\t\t\t\t<svg viewBox=\"0 -48 1920 480\" preserveAspectRatio=\"xMidYMin meet\" focusable=\"false\">
\t\t\t\t\t\t\t<defs>
\t\t\t\t\t\t\t\t<linearGradient id=\"inst-band-grad-";
// line 38
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 38), "html", null, true);
yield "\" gradientUnits=\"userSpaceOnUse\" x1=\"960\" y1=\"-20\" x2=\"960\" y2=\"420\">
\t\t\t\t\t\t\t\t\t<stop offset=\"0\" stop-color=\"var(--band-color)\"/>
\t\t\t\t\t\t\t\t\t<stop offset=\"0.14\" stop-color=\"var(--band-color)\"/>
\t\t\t\t\t\t\t\t\t<stop offset=\"0.72\" stop-color=\"var(--band-color-end)\"/>
\t\t\t\t\t\t\t\t\t<stop offset=\"1\" stop-color=\"var(--band-color-end)\"/>
\t\t\t\t\t\t\t\t</linearGradient>
\t\t\t\t\t\t\t</defs>
\t\t\t\t\t\t\t<path fill=\"url(#inst-band-grad-";
// line 45
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 45), "html", null, true);
yield ")\" d=\"M0 32.8704C0 32.8704 321.5 -41.088 960.995 32.8704C1600.49 106.829 1920 32.8704 1920 32.8704V420H0V32.8704Z\"/>
\t\t\t\t\t\t</svg>
\t\t\t\t\t</div>
\t\t\t\t";
// line 48
$context["in_band"] = true;
// line 49
yield "\t\t\t";
} elseif (( !(($tmp = (isset($context["wants_band"]) || array_key_exists("wants_band", $context) ? $context["wants_band"] : (function () { throw new RuntimeError('Variable "wants_band" does not exist.', 49, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp) && (($tmp = (isset($context["in_band"]) || array_key_exists("in_band", $context) ? $context["in_band"] : (function () { throw new RuntimeError('Variable "in_band" does not exist.', 49, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
// line 50
yield "\t\t\t\t</div>
\t\t\t\t";
// line 51
$context["in_band"] = false;
// line 52
yield "\t\t\t";
}
// line 53
yield "
\t\t\t";
// line 54
yield from $this->load((("pages/institutional/_" . CoreExtension::getAttribute($this->env, $this->source, $context["section"], "type", [], "any", false, false, false, 54)) . ".html.twig"), 54)->unwrap()->yield(CoreExtension::merge($context, ["section" => $context["section"]]));
// line 55
yield "\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 56
yield "\t\t";
if ((($tmp = (isset($context["in_band"]) || array_key_exists("in_band", $context) ? $context["in_band"] : (function () { throw new RuntimeError('Variable "in_band" does not exist.', 56, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 57
yield "\t\t\t</div>
\t\t";
}
// line 59
yield "\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/_institutional_page.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 309 => 59, 305 => 57, 302 => 56, 287 => 55, 285 => 54, 282 => 53, 279 => 52, 277 => 51, 274 => 50, 271 => 49, 269 => 48, 263 => 45, 253 => 38, 243 => 34, 240 => 33, 237 => 32, 235 => 31, 232 => 30, 229 => 29, 226 => 28, 223 => 27, 220 => 26, 217 => 25, 214 => 24, 211 => 23, 193 => 22, 191 => 21, 188 => 20, 175 => 19, 162 => 16, 157 => 15, 144 => 14, 122 => 12, 100 => 11, 88 => 8, 75 => 7, 64 => 1, 60 => 4, 58 => 3, 45 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27base.html.twig\x27 %}
{% if form is defined %}
\t{% form_theme form \x27form_theme.html.twig\x27 %}
{% endif %}
{% block page_class %}
\tpage institutional-page
{% endblock %}
{% block header_search %}{% endblock %}
{% block header_search_mobile %}{% endblock %}
{% block stylesheets %}
\t{{ parent() }}
\t{{ encore_entry_link_tags(\x27institutional_styles\x27) }}
{% endblock %}
{% block content %}
\t<div class=\"container-fluid px-0\" id=\"institutional-page\">
\t\t{% set in_band = false %}
\t\t{% for section in content.sections|default([]) %}
\t\t\t{% set wave = section.wave|default(\x27none\x27) %}
\t\t\t{% if wave == \x27bottom\x27 %}
\t\t\t\t{% set wave = \x27none\x27 %}
\t\t\t{% elseif wave == \x27top\x27 %}
\t\t\t\t{% set wave = \x27start\x27 %}
\t\t\t{% endif %}
\t\t\t{% set wants_band = wave in [\x27start\x27, \x27join\x27] %}
\t\t\t{% if wants_band and not in_band %}
\t\t\t\t{% set bandStart = section.waveColor|default(\x27#00AAD7\x27) %}
\t\t\t\t{% set bandEnd = section.waveColorEnd|default(\x27#FFFFFF\x27) %}
\t\t\t\t<div class=\"inst-band\" style=\"--band-color: {{ bandStart }}; --band-color-end: {{ bandEnd }}\">
\t\t\t\t\t<div class=\"inst-band__wave\" aria-hidden=\"true\">
\t\t\t\t\t\t<svg viewBox=\"0 -48 1920 480\" preserveAspectRatio=\"xMidYMin meet\" focusable=\"false\">
\t\t\t\t\t\t\t<defs>
\t\t\t\t\t\t\t\t<linearGradient id=\"inst-band-grad-{{ loop.index }}\" gradientUnits=\"userSpaceOnUse\" x1=\"960\" y1=\"-20\" x2=\"960\" y2=\"420\">
\t\t\t\t\t\t\t\t\t<stop offset=\"0\" stop-color=\"var(--band-color)\"/>
\t\t\t\t\t\t\t\t\t<stop offset=\"0.14\" stop-color=\"var(--band-color)\"/>
\t\t\t\t\t\t\t\t\t<stop offset=\"0.72\" stop-color=\"var(--band-color-end)\"/>
\t\t\t\t\t\t\t\t\t<stop offset=\"1\" stop-color=\"var(--band-color-end)\"/>
\t\t\t\t\t\t\t\t</linearGradient>
\t\t\t\t\t\t\t</defs>
\t\t\t\t\t\t\t<path fill=\"url(#inst-band-grad-{{ loop.index }})\" d=\"M0 32.8704C0 32.8704 321.5 -41.088 960.995 32.8704C1600.49 106.829 1920 32.8704 1920 32.8704V420H0V32.8704Z\"/>
\t\t\t\t\t\t</svg>
\t\t\t\t\t</div>
\t\t\t\t{% set in_band = true %}
\t\t\t{% elseif not wants_band and in_band %}
\t\t\t\t</div>
\t\t\t\t{% set in_band = false %}
\t\t\t{% endif %}
\t\t\t{% include \x27pages/institutional/_\x27 ~ section.type ~ \x27.html.twig\x27 with { section: section } %}
\t\t{% endfor %}
\t\t{% if in_band %}
\t\t\t</div>
\t\t{% endif %}
\t</div>
{% endblock %}
", "pages/_institutional_page.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/_institutional_page.html.twig");
}
}