<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* pages/home.html.twig */
class __TwigTemplate_946a6c9d1fbfb9610127f75cbb073859 extends Template
{
private $source;
private $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)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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->loadTemplate("base.html.twig", "pages/home.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_css($context, array $blocks = [])
{
$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
echo " ";
$this->displayParentBlock("css", $context, $blocks);
echo "
<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);
}
// line 15
public function block_menu($context, array $blocks = [])
{
$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
echo " ";
$this->loadTemplate("components/menu.html.twig", "pages/home.html.twig", 16)->display(twig_array_merge($context, ["transparent" => twig_get_attribute($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
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 18
public function block_content($context, array $blocks = [])
{
$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
echo "
<div id=\"slider\" class=\"inspiro-slider dots-creative ";
// line 21
if ( !twig_get_attribute($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)) {
echo "slider-halfscreen ";
} else {
echo " slider-fullscreen";
}
echo "\" data-height-xs=\"360\">
<div class=\"slide\" data-bg-image=\"";
// line 22
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ImageRenderExtension']->getFiles($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" . twig_get_attribute($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);
echo "\" >
<div class=\"bg-overlay\"></div>
<div class=\"container ";
// line 24
echo twig_escape_filter($this->env, twig_get_attribute($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);
echo "\">
<div class=\"center-sm\" >
<div class=\"slide-captions text-light\">
<h1 data-animate=\"fadeInUp\" style=\"font-size: 44px ;color : ";
// line 27
echo twig_escape_filter($this->env, twig_get_attribute($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);
echo " !important\" class=\"slider-text\" data-animate-delay=\"600\">";
echo twig_get_attribute($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);
echo "</h1>
";
// line 28
if (((twig_get_attribute($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) || (twig_get_attribute($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) != ""))) {
echo "<p class=\"slider-text\" style=\"color : ";
echo twig_escape_filter($this->env, twig_get_attribute($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);
echo " !important\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($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);
echo "</p>";
}
// line 29
echo " </div>
<a href=\"";
// line 30
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contact");
echo "\" class=\"btn btn-success\" data-animate=\"fadeInUp\" data-animate-delay=\"600\">";
echo $this->extensions['App\Twig\TransExtension']->trans("home_slider.button");
echo "</a>
</div>
</div>
</div>
</div>
";
// line 35
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($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
echo "
";
// line 37
$this->loadTemplate((("composantsPages/homeComponents/" . $context["libelleSection"]) . ".html.twig"), "pages/home.html.twig", 37)->display($context);
// line 38
echo " ";
// line 39
echo " ";
// line 40
echo " ";
// line 41
echo " ";
// line 42
echo " ";
// line 43
echo " ";
// line 44
echo " ";
// line 45
echo " ";
// line 46
echo " ";
// line 47
echo " ";
// line 48
echo " ";
// line 49
echo " ";
// line 50
echo " ";
// line 51
echo " ";
// line 52
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $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);
}
// line 56
public function block_js($context, array $blocks = [])
{
$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
echo " ";
$this->displayParentBlock("js", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "pages/home.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 260 => 57, 250 => 56, 227 => 52, 225 => 51, 223 => 50, 221 => 49, 219 => 48, 217 => 47, 215 => 46, 213 => 45, 211 => 44, 209 => 43, 207 => 42, 205 => 41, 203 => 40, 201 => 39, 199 => 38, 197 => 37, 194 => 36, 177 => 35, 167 => 30, 164 => 29, 156 => 28, 150 => 27, 144 => 24, 139 => 22, 131 => 21, 127 => 19, 117 => 18, 107 => 17, 104 => 16, 94 => 15, 71 => 3, 61 => 2, 38 => 1,);
}
public function getSourceContext()
{
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", "/var/www/vhosts/bsbroyalconstruction.fr/etoiles-batiment.spidertec.fr/httpdocs/templates/pages/home.html.twig");
}
}