var/cache/website/dev/twig/2f/2ff8b4694d2dbe88e91b56fdf3f10d4bca48500bb4251bed374ac49ca0a3e800.php line 38

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/contact.html.twig */
  14. class __TwigTemplate_cc336e189742d0292353e56d925565ae45ef28269d4794b85b68ee54685ec372 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/contact.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/contact.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""pages/contact.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.  
  56.    
  57.     ";
  58.         // line 7
  59.         $this->loadTemplate("fragments/_banner.html.twig""pages/contact.html.twig"7)->display($context);
  60.         // line 8
  61.         echo "    ";
  62.         if (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.'8$this->source); })()), "article", [], "any"falsefalsefalse8)) {
  63.             // line 9
  64.             echo "    <div class=\"container-fluid intro dark\">
  65.         <div class=\"container\">
  66.             <div class=\"row justify-content-center\">
  67.                 <div class=\"col-12 mb-3 p-5\">
  68.                     ";
  69.             // line 13
  70.             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.'13$this->source); })()), "article", [], "any"falsefalsefalse13);
  71.             echo "
  72.                 </div>
  73.             </div>
  74.         </div>
  75.     </div>
  76.     ";
  77.         }
  78.         // line 19
  79.         echo "     ";
  80.         $context["markers"] = [];
  81.         // line 20
  82.         echo "    <section class=\"container my-5\">
  83.         <div class=\"row justify-content-center\">
  84.             <div class=\"col-lg-5\">
  85.                 <h2 class=\"fs-2 mb-4 text-primary border-bottom border-primary border-2 pb-3\">";
  86.         // line 23
  87.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Contactez-nous", [], "messages");
  88.         echo "</h2>
  89.                 ";
  90.         // line 24
  91.         if ((!== twig_compare(twig_get_attribute($this->env$this->sourcetwig_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.'24$this->source); })()), "request", [], "any"falsefalsefalse24), "get", [=> "send"], "method"falsefalsefalse24), "true"))) {
  92.             // line 25
  93.             echo "                        ";
  94.             // line 26
  95.             echo "                        ";
  96.             $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme(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.'26$this->source); })()), "form", [], "any"falsefalsefalse26), [=> "form_theme.html.twig"], true);
  97.             // line 27
  98.             echo "                        ";
  99.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(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.'27$this->source); })()), "form", [], "any"falsefalsefalse27), 'form', ["attr" => ["class" => "row"]]);
  100.             echo "
  101.                        
  102.                 ";
  103.         } else {
  104.             // line 30
  105.             echo "                    <div class=\"alert alert-success\">
  106.                         <h3 class=\"alert-heading fs-4 m-0\">";
  107.             // line 31
  108.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Message envoyé", [], "messages");
  109.             echo "</h3>
  110.                         ";
  111.             // line 32
  112.             echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["view"]) || array_key_exists("view"$context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.'32$this->source); })()), "form", [], "any"falsefalsefalse32), "entity", [], "any"falsefalsefalse32), "successText", [], "any"falsefalsefalse32);
  113.             echo "
  114.                     </div>
  115.                 ";
  116.         }
  117.         // line 34
  118.         echo 
  119.             </div>
  120.              <div class=\"col-lg-7 agences\">
  121.                 <h2 class=\"fs-2 mb-4 text-primary border-bottom border-primary border-2 pb-3\">";
  122.         // line 37
  123.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Nos agences", [], "messages");
  124.         echo "</h2>
  125.                 ";
  126.         // line 38
  127.         $context['_parent'] = $context;
  128.         $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.'38$this->source); })()), "accounts", [], "any"falsefalsefalse38));
  129.         foreach ($context['_seq'] as $context["_key"] => $context["account"]) {
  130.             // line 39
  131.             echo "                    <div class=\"account mb-3 card border-0 anim-fade anim-stagger\">
  132.                         <div class=\"card-header text-center border-primary\">
  133.                             <h2 class=\"fs-4 m-0\">";
  134.             // line 41
  135.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["account"], "name", [], "any"falsefalsefalse41), "html"nulltrue);
  136.             echo "</h2>
  137.                         </div>
  138.                         <div class=\"card-body d-lg-flex\">
  139.                             ";
  140.             // line 44
  141.             $context['_parent'] = $context;
  142.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["account"], "addresses", [], "any"falsefalsefalse44));
  143.             $context['loop'] = [
  144.               'parent' => $context['_parent'],
  145.               'index0' => 0,
  146.               'index'  => 1,
  147.               'first'  => true,
  148.             ];
  149.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  150.                 $length count($context['_seq']);
  151.                 $context['loop']['revindex0'] = $length 1;
  152.                 $context['loop']['revindex'] = $length;
  153.                 $context['loop']['length'] = $length;
  154.                 $context['loop']['last'] = === $length;
  155.             }
  156.             foreach ($context['_seq'] as $context["_key"] => $context["address"]) {
  157.                 // line 45
  158.                 echo "                                <div class=\"col-lg-4 adresse px-4 anim-fade-";
  159.                 echo (((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse45) % != 0)) ? ("right") : ("left"));
  160.                 echo "\">
  161.                                     <h3 class=\"card-title fs-6 fw-bold\">";
  162.                 // line 46
  163.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["address"], "title", [], "any"falsefalsefalse46), "html"nulltrue);
  164.                 echo "</h3>
  165.                                     ";
  166.                 // line 47
  167.                 echo twig_join_filter([=> twig_get_attribute($this->env$this->source$context["address"], "street", [], "any"falsefalsefalse47), => twig_join_filter([=> twig_get_attribute($this->env$this->source$context["address"], "zip", [], "any"falsefalsefalse47), => twig_get_attribute($this->env$this->source$context["address"], "city", [], "any"falsefalsefalse47)], " - ")], " "" <br> ");
  168.                 echo "
  169.                                     <br>
  170.                                     ";
  171.                 // line 49
  172.                 if (twig_get_attribute($this->env$this->source$context["address"], "note", [], "any"falsefalsefalse49)) {
  173.                     echo "<i class=\"fa fa-mobile-alt me-3\"></i>";
  174.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["address"], "note", [], "any"falsefalsefalse49), "html"nulltrue);
  175.                 }
  176.                 // line 50
  177.                 echo "                                </div>
  178.                             ";
  179.                 ++$context['loop']['index0'];
  180.                 ++$context['loop']['index'];
  181.                 $context['loop']['first'] = false;
  182.                 if (isset($context['loop']['length'])) {
  183.                     --$context['loop']['revindex0'];
  184.                     --$context['loop']['revindex'];
  185.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  186.                 }
  187.             }
  188.             $_parent $context['_parent'];
  189.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['address'], $context['_parent'], $context['loop']);
  190.             $context array_intersect_key($context$_parent) + $_parent;
  191.             // line 52
  192.             echo "                        </div>
  193.                     </div>
  194.                     ";
  195.             // line 54
  196.             $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->source$context["account"], "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)], " ")]; }));
  197.             // line 55
  198.             echo "                ";
  199.         }
  200.         $_parent $context['_parent'];
  201.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['account'], $context['_parent'], $context['loop']);
  202.         $context array_intersect_key($context$_parent) + $_parent;
  203.         // line 56
  204.         echo "            </div>
  205.         </div>
  206.     </section>
  207.     
  208.    
  209.     <section class=\"container-fluid\">
  210.         <div class=\"row\">
  211.             <div class=\"col-12 p-0\">
  212.                 <div class=\"map\" id=\"map-contact\" data-markers=\"";
  213.         // line 65
  214.         echo twig_escape_filter($this->envjson_encode(((array_key_exists("markers"$context)) ? (_twig_default_filter((isset($context["markers"]) || array_key_exists("markers"$context) ? $context["markers"] : (function () { throw new RuntimeError('Variable "markers" does not exist.'65$this->source); })()), [])) : ([]))), "html"nulltrue);
  215.         echo "\" data-object=\"map\">
  216.                 </div>
  217.             </div>
  218.         </div>
  219.     </section>
  220.     
  221. ";
  222.         
  223.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  224.         
  225.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  226.     }
  227.     public function getTemplateName()
  228.     {
  229.         return "pages/contact.html.twig";
  230.     }
  231.     public function isTraitable()
  232.     {
  233.         return false;
  234.     }
  235.     public function getDebugInfo()
  236.     {
  237.         return array (  229 => 65,  218 => 56,  212 => 55,  210 => 54,  206 => 52,  191 => 50,  186 => 49,  181 => 47,  177 => 46,  172 => 45,  155 => 44,  149 => 41,  145 => 39,  141 => 38,  137 => 37,  132 => 34,  126 => 32,  122 => 31,  119 => 30,  112 => 27,  109 => 26,  107 => 25,  105 => 24,  101 => 23,  96 => 20,  93 => 19,  84 => 13,  78 => 9,  75 => 8,  73 => 7,  68 => 4,  58 => 3,  35 => 1,);
  238.     }
  239.     public function getSourceContext()
  240.     {
  241.         return new Source("{% extends \"base.html.twig\" %}
  242. {% block content %}
  243.  
  244.    
  245.     {% include \"fragments/_banner.html.twig\" %}
  246.     {% if content.article %}
  247.     <div class=\"container-fluid intro dark\">
  248.         <div class=\"container\">
  249.             <div class=\"row justify-content-center\">
  250.                 <div class=\"col-12 mb-3 p-5\">
  251.                     {{ content.article|raw }}
  252.                 </div>
  253.             </div>
  254.         </div>
  255.     </div>
  256.     {% endif %}
  257.      {% set markers = [] %}
  258.     <section class=\"container my-5\">
  259.         <div class=\"row justify-content-center\">
  260.             <div class=\"col-lg-5\">
  261.                 <h2 class=\"fs-2 mb-4 text-primary border-bottom border-primary border-2 pb-3\">{% trans %}Contactez-nous{% endtrans %}</h2>
  262.                 {% if app.request.get('send') != 'true' %}
  263.                         {# FORM THEME #}
  264.                         {% form_theme content.form 'form_theme.html.twig' %}
  265.                         {{ form(content.form, {attr:{'class':'row'}}) }}
  266.                        
  267.                 {% else %}
  268.                     <div class=\"alert alert-success\">
  269.                         <h3 class=\"alert-heading fs-4 m-0\">{% trans %}Message envoyé{% endtrans %}</h3>
  270.                         {{ view.form.entity.successText|raw }}
  271.                     </div>
  272.                 {% endif %} 
  273.             </div>
  274.              <div class=\"col-lg-7 agences\">
  275.                 <h2 class=\"fs-2 mb-4 text-primary border-bottom border-primary border-2 pb-3\">{% trans %}Nos agences{% endtrans %}</h2>
  276.                 {% for account in content.accounts %}
  277.                     <div class=\"account mb-3 card border-0 anim-fade anim-stagger\">
  278.                         <div class=\"card-header text-center border-primary\">
  279.                             <h2 class=\"fs-4 m-0\">{{ account.name }}</h2>
  280.                         </div>
  281.                         <div class=\"card-body d-lg-flex\">
  282.                             {% for address in account.addresses %}
  283.                                 <div class=\"col-lg-4 adresse px-4 anim-fade-{{ loop.index is odd ? 'right' : 'left' }}\">
  284.                                     <h3 class=\"card-title fs-6 fw-bold\">{{ address.title }}</h3>
  285.                                     {{ [address.street,[address.zip,address.city]|join(' - ')]|join(' ',' <br> ')|raw }}
  286.                                     <br>
  287.                                     {% if address.note %}<i class=\"fa fa-mobile-alt me-3\"></i>{{ address.note }}{% endif %}
  288.                                 </div>
  289.                             {% endfor %}
  290.                         </div>
  291.                     </div>
  292.                     {% set markers = markers|merge(account.addresses|map(a => {lat:a.latitude,lng:a.longitude,adresse:[a.street,a.zip,a.city]|join(' ')})) %}
  293.                 {% endfor %}
  294.             </div>
  295.         </div>
  296.     </section>
  297.     
  298.    
  299.     <section class=\"container-fluid\">
  300.         <div class=\"row\">
  301.             <div class=\"col-12 p-0\">
  302.                 <div class=\"map\" id=\"map-contact\" data-markers=\"{{ markers|default([])|json_encode }}\" data-object=\"map\">
  303.                 </div>
  304.             </div>
  305.         </div>
  306.     </section>
  307.     
  308. {% endblock %}
  309. ""pages/contact.html.twig""/var/www/vhosts/fereol-depannage.com/preprod.fereol-depannage.com/templates/pages/contact.html.twig");
  310.     }
  311. }