var/cache/website/dev/twig/a9/a97947a04aa19b37049aca3b49980ebbc70634062f0f86ce78ef6e48d7c3c981.php line 48

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* pages/groupe.html.twig */
  14. class __TwigTemplate_fc7977b53fbdc0bcfc2a8d34b09eabc2cb51f86a172e62998a18cce6175a25bc extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/groupe.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/groupe.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""pages/groupe.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 4
  54.         echo "    ";
  55.         $this->loadTemplate("fragments/_banner.html.twig""pages/groupe.html.twig"4)->display($context);
  56.         // line 5
  57.         echo "    <div class=\"container-fluid intro dark\">
  58.         <div class=\"container\">
  59.             <div class=\"row justify-content-center\">
  60.                 <div class=\"col-12 mb-3 p-5\">
  61.                     ";
  62.         // line 9
  63.         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"falsefalsefalse9);
  64.         echo "
  65.                 </div>
  66.             </div>
  67.         </div>
  68.     </div>
  69.     ";
  70.         // line 14
  71.         $context["markers"] = [];
  72.         // line 15
  73.         echo "    <section class=\"block-accounts mt-2\">
  74.         ";
  75.         // line 16
  76.         $context['_parent'] = $context;
  77.         $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"falsefalsefalse16));
  78.         foreach ($context['_seq'] as $context["_key"] => $context["societe"]) {
  79.             // line 17
  80.             echo "            <div class=\"account position-relative\">
  81.                 <div class=\"container\">
  82.                     <div class=\"row\">
  83.                         
  84.                         <div class=\"col-lg-";
  85.             // line 21
  86.             echo ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["societe"], "galerie", [], "any"falsefalsefalse21))) ? (6) : (12));
  87.             echo " infos px-4 py-4 text-center\">
  88.                             ";
  89.             // line 22
  90.             if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["societe"], "account", [], "any"falsetruefalse22), "logo", [], "any"truetruefalse22)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["societe"], "account", [], "any"falsetruefalse22), "logo", [], "any"falsefalsefalse22), null)) : (null))) {
  91.                 // line 23
  92.                 echo "                                <img src=\"";
  93.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["societe"], "account", [], "any"falsefalsefalse23), "logo", [], "any"falsefalsefalse23), "thumbnails", [], "any"falsefalsefalse23), "logo-x200", [], "array"falsefalsefalse23), "html"nulltrue);
  94.                 echo "\" class=\"img-fluid mb-3 mt-3\" >
  95.                             ";
  96.             }
  97.             // line 25
  98.             echo "                            <div class=\"location fst-italic\">
  99.                                 ";
  100.             // line 26
  101.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["societe"], "emplacement", [], "any"falsefalsefalse26), "html"nulltrue);
  102.             echo "
  103.                             </div>
  104.                             <div class=\"service fs-5\">
  105.                                 ";
  106.             // line 29
  107.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["societe"], "titre", [], "any"falsefalsefalse29), "html"nulltrue);
  108.             echo "
  109.                             </div>
  110.                             <hr>
  111.                             <div class=\"description text-start\">
  112.                                 ";
  113.             // line 33
  114.             echo twig_get_attribute($this->env$this->source$context["societe"], "description", [], "any"falsefalsefalse33);
  115.             echo "
  116.                             </div>
  117.                         </div>
  118.                         ";
  119.             // line 36
  120.             if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["societe"], "galerie", [], "any"falsefalsefalse36))) {
  121.                 // line 37
  122.                 echo "                        <div class=\"col-lg-6 gallery p-0\">
  123.                             <div class=\"swiper-galerie swiper h-100\">
  124.                                 <div class=\"swiper-wrapper\">
  125.                                     ";
  126.                 // line 40
  127.                 $context['_parent'] = $context;
  128.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["societe"], "galerie", [], "any"falsefalsefalse40));
  129.                 foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  130.                     // line 41
  131.                     echo "                                        <div class=\"swiper-slide\">
  132.                                             <img src=\"";
  133.                     // line 42
  134.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["media"], "formats", [], "any"falsefalsefalse42), "sulu-4-3", [], "array"falsefalsefalse42), "html"nulltrue);
  135.                     echo "\" class=\"img-cover\">
  136.                                         </div>
  137.                                     ";
  138.                 }
  139.                 $_parent $context['_parent'];
  140.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  141.                 $context array_intersect_key($context$_parent) + $_parent;
  142.                 // line 45
  143.                 echo "                                </div>
  144.                                 <div class=\"swiper-button-prev\"></div>
  145.                                 <div class=\"swiper-button-next\"></div>
  146.                             </div>
  147.                         </div>
  148.                         ";
  149.             }
  150.             // line 51
  151.             echo "                    </div>
  152.                 </div>
  153.             </div>
  154.             ";
  155.             // line 54
  156.             $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->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["societe"], "account", [], "any"falsefalsefalse54), "addresses", [], "any"falsefalsefalse54), 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"falsefalsefalse54), "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"falsefalsefalse54), "adresse" => twig_join_filter([=> 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"falsefalsefalse54), => 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"falsefalsefalse54), => 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"falsefalsefalse54)], " "), "html" => (((((((("<div style=\"text-align:center;font-size:12px;\"><img style=\"margin-bottom:5px;\" src=\"" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["societe"], "account", [], "any"falsefalsefalse54), "logo", [], "any"falsefalsefalse54), "thumbnails", [], "any"falsefalsefalse54), "logo-map-100x50", [], "array"falsefalsefalse54)) . "\" /><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"falsefalsefalse54)) . "<br>") . twig_join_filter([=> 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"falsefalsefalse54), => 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"falsefalsefalse54)], " - ")) . "<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"falsefalsefalse54)) . "</strong></div>")]; }));
  157.             // line 55
  158.             echo "            
  159.         ";
  160.         }
  161.         $_parent $context['_parent'];
  162.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['societe'], $context['_parent'], $context['loop']);
  163.         $context array_intersect_key($context$_parent) + $_parent;
  164.         // line 57
  165.         echo "    </section>
  166.     <section class=\"map mt-2\" data-object=\"map\" id=\"map_groupe\" data-markers=\"";
  167.         // line 60
  168.         echo twig_escape_filter($this->envjson_encode((isset($context["markers"]) || array_key_exists("markers"$context) ? $context["markers"] : (function () { throw new RuntimeError('Variable "markers" does not exist.'60$this->source); })())), "html"nulltrue);
  169.         echo "\">
  170.     </section>
  171. ";
  172.         
  173.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  174.         
  175.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  176.     }
  177.     public function getTemplateName()
  178.     {
  179.         return "pages/groupe.html.twig";
  180.     }
  181.     public function isTraitable()
  182.     {
  183.         return false;
  184.     }
  185.     public function getDebugInfo()
  186.     {
  187.         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,);
  188.     }
  189.     public function getSourceContext()
  190.     {
  191.         return new Source("{% extends \"base.html.twig\" %}
  192. {% block content %}
  193.     {% include \"fragments/_banner.html.twig\" %}
  194.     <div class=\"container-fluid intro dark\">
  195.         <div class=\"container\">
  196.             <div class=\"row justify-content-center\">
  197.                 <div class=\"col-12 mb-3 p-5\">
  198.                     {{ content.intro|raw }}
  199.                 </div>
  200.             </div>
  201.         </div>
  202.     </div>
  203.     {% set markers = [] %}
  204.     <section class=\"block-accounts mt-2\">
  205.         {% for societe in content.societes %}
  206.             <div class=\"account position-relative\">
  207.                 <div class=\"container\">
  208.                     <div class=\"row\">
  209.                         
  210.                         <div class=\"col-lg-{{ societe.galerie|length ? 6 : 12 }} infos px-4 py-4 text-center\">
  211.                             {% if societe.account.logo|default(null) %}
  212.                                 <img src=\"{{ societe.account.logo.thumbnails['logo-x200'] }}\" class=\"img-fluid mb-3 mt-3\" >
  213.                             {% endif %}
  214.                             <div class=\"location fst-italic\">
  215.                                 {{ societe.emplacement }}
  216.                             </div>
  217.                             <div class=\"service fs-5\">
  218.                                 {{ societe.titre }}
  219.                             </div>
  220.                             <hr>
  221.                             <div class=\"description text-start\">
  222.                                 {{ societe.description|raw }}
  223.                             </div>
  224.                         </div>
  225.                         {% if societe.galerie|length %}
  226.                         <div class=\"col-lg-6 gallery p-0\">
  227.                             <div class=\"swiper-galerie swiper h-100\">
  228.                                 <div class=\"swiper-wrapper\">
  229.                                     {% for media in societe.galerie %}
  230.                                         <div class=\"swiper-slide\">
  231.                                             <img src=\"{{ media.formats['sulu-4-3'] }}\" class=\"img-cover\">
  232.                                         </div>
  233.                                     {% endfor %}
  234.                                 </div>
  235.                                 <div class=\"swiper-button-prev\"></div>
  236.                                 <div class=\"swiper-button-next\"></div>
  237.                             </div>
  238.                         </div>
  239.                         {% endif %}
  240.                     </div>
  241.                 </div>
  242.             </div>
  243.             {% 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>'})) %}
  244.             
  245.         {% endfor %}
  246.     </section>
  247.     <section class=\"map mt-2\" data-object=\"map\" id=\"map_groupe\" data-markers=\"{{ markers|json_encode }}\">
  248.     </section>
  249. {% endblock %}
  250. ""pages/groupe.html.twig""/var/www/vhosts/fereol-depannage.com/preprod.fereol-depannage.com/templates/pages/groupe.html.twig");
  251.     }
  252. }