var/cache/dev/twig/1d/1d8d4021127030ddf7c511dbf5b3f1939a18a9aaafb96c0bc998a77fff705a93.php line 49

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. /* site/home.html.twig */
  14. class __TwigTemplate_a199d08509cfcfdc8f78b3453eb8945fa810b2440c035e050051a82fb1e2d5f9 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.             'javascripts' => [$this'block_javascripts'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "site/base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""site/home.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""site/home.html.twig"));
  39.         $this->parent $this->loadTemplate("site/base.html.twig""site/home.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_content($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 4
  55.         echo "    ";
  56.         $this->loadTemplate("site/includes/_swiper_hero.html.twig""site/home.html.twig"4)->display($context);
  57.         // line 5
  58.         echo "    <section id=\"abcm\" class=\"relative flex-col flex bg-white flex justify-center pb-24 px-8 lg:px-4 xl:px-44\">
  59.         <div id=\"presentation\" class=\"z-10 bg-white sm:-mt-20 w-full pt-12 sm:px-20\">
  60.             <h2 class=\"text-primary mb-4 text-2.5xl font-heading break-all\">";
  61.         // line 7
  62.         echo twig_escape_filter($this->env$this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_ABCM_ZWEISPRACHIGKEIT", ["fr" => "ABCM ZWEISPRACHIGKEIT"]), "html"nulltrue);
  63.         echo "</h2>
  64.             <div id=\"presentation_txt\" class=\"leading-7 text-justify font-semibold tracking-wide\">
  65.                 ";
  66.         // line 9
  67.         echo $this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_ACCUEIL_TEXTE_ABCM");
  68.         echo "
  69.             </div>
  70.         </div>
  71.         <a class=\"mt-8 w-max sm:mx-20 z-20 bg-secondary text-white px-10 py-1 rounded-2xl transitioning hover:bg-transparent hover:text-secondary border-transparent border-2 hover:border-secondary\" href=\"";
  72.         // line 12
  73.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("actualites");
  74.         echo "\">";
  75.         echo twig_escape_filter($this->env$this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_ACTUALITES_ABCM", ["fr" => "Actualités ABCM"]), "html"nulltrue);
  76.         echo "</a>
  77.     </section>
  78.     <section id=\"ecole\" class=\"relative z-10 text-black px-8 sm:px-28 lg:px-24 xl:px-64 py-20\">
  79.         <h2 class=\"flex flex-col uppercase text-center text-3xl sm:text-4.5xl font-heading\">";
  80.         // line 16
  81.         echo twig_escape_filter($this->env$this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_ECOLES_ABCM", ["fr" => "Écoles ABCM"]), "html"nulltrue);
  82.         echo "</h2>
  83.         <div class=\"flex flex-col lg:flex-row justify-between items-center my-12 md:my-24 gap-8\">
  84.             <div class=\"lg:w-45p leading-7 font-semibold tracking-wide\">
  85.                 ";
  86.         // line 19
  87.         echo $this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_ACCUEIL_TEXTE_ECOLES");
  88.         echo "
  89.                 <a class=\"mt-8 bg-secondary text-white font-normal px-10 py-1 rounded-2xl transitioning hover:bg-transparent hover:text-secondary border-transparent border-2 hover:border-secondary\" href=\"";
  90.         // line 20
  91.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("trouver-ecole");
  92.         echo "\">";
  93.         echo twig_escape_filter($this->env$this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_TROUVER_ECOLE", ["fr" => "Trouver une école"]), "html"nulltrue);
  94.         echo "</a>
  95.             </div>
  96.             <div class=\"w-full lg:w-1/2 h-96\">
  97.                 <div id=\"map\" class=\"w-full h-full font-semibold\"></div>
  98.             </div>
  99.         </div>
  100.         <ul class=\"flex -mb-28 flex-col md:flex-row gap-12 md:gap-0 items-center md:items-stretch justify-center\">
  101.             <li class=\"flex flex-col justify-between items-center text-center md:w-1/3\">
  102.                 <p class=\"font-bold text-xl leading-7 md:mb-12\">";
  103.         // line 28
  104.         echo twig_escape_filter($this->env$this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_ACCUEIL_VALEUR_1", ["fr" => "De la maternelle au CM2"]), "html"nulltrue);
  105.         echo "</p>
  106.                 <img class=\"w-24 lg:w-28\" src=\"";
  107.         // line 29
  108.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/icones/cartable.png"), "html"nulltrue);
  109.         echo "\">
  110.             </li>
  111.             <li class=\"flex flex-col justify-between items-center text-center md:w-1/3\">
  112.                 <p class=\"font-bold text-xl leading-7 md:mb-12\">";
  113.         // line 32
  114.         echo twig_escape_filter($this->env$this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_ACCUEIL_VALEUR_2", ["fr" => "Plus de 120 salariés"]), "html"nulltrue);
  115.         echo "</p>
  116.                 <img class=\"w-24 lg:w-28\" src=\"";
  117.         // line 33
  118.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/icones/salaries.png"), "html"nulltrue);
  119.         echo "\">
  120.             </li>
  121.             <li class=\"flex flex-col justify-between items-center text-center md:w-1/3\">
  122.                 <p class=\"font-bold text-xl leading-7 md:mb-12\">";
  123.         // line 36
  124.         echo twig_escape_filter($this->env$this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_ACCUEIL_VALEUR_3", ["fr" => "Depuis 1991"]), "html"nulltrue);
  125.         echo "</p>
  126.                 <img class=\"w-24 lg:w-28\" src=\"";
  127.         // line 37
  128.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/icones/grimoire.png"), "html"nulltrue);
  129.         echo "\">
  130.             </li>
  131.         </ul>
  132.     </section>
  133.     <section id=\"immersion\" class=\"relative bg-white text-black px-8 sm:px-28 lg:px-24 xl:px-64 pt-36 pb-12\">
  134.         <h2 class=\"uppercase text-tertiary-300 leading-none text-center text-3xl sm:text-4.5xl font-heading h-40 xs:h-28 relative mb-4 xs:mb-12\">";
  135.         // line 43
  136.         echo twig_escape_filter($this->env$this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_IMMERSION_TITRE", ["fr" => "L'immersion :"]), "html"nulltrue);
  137.         echo "
  138.             <span class=\"normal-case\"> ";
  139.         // line 44
  140.         echo twig_escape_filter($this->env$this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_IMMERSION_TITRE_2", ["fr" => "Wàs esch dès ?""de" => "Wàs esch dès ?"]), "html"nulltrue);
  141.         echo "</span></h2>
  142.         <div class=\"relative w-full h-96 lg:h-132 mb-12\">
  143.             <div id=\"load\" class=\"cursor-pointer absolute z-10 rounded-full bg-white hover:bg-secondary transitioning w-32 h-20 flex justify-center items-center abs-center\">
  144.                 <div id=\"arrow\"></div>
  145.             </div>
  146.             <iframe id=\"video\" class=\"hidden w-full h-full\" src=\"";
  147.         // line 49
  148.         echo twig_escape_filter($this->env$this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_VIDEO_YOUTUBE_ACCUEIL", ["fr" => "https://www.youtube.com/embed/iiJWJbbstNk"]), "html"nulltrue);
  149.         echo "\" title=\"YouTube video player\"
  150.                 frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"
  151.                 allowfullscreen></iframe>
  152.             <img class=\"opacity-75 w-full h-full object-cover \" src=\"";
  153.         // line 52
  154.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/tmp/AdobeStock_309458557_Preview.jpeg"), "html"nulltrue);
  155.         echo "\">
  156.         </div>
  157.     </section>
  158.     <section id=\"actu\" class=\"relative bg-tertiary px-8 sm:px-28 lg:px-24 xl:px-64 xl:pr-40 py-12\">
  159.         <h2 class=\"uppercase text-black text-3xl sm:text-4.5xl font-heading\">";
  160.         // line 57
  161.         echo twig_escape_filter($this->env$this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_ACTUALITES"), "html"nulltrue);
  162.         echo "</h2>
  163.         <div class=\"flex flex-col sm:flex-row sm:flex-wrap justify-center sm:justify-start items-center gap-8 mt-16 mb-8\">
  164.             ";
  165.         // line 59
  166.         $context['_parent'] = $context;
  167.         $context['_seq'] = twig_ensure_traversable((isset($context["actualites"]) || array_key_exists("actualites"$context) ? $context["actualites"] : (function () { throw new RuntimeError('Variable "actualites" does not exist.'59$this->source); })()));
  168.         foreach ($context['_seq'] as $context["_key"] => $context["actualite"]) {
  169.             // line 60
  170.             echo "                ";
  171.             $context["hasPhoto"] =  !twig_test_empty(twig_get_attribute($this->env$this->source$context["actualite"], "photo", [], "any"falsefalsefalse60));
  172.             // line 61
  173.             echo "                <a href=\"";
  174.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("actualites_detail", ["slug" => twig_get_attribute($this->env$this->source$context["actualite"], "titreUrl", [], "any"falsefalsefalse61), "actualite" => twig_get_attribute($this->env$this->source$context["actualite"], "id", [], "any"falsefalsefalse61)]), "html"nulltrue);
  175.             echo "\" class=\"cursor-pointer w-full sm:w-2/5 md:w-1/4 xl:w-1/5 h-48 relative\">
  176.                     <img alt=\"";
  177.             // line 62
  178.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["actualite"], "titre", [], "any"falsefalsefalse62), "html"nulltrue);
  179.             echo "\" class=\"w-full h-full object-cover\" src=\"";
  180.             echo twig_escape_filter($this->env, (((isset($context["hasPhoto"]) || array_key_exists("hasPhoto"$context) ? $context["hasPhoto"] : (function () { throw new RuntimeError('Variable "hasPhoto" does not exist.'62$this->source); })())) ? ($this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter(("actualites/" twig_get_attribute($this->env$this->source$context["actualite"], "photo", [], "any"falsefalsefalse62)), "tm")) : ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/tmp/actu-haguenau.jpg"))), "html"nulltrue);
  181.             echo "\">
  182.                     <p class=\"absolute -right-2 top-2 w-min bg-white text-tertiary-300 rounded-2xl text-center px-4\">";
  183.             // line 63
  184.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["actualite"], "date", [], "any"falsefalsefalse63), "d/m"), "html"nulltrue);
  185.             echo "</p>
  186.                     <div class=\"absolute x-center bottom-2 text-white bg-primary rounded-full text-center text-xs w-9/12 py-3 px-4\">
  187.                         <p class=\"mb-0\">";
  188.             // line 65
  189.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["actualite"], "titre", [], "any"falsefalsefalse65), "html"nulltrue);
  190.             echo "</p>
  191.                     </div>
  192.                 </a>
  193.             ";
  194.         }
  195.         $_parent $context['_parent'];
  196.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['actualite'], $context['_parent'], $context['loop']);
  197.         $context array_intersect_key($context$_parent) + $_parent;
  198.         // line 69
  199.         echo "            <a class=\"w-8 h-8 rounded-full flex items-center justify-center text-3xl bg-secondary text-white
  200.                 hover:bg-transparent transitioning hover:text-secondary border-transparent border-2 hover:border-secondary\" href=\"";
  201.         // line 70
  202.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("actualites");
  203.         echo "\">
  204.                 <span class=\"-mt-1\">+</span>
  205.             </a>
  206.         </div>
  207.     </section>
  208.     <section id=\"partenaire\" class=\"relative bg-white px-8 sm:px-28 lg:px-24 xl:px-64 py-12\">
  209.         <h2 class=\"uppercase text-tertiary text-3xl sm:text-4.5xl font-heading\">";
  210.         // line 77
  211.         echo twig_escape_filter($this->env$this->extensions['Atiweb\Twig\Translation\EmptyTranslationExtension']->trans("LG_NOS_PARTENAIRES", ["fr" => "Nos partenaires"]), "html"nulltrue);
  212.         echo "</h2>
  213.         <div id=\"slider-partenaire\" class=\"z-20 mt-16 mb-8 z-0 swiper-container relative w-full sm:pr-12 lg:pr-0\">
  214.             <div class=\"swiper-wrapper\">
  215.                 ";
  216.         // line 80
  217.         $context['_parent'] = $context;
  218.         $context['_seq'] = twig_ensure_traversable((isset($context["partenaires"]) || array_key_exists("partenaires"$context) ? $context["partenaires"] : (function () { throw new RuntimeError('Variable "partenaires" does not exist.'80$this->source); })()));
  219.         foreach ($context['_seq'] as $context["_key"] => $context["partenaire"]) {
  220.             // line 81
  221.             echo "                    <div class=\"swiper-slide h-auto flex items-center justify-center p-4 xl:p-12 bg-white\">
  222.                         ";
  223.             // line 82
  224.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["partenaire"], "getMedias", [], "method"falsefalsefalse82))) {
  225.                 // line 83
  226.                 echo "                            ";
  227.                 $context["fichier"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["partenaire"], "getMedias", [], "method"falsefalsefalse83), 0, [], "array"falsefalsefalse83), "fichier", [], "any"falsefalsefalse83);
  228.                 // line 84
  229.                 echo "                            <img class=\"w-full h-full object-contain\" src=\"";
  230.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((("/medias/fournisseurs/" twig_get_attribute($this->env$this->source$context["partenaire"], "id", [], "any"falsefalsefalse84)) . "/") . (isset($context["fichier"]) || array_key_exists("fichier"$context) ? $context["fichier"] : (function () { throw new RuntimeError('Variable "fichier" does not exist.'84$this->source); })()))), "html"nulltrue);
  231.                 echo "\" alt=\"";
  232.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["partenaire"], "societe", [], "any"falsefalsefalse84), "html"nulltrue);
  233.                 echo "\">
  234.                         ";
  235.             } else {
  236.                 // line 86
  237.                 echo "                            <p>";
  238.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["partenaire"], "societe", [], "any"falsefalsefalse86), "html"nulltrue);
  239.                 echo "</p>
  240.                         ";
  241.             }
  242.             // line 88
  243.             echo "                    </div>
  244.                 ";
  245.         }
  246.         $_parent $context['_parent'];
  247.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['partenaire'], $context['_parent'], $context['loop']);
  248.         $context array_intersect_key($context$_parent) + $_parent;
  249.         // line 90
  250.         echo "            </div>
  251.         </div>
  252.         <div class=\"hidden sm:block swiper-part_next absolute y-center mt-8 right-24 lg:right-12 xl:right-52 z-50 cursor-pointer\">
  253.             <i class=\"fas fa-chevron-right text-6xl md:text-4xl text-primary\"></i>
  254.         </div>
  255.     </section>
  256. ";
  257.         
  258.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  259.         
  260.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  261.     }
  262.     // line 99
  263.     public function block_javascripts($context, array $blocks = [])
  264.     {
  265.         $macros $this->macros;
  266.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  267.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  268.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  269.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  270.         // line 100
  271.         echo "    ";
  272.         $this->displayParentBlock("javascripts"$context$blocks);
  273.         echo "
  274.     <script type=\"text/javascript\">
  275.         function initMap() {
  276.             const center = {lat: 48.39878707042242, lng: 7.309071389609192};
  277.             const places = [
  278.                 ";
  279.         // line 107
  280.         $context['_parent'] = $context;
  281.         $context['_seq'] = twig_ensure_traversable((isset($context["ecoles"]) || array_key_exists("ecoles"$context) ? $context["ecoles"] : (function () { throw new RuntimeError('Variable "ecoles" does not exist.'107$this->source); })()));
  282.         foreach ($context['_seq'] as $context["_key"] => $context["ecole"]) {
  283.             // line 108
  284.             echo "                ";
  285.             $context["nom"] = (((=== 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.'108$this->source); })()), "request", [], "any"falsefalsefalse108), "locale", [], "any"falsefalsefalse108), "de"))) ? (twig_get_attribute($this->env$this->source$context["ecole"], "nomDe", [], "any"falsefalsefalse108)) : (twig_get_attribute($this->env$this->source$context["ecole"], "nom", [], "any"falsefalsefalse108)));
  286.             // line 109
  287.             echo "                ";
  288.             $context["hasPhoto"] =  !twig_test_empty(twig_get_attribute($this->env$this->source$context["ecole"], "photo", [], "any"falsefalsefalse109));
  289.             // line 110
  290.             echo "                [\"<span class='title-map'>A.B.C.M. Zweisprachigkeit</span><br>\" +
  291.                 \"<strong class='ecole-map'>";
  292.             // line 111
  293.             echo twig_escape_filter($this->env, (isset($context["nom"]) || array_key_exists("nom"$context) ? $context["nom"] : (function () { throw new RuntimeError('Variable "nom" does not exist.'111$this->source); })()), "html"nulltrue);
  294.             echo "</strong><br><br>\" +
  295.                 ";
  296.             // line 112
  297.             if ((isset($context["hasPhoto"]) || array_key_exists("hasPhoto"$context) ? $context["hasPhoto"] : (function () { throw new RuntimeError('Variable "hasPhoto" does not exist.'112$this->source); })())) {
  298.                 // line 113
  299.                 echo "                \"<div class='w-full h-32'><img class='w-full object-cover h-full' src='";
  300.                 echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source$context["ecole"], "getPhotoUrl", [], "method"falsefalsefalse113)), "tl"), "html"nulltrue);
  301.                 echo "'></div><br>\" +
  302.                 ";
  303.             }
  304.             // line 115
  305.             echo "                \"<div class='sub-container-map w-full'><span class='flex items-center leading-5'><img class='w-4 mr-2' src='/img/icones/pin.svg'>";
  306.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ecole"], "adresse", [], "any"falsefalsefalse115), "html"nulltrue);
  307.             echo ",<br> ";
  308.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ecole"], "codePostal", [], "any"falsefalsefalse115), "html"nulltrue);
  309.             echo " ";
  310.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ecole"], "ville", [], "any"falsefalsefalse115), "html"nulltrue);
  311.             echo "</span>\" +
  312.                 \"<a href='tel:+33";
  313.             // line 116
  314.             echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source$context["ecole"], "tel1", [], "any"falsefalsefalse116), 8), "html"nulltrue);
  315.             echo "'><img class='w-4 mr-2' src='/img/icones/telephone.svg'>";
  316.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ecole"], "tel1", [], "any"falsefalsefalse116), "html"nulltrue);
  317.             echo "</a><br>\" +
  318.                 ";
  319.             // line 117
  320.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["ecole"], "siteUrl", [], "any"falsefalsefalse117))) {
  321.                 echo "\"<a href='";
  322.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ecole"], "siteUrl", [], "any"falsefalsefalse117), "html"nulltrue);
  323.                 echo "' target='_blank'><img class='w-4 mr-2' src='/img/icones/web.svg'>";
  324.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ecole"], "siteTitre", [], "any"falsefalsefalse117), "html"nulltrue);
  325.                 echo "</a><br>\" +  ";
  326.             }
  327.             // line 118
  328.             echo "                \"<a href='";
  329.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ecole"], "facebook", [], "any"falsefalsefalse118), "html"nulltrue);
  330.             echo "' target='_blank'><img class='w-4 mr-2' src='/img/icones/facebook.svg'>Facebook</a></div>\"
  331.                     , ";
  332.             // line 119
  333.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ecole"], "latitude", [], "any"falsefalsefalse119), "html"nulltrue);
  334.             echo ", ";
  335.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ecole"], "longitude", [], "any"falsefalsefalse119), "html"nulltrue);
  336.             echo ", '";
  337.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ecole"], "couleur", [], "any"falsefalsefalse119), "html"nulltrue);
  338.             echo "'],
  339.                 ";
  340.         }
  341.         $_parent $context['_parent'];
  342.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ecole'], $context['_parent'], $context['loop']);
  343.         $context array_intersect_key($context$_parent) + $_parent;
  344.         // line 121
  345.         echo "            ]
  346.             const infowindow = new google.maps.InfoWindow();
  347.             const map = new google.maps.Map(document.getElementById(\"map\"), {
  348.                 zoom: 7,
  349.                 center: center,
  350.             });
  351.             setMarkers(map);
  352.             function setMarkers(map) {
  353.                 var markers = [];
  354.                 for (let i = 0; i < places.length; i++) {
  355.                     const place = places[i];
  356.                     let url = \"/img/icones/\";
  357.                     url += place[3] + \"-pin.png\";
  358.                     var icon = {
  359.                         url: url, // url
  360.                         scaledSize: new google.maps.Size(40, 40), // scaled size
  361.                     };
  362.                     let marker = new google.maps.Marker({
  363.                         position: { lat: place[1], lng: place[2] },
  364.                         map,
  365.                         icon: icon,
  366.                         title: place[0],
  367.                     });
  368.                     markers.push(marker);
  369.                     google.maps.event.addListener(marker, 'click', function(){
  370.                         infowindow.close(); // Close previously opened infowindow
  371.                         infowindow.setContent(place[0]);
  372.                         infowindow.open(map, marker);
  373.                         restoreColors()
  374.                         this.setIcon(pinSymbol('red'));
  375.                     });
  376.                     google.maps.event.addListener(infowindow, \"closeclick\", function() {
  377.                         restoreColors()
  378.                     });
  379.                     function pinSymbol(color) {
  380.                         return {
  381.                             url: '/img/icones/'+ color +'-pin.png',
  382.                             scaledSize: new google.maps.Size(40, 40), // scaled size
  383.                         };
  384.                     }
  385.                     function restoreColors() {
  386.                         for (var i = 0; i < markers.length; i++) {
  387.                             markers[i].setIcon(pinSymbol(place[3]));
  388.                         }
  389.                     }
  390.                 }
  391.             }
  392.         }
  393.     </script>
  394.     <script async defer
  395.             src=\"https://maps.googleapis.com/maps/api/js?key=";
  396.         // line 182
  397.         echo twig_escape_filter($this->envtwig_constant("WWW_PARAM_GAPI_KEY"), "html"nulltrue);
  398.         echo "&callback=initMap&libraries=&v=weekly\"></script>
  399. ";
  400.         
  401.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  402.         
  403.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  404.     }
  405.     /**
  406.      * @codeCoverageIgnore
  407.      */
  408.     public function getTemplateName()
  409.     {
  410.         return "site/home.html.twig";
  411.     }
  412.     /**
  413.      * @codeCoverageIgnore
  414.      */
  415.     public function isTraitable()
  416.     {
  417.         return false;
  418.     }
  419.     /**
  420.      * @codeCoverageIgnore
  421.      */
  422.     public function getDebugInfo()
  423.     {
  424.         return array (  434 => 182,  371 => 121,  359 => 119,  354 => 118,  346 => 117,  340 => 116,  331 => 115,  325 => 113,  323 => 112,  319 => 111,  316 => 110,  313 => 109,  310 => 108,  306 => 107,  295 => 100,  285 => 99,  268 => 90,  261 => 88,  255 => 86,  247 => 84,  244 => 83,  242 => 82,  239 => 81,  235 => 80,  229 => 77,  219 => 70,  216 => 69,  206 => 65,  201 => 63,  195 => 62,  190 => 61,  187 => 60,  183 => 59,  178 => 57,  170 => 52,  164 => 49,  156 => 44,  152 => 43,  143 => 37,  139 => 36,  133 => 33,  129 => 32,  123 => 29,  119 => 28,  106 => 20,  102 => 19,  96 => 16,  87 => 12,  81 => 9,  76 => 7,  72 => 5,  69 => 4,  59 => 3,  36 => 1,);
  425.     }
  426.     public function getSourceContext()
  427.     {
  428.         return new Source("{% extends \"site/base.html.twig\" %}
  429. {% block content %}
  430.     {% include 'site/includes/_swiper_hero.html.twig' %}
  431.     <section id=\"abcm\" class=\"relative flex-col flex bg-white flex justify-center pb-24 px-8 lg:px-4 xl:px-44\">
  432.         <div id=\"presentation\" class=\"z-10 bg-white sm:-mt-20 w-full pt-12 sm:px-20\">
  433.             <h2 class=\"text-primary mb-4 text-2.5xl font-heading break-all\">{{ 'LG_ABCM_ZWEISPRACHIGKEIT'|trans({'fr':'ABCM ZWEISPRACHIGKEIT'}) }}</h2>
  434.             <div id=\"presentation_txt\" class=\"leading-7 text-justify font-semibold tracking-wide\">
  435.                 {{ 'LG_ACCUEIL_TEXTE_ABCM'|trans() |raw }}
  436.             </div>
  437.         </div>
  438.         <a class=\"mt-8 w-max sm:mx-20 z-20 bg-secondary text-white px-10 py-1 rounded-2xl transitioning hover:bg-transparent hover:text-secondary border-transparent border-2 hover:border-secondary\" href=\"{{ path('actualites') }}\">{{ 'LG_ACTUALITES_ABCM'|trans({'fr':'Actualités ABCM'}) }}</a>
  439.     </section>
  440.     <section id=\"ecole\" class=\"relative z-10 text-black px-8 sm:px-28 lg:px-24 xl:px-64 py-20\">
  441.         <h2 class=\"flex flex-col uppercase text-center text-3xl sm:text-4.5xl font-heading\">{{ 'LG_ECOLES_ABCM'|trans({'fr':'Écoles ABCM'}) }}</h2>
  442.         <div class=\"flex flex-col lg:flex-row justify-between items-center my-12 md:my-24 gap-8\">
  443.             <div class=\"lg:w-45p leading-7 font-semibold tracking-wide\">
  444.                 {{ 'LG_ACCUEIL_TEXTE_ECOLES'|trans() |raw }}
  445.                 <a class=\"mt-8 bg-secondary text-white font-normal px-10 py-1 rounded-2xl transitioning hover:bg-transparent hover:text-secondary border-transparent border-2 hover:border-secondary\" href=\"{{ path('trouver-ecole') }}\">{{ 'LG_TROUVER_ECOLE'|trans({'fr':'Trouver une école'}) }}</a>
  446.             </div>
  447.             <div class=\"w-full lg:w-1/2 h-96\">
  448.                 <div id=\"map\" class=\"w-full h-full font-semibold\"></div>
  449.             </div>
  450.         </div>
  451.         <ul class=\"flex -mb-28 flex-col md:flex-row gap-12 md:gap-0 items-center md:items-stretch justify-center\">
  452.             <li class=\"flex flex-col justify-between items-center text-center md:w-1/3\">
  453.                 <p class=\"font-bold text-xl leading-7 md:mb-12\">{{ 'LG_ACCUEIL_VALEUR_1'|trans({'fr':'De la maternelle au CM2'}) }}</p>
  454.                 <img class=\"w-24 lg:w-28\" src=\"{{ asset('img/icones/cartable.png') }}\">
  455.             </li>
  456.             <li class=\"flex flex-col justify-between items-center text-center md:w-1/3\">
  457.                 <p class=\"font-bold text-xl leading-7 md:mb-12\">{{ 'LG_ACCUEIL_VALEUR_2'|trans({'fr':'Plus de 120 salariés'}) }}</p>
  458.                 <img class=\"w-24 lg:w-28\" src=\"{{ asset('img/icones/salaries.png') }}\">
  459.             </li>
  460.             <li class=\"flex flex-col justify-between items-center text-center md:w-1/3\">
  461.                 <p class=\"font-bold text-xl leading-7 md:mb-12\">{{ 'LG_ACCUEIL_VALEUR_3'|trans({'fr':'Depuis 1991'}) }}</p>
  462.                 <img class=\"w-24 lg:w-28\" src=\"{{ asset('img/icones/grimoire.png') }}\">
  463.             </li>
  464.         </ul>
  465.     </section>
  466.     <section id=\"immersion\" class=\"relative bg-white text-black px-8 sm:px-28 lg:px-24 xl:px-64 pt-36 pb-12\">
  467.         <h2 class=\"uppercase text-tertiary-300 leading-none text-center text-3xl sm:text-4.5xl font-heading h-40 xs:h-28 relative mb-4 xs:mb-12\">{{ 'LG_IMMERSION_TITRE'|trans({'fr':'L\\'immersion :'}) }}
  468.             <span class=\"normal-case\"> {{ 'LG_IMMERSION_TITRE_2'|trans({'fr':'Wàs esch dès ?', 'de':'Wàs esch dès ?'}) }}</span></h2>
  469.         <div class=\"relative w-full h-96 lg:h-132 mb-12\">
  470.             <div id=\"load\" class=\"cursor-pointer absolute z-10 rounded-full bg-white hover:bg-secondary transitioning w-32 h-20 flex justify-center items-center abs-center\">
  471.                 <div id=\"arrow\"></div>
  472.             </div>
  473.             <iframe id=\"video\" class=\"hidden w-full h-full\" src=\"{{ 'LG_VIDEO_YOUTUBE_ACCUEIL'|trans({'fr':'https://www.youtube.com/embed/iiJWJbbstNk'}) }}\" title=\"YouTube video player\"
  474.                 frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"
  475.                 allowfullscreen></iframe>
  476.             <img class=\"opacity-75 w-full h-full object-cover \" src=\"{{ asset('img/tmp/AdobeStock_309458557_Preview.jpeg') }}\">
  477.         </div>
  478.     </section>
  479.     <section id=\"actu\" class=\"relative bg-tertiary px-8 sm:px-28 lg:px-24 xl:px-64 xl:pr-40 py-12\">
  480.         <h2 class=\"uppercase text-black text-3xl sm:text-4.5xl font-heading\">{{ 'LG_ACTUALITES'|trans() }}</h2>
  481.         <div class=\"flex flex-col sm:flex-row sm:flex-wrap justify-center sm:justify-start items-center gap-8 mt-16 mb-8\">
  482.             {% for actualite in actualites %}
  483.                 {% set hasPhoto = (actualite.photo is not empty) %}
  484.                 <a href=\"{{ path('actualites_detail', {slug:actualite.titreUrl, actualite:actualite.id}) }}\" class=\"cursor-pointer w-full sm:w-2/5 md:w-1/4 xl:w-1/5 h-48 relative\">
  485.                     <img alt=\"{{ actualite.titre }}\" class=\"w-full h-full object-cover\" src=\"{{ hasPhoto ? ('actualites/'~actualite.photo)|imagine_filter('tm'): asset('/img/tmp/actu-haguenau.jpg') }}\">
  486.                     <p class=\"absolute -right-2 top-2 w-min bg-white text-tertiary-300 rounded-2xl text-center px-4\">{{ actualite.date|date('d/m') }}</p>
  487.                     <div class=\"absolute x-center bottom-2 text-white bg-primary rounded-full text-center text-xs w-9/12 py-3 px-4\">
  488.                         <p class=\"mb-0\">{{ actualite.titre }}</p>
  489.                     </div>
  490.                 </a>
  491.             {% endfor %}
  492.             <a class=\"w-8 h-8 rounded-full flex items-center justify-center text-3xl bg-secondary text-white
  493.                 hover:bg-transparent transitioning hover:text-secondary border-transparent border-2 hover:border-secondary\" href=\"{{ path('actualites') }}\">
  494.                 <span class=\"-mt-1\">+</span>
  495.             </a>
  496.         </div>
  497.     </section>
  498.     <section id=\"partenaire\" class=\"relative bg-white px-8 sm:px-28 lg:px-24 xl:px-64 py-12\">
  499.         <h2 class=\"uppercase text-tertiary text-3xl sm:text-4.5xl font-heading\">{{ 'LG_NOS_PARTENAIRES'|trans({'fr':'Nos partenaires'}) }}</h2>
  500.         <div id=\"slider-partenaire\" class=\"z-20 mt-16 mb-8 z-0 swiper-container relative w-full sm:pr-12 lg:pr-0\">
  501.             <div class=\"swiper-wrapper\">
  502.                 {% for partenaire in partenaires %}
  503.                     <div class=\"swiper-slide h-auto flex items-center justify-center p-4 xl:p-12 bg-white\">
  504.                         {% if partenaire.getMedias() is not empty %}
  505.                             {% set fichier = partenaire.getMedias()[0].fichier %}
  506.                             <img class=\"w-full h-full object-contain\" src=\"{{ asset('/medias/fournisseurs/'~ partenaire.id ~ '/'~ fichier) }}\" alt=\"{{ partenaire.societe }}\">
  507.                         {% else %}
  508.                             <p>{{ partenaire.societe }}</p>
  509.                         {% endif %}
  510.                     </div>
  511.                 {% endfor %}
  512.             </div>
  513.         </div>
  514.         <div class=\"hidden sm:block swiper-part_next absolute y-center mt-8 right-24 lg:right-12 xl:right-52 z-50 cursor-pointer\">
  515.             <i class=\"fas fa-chevron-right text-6xl md:text-4xl text-primary\"></i>
  516.         </div>
  517.     </section>
  518. {% endblock %}
  519. {% block javascripts %}
  520.     {{ parent() }}
  521.     <script type=\"text/javascript\">
  522.         function initMap() {
  523.             const center = {lat: 48.39878707042242, lng: 7.309071389609192};
  524.             const places = [
  525.                 {% for ecole in ecoles %}
  526.                 {% set nom = (app.request.locale == \"de\")?ecole.nomDe:ecole.nom %}
  527.                 {% set hasPhoto = (ecole.photo is not empty) %}
  528.                 [\"<span class='title-map'>A.B.C.M. Zweisprachigkeit</span><br>\" +
  529.                 \"<strong class='ecole-map'>{{ nom }}</strong><br><br>\" +
  530.                 {% if hasPhoto %}
  531.                 \"<div class='w-full h-32'><img class='w-full object-cover h-full' src='{{ asset(ecole.getPhotoUrl()) | imagine_filter('tl') }}'></div><br>\" +
  532.                 {% endif %}
  533.                 \"<div class='sub-container-map w-full'><span class='flex items-center leading-5'><img class='w-4 mr-2' src='/img/icones/pin.svg'>{{ ecole.adresse }},<br> {{ ecole.codePostal }} {{ ecole.ville }}</span>\" +
  534.                 \"<a href='tel:+33{{ ecole.tel1 |slice(8) }}'><img class='w-4 mr-2' src='/img/icones/telephone.svg'>{{ ecole.tel1 }}</a><br>\" +
  535.                 {% if ecole.siteUrl is not empty %}\"<a href='{{ ecole.siteUrl }}' target='_blank'><img class='w-4 mr-2' src='/img/icones/web.svg'>{{ ecole.siteTitre }}</a><br>\" +  {% endif %}
  536.                 \"<a href='{{ ecole.facebook }}' target='_blank'><img class='w-4 mr-2' src='/img/icones/facebook.svg'>Facebook</a></div>\"
  537.                     , {{ ecole.latitude }}, {{ ecole.longitude }}, '{{ ecole.couleur }}'],
  538.                 {% endfor %}
  539.             ]
  540.             const infowindow = new google.maps.InfoWindow();
  541.             const map = new google.maps.Map(document.getElementById(\"map\"), {
  542.                 zoom: 7,
  543.                 center: center,
  544.             });
  545.             setMarkers(map);
  546.             function setMarkers(map) {
  547.                 var markers = [];
  548.                 for (let i = 0; i < places.length; i++) {
  549.                     const place = places[i];
  550.                     let url = \"/img/icones/\";
  551.                     url += place[3] + \"-pin.png\";
  552.                     var icon = {
  553.                         url: url, // url
  554.                         scaledSize: new google.maps.Size(40, 40), // scaled size
  555.                     };
  556.                     let marker = new google.maps.Marker({
  557.                         position: { lat: place[1], lng: place[2] },
  558.                         map,
  559.                         icon: icon,
  560.                         title: place[0],
  561.                     });
  562.                     markers.push(marker);
  563.                     google.maps.event.addListener(marker, 'click', function(){
  564.                         infowindow.close(); // Close previously opened infowindow
  565.                         infowindow.setContent(place[0]);
  566.                         infowindow.open(map, marker);
  567.                         restoreColors()
  568.                         this.setIcon(pinSymbol('red'));
  569.                     });
  570.                     google.maps.event.addListener(infowindow, \"closeclick\", function() {
  571.                         restoreColors()
  572.                     });
  573.                     function pinSymbol(color) {
  574.                         return {
  575.                             url: '/img/icones/'+ color +'-pin.png',
  576.                             scaledSize: new google.maps.Size(40, 40), // scaled size
  577.                         };
  578.                     }
  579.                     function restoreColors() {
  580.                         for (var i = 0; i < markers.length; i++) {
  581.                             markers[i].setIcon(pinSymbol(place[3]));
  582.                         }
  583.                     }
  584.                 }
  585.             }
  586.         }
  587.     </script>
  588.     <script async defer
  589.             src=\"https://maps.googleapis.com/maps/api/js?key={{ constant('WWW_PARAM_GAPI_KEY') }}&callback=initMap&libraries=&v=weekly\"></script>
  590. {% endblock %}
  591. ""site/home.html.twig""/var/www/abcmzwei.eu/dev/templates/site/home.html.twig");
  592.     }
  593. }