<?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;
/* front/theme1/bloc/bloc.html.twig */
class __TwigTemplate_651b017cf689d1180a973f444b7873a67636f7ed9be85d9523411580174cf70d extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/bloc/bloc.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/bloc/bloc.html.twig"));
// line 1
if ((array_key_exists("bloc", $context) && !twig_test_empty((isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 1, $this->source); })())))) {
// line 2
echo "
";
// line 3
if ((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 3, $this->source); })()), "type", [], "any", false, false, false, 3) == "template")) {
// line 4
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["bloc"] ?? null), "template", [], "any", true, true, false, 4)) {
// line 5
echo " ";
echo twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 5, $this->source); })()), "template", [], "any", false, false, false, 5);
echo "
";
}
// line 7
echo " ";
}
// line 8
echo "
";
// line 9
if (((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 9, $this->source); })()), "type", [], "any", false, false, false, 9) == "bloc-service") && (twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 9, $this->source); })()), "data", [], "any", false, false, false, 9) != null))) {
// line 10
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 10, $this->source); })()), "data", [], "any", false, false, false, 10), "alias", [], "any", false, false, false, 10) == "bloc_travaux")) {
// line 11
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 11, $this->source); })()), "request", [], "any", false, false, false, 11), "server", [], "any", false, false, false, 11), "get", [0 => "APP_THEME"], "method", false, false, false, 11)) . "/bloc/bloc_travaux.html.twig"), ["bloc" => twig_get_attribute($this->env, $this->source, // line 12
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 12, $this->source); })()), "data", [], "any", false, false, false, 12)], false);
// line 13
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 14
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 14, $this->source); })()), "data", [], "any", false, false, false, 14), "alias", [], "any", false, false, false, 14) == "bloc_raisons")) {
// line 15
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "request", [], "any", false, false, false, 15), "server", [], "any", false, false, false, 15), "get", [0 => "APP_THEME"], "method", false, false, false, 15)) . "/bloc/bloc_raisons.html.twig"), ["bloc" => twig_get_attribute($this->env, $this->source, // line 16
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 16, $this->source); })()), "data", [], "any", false, false, false, 16)], false);
// line 17
echo "
";
}
// line 18
echo "
";
}
// line 20
echo "
";
// line 21
if (((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 21, $this->source); })()), "type", [], "any", false, false, false, 21) == "bloc-partenaire") && (twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 21, $this->source); })()), "data", [], "any", false, false, false, 21) != null))) {
// line 22
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 22, $this->source); })()), "request", [], "any", false, false, false, 22), "server", [], "any", false, false, false, 22), "get", [0 => "APP_THEME"], "method", false, false, false, 22)) . "/bloc/bloc_partenaire.html.twig"), ["bloc" => twig_get_attribute($this->env, $this->source, // line 23
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 23, $this->source); })()), "data", [], "any", false, false, false, 23)], false);
// line 24
echo "
";
}
// line 26
echo "
";
// line 28
if ((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 28, $this->source); })()), "type", [], "any", false, false, false, 28) == "titre")) {
// line 29
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["bloc"] ?? null), "title", [], "any", true, true, false, 29)) {
// line 30
echo " <div class=\"text-widget text-widget-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 30, $this->source); })()), "id", [], "any", false, false, false, 30), "html", null, true);
echo "\">
";
// line 31
echo twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 31, $this->source); })()), "title", [], "any", false, false, false, 31);
echo "
</div>
";
}
// line 34
echo " ";
}
// line 35
echo "
";
// line 36
if ((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 36, $this->source); })()), "type", [], "any", false, false, false, 36) == "text")) {
// line 37
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 37, $this->source); })()), "request", [], "any", false, false, false, 37), "server", [], "any", false, false, false, 37), "get", [0 => "APP_THEME"], "method", false, false, false, 37)) . "/bloc/bloc_titre_text.html.twig"), ["bloc" => // line 38
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 38, $this->source); })())], false);
// line 39
echo "
";
}
// line 41
echo "
";
// line 42
if ((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 42, $this->source); })()), "type", [], "any", false, false, false, 42) == "text2")) {
// line 43
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 43, $this->source); })()), "request", [], "any", false, false, false, 43), "server", [], "any", false, false, false, 43), "get", [0 => "APP_THEME"], "method", false, false, false, 43)) . "/bloc/bloc_image_text.html.twig"), ["bloc" => // line 44
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 44, $this->source); })())], false);
// line 45
echo "
";
}
// line 47
echo "
";
// line 48
if ((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 48, $this->source); })()), "type", [], "any", false, false, false, 48) == "form")) {
// line 49
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 49, $this->source); })()), "form", [], "any", false, false, false, 49), "identifier", [], "any", false, false, false, 49) == "form-footer")) {
// line 50
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 50, $this->source); })()), "request", [], "any", false, false, false, 50), "server", [], "any", false, false, false, 50), "get", [0 => "APP_THEME"], "method", false, false, false, 50)) . "/form/form_footer.html.twig"), ["bloc" => // line 51
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 51, $this->source); })())], false);
// line 52
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 53
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 53, $this->source); })()), "form", [], "any", false, false, false, 53), "identifier", [], "any", false, false, false, 53) == "form-contact")) {
// line 54
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })()), "request", [], "any", false, false, false, 54), "server", [], "any", false, false, false, 54), "get", [0 => "APP_THEME"], "method", false, false, false, 54)) . "/form/contact_form.html.twig"), ["bloc" => // line 55
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 55, $this->source); })())], false);
// line 56
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 57
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 57, $this->source); })()), "form", [], "any", false, false, false, 57), "identifier", [], "any", false, false, false, 57) == "form-devis")) {
// line 58
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 58, $this->source); })()), "request", [], "any", false, false, false, 58), "server", [], "any", false, false, false, 58), "get", [0 => "APP_THEME"], "method", false, false, false, 58)) . "/form/devis_form.html.twig"), ["bloc" => // line 59
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 59, $this->source); })())], false);
// line 60
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 61
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 61, $this->source); })()), "form", [], "any", false, false, false, 61), "identifier", [], "any", false, false, false, 61) == "form-faq")) {
// line 62
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 62, $this->source); })()), "request", [], "any", false, false, false, 62), "server", [], "any", false, false, false, 62), "get", [0 => "APP_THEME"], "method", false, false, false, 62)) . "/form/form_faq.html.twig"), ["bloc" => // line 63
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 63, $this->source); })())], false);
// line 64
echo "
";
} else {
// line 66
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 66, $this->source); })()), "request", [], "any", false, false, false, 66), "server", [], "any", false, false, false, 66), "get", [0 => "APP_THEME"], "method", false, false, false, 66)) . "/form/form.html.twig"), ["bloc" => // line 67
(isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 67, $this->source); })())], false);
// line 68
echo "
";
}
// line 70
echo " ";
}
// line 71
echo "
";
// line 73
if (((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 73, $this->source); })()), "type", [], "any", false, false, false, 73) == "slider") && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 73, $this->source); })()), "images", [], "any", false, false, false, 73)))) {
// line 74
echo " <div id=\"carouselDefaultIndicators\" class=\"carousel slide slider-home\" data-ride=\"carousel\">
";
// line 75
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 75, $this->source); })()), "images", [], "any", false, false, false, 75)) > 1)) {
// line 76
echo " <ol class=\"carousel-indicators\">
";
// line 77
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 77, $this->source); })()), "images", [], "any", false, false, false, 77));
foreach ($context['_seq'] as $context["key"] => $context["image"]) {
// line 78
echo " <li data-target=\"#carouselDefaultIndicators\" data-slide-to=\"";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" ";
if (($context["key"] == "0")) {
echo "class=\"active\"";
}
echo "></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 80
echo " </ol>
";
}
// line 82
echo " </div>
";
}
// line 84
echo "
";
// line 86
if ((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 86, $this->source); })()), "type", [], "any", false, false, false, 86) == "video")) {
// line 87
echo " <section class=\"all-works espace-p-top text-center panel-st conducteur-trigger text-center\">
<iframe width=\"962\" height=\"541\" src=\"";
// line 88
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 88, $this->source); })()), "url_video", [], "any", false, false, false, 88), "html", null, true);
echo "\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>
</section>
";
}
// line 91
echo "
";
// line 92
if ((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 92, $this->source); })()), "type", [], "any", false, false, false, 92) == "image")) {
// line 93
echo " <section id=\"BlocImage\" class=\"BlocImage\" ";
if ((twig_get_attribute($this->env, $this->source, ($context["bloc"] ?? null), "bgimage", [], "any", true, true, false, 93) && (twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 93, $this->source); })()), "bgimage", [], "any", false, false, false, 93) != null))) {
echo "style=\"background: url(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 93, $this->source); })()), "bgimage", [], "any", false, false, false, 93), "html", null, true);
echo ") no-repeat\" ";
}
echo ">
<div class=\"container\">
<div class=\"text-center\">
<p>";
// line 96
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 96, $this->source); })()), "title", [], "any", false, false, false, 96), "html", null, true);
echo "</p>
</div>
</div>
</section>
";
}
// line 101
echo "
";
// line 103
if ((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 103, $this->source); })()), "type", [], "any", false, false, false, 103) == "carousel")) {
// line 104
echo " <div class=\"BlocCarousel\">
<div class=\"container-fluid\">
<div class=\"row justify-content-center\">
<div class=\"col-sm-12 col-md-6 col-lg-6\">
";
// line 108
if ((twig_get_attribute($this->env, $this->source, ($context["bloc"] ?? null), "images", [], "any", true, true, false, 108) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 108, $this->source); })()), "images", [], "any", false, false, false, 108)))) {
// line 109
echo " <div id=\"carousel";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 109, $this->source); })()), "id", [], "any", false, false, false, 109), "html", null, true);
echo "\" class=\"carousel slide\" data-ride=\"carousel\">
";
// line 115
echo " <div class=\"carousel-inner text-center\">
";
// line 116
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 116, $this->source); })()), "images", [], "any", false, false, false, 116));
foreach ($context['_seq'] as $context["key"] => $context["file"]) {
// line 117
echo " <div ";
if (($context["key"] == "0")) {
echo "class=\"carousel-item active\" ";
} else {
echo " class=\"carousel-item\" ";
}
echo ">
";
// line 121
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/uploads/gallery/" . twig_get_attribute($this->env, $this->source, $context["file"], "image", [], "any", false, false, false, 121))), "img_carousel"), "html", null, true);
echo "\" class=\"img-carousel img-fluid\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["file"], "image", [], "any", false, false, false, 121), "html", null, true);
echo "\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['file'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 124
echo " </div>
</div>
";
}
// line 127
echo " </div>
</div>
</div>
</div>
";
}
// line 132
echo "
";
// line 133
if ((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 133, $this->source); })()), "type", [], "any", false, false, false, 133) == "carousel2")) {
// line 134
echo " <div class=\"BlocCarousel\">
<div class=\"container-fluid\">
<div class=\"row\">
";
// line 137
$context["carousel2_g1"] = (((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 137, $this->source); })()), "gridcarousel", [], "any", false, false, false, 137) != null)) ? ((12 - twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 137, $this->source); })()), "gridcarousel", [], "any", false, false, false, 137))) : ("6"));
// line 138
echo " ";
$context["carousel2_g2"] = (((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 138, $this->source); })()), "gridcarousel", [], "any", false, false, false, 138) != null)) ? (twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 138, $this->source); })()), "gridcarousel", [], "any", false, false, false, 138)) : ("6"));
// line 139
echo " <div class=\"col-sm-12 col-md-";
echo twig_escape_filter($this->env, (isset($context["carousel2_g1"]) || array_key_exists("carousel2_g1", $context) ? $context["carousel2_g1"] : (function () { throw new RuntimeError('Variable "carousel2_g1" does not exist.', 139, $this->source); })()), "html", null, true);
echo " col-lg-";
echo twig_escape_filter($this->env, (isset($context["carousel2_g1"]) || array_key_exists("carousel2_g1", $context) ? $context["carousel2_g1"] : (function () { throw new RuntimeError('Variable "carousel2_g1" does not exist.', 139, $this->source); })()), "html", null, true);
echo " ";
echo (((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 139, $this->source); })()), "position", [], "any", false, false, false, 139) == "left")) ? ("order-2") : ("order-1"));
echo "\">
";
// line 140
echo twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 140, $this->source); })()), "content", [], "any", false, false, false, 140);
echo "
</div>
<div class=\"col-sm-12 col-md-";
// line 142
echo twig_escape_filter($this->env, (isset($context["carousel2_g2"]) || array_key_exists("carousel2_g2", $context) ? $context["carousel2_g2"] : (function () { throw new RuntimeError('Variable "carousel2_g2" does not exist.', 142, $this->source); })()), "html", null, true);
echo " col-lg-";
echo twig_escape_filter($this->env, (isset($context["carousel2_g2"]) || array_key_exists("carousel2_g2", $context) ? $context["carousel2_g2"] : (function () { throw new RuntimeError('Variable "carousel2_g2" does not exist.', 142, $this->source); })()), "html", null, true);
echo " ";
echo (((twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 142, $this->source); })()), "position", [], "any", false, false, false, 142) == "left")) ? ("order-1") : ("order-2"));
echo "\">
";
// line 143
if ((twig_get_attribute($this->env, $this->source, ($context["bloc"] ?? null), "images", [], "any", true, true, false, 143) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 143, $this->source); })()), "images", [], "any", false, false, false, 143)))) {
// line 144
echo " <div id=\"carousel";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 144, $this->source); })()), "id", [], "any", false, false, false, 144), "html", null, true);
echo "\" class=\"carousel slide\" data-ride=\"carousel\">
";
// line 150
echo " <div class=\"carousel-inner text-center\">
";
// line 151
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["bloc"]) || array_key_exists("bloc", $context) ? $context["bloc"] : (function () { throw new RuntimeError('Variable "bloc" does not exist.', 151, $this->source); })()), "images", [], "any", false, false, false, 151));
foreach ($context['_seq'] as $context["key"] => $context["file"]) {
// line 152
echo " <div ";
if (($context["key"] == "0")) {
echo "class=\"carousel-item active\" ";
} else {
echo " class=\"carousel-item\" ";
}
echo ">
";
// line 156
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/uploads/gallery/" . twig_get_attribute($this->env, $this->source, $context["file"], "image", [], "any", false, false, false, 156))), "img_carousel"), "html", null, true);
echo "\" class=\"img-carousel img-fluid\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["file"], "image", [], "any", false, false, false, 156), "html", null, true);
echo "\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['file'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 159
echo " </div>
</div>
";
}
// line 162
echo " </div>
</div>
</div>
</div>
";
}
// line 167
echo "
";
}
// line 169
echo "
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "front/theme1/bloc/bloc.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 432 => 169, 428 => 167, 421 => 162, 416 => 159, 404 => 156, 395 => 152, 391 => 151, 388 => 150, 383 => 144, 381 => 143, 373 => 142, 368 => 140, 359 => 139, 356 => 138, 354 => 137, 349 => 134, 347 => 133, 344 => 132, 337 => 127, 332 => 124, 320 => 121, 311 => 117, 307 => 116, 304 => 115, 299 => 109, 297 => 108, 291 => 104, 289 => 103, 285 => 101, 277 => 96, 266 => 93, 264 => 92, 261 => 91, 255 => 88, 252 => 87, 250 => 86, 246 => 84, 242 => 82, 238 => 80, 225 => 78, 221 => 77, 218 => 76, 216 => 75, 213 => 74, 211 => 73, 207 => 71, 204 => 70, 200 => 68, 198 => 67, 196 => 66, 192 => 64, 190 => 63, 188 => 62, 186 => 61, 183 => 60, 181 => 59, 179 => 58, 177 => 57, 174 => 56, 172 => 55, 170 => 54, 168 => 53, 165 => 52, 163 => 51, 161 => 50, 158 => 49, 156 => 48, 153 => 47, 149 => 45, 147 => 44, 145 => 43, 143 => 42, 140 => 41, 136 => 39, 134 => 38, 132 => 37, 130 => 36, 127 => 35, 124 => 34, 118 => 31, 113 => 30, 110 => 29, 108 => 28, 104 => 26, 100 => 24, 98 => 23, 96 => 22, 94 => 21, 91 => 20, 87 => 18, 83 => 17, 81 => 16, 79 => 15, 77 => 14, 74 => 13, 72 => 12, 70 => 11, 67 => 10, 65 => 9, 62 => 8, 59 => 7, 53 => 5, 50 => 4, 48 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% if bloc is defined and bloc is not empty %}
{% if bloc.type == 'template' %}
{% if bloc.template is defined %}
{{bloc.template|raw}}
{% endif %}
{% endif %}
{% if bloc.type == 'bloc-service' and bloc.data != null %}
{% if bloc.data.alias == \"bloc_travaux\" %}
{{ include('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc_travaux.html.twig',{
bloc: bloc.data,
}, with_context = false)}}
{% elseif bloc.data.alias == \"bloc_raisons\" %}
{{ include('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc_raisons.html.twig',{
bloc: bloc.data,
}, with_context = false)}}
{% endif %}
{% endif %}
{% if bloc.type == 'bloc-partenaire' and bloc.data != null %}
{{ include('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc_partenaire.html.twig',{
bloc: bloc.data,
}, with_context = false)}}
{% endif %}
{% if bloc.type == 'titre' %}
{% if bloc.title is defined %}
<div class=\"text-widget text-widget-{{bloc.id}}\">
{{bloc.title|raw}}
</div>
{% endif %}
{% endif %}
{% if bloc.type == 'text' %}
{{ include('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc_titre_text.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% if bloc.type == 'text2' %}
{{ include('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc_image_text.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% if bloc.type == 'form' %}
{% if bloc.form.identifier == 'form-footer' %}
{{ include('front/'~ app.request.server.get('APP_THEME') ~'/form/form_footer.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% elseif bloc.form.identifier == 'form-contact' %}
{{ include('front/'~ app.request.server.get('APP_THEME') ~'/form/contact_form.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% elseif bloc.form.identifier == 'form-devis' %}
{{ include('front/'~ app.request.server.get('APP_THEME') ~'/form/devis_form.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% elseif bloc.form.identifier == 'form-faq' %}
{{ include('front/'~ app.request.server.get('APP_THEME') ~'/form/form_faq.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% else %}
{{ include('front/'~ app.request.server.get('APP_THEME') ~'/form/form.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% endif %}
{% if bloc.type == 'slider' and bloc.images is not empty %}
<div id=\"carouselDefaultIndicators\" class=\"carousel slide slider-home\" data-ride=\"carousel\">
{% if bloc.images|length > 1 %}
<ol class=\"carousel-indicators\">
{% for key,image in bloc.images %}
<li data-target=\"#carouselDefaultIndicators\" data-slide-to=\"{{key}}\" {% if key == '0' %}class=\"active\"{% endif %}></li>
{% endfor %}
</ol>
{% endif %}
</div>
{% endif %}
{% if bloc.type == 'video' %}
<section class=\"all-works espace-p-top text-center panel-st conducteur-trigger text-center\">
<iframe width=\"962\" height=\"541\" src=\"{{bloc.url_video}}\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>
</section>
{% endif %}
{% if bloc.type == 'image' %}
<section id=\"BlocImage\" class=\"BlocImage\" {% if bloc.bgimage is defined and bloc.bgimage != null %}style=\"background: url({{bloc.bgimage}}) no-repeat\" {% endif %}>
<div class=\"container\">
<div class=\"text-center\">
<p>{{bloc.title}}</p>
</div>
</div>
</section>
{% endif %}
{% if bloc.type == 'carousel' %}
<div class=\"BlocCarousel\">
<div class=\"container-fluid\">
<div class=\"row justify-content-center\">
<div class=\"col-sm-12 col-md-6 col-lg-6\">
{% if bloc.images is defined and bloc.images is not empty %}
<div id=\"carousel{{bloc.id}}\" class=\"carousel slide\" data-ride=\"carousel\">
{# <ol class=\"carousel-indicators\">
{% for key,image in bloc.images %}
<li data-target=\"#carousel{{bloc.id}}\" data-slide-to=\"{{key}}\" {% if key == '0' %}class=\"active\"{% endif %}></li>
{% endfor %}
</ol> #}
<div class=\"carousel-inner text-center\">
{% for key,file in bloc.images %}
<div {% if key == '0' %}class=\"carousel-item active\" {% else %} class=\"carousel-item\" {% endif %}>
{# <a href=\"{{asset('/uploads/gallery/'~ file.image)}}\" data-fancybox=\"{{file.image}}\" data-caption=\"{{file.image}}\" class=\"icon-loupe\">
<img src=\"{{asset('/uploads/icons/icone_loupe.png')}}\" alt=\"icon-loupe\">
</a> #}
<img src=\"{{asset('/uploads/gallery/'~ file.image)| imagine_filter('img_carousel')}}\" class=\"img-carousel img-fluid\" alt=\"{{file.image}}\">
</div>
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% endif %}
{% if bloc.type == 'carousel2' %}
<div class=\"BlocCarousel\">
<div class=\"container-fluid\">
<div class=\"row\">
{% set carousel2_g1 = bloc.gridcarousel != null? (12 - bloc.gridcarousel):'6' %}
{% set carousel2_g2 = bloc.gridcarousel != null? bloc.gridcarousel:'6' %}
<div class=\"col-sm-12 col-md-{{carousel2_g1}} col-lg-{{carousel2_g1}} {{bloc.position == 'left'?'order-2':'order-1'}}\">
{{bloc.content|raw}}
</div>
<div class=\"col-sm-12 col-md-{{carousel2_g2}} col-lg-{{carousel2_g2}} {{bloc.position == 'left'?'order-1':'order-2'}}\">
{% if bloc.images is defined and bloc.images is not empty %}
<div id=\"carousel{{bloc.id}}\" class=\"carousel slide\" data-ride=\"carousel\">
{# <ol class=\"carousel-indicators\">
{% for key,image in bloc.images %}
<li data-target=\"#carousel{{bloc.id}}\" data-slide-to=\"{{key}}\" {% if key == '0' %}class=\"active\"{% endif %}></li>
{% endfor %}
</ol> #}
<div class=\"carousel-inner text-center\">
{% for key,file in bloc.images %}
<div {% if key == '0' %}class=\"carousel-item active\" {% else %} class=\"carousel-item\" {% endif %}>
{# <a href=\"{{asset('/uploads/gallery/'~ file.image)}}\" data-fancybox=\"{{file.image}}\" data-caption=\"{{file.image}}\" class=\"icon-loupe\">
<img src=\"{{asset('/uploads/icons/icone_loupe.png')}}\" alt=\"icon-loupe\">
</a> #}
<img src=\"{{asset('/uploads/gallery/'~ file.image)| imagine_filter('img_carousel')}}\" class=\"img-carousel img-fluid\" alt=\"{{file.image}}\">
</div>
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% endif %}
{% endif %}
", "front/theme1/bloc/bloc.html.twig", "/var/www/vhosts/hrz.fr/abs-33-oscar.hrz.fr/templates/front/theme1/bloc/bloc.html.twig");
}
}