<?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/home.html.twig */
class __TwigTemplate_5bb0a1131a53158b74f0f868f980da25 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 = [
'css' => [$this, 'block_css'],
'menu' => [$this, 'block_menu'],
'content' => [$this, 'block_content'],
'js' => [$this, 'block_js'],
];
}
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/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/home.html.twig"));
$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 2
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_css(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", "css"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "css"));
// line 3
yield " ";
yield from $this->yieldParentBlock("css", $context, $blocks);
yield "
<style>
iframe img {
max-width: 250px;
max-height: 250px;
}
.slider-halfscreen {
height: 72vh;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 15
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_menu(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", "menu"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
// line 16
yield " ";
yield from $this->load("components/menu.html.twig", 16)->unwrap()->yield(CoreExtension::merge($context, ["transparent" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 16, $this->source); })()), "sliderFullscreen", [], "any", false, false, false, 16)]));
// line 17
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 18
/**
* @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 19
yield "
<div id=\"slider\" class=\"inspiro-slider dots-creative ";
// line 21
if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 21, $this->source); })()), "sliderFullscreen", [], "any", false, false, false, 21)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield "slider-halfscreen ";
} else {
yield " slider-fullscreen";
}
yield "\" data-height-xs=\"360\">
<div class=\"slide\" data-bg-image=\"";
// line 22
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['App\Twig\ImageRenderExtension']->getFiles($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 22, $this->source); })()), "imageAccueil", [], "any", false, false, false, 22)))), "3x", [], "array", false, false, false, 22), "html", null, true);
yield "\" >
<div class=\"bg-overlay\"></div>
<div class=\"container ";
// line 24
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 24, $this->source); })()), "positionSloganAccueil", [], "any", false, false, false, 24), "html", null, true);
yield "\">
<div class=\"center-sm\" >
<div class=\"slide-captions text-light\">
<h1 data-animate=\"fadeInUp\" style=\"font-size: 44px ;color : ";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 27, $this->source); })()), "couleurSlogan", [], "any", false, false, false, 27), "html", null, true);
yield " !important\" class=\"slider-text\" data-animate-delay=\"600\">";
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 27, $this->source); })()), "slogan", [], "any", false, false, false, 27);
yield "</h1>
";
// line 28
if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 28, $this->source); })()), "sousTexteSlogan", [], "any", false, false, false, 28) != null) || (CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 28, $this->source); })()), "sousTexteSlogan", [], "any", false, false, false, 28) != ""))) {
yield "<p class=\"slider-text\" style=\"color : ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 28, $this->source); })()), "couleurSlogan", [], "any", false, false, false, 28), "html", null, true);
yield " !important\"> ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["general"]) || array_key_exists("general", $context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.', 28, $this->source); })()), "sousTexteSlogan", [], "any", false, false, false, 28), "html", null, true);
yield "</p>";
}
// line 29
yield " </div>
<a href=\"";
// line 30
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contact");
yield "\" class=\"btn btn-success\" data-animate=\"fadeInUp\" data-animate-delay=\"600\">";
yield $this->extensions['App\Twig\TransExtension']->trans("home_slider.button");
yield "</a>
</div>
</div>
</div>
</div>
";
// line 35
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["menuS"]) || array_key_exists("menuS", $context) ? $context["menuS"] : (function () { throw new RuntimeError('Variable "menuS" does not exist.', 35, $this->source); })()), "compositionAccueil", [], "any", false, false, false, 35), "composition", [], "any", false, false, false, 35));
$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["libelleSection"]) {
// line 36
yield "
";
// line 37
yield from $this->load((("composantsPages/homeComponents/" . $context["libelleSection"]) . ".html.twig"), 37)->unwrap()->yield($context);
// line 38
yield " ";
// line 39
yield " ";
// line 40
yield " ";
// line 41
yield " ";
// line 42
yield " ";
// line 43
yield " ";
// line 44
yield " ";
// line 45
yield " ";
// line 46
yield " ";
// line 47
yield " ";
// line 48
yield " ";
// line 49
yield " ";
// line 50
yield " ";
// line 51
yield " ";
// line 52
yield "
";
++$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['libelleSection'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 56
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_js(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", "js"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "js"));
// line 57
yield " ";
yield from $this->yieldParentBlock("js", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/home.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 280 => 57, 267 => 56, 243 => 52, 241 => 51, 239 => 50, 237 => 49, 235 => 48, 233 => 47, 231 => 46, 229 => 45, 227 => 44, 225 => 43, 223 => 42, 221 => 41, 219 => 40, 217 => 39, 215 => 38, 213 => 37, 210 => 36, 193 => 35, 183 => 30, 180 => 29, 172 => 28, 166 => 27, 160 => 24, 155 => 22, 147 => 21, 143 => 19, 130 => 18, 119 => 17, 116 => 16, 103 => 15, 79 => 3, 66 => 2, 43 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'base.html.twig' %}
{% block css %}
{{ parent() }}
<style>
iframe img {
max-width: 250px;
max-height: 250px;
}
.slider-halfscreen {
height: 72vh;
}
</style>
{% endblock %}
{% block menu %}
{% include('components/menu.html.twig') with {'transparent' : general.sliderFullscreen }%}
{% endblock %}
{% block content %}
<div id=\"slider\" class=\"inspiro-slider dots-creative {% if not general.sliderFullscreen %}slider-halfscreen {% else %} slider-fullscreen{% endif %}\" data-height-xs=\"360\">
<div class=\"slide\" data-bg-image=\"{{ get_assets(asset('images/upload/' ~ general.imageAccueil))['3x'] }}\" >
<div class=\"bg-overlay\"></div>
<div class=\"container {{ general.positionSloganAccueil }}\">
<div class=\"center-sm\" >
<div class=\"slide-captions text-light\">
<h1 data-animate=\"fadeInUp\" style=\"font-size: 44px ;color : {{ general.couleurSlogan }} !important\" class=\"slider-text\" data-animate-delay=\"600\">{{ general.slogan | raw }}</h1>
{% if general.sousTexteSlogan != null or general.sousTexteSlogan != '' %}<p class=\"slider-text\" style=\"color : {{ general.couleurSlogan }} !important\"> {{ general.sousTexteSlogan }}</p>{% endif %}
</div>
<a href=\"{{ path('contact') }}\" class=\"btn btn-success\" data-animate=\"fadeInUp\" data-animate-delay=\"600\">{{ 'home_slider.button' | admintrans | raw }}</a>
</div>
</div>
</div>
</div>
{% for libelleSection in menuS.compositionAccueil.composition %}
{% include('composantsPages/homeComponents/'~libelleSection~'.html.twig') %}
{#{% include('composantsPages/homeComponents/quiSommesNous.html.twig') %}#}
{# {% include('composantsPages/homeComponents/zoneDintervention.html.twig') %}#}
{# {% include('composantsPages/homeComponents/nosChiffresCles.html.twig') %}#}
{# {% include('composantsPages/homeComponents/nosRealisations.html.twig') %}#}
{# {% include('composantsPages/homeComponents/nosReseauxSociauxLiens.html.twig') %}#}
{# {% include('composantsPages/homeComponents/ilsNousFontConfiance.html.twig') %}#}
{# {% include('composantsPages/homeComponents/nosGaranties.html.twig') %}#}
{# {% include('composantsPages/homeComponents/notreActualite.html.twig') %}#}
{# {% include('composantsPages/homeComponents/nosClientsTemoignent.html.twig') %}#}
{# {% include('composantsPages/homeComponents/nosReseauxSociaux.html.twig') %}#}
{# {% include('composantsPages/homeComponents/nosServices.html.twig') %}#}
{# {% include('composantsPages/homeComponents/nosTarifs.html.twig') %}#}
{# {% include('composantsPages/homeComponents/compteurs.html.twig') %}#}
{# {% include('composantsPages/homeComponents/iconesColorees.html.twig') %}#}
{% endfor %}
{% endblock %}
{% block js %}
{{ parent() }}
{% endblock %}
", "pages/home.html.twig", "/app/templates/pages/home.html.twig");
}
}