<?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/groupe.html.twig */
class __TwigTemplate_fc7977b53fbdc0bcfc2a8d34b09eabc2cb51f86a172e62998a18cce6175a25bc extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
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", "pages/groupe.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/groupe.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "pages/groupe.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_content($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(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
echo " ";
$this->loadTemplate("fragments/_banner.html.twig", "pages/groupe.html.twig", 4)->display($context);
// line 5
echo " <div class=\"container-fluid intro dark\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-12 mb-3 p-5\">
";
// line 9
echo twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 9, $this->source); })()), "intro", [], "any", false, false, false, 9);
echo "
</div>
</div>
</div>
</div>
";
// line 14
$context["markers"] = [];
// line 15
echo " <section class=\"block-accounts mt-2\">
";
// line 16
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 16, $this->source); })()), "societes", [], "any", false, false, false, 16));
foreach ($context['_seq'] as $context["_key"] => $context["societe"]) {
// line 17
echo " <div class=\"account position-relative\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-";
// line 21
echo ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["societe"], "galerie", [], "any", false, false, false, 21))) ? (6) : (12));
echo " infos px-4 py-4 text-center\">
";
// line 22
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["societe"], "account", [], "any", false, true, false, 22), "logo", [], "any", true, true, false, 22)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["societe"], "account", [], "any", false, true, false, 22), "logo", [], "any", false, false, false, 22), null)) : (null))) {
// line 23
echo " <img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["societe"], "account", [], "any", false, false, false, 23), "logo", [], "any", false, false, false, 23), "thumbnails", [], "any", false, false, false, 23), "logo-x200", [], "array", false, false, false, 23), "html", null, true);
echo "\" class=\"img-fluid mb-3 mt-3\" >
";
}
// line 25
echo " <div class=\"location fst-italic\">
";
// line 26
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["societe"], "emplacement", [], "any", false, false, false, 26), "html", null, true);
echo "
</div>
<div class=\"service fs-5\">
";
// line 29
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["societe"], "titre", [], "any", false, false, false, 29), "html", null, true);
echo "
</div>
<hr>
<div class=\"description text-start\">
";
// line 33
echo twig_get_attribute($this->env, $this->source, $context["societe"], "description", [], "any", false, false, false, 33);
echo "
</div>
</div>
";
// line 36
if (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["societe"], "galerie", [], "any", false, false, false, 36))) {
// line 37
echo " <div class=\"col-lg-6 gallery p-0\">
<div class=\"swiper-galerie swiper h-100\">
<div class=\"swiper-wrapper\">
";
// line 40
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["societe"], "galerie", [], "any", false, false, false, 40));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 41
echo " <div class=\"swiper-slide\">
<img src=\"";
// line 42
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["media"], "formats", [], "any", false, false, false, 42), "sulu-4-3", [], "array", false, false, false, 42), "html", null, true);
echo "\" class=\"img-cover\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 45
echo " </div>
<div class=\"swiper-button-prev\"></div>
<div class=\"swiper-button-next\"></div>
</div>
</div>
";
}
// line 51
echo " </div>
</div>
</div>
";
// line 54
$context["markers"] = twig_array_merge((isset($context["markers"]) || array_key_exists("markers", $context) ? $context["markers"] : (function () { throw new RuntimeError('Variable "markers" does not exist.', 54, $this->source); })()), twig_array_map($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["societe"], "account", [], "any", false, false, false, 54), "addresses", [], "any", false, false, false, 54), function ($__a__) use ($context, $macros) { $context["a"] = $__a__; return ["lat" => twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 54, $this->source); })()), "latitude", [], "any", false, false, false, 54), "lng" => twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 54, $this->source); })()), "longitude", [], "any", false, false, false, 54), "adresse" => twig_join_filter([0 => twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 54, $this->source); })()), "street", [], "any", false, false, false, 54), 1 => twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 54, $this->source); })()), "zip", [], "any", false, false, false, 54), 2 => twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 54, $this->source); })()), "city", [], "any", false, false, false, 54)], " "), "html" => (((((((("<div style=\"text-align:center;font-size:12px;\"><img style=\"margin-bottom:5px;\" src=\"" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["societe"], "account", [], "any", false, false, false, 54), "logo", [], "any", false, false, false, 54), "thumbnails", [], "any", false, false, false, 54), "logo-map-100x50", [], "array", false, false, false, 54)) . "\" /><br>") . twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 54, $this->source); })()), "street", [], "any", false, false, false, 54)) . "<br>") . twig_join_filter([0 => twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 54, $this->source); })()), "zip", [], "any", false, false, false, 54), 1 => twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 54, $this->source); })()), "city", [], "any", false, false, false, 54)], " - ")) . "<br><strong>") . twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 54, $this->source); })()), "note", [], "any", false, false, false, 54)) . "</strong></div>")]; }));
// line 55
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['societe'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 57
echo " </section>
<section class=\"map mt-2\" data-object=\"map\" id=\"map_groupe\" data-markers=\"";
// line 60
echo twig_escape_filter($this->env, json_encode((isset($context["markers"]) || array_key_exists("markers", $context) ? $context["markers"] : (function () { throw new RuntimeError('Variable "markers" does not exist.', 60, $this->source); })())), "html", null, true);
echo "\">
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "pages/groupe.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 184 => 60, 179 => 57, 172 => 55, 170 => 54, 165 => 51, 157 => 45, 148 => 42, 145 => 41, 141 => 40, 136 => 37, 134 => 36, 128 => 33, 121 => 29, 115 => 26, 112 => 25, 106 => 23, 104 => 22, 100 => 21, 94 => 17, 90 => 16, 87 => 15, 85 => 14, 77 => 9, 71 => 5, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block content %}
{% include \"fragments/_banner.html.twig\" %}
<div class=\"container-fluid intro dark\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-12 mb-3 p-5\">
{{ content.intro|raw }}
</div>
</div>
</div>
</div>
{% set markers = [] %}
<section class=\"block-accounts mt-2\">
{% for societe in content.societes %}
<div class=\"account position-relative\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-{{ societe.galerie|length ? 6 : 12 }} infos px-4 py-4 text-center\">
{% if societe.account.logo|default(null) %}
<img src=\"{{ societe.account.logo.thumbnails['logo-x200'] }}\" class=\"img-fluid mb-3 mt-3\" >
{% endif %}
<div class=\"location fst-italic\">
{{ societe.emplacement }}
</div>
<div class=\"service fs-5\">
{{ societe.titre }}
</div>
<hr>
<div class=\"description text-start\">
{{ societe.description|raw }}
</div>
</div>
{% if societe.galerie|length %}
<div class=\"col-lg-6 gallery p-0\">
<div class=\"swiper-galerie swiper h-100\">
<div class=\"swiper-wrapper\">
{% for media in societe.galerie %}
<div class=\"swiper-slide\">
<img src=\"{{ media.formats['sulu-4-3'] }}\" class=\"img-cover\">
</div>
{% endfor %}
</div>
<div class=\"swiper-button-prev\"></div>
<div class=\"swiper-button-next\"></div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
{% set markers = markers|merge(societe.account.addresses|map(a => {lat:a.latitude,lng:a.longitude,adresse:[a.street,a.zip,a.city]|join(' '), html:'<div style=\"text-align:center;font-size:12px;\"><img style=\"margin-bottom:5px;\" src=\"'~societe.account.logo.thumbnails['logo-map-100x50']~'\" /><br>'~a.street~'<br>'~[a.zip,a.city]|join(' - ')~'<br><strong>'~a.note~'</strong></div>'})) %}
{% endfor %}
</section>
<section class=\"map mt-2\" data-object=\"map\" id=\"map_groupe\" data-markers=\"{{ markers|json_encode }}\">
</section>
{% endblock %}
", "pages/groupe.html.twig", "/var/www/vhosts/fereol-depannage.com/preprod.fereol-depannage.com/templates/pages/groupe.html.twig");
}
}