var/cache/dev/twig/99/997718c329c3c223aab0edeec533820f.php line 43

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. /* front/homepage.html.twig */
  14. class __TwigTemplate_acfcebc932b1403520840fc5c85d20b3 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.             'title' => [$this'block_title'],
  24.             'seo' => [$this'block_seo'],
  25.             'og' => [$this'block_og'],
  26.             'choice_widget_expanded' => [$this'block_choice_widget_expanded'],
  27.             'body' => [$this'block_body'],
  28.             'javascript' => [$this'block_javascript'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "front/base.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/homepage.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/homepage.html.twig"));
  43.         // line 18
  44.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'18$this->source); })()), [$this->getTemplateName()], true);
  45.         // line 1
  46.         $this->parent $this->loadTemplate("front/base.html.twig""front/homepage.html.twig"1);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 3
  54.     public function block_title($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         // line 4
  62.         echo "\t";
  63.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.home_title"), "html"nulltrue);
  64.         echo "
  65. ";
  66.         
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68.         
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  70.     }
  71.     // line 7
  72.     public function block_seo($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  79.         // line 8
  80.         echo "\t<meta name=\"description\" content=\"";
  81.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.home_description"), "html"nulltrue);
  82.         echo "\">
  83. ";
  84.         
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  86.         
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  88.     }
  89.     // line 11
  90.     public function block_og($context, array $blocks = [])
  91.     {
  92.         $macros $this->macros;
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""og"));
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""og"));
  97.         // line 12
  98.         echo "\t<meta property=\"og:type\" content=\"website\" />
  99. \t<meta property=\"og:title\" content=\"";
  100.         // line 13
  101.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.home_title"), "html"nulltrue);
  102.         echo "\" />
  103. \t<meta property=\"og:image\" content=\"";
  104.         // line 14
  105.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage_no_locale");
  106.         echo "images/open-graph.png\"/>
  107. \t<meta property=\"og:description\" content=\"";
  108.         // line 15
  109.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.home_description"), "html"nulltrue);
  110.         echo "\"/>
  111. ";
  112.         
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  114.         
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  116.     }
  117.     // line 20
  118.     public function block_choice_widget_expanded($context, array $blocks = [])
  119.     {
  120.         $macros $this->macros;
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""choice_widget_expanded"));
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""choice_widget_expanded"));
  125.         // line 22
  126.         $context['_parent'] = $context;
  127.         $context['_seq'] = twig_ensure_traversable((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'22$this->source); })()));
  128.         foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  129.             // line 23
  130.             echo "\t<div class=\"checkbox icheck-primary\">";
  131.             // line 24
  132.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
  133.             // line 25
  134.             echo "</div>
  135. ";
  136.         }
  137.         $_parent $context['_parent'];
  138.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  139.         $context array_intersect_key($context$_parent) + $_parent;
  140.         
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  142.         
  143.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  144.     }
  145.     // line 28
  146.     public function block_body($context, array $blocks = [])
  147.     {
  148.         $macros $this->macros;
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  150.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  151.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  153.         // line 29
  154.         echo "
  155. <section class=\"screen-height overflow-hidden pt-0\" id=\"hero-section\">
  156. \t<div class=\"home-sliders hide-mobile\">
  157. \t\t";
  158.         // line 32
  159.         if ((twig_length_filter($this->env, (isset($context["sliders"]) || array_key_exists("sliders"$context) ? $context["sliders"] : (function () { throw new RuntimeError('Variable "sliders" does not exist.'32$this->source); })())) > 0)) {
  160.             // line 33
  161.             echo "\t\t
  162. \t\t";
  163.             // line 34
  164.             $context['_parent'] = $context;
  165.             $context['_seq'] = twig_ensure_traversable((isset($context["sliders"]) || array_key_exists("sliders"$context) ? $context["sliders"] : (function () { throw new RuntimeError('Variable "sliders" does not exist.'34$this->source); })()));
  166.             foreach ($context['_seq'] as $context["_key"] => $context["slider"]) {
  167.                 // line 35
  168.                 echo "\t\t\t<div class=\"landing-slider-item\" style=\"background-image: url('/images/header/";
  169.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["slider"], "image", [], "any"falsefalsefalse35), "html"nulltrue);
  170.                 echo "');\">
  171. \t\t\t\t<div class=\"container-fluid\">
  172. \t\t\t\t\t<div class=\"row slide-row\">
  173. \t\t\t\t\t\t<div class=\"col-12 content\">
  174. \t\t\t\t\t\t\t<h3 class=\"title\">";
  175.                 // line 39
  176.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["slider"], "title", [], "any"falsefalsefalse39), "html"nulltrue);
  177.                 echo "</h3>
  178. \t\t\t\t\t\t\t<p class=\"text\">
  179. \t\t\t\t\t\t\t\t";
  180.                 // line 41
  181.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["slider"], "description", [], "any"falsefalsefalse41), "html"nulltrue);
  182.                 echo "
  183. \t\t\t\t\t\t\t</p>
  184. \t\t\t\t\t\t\t";
  185.                 // line 43
  186.                 if (twig_get_attribute($this->env$this->source$context["slider"], "link", [], "any"falsefalsefalse43)) {
  187.                     // line 44
  188.                     echo "\t\t\t\t\t\t\t\t<a href=\"";
  189.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["slider"], "link", [], "any"falsefalsefalse44), "html"nulltrue);
  190.                     echo "\" class=\"btn discover\"  target=\"_blank\">";
  191.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html"nulltrue);
  192.                     echo "</a>
  193. \t\t\t\t\t\t\t";
  194.                 }
  195.                 // line 46
  196.                 echo "\t\t\t\t\t\t</div>
  197. \t\t\t\t\t</div>
  198. \t\t\t\t</div>
  199. \t\t\t</div>
  200. \t\t";
  201.             }
  202.             $_parent $context['_parent'];
  203.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['slider'], $context['_parent'], $context['loop']);
  204.             $context array_intersect_key($context$_parent) + $_parent;
  205.             // line 51
  206.             echo "\t\t";
  207.         } else {
  208.             // line 52
  209.             echo "\t\t\t<div class=\"landing-slider-item\" style=\"background-image: url('/images/hero-mobile.png');\">
  210. \t\t\t\t<div class=\"container-fluid\">
  211. \t\t\t\t\t<div class=\"row slide-row\">
  212. \t\t\t\t\t\t<div class=\"col-12 content\">
  213. \t\t\t\t\t\t\t<h3 class=\"title\">Racket Trip</h3>
  214. \t\t\t\t\t\t\t<p class=\"text\">
  215. \t\t\t\t\t\t\t\t
  216. \t\t\t\t\t\t\t</p>
  217. \t\t\t\t\t\t</div>
  218. \t\t\t\t\t</div>
  219. \t\t\t\t</div>
  220. \t\t\t</div>
  221. \t\t";
  222.         }
  223.         // line 65
  224.         echo "\t</div>
  225. \t<div class=\"home-intro hide-desktop\" style=\"background-image: url('/images/hero-mobile.png');\"></div>
  226. \t<div class=\"card search-card\">
  227. \t\t<h3 class=\"title\">";
  228.         // line 70
  229.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.looking_for_what"), "html"nulltrue);
  230.         echo "</h3>
  231. \t\t";
  232.         // line 71
  233.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'71$this->source); })()), 'form_start', ["attr" => ["class" => "home-search-form"]]);
  234.         echo "
  235. \t\t\t<div class=\"input-group global destination\">
  236. \t\t\t\t<div class=\"form-group\">
  237. \t\t\t\t\t<input type=\"text\" id=\"destination\" autocomplete=\"off\" placeholder=\"";
  238.         // line 74
  239.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.where_to"), "html"nulltrue);
  240.         echo "\" class=\"form-control\">
  241. \t\t\t\t</div>
  242. \t\t\t\t";
  243.         // line 76
  244.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'76$this->source); })()), "place", [], "any"falsefalsefalse76), 'widget');
  245.         echo "
  246. \t\t\t</div>
  247. \t\t\t<div class=\"custom-dropdown-input short-input\" id=\"sport-wrap\">
  248. \t\t\t\t<span class=\"custom-dropdown-label\" id=\"sport-checkbox-label\">";
  249.         // line 79
  250.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("directory.sport"), "html"nulltrue);
  251.         echo "</span>
  252. \t\t\t\t<div class=\"custom-dropdown-content\" id=\"sport-checkbox\">
  253. \t\t\t\t\t";
  254.         // line 81
  255.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'81$this->source); })()), "sports", [], "any"falsefalsefalse81), 'widget');
  256.         echo "
  257. \t\t\t\t</div>
  258. \t\t\t</div>
  259. \t\t\t<div class=\"custom-dropdown-input short-input\" id=\"date-wrap\">
  260. \t\t\t\t<span class=\"custom-dropdown-label\" id=\"date-input-label\">";
  261.         // line 85
  262.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("page_course_detail.from"), "html"nulltrue);
  263.         echo "</span>
  264. \t\t\t\t<div class=\"custom-dropdown-content\">
  265. \t\t\t\t\t<div id=\"datepicker\"></div>
  266. \t\t\t\t\t";
  267.         // line 88
  268.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'88$this->source); })()), "begin", [], "any"falsefalsefalse88), 'widget');
  269.         echo "
  270. \t\t\t\t</div>
  271. \t\t\t</div>
  272. \t\t\t<div class=\"hide\">
  273. \t\t\t\t";
  274.         // line 92
  275.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'92$this->source); })()), "search", [], "any"falsefalsefalse92), 'row');
  276.         echo "
  277. \t\t\t\t";
  278.         // line 93
  279.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'93$this->source); })()), 'rest');
  280.         echo "
  281. \t\t\t</div>
  282. \t\t\t<button type=\"submit\" class=\"btn main-btn mx-auto\">";
  283.         // line 95
  284.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("global.search"), "html"nulltrue);
  285.         echo "</button>
  286. \t\t";
  287.         // line 96
  288.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'96$this->source); })()), 'form_end');
  289.         echo "
  290. \t</div>
  291. \t<div class=\"landing-scroll\" id=\"discover\">
  292. \t\t<span class=\"scroll-text\">";
  293.         // line 100
  294.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover_offers"), "html"nulltrue);
  295.         echo "</span>
  296. \t\t<i class=\"far fa-chevron-down\"></i>
  297. \t</div>
  298. </section>
  299. <div class=\"overflow-hidden\">
  300. \t";
  301.         // line 108
  302.         if ((twig_length_filter($this->env, (isset($context["courses"]) || array_key_exists("courses"$context) ? $context["courses"] : (function () { throw new RuntimeError('Variable "courses" does not exist.'108$this->source); })())) > 0)) {
  303.             // line 109
  304.             echo "
  305. \t\t<section class=\"home-courses\" id=\"courses\">
  306. \t\t\t<div class=\"container-fluid home-courses-container\">
  307. \t\t\t\t<div class=\"main-title\">
  308. \t\t\t\t\t<h1 class=\"title-text\">";
  309.             // line 113
  310.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.current_courses"), "html"nulltrue);
  311.             echo "</h1>
  312. \t\t\t\t</div>
  313. \t\t\t\t<div class=\"courses-slider-wrapper mt-4\">
  314. \t\t\t\t\t";
  315.             // line 116
  316.             $context['_parent'] = $context;
  317.             $context['_seq'] = twig_ensure_traversable((isset($context["courses"]) || array_key_exists("courses"$context) ? $context["courses"] : (function () { throw new RuntimeError('Variable "courses" does not exist.'116$this->source); })()));
  318.             $context['loop'] = [
  319.               'parent' => $context['_parent'],
  320.               'index0' => 0,
  321.               'index'  => 1,
  322.               'first'  => true,
  323.             ];
  324.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  325.                 $length count($context['_seq']);
  326.                 $context['loop']['revindex0'] = $length 1;
  327.                 $context['loop']['revindex'] = $length;
  328.                 $context['loop']['length'] = $length;
  329.                 $context['loop']['last'] = === $length;
  330.             }
  331.             foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
  332.                 // line 117
  333.                 echo "
  334. \t\t\t\t\t";
  335.                 // line 118
  336.                 if ((twig_get_attribute($this->env$this->source$this->extensions['App\Twig\AppExtension']->getNextDate($context["course"], (isset($context["startingDate"]) || array_key_exists("startingDate"$context) ? $context["startingDate"] : (function () { throw new RuntimeError('Variable "startingDate" does not exist.'118$this->source); })())), "begin", [], "any"falsefalsefalse118) != null)) {
  337.                     // line 119
  338.                     echo "
  339. \t\t\t\t\t";
  340.                     // line 120
  341.                     $this->loadTemplate("front/course/_course-card.html.twig""front/homepage.html.twig"120)->display($context);
  342.                     // line 121
  343.                     echo "
  344. \t\t\t\t\t";
  345.                 }
  346.                 // line 123
  347.                 echo "
  348. \t\t\t\t\t";
  349.                 ++$context['loop']['index0'];
  350.                 ++$context['loop']['index'];
  351.                 $context['loop']['first'] = false;
  352.                 if (isset($context['loop']['length'])) {
  353.                     --$context['loop']['revindex0'];
  354.                     --$context['loop']['revindex'];
  355.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  356.                 }
  357.             }
  358.             $_parent $context['_parent'];
  359.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['course'], $context['_parent'], $context['loop']);
  360.             $context array_intersect_key($context$_parent) + $_parent;
  361.             // line 125
  362.             echo "\t\t\t\t</div>
  363. \t\t\t</div>
  364. \t\t</section>
  365. \t";
  366.         }
  367.         // line 130
  368.         echo "
  369. \t";
  370.         // line 131
  371.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_TRAINEE") && (twig_length_filter($this->env, (isset($context["traineeCourses"]) || array_key_exists("traineeCourses"$context) ? $context["traineeCourses"] : (function () { throw new RuntimeError('Variable "traineeCourses" does not exist.'131$this->source); })())) > 0))) {
  372.             // line 132
  373.             echo "
  374. \t\t<section id=\"trainee-courses\">
  375. \t\t\t<div class=\"container-fluid home-courses-container\">
  376. \t\t\t\t<div class=\"main-title\">
  377. \t\t\t\t\t<h1 class=\"title-text\">";
  378.             // line 136
  379.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.current_courses_trainee"), "html"nulltrue);
  380.             echo "</h1>
  381. \t\t\t\t</div>
  382. \t\t\t\t<div class=\"courses-slider-wrapper mt-4\">
  383. \t\t\t\t\t";
  384.             // line 140
  385.             $context['_parent'] = $context;
  386.             $context['_seq'] = twig_ensure_traversable((isset($context["traineeCourses"]) || array_key_exists("traineeCourses"$context) ? $context["traineeCourses"] : (function () { throw new RuntimeError('Variable "traineeCourses" does not exist.'140$this->source); })()));
  387.             $context['loop'] = [
  388.               'parent' => $context['_parent'],
  389.               'index0' => 0,
  390.               'index'  => 1,
  391.               'first'  => true,
  392.             ];
  393.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  394.                 $length count($context['_seq']);
  395.                 $context['loop']['revindex0'] = $length 1;
  396.                 $context['loop']['revindex'] = $length;
  397.                 $context['loop']['length'] = $length;
  398.                 $context['loop']['last'] = === $length;
  399.             }
  400.             foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
  401.                 // line 141
  402.                 echo "\t\t\t\t\t\t";
  403.                 if ((twig_get_attribute($this->env$this->source$this->extensions['App\Twig\AppExtension']->getNextDate($context["course"], (isset($context["startingDate"]) || array_key_exists("startingDate"$context) ? $context["startingDate"] : (function () { throw new RuntimeError('Variable "startingDate" does not exist.'141$this->source); })())), "begin", [], "any"falsefalsefalse141) != null)) {
  404.                     // line 142
  405.                     echo "\t\t\t\t\t\t\t";
  406.                     $this->loadTemplate("front/course/_course-card.html.twig""front/homepage.html.twig"142)->display($context);
  407.                     // line 143
  408.                     echo "\t\t\t\t\t\t";
  409.                 }
  410.                 // line 144
  411.                 echo "\t\t\t\t\t";
  412.                 ++$context['loop']['index0'];
  413.                 ++$context['loop']['index'];
  414.                 $context['loop']['first'] = false;
  415.                 if (isset($context['loop']['length'])) {
  416.                     --$context['loop']['revindex0'];
  417.                     --$context['loop']['revindex'];
  418.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  419.                 }
  420.             }
  421.             $_parent $context['_parent'];
  422.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['course'], $context['_parent'], $context['loop']);
  423.             $context array_intersect_key($context$_parent) + $_parent;
  424.             // line 145
  425.             echo "
  426. \t\t\t\t</div>
  427. \t\t\t</div>
  428. \t\t</section>
  429. \t\t
  430. \t";
  431.         }
  432.         // line 151
  433.         echo "
  434. \t<section id=\"countries\">
  435. \t\t<div class=\"container-fluid\">
  436. \t\t\t<h2 class=\"section-title-underline\">";
  437.         // line 154
  438.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.countries"), "html"nulltrue);
  439.         echo "</h2>
  440. \t\t\t<div class=\"countries-grid\">
  441. \t\t\t
  442. \t\t\t\t<div class=\"country-card\">
  443. \t\t\t\t\t<img loading=\"lazy\" src=\"";
  444.         // line 158
  445.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/destinations/espagne.png"), "html"nulltrue);
  446.         echo "\" alt=\"";
  447.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.spain"), "html"nulltrue);
  448.         echo "\">
  449. \t\t\t\t\t<a href=\"";
  450.         // line 159
  451.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
  452.         echo "\" data-place=\"ChIJi7xhMnjjQgwR7KNoB5Qs7KY\" class=\"country-mobile-link search-country\">
  453. \t\t\t\t\t\t<p class=\"country-title\">";
  454.         // line 160
  455.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.spain"), "html"nulltrue);
  456.         echo "</p>
  457. \t\t\t\t\t</a>
  458. \t\t\t\t\t<a href=\"";
  459.         // line 162
  460.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
  461.         echo "\" data-place=\"ChIJi7xhMnjjQgwR7KNoB5Qs7KY\" class=\"country-link search-country\">";
  462.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html"nulltrue);
  463.         echo "</a>
  464. \t\t\t\t</div>
  465. \t\t\t\t<div class=\"country-card\">
  466. \t\t\t\t\t<img loading=\"lazy\" src=\"";
  467.         // line 166
  468.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/destinations/senegal.png"), "html"nulltrue);
  469.         echo "\" alt=\"";
  470.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.senegal"), "html"nulltrue);
  471.         echo "\">
  472. \t\t\t\t\t<a href=\"";
  473.         // line 167
  474.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
  475.         echo "\" data-place=\"ChIJcbvFs_VywQ4RQFlhmVClRlo\" class=\"country-mobile-link search-country\">
  476. \t\t\t\t\t\t<p class=\"country-title\">";
  477.         // line 168
  478.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.senegal"), "html"nulltrue);
  479.         echo "</p>
  480. \t\t\t\t\t</a>
  481. \t\t\t\t\t<a href=\"";
  482.         // line 170
  483.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
  484.         echo "\" data-place=\"ChIJcbvFs_VywQ4RQFlhmVClRlo\" class=\"country-link search-country\">";
  485.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html"nulltrue);
  486.         echo "</a>
  487. \t\t\t\t</div>
  488. \t\t\t\t<div class=\"country-card\">
  489. \t\t\t\t\t<img loading=\"lazy\" src=\"";
  490.         // line 174
  491.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/destinations/italie.png"), "html"nulltrue);
  492.         echo "\" alt=\"";
  493.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.italy"), "html"nulltrue);
  494.         echo "\">
  495. \t\t\t\t\t<a href=\"";
  496.         // line 175
  497.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
  498.         echo "\" data-place=\"ChIJA9KNRIL-1BIRb15jJFz1LOI\" class=\"country-mobile-link search-country\">
  499. \t\t\t\t\t\t<p class=\"country-title\">";
  500.         // line 176
  501.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.italy"), "html"nulltrue);
  502.         echo "</p>
  503. \t\t\t\t\t</a>
  504. \t\t\t\t\t<a href=\"";
  505.         // line 178
  506.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
  507.         echo "\" data-place=\"ChIJA9KNRIL-1BIRb15jJFz1LOI\" class=\"country-link search-country\">";
  508.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html"nulltrue);
  509.         echo "</a>
  510. \t\t\t\t</div>
  511. \t\t\t\t<div class=\"country-card\">
  512. \t\t\t\t\t<img loading=\"lazy\" src=\"";
  513.         // line 182
  514.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/destinations/france.png"), "html"nulltrue);
  515.         echo "\" alt=\"";
  516.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.france"), "html"nulltrue);
  517.         echo "\">
  518. \t\t\t\t\t<a href=\"";
  519.         // line 183
  520.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
  521.         echo "\" data-place=\"ChIJMVd4MymgVA0R99lHx5Y__Ws\" class=\"country-mobile-link search-country\">
  522. \t\t\t\t\t\t<p class=\"country-title\">";
  523.         // line 184
  524.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.france"), "html"nulltrue);
  525.         echo "</p>
  526. \t\t\t\t\t</a>
  527. \t\t\t\t\t<a href=\"";
  528.         // line 186
  529.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
  530.         echo "\" data-place=\"ChIJMVd4MymgVA0R99lHx5Y__Ws\" class=\"country-link search-country\">";
  531.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html"nulltrue);
  532.         echo "</a>
  533. \t\t\t\t</div>
  534. \t\t\t\t<div class=\"country-card\">
  535. \t\t\t\t\t<img loading=\"lazy\" src=\"";
  536.         // line 190
  537.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/destinations/belgique.png"), "html"nulltrue);
  538.         echo "\" alt=\"";
  539.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.belgium"), "html"nulltrue);
  540.         echo "\">
  541. \t\t\t\t\t<a href=\"";
  542.         // line 191
  543.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
  544.         echo "\" data-place=\"ChIJl5fz7WR9wUcR8g_mObTy60c\" class=\"country-mobile-link search-country\">
  545. \t\t\t\t\t\t<p class=\"country-title\">";
  546.         // line 192
  547.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.belgium"), "html"nulltrue);
  548.         echo "</p>
  549. \t\t\t\t\t</a>
  550. \t\t\t\t\t<a href=\"";
  551.         // line 194
  552.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
  553.         echo "\" data-place=\"ChIJl5fz7WR9wUcR8g_mObTy60c\" class=\"country-link search-country\">";
  554.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html"nulltrue);
  555.         echo "</a>
  556. \t\t\t\t</div>
  557. \t\t\t\t<div class=\"country-card\">
  558. \t\t\t\t\t<img loading=\"lazy\" src=\"";
  559.         // line 198
  560.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/destinations/maroc.png"), "html"nulltrue);
  561.         echo "\" alt=\"";
  562.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.morocco"), "html"nulltrue);
  563.         echo "\">
  564. \t\t\t\t\t<a href=\"";
  565.         // line 199
  566.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
  567.         echo "\" data-place=\"ChIJjcVRlmGICw0Rw_8sxIGT09k\" class=\"country-mobile-link search-country\">
  568. \t\t\t\t\t\t<p class=\"country-title\">";
  569.         // line 200
  570.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.morocco"), "html"nulltrue);
  571.         echo "</p>
  572. \t\t\t\t\t</a>
  573. \t\t\t\t\t<a href=\"";
  574.         // line 202
  575.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
  576.         echo "\" data-place=\"ChIJjcVRlmGICw0Rw_8sxIGT09k\" class=\"country-link search-country\">";
  577.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html"nulltrue);
  578.         echo "</a>
  579. \t\t\t\t</div>
  580. \t\t\t\t";
  581.         // line 249
  582.         echo "\t\t\t
  583. \t\t\t</div>
  584. \t\t</section>
  585. \t\t
  586. \t\t";
  587.         // line 253
  588.         if ((twig_length_filter($this->env, (isset($context["medias"]) || array_key_exists("medias"$context) ? $context["medias"] : (function () { throw new RuntimeError('Variable "medias" does not exist.'253$this->source); })())) > 0)) {
  589.             // line 254
  590.             echo "\t\t
  591. \t\t<section id=\"talks\">
  592. \t\t\t<div class=\"container-fluid\">
  593. \t\t\t\t<div class=\"main-title mb-5\">
  594. \t\t\t\t\t<h2 class=\"title-text\">";
  595.             // line 258
  596.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.sponsors"), "html"nulltrue);
  597.             echo "</h2>
  598. \t\t\t\t</div>
  599. \t\t\t\t<div class=\"logos-wrap\">
  600. \t\t\t\t\t
  601. \t\t\t\t\t";
  602.             // line 262
  603.             $context['_parent'] = $context;
  604.             $context['_seq'] = twig_ensure_traversable((isset($context["medias"]) || array_key_exists("medias"$context) ? $context["medias"] : (function () { throw new RuntimeError('Variable "medias" does not exist.'262$this->source); })()));
  605.             foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  606.                 // line 263
  607.                 echo "\t\t\t\t\t";
  608.                 if ((twig_get_attribute($this->env$this->source$context["media"], "link", [], "any"falsefalsefalse263) != null)) {
  609.                     // line 264
  610.                     echo "\t\t\t\t\t<a href=\"";
  611.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "link", [], "any"falsefalsefalse264), "html"nulltrue);
  612.                     echo "\" target=\"_blank\">
  613. \t\t\t\t\t";
  614.                 }
  615.                 // line 266
  616.                 echo "\t\t\t\t\t<div class=\"logo-item\">
  617. \t\t\t\t\t\t<img loading=\"lazy\" src=\"";
  618.                 // line 267
  619.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/images/media/" twig_get_attribute($this->env$this->source$context["media"], "image", [], "any"falsefalsefalse267))), "html"nulltrue);
  620.                 echo "\" alt=\"Sport Eco\">
  621. \t\t\t\t\t\t<span class=\"logo-text\">\"";
  622.                 // line 268
  623.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "name", [], "any"falsefalsefalse268), "html"nulltrue);
  624.                 echo "\"</span>
  625. \t\t\t\t\t</div>
  626. \t\t\t\t\t";
  627.                 // line 270
  628.                 if ((twig_get_attribute($this->env$this->source$context["media"], "link", [], "any"falsefalsefalse270) != null)) {
  629.                     // line 271
  630.                     echo "\t\t\t\t\t</a>
  631. \t\t\t\t\t";
  632.                 }
  633.                 // line 273
  634.                 echo "\t\t\t\t\t";
  635.             }
  636.             $_parent $context['_parent'];
  637.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  638.             $context array_intersect_key($context$_parent) + $_parent;
  639.             // line 274
  640.             echo "\t\t\t\t
  641. \t\t\t\t</div>
  642. \t\t\t</div>
  643. \t\t</section>
  644. \t\t";
  645.         }
  646.         // line 280
  647.         echo "
  648. \t\t";
  649.         // line 281
  650.         if ((twig_length_filter($this->env, (isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'281$this->source); })())) > 0)) {
  651.             // line 282
  652.             echo "\t\t\t<section class=\"blog-section\" id=\"articles\">
  653. \t\t\t\t<div class=\"container-fluid\" id=\"news\">
  654. \t\t\t\t\t<h2 class=\"section-title-underline\">";
  655.             // line 284
  656.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.community"), "html"nulltrue);
  657.             echo "</h2>
  658. \t\t\t\t\t<div class=\"row\">
  659. \t\t\t\t\t\t";
  660.             // line 286
  661.             $context['_parent'] = $context;
  662.             $context['_seq'] = twig_ensure_traversable((isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'286$this->source); })()));
  663.             $context['loop'] = [
  664.               'parent' => $context['_parent'],
  665.               'index0' => 0,
  666.               'index'  => 1,
  667.               'first'  => true,
  668.             ];
  669.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  670.                 $length count($context['_seq']);
  671.                 $context['loop']['revindex0'] = $length 1;
  672.                 $context['loop']['revindex'] = $length;
  673.                 $context['loop']['length'] = $length;
  674.                 $context['loop']['last'] = === $length;
  675.             }
  676.             foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  677.                 // line 287
  678.                 echo "\t\t\t\t\t\t\t<div class=\"col-xl-3 col-lg-4 col-md-6 col-sm-12 blog-col\">
  679. \t\t\t\t\t\t\t\t";
  680.                 // line 288
  681.                 $this->loadTemplate("front/blog/_blog-card.html.twig""front/homepage.html.twig"288)->display($context);
  682.                 // line 289
  683.                 echo "\t\t\t\t\t\t\t</div>
  684. \t\t\t\t\t\t";
  685.                 ++$context['loop']['index0'];
  686.                 ++$context['loop']['index'];
  687.                 $context['loop']['first'] = false;
  688.                 if (isset($context['loop']['length'])) {
  689.                     --$context['loop']['revindex0'];
  690.                     --$context['loop']['revindex'];
  691.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  692.                 }
  693.             }
  694.             $_parent $context['_parent'];
  695.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  696.             $context array_intersect_key($context$_parent) + $_parent;
  697.             // line 291
  698.             echo "\t\t\t\t\t</div>
  699. \t\t\t\t\t<div class=\"text-center\">
  700. \t\t\t\t\t\t<a href=\"";
  701.             // line 293
  702.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog");
  703.             echo "\">
  704. \t\t\t\t\t\t\t<button class=\"btn main-btn mx-auto\">";
  705.             // line 294
  706.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.see_blog"), "html"nulltrue);
  707.             echo "</button>
  708. \t\t\t\t\t\t</a>
  709. \t\t\t\t\t</div>
  710. \t\t\t\t</div>
  711. \t\t\t</section>
  712. \t\t";
  713.         }
  714.         // line 300
  715.         echo "
  716. \t\t<section id=\"\" class=\"pb-5\">
  717. \t\t\t<div class=\"container-fluid\">
  718. \t\t\t\t<div class=\"main-title mb-5\">
  719. \t\t\t\t\t<h2 class=\"title-text\">";
  720.         // line 306
  721.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.pros"), "html"nulltrue);
  722.         echo "</h2>
  723. \t\t\t\t</div>
  724. \t\t\t\t<div class=\"partners-wrap\">
  725. \t\t\t\t\t<div class=\"partner-item\">
  726. \t\t\t\t\t\t<img loading=\"lazy\" src=\"";
  727.         // line 310
  728.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/coach.png"), "html"nulltrue);
  729.         echo "\" alt=\"Coachs\">
  730. \t\t\t\t\t\t<a href=\"";
  731.         // line 311
  732.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("directory", ["type[]" => "coach"]);
  733.         echo "\" class=\"btn partner-btn coach\">";
  734.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("global.coachs"), "html"nulltrue);
  735.         echo "</a>
  736. \t\t\t\t\t</div>
  737. \t\t\t\t\t<div class=\"partner-item\">
  738. \t\t\t\t\t\t<img loading=\"lazy\" src=\"";
  739.         // line 314
  740.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/club.png"), "html"nulltrue);
  741.         echo "\" alt=\"Clubs\">
  742. \t\t\t\t\t\t<a href=\"";
  743.         // line 315
  744.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("directory", ["type[]" => "club"]);
  745.         echo "\" class=\"btn partner-btn club\">";
  746.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("global.clubs"), "html"nulltrue);
  747.         echo "</a>
  748. \t\t\t\t\t</div>
  749. \t\t\t\t\t<div class=\"partner-item\">
  750. \t\t\t\t\t\t<img loading=\"lazy\" src=\"";
  751.         // line 318
  752.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/operator.png"), "html"nulltrue);
  753.         echo "\" alt=\"OpĂ©rateurs\">
  754. \t\t\t\t\t\t<a href=\"";
  755.         // line 319
  756.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("directory", ["type[]" => "operator"]);
  757.         echo "\" class=\"btn partner-btn operator\">";
  758.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("global.operators"), "html"nulltrue);
  759.         echo "</a>
  760. \t\t\t\t\t</div>
  761. \t\t\t\t</div>
  762. \t\t\t</div>
  763. \t\t</section>
  764. \t\t";
  765.         // line 325
  766.         $this->loadTemplate("front/blog/_blog-cta.html.twig""front/homepage.html.twig"325)->display($context);
  767.         // line 326
  768.         echo "
  769. \t</div>
  770. ";
  771.         
  772.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  773.         
  774.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  775.     }
  776.     // line 330
  777.     public function block_javascript($context, array $blocks = [])
  778.     {
  779.         $macros $this->macros;
  780.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  781.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  782.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  783.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  784.         // line 331
  785.         echo "
  786. \t<script src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyBNWTs1XHaB_zzkP1menI9mdg-NBk1IZnY&libraries=places&language=";
  787.         // line 332
  788.         echo twig_escape_filter($this->envtwig_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.'332$this->source); })()), "request", [], "any"falsefalsefalse332), "locale", [], "any"falsefalsefalse332), "html"nulltrue);
  789.         echo "\"></script>
  790. \t";
  791.         // line 334
  792.         $this->displayParentBlock("javascript"$context$blocks);
  793.         echo "
  794. \t";
  795.         // line 335
  796.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("search");
  797.         echo "
  798. \t<script>
  799. \t\tgoogle.maps.event.addDomListener(window, 'load', initialize);
  800. \t
  801. \t\tfunction initialize() {
  802.     \t\tvar address = document.getElementById('destination');
  803. \t\t\tvar options = {
  804. \t\t\t\ttypes: ['(regions)']
  805. \t\t\t};
  806. \t\t\tautocomplete = new google.maps.places.Autocomplete(address, options);
  807. \t\t\t
  808. \t\t\tgoogle.maps.event.addListener(autocomplete, 'place_changed', function() {
  809. \t\t\t\tfillInAddress();
  810. \t\t\t});
  811. \t\t\tgoogle.maps.event.addDomListener(address, 'keydown', function(event) { 
  812. \t\t\t\tif (event.keyCode === 13) { 
  813. \t\t\t\t\tevent.preventDefault(); 
  814. \t\t\t\t}
  815. \t\t\t}); 
  816. \t\t\t
  817. \t\t}
  818. \t\tfunction fillInAddress() {
  819. \t\t\tvar place = autocomplete.getPlace();
  820. \t\t\tdocument.getElementById('place').value = place.place_id;
  821. \t\t\t
  822. \t\t}
  823. \t</script>
  824. \t";
  825.         // line 383
  826.         echo "
  827. \t<script>
  828. \t\tvar searchInput = \$('#search');
  829. \t\tvar place = \$('#place');
  830. \t\tvar inSession = false;\t
  831. \t\t\$('button[type=submit]').on('click', function (e) {
  832. \t\t\tsearchInput.val(\"true\");
  833. \t\t\tif (inSession == false) {
  834. \t\t\t\te.preventDefault()
  835. \t\t\t\tlet locale = \$('.header').data('locale');
  836. \t\t\t\tlet destination = \$('#destination').val();
  837. \t\t\t\t
  838. \t\t\t\tinSession = true;
  839. \t\t\t\tif (destination != '') {
  840.         \t\t\tlocalStorage.setItem('destination', destination)
  841. \t\t\t\t}
  842. \t\t\t} 
  843. \t\t\t\$('.home-search-form').trigger('submit');
  844. \t\t})
  845. \t\t\$('.search-country').on('click', function (e) {
  846. \t\t\tif (inSession == false) {
  847. \t\t\t\te.preventDefault()
  848. \t\t\t\tlet locale = \$('.header').data('locale');
  849. \t\t\t\tlet destination = null;
  850. \t\t\t\tif (\$(this).hasClass('country-mobile-link')) {
  851. \t\t\t\t\tdestination = \$(this).find('.country-title').text();
  852. \t\t\t\t} else {
  853. \t\t\t\t\tdestination = \$(this).prev().find('.country-title').text();
  854. \t\t\t\t}
  855. \t\t\t\tsearchInput.val(\"true\");
  856. \t\t\t\tplace.val(\$(this).data('place'));
  857. \t\t\t\t
  858. \t\t\t\tinSession = true;
  859. \t\t\t\tif (destination != '') {
  860. \t\t\t\t\tlocalStorage.setItem('destination', destination)
  861. \t\t\t\t}
  862. \t\t\t} 
  863. \t\t\t\$('.home-search-form').trigger('submit');
  864. \t\t})
  865. \t</script>
  866. ";
  867.         
  868.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  869.         
  870.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  871.     }
  872.     /**
  873.      * @codeCoverageIgnore
  874.      */
  875.     public function getTemplateName()
  876.     {
  877.         return "front/homepage.html.twig";
  878.     }
  879.     /**
  880.      * @codeCoverageIgnore
  881.      */
  882.     public function isTraitable()
  883.     {
  884.         return false;
  885.     }
  886.     /**
  887.      * @codeCoverageIgnore
  888.      */
  889.     public function getDebugInfo()
  890.     {
  891.         return array (  894 => 383,  854 => 335,  850 => 334,  845 => 332,  842 => 331,  832 => 330,  820 => 326,  818 => 325,  807 => 319,  803 => 318,  795 => 315,  791 => 314,  783 => 311,  779 => 310,  772 => 306,  764 => 300,  755 => 294,  751 => 293,  747 => 291,  732 => 289,  730 => 288,  727 => 287,  710 => 286,  705 => 284,  701 => 282,  699 => 281,  696 => 280,  688 => 274,  682 => 273,  678 => 271,  676 => 270,  671 => 268,  667 => 267,  664 => 266,  658 => 264,  655 => 263,  651 => 262,  644 => 258,  638 => 254,  636 => 253,  630 => 249,  622 => 202,  617 => 200,  613 => 199,  607 => 198,  598 => 194,  593 => 192,  589 => 191,  583 => 190,  574 => 186,  569 => 184,  565 => 183,  559 => 182,  550 => 178,  545 => 176,  541 => 175,  535 => 174,  526 => 170,  521 => 168,  517 => 167,  511 => 166,  502 => 162,  497 => 160,  493 => 159,  487 => 158,  480 => 154,  475 => 151,  467 => 145,  453 => 144,  450 => 143,  447 => 142,  444 => 141,  427 => 140,  420 => 136,  414 => 132,  412 => 131,  409 => 130,  402 => 125,  387 => 123,  383 => 121,  381 => 120,  378 => 119,  376 => 118,  373 => 117,  356 => 116,  350 => 113,  344 => 109,  342 => 108,  331 => 100,  324 => 96,  320 => 95,  315 => 93,  311 => 92,  304 => 88,  298 => 85,  291 => 81,  286 => 79,  280 => 76,  275 => 74,  269 => 71,  265 => 70,  258 => 65,  243 => 52,  240 => 51,  230 => 46,  222 => 44,  220 => 43,  215 => 41,  210 => 39,  202 => 35,  198 => 34,  195 => 33,  193 => 32,  188 => 29,  178 => 28,  163 => 25,  161 => 24,  159 => 23,  155 => 22,  145 => 20,  133 => 15,  129 => 14,  125 => 13,  122 => 12,  112 => 11,  99 => 8,  89 => 7,  76 => 4,  66 => 3,  55 => 1,  53 => 18,  40 => 1,);
  892.     }
  893.     public function getSourceContext()
  894.     {
  895.         return new Source("{% extends \"front/base.html.twig\" %}
  896. {% block title %}
  897. \t{{ 'seo.home_title' | trans }}
  898. {% endblock %}
  899. {% block seo %}
  900. \t<meta name=\"description\" content=\"{{ 'seo.home_description' | trans }}\">
  901. {% endblock %}
  902. {% block og %}
  903. \t<meta property=\"og:type\" content=\"website\" />
  904. \t<meta property=\"og:title\" content=\"{{ 'seo.home_title' | trans }}\" />
  905. \t<meta property=\"og:image\" content=\"{{ url('homepage_no_locale') }}images/open-graph.png\"/>
  906. \t<meta property=\"og:description\" content=\"{{ 'seo.home_description' | trans }}\"/>
  907. {% endblock %}
  908. {% form_theme form _self %}
  909. {%- block choice_widget_expanded -%}
  910. {%- for child in form %}
  911. \t<div class=\"checkbox icheck-primary\">
  912. \t\t{{- form_widget(child) -}}
  913. \t</div>
  914. {% endfor -%}{%- endblock choice_widget_expanded -%}
  915. {% block body %}
  916. <section class=\"screen-height overflow-hidden pt-0\" id=\"hero-section\">
  917. \t<div class=\"home-sliders hide-mobile\">
  918. \t\t{% if sliders | length > 0 %}
  919. \t\t
  920. \t\t{% for slider in sliders %}
  921. \t\t\t<div class=\"landing-slider-item\" style=\"background-image: url('/images/header/{{ slider.image }}');\">
  922. \t\t\t\t<div class=\"container-fluid\">
  923. \t\t\t\t\t<div class=\"row slide-row\">
  924. \t\t\t\t\t\t<div class=\"col-12 content\">
  925. \t\t\t\t\t\t\t<h3 class=\"title\">{{ slider.title }}</h3>
  926. \t\t\t\t\t\t\t<p class=\"text\">
  927. \t\t\t\t\t\t\t\t{{ slider.description }}
  928. \t\t\t\t\t\t\t</p>
  929. \t\t\t\t\t\t\t{% if slider.link %}
  930. \t\t\t\t\t\t\t\t<a href=\"{{ slider.link }}\" class=\"btn discover\"  target=\"_blank\">{{ 'homepage.discover' | trans }}</a>
  931. \t\t\t\t\t\t\t{% endif %}
  932. \t\t\t\t\t\t</div>
  933. \t\t\t\t\t</div>
  934. \t\t\t\t</div>
  935. \t\t\t</div>
  936. \t\t{% endfor %}
  937. \t\t{% else %}
  938. \t\t\t<div class=\"landing-slider-item\" style=\"background-image: url('/images/hero-mobile.png');\">
  939. \t\t\t\t<div class=\"container-fluid\">
  940. \t\t\t\t\t<div class=\"row slide-row\">
  941. \t\t\t\t\t\t<div class=\"col-12 content\">
  942. \t\t\t\t\t\t\t<h3 class=\"title\">Racket Trip</h3>
  943. \t\t\t\t\t\t\t<p class=\"text\">
  944. \t\t\t\t\t\t\t\t
  945. \t\t\t\t\t\t\t</p>
  946. \t\t\t\t\t\t</div>
  947. \t\t\t\t\t</div>
  948. \t\t\t\t</div>
  949. \t\t\t</div>
  950. \t\t{% endif %}
  951. \t</div>
  952. \t<div class=\"home-intro hide-desktop\" style=\"background-image: url('/images/hero-mobile.png');\"></div>
  953. \t<div class=\"card search-card\">
  954. \t\t<h3 class=\"title\">{{ \"form.looking_for_what\" | trans }}</h3>
  955. \t\t{{ form_start(form, {'attr': {'class': 'home-search-form'}}) }}
  956. \t\t\t<div class=\"input-group global destination\">
  957. \t\t\t\t<div class=\"form-group\">
  958. \t\t\t\t\t<input type=\"text\" id=\"destination\" autocomplete=\"off\" placeholder=\"{{ \"homepage.where_to\" | trans }}\" class=\"form-control\">
  959. \t\t\t\t</div>
  960. \t\t\t\t{{ form_widget(form.place) }}
  961. \t\t\t</div>
  962. \t\t\t<div class=\"custom-dropdown-input short-input\" id=\"sport-wrap\">
  963. \t\t\t\t<span class=\"custom-dropdown-label\" id=\"sport-checkbox-label\">{{ \"directory.sport\" | trans }}</span>
  964. \t\t\t\t<div class=\"custom-dropdown-content\" id=\"sport-checkbox\">
  965. \t\t\t\t\t{{ form_widget(form.sports) }}
  966. \t\t\t\t</div>
  967. \t\t\t</div>
  968. \t\t\t<div class=\"custom-dropdown-input short-input\" id=\"date-wrap\">
  969. \t\t\t\t<span class=\"custom-dropdown-label\" id=\"date-input-label\">{{ \"page_course_detail.from\" | trans }}</span>
  970. \t\t\t\t<div class=\"custom-dropdown-content\">
  971. \t\t\t\t\t<div id=\"datepicker\"></div>
  972. \t\t\t\t\t{{ form_widget(form.begin) }}
  973. \t\t\t\t</div>
  974. \t\t\t</div>
  975. \t\t\t<div class=\"hide\">
  976. \t\t\t\t{{ form_row(form.search) }}
  977. \t\t\t\t{{ form_rest(form) }}
  978. \t\t\t</div>
  979. \t\t\t<button type=\"submit\" class=\"btn main-btn mx-auto\">{{ \"global.search\" | trans }}</button>
  980. \t\t{{ form_end(form) }}
  981. \t</div>
  982. \t<div class=\"landing-scroll\" id=\"discover\">
  983. \t\t<span class=\"scroll-text\">{{ 'homepage.discover_offers' | trans }}</span>
  984. \t\t<i class=\"far fa-chevron-down\"></i>
  985. \t</div>
  986. </section>
  987. <div class=\"overflow-hidden\">
  988. \t{% if courses | length > 0 %}
  989. \t\t<section class=\"home-courses\" id=\"courses\">
  990. \t\t\t<div class=\"container-fluid home-courses-container\">
  991. \t\t\t\t<div class=\"main-title\">
  992. \t\t\t\t\t<h1 class=\"title-text\">{{ 'homepage.current_courses' | trans }}</h1>
  993. \t\t\t\t</div>
  994. \t\t\t\t<div class=\"courses-slider-wrapper mt-4\">
  995. \t\t\t\t\t{% for course in courses %}
  996. \t\t\t\t\t{% if course | nextdate(startingDate).begin != null %}
  997. \t\t\t\t\t{% include \"front/course/_course-card.html.twig\" %}
  998. \t\t\t\t\t{% endif %}
  999. \t\t\t\t\t{% endfor %}
  1000. \t\t\t\t</div>
  1001. \t\t\t</div>
  1002. \t\t</section>
  1003. \t{% endif %}
  1004. \t{% if is_granted('ROLE_TRAINEE') and traineeCourses | length > 0 %}
  1005. \t\t<section id=\"trainee-courses\">
  1006. \t\t\t<div class=\"container-fluid home-courses-container\">
  1007. \t\t\t\t<div class=\"main-title\">
  1008. \t\t\t\t\t<h1 class=\"title-text\">{{ 'homepage.current_courses_trainee' | trans }}</h1>
  1009. \t\t\t\t</div>
  1010. \t\t\t\t<div class=\"courses-slider-wrapper mt-4\">
  1011. \t\t\t\t\t{% for course in traineeCourses %}
  1012. \t\t\t\t\t\t{% if course | nextdate(startingDate).begin != null %}
  1013. \t\t\t\t\t\t\t{% include \"front/course/_course-card.html.twig\" %}
  1014. \t\t\t\t\t\t{% endif %}
  1015. \t\t\t\t\t{% endfor %}
  1016. \t\t\t\t</div>
  1017. \t\t\t</div>
  1018. \t\t</section>
  1019. \t\t
  1020. \t{% endif %}
  1021. \t<section id=\"countries\">
  1022. \t\t<div class=\"container-fluid\">
  1023. \t\t\t<h2 class=\"section-title-underline\">{{ 'homepage.countries' | trans }}</h2>
  1024. \t\t\t<div class=\"countries-grid\">
  1025. \t\t\t
  1026. \t\t\t\t<div class=\"country-card\">
  1027. \t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/espagne.png') }}\" alt=\"{{ 'homepage.spain' | trans }}\">
  1028. \t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJi7xhMnjjQgwR7KNoB5Qs7KY\" class=\"country-mobile-link search-country\">
  1029. \t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.spain' | trans }}</p>
  1030. \t\t\t\t\t</a>
  1031. \t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJi7xhMnjjQgwR7KNoB5Qs7KY\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
  1032. \t\t\t\t</div>
  1033. \t\t\t\t<div class=\"country-card\">
  1034. \t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/senegal.png') }}\" alt=\"{{ 'homepage.senegal' | trans }}\">
  1035. \t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJcbvFs_VywQ4RQFlhmVClRlo\" class=\"country-mobile-link search-country\">
  1036. \t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.senegal' | trans }}</p>
  1037. \t\t\t\t\t</a>
  1038. \t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJcbvFs_VywQ4RQFlhmVClRlo\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
  1039. \t\t\t\t</div>
  1040. \t\t\t\t<div class=\"country-card\">
  1041. \t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/italie.png') }}\" alt=\"{{ 'homepage.italy' | trans }}\">
  1042. \t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJA9KNRIL-1BIRb15jJFz1LOI\" class=\"country-mobile-link search-country\">
  1043. \t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.italy' | trans }}</p>
  1044. \t\t\t\t\t</a>
  1045. \t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJA9KNRIL-1BIRb15jJFz1LOI\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
  1046. \t\t\t\t</div>
  1047. \t\t\t\t<div class=\"country-card\">
  1048. \t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/france.png') }}\" alt=\"{{ 'homepage.france' | trans }}\">
  1049. \t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJMVd4MymgVA0R99lHx5Y__Ws\" class=\"country-mobile-link search-country\">
  1050. \t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.france' | trans }}</p>
  1051. \t\t\t\t\t</a>
  1052. \t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJMVd4MymgVA0R99lHx5Y__Ws\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
  1053. \t\t\t\t</div>
  1054. \t\t\t\t<div class=\"country-card\">
  1055. \t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/belgique.png') }}\" alt=\"{{ 'homepage.belgium' | trans }}\">
  1056. \t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJl5fz7WR9wUcR8g_mObTy60c\" class=\"country-mobile-link search-country\">
  1057. \t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.belgium' | trans }}</p>
  1058. \t\t\t\t\t</a>
  1059. \t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJl5fz7WR9wUcR8g_mObTy60c\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
  1060. \t\t\t\t</div>
  1061. \t\t\t\t<div class=\"country-card\">
  1062. \t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/maroc.png') }}\" alt=\"{{ 'homepage.morocco' | trans }}\">
  1063. \t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJjcVRlmGICw0Rw_8sxIGT09k\" class=\"country-mobile-link search-country\">
  1064. \t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.morocco' | trans }}</p>
  1065. \t\t\t\t\t</a>
  1066. \t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJjcVRlmGICw0Rw_8sxIGT09k\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
  1067. \t\t\t\t</div>
  1068. \t\t\t\t{#
  1069. \t\t\t\t<div class=\"country-card\">
  1070. \t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/espagne.png') }}\" alt=\"{{ 'homepage.spain' | trans }}\">
  1071. \t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJi7xhMnjjQgwR7KNoB5Qs7KY', 'search': 'true'}) }}\" class=\"country-mobile-link search-country\">
  1072. \t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.spain' | trans }}</p>
  1073. \t\t\t\t\t</a>
  1074. \t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJi7xhMnjjQgwR7KNoB5Qs7KY', 'search': 'true'}) }}\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
  1075. \t\t\t\t</div>
  1076. \t\t\t\t<div class=\"country-card\">
  1077. \t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/senegal.png') }}\" alt=\"{{ 'homepage.senegal' | trans }}\">
  1078. \t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJcbvFs_VywQ4RQFlhmVClRlo', 'search': 'true'}) }}\" class=\"country-mobile-link search-country\">
  1079. \t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.senegal' | trans }}</p>
  1080. \t\t\t\t\t</a>
  1081. \t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJcbvFs_VywQ4RQFlhmVClRlo', 'search': 'true'}) }}\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
  1082. \t\t\t\t</div>
  1083. \t\t\t\t<div class=\"country-card\">
  1084. \t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/italie.png') }}\" alt=\"{{ 'homepage.italy' | trans }}\">
  1085. \t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJA9KNRIL-1BIRb15jJFz1LOI', 'search': 'true'}) }}\" class=\"country-mobile-link search-country\">
  1086. \t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.italy' | trans }}</p>
  1087. \t\t\t\t\t</a>
  1088. \t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJA9KNRIL-1BIRb15jJFz1LOI', 'search': 'true'}) }}\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
  1089. \t\t\t\t</div>
  1090. \t\t\t\t<div class=\"country-card\">
  1091. \t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/france.png') }}\" alt=\"{{ 'homepage.france' | trans }}\">
  1092. \t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJMVd4MymgVA0R99lHx5Y__Ws', 'search': 'true'}) }}\" class=\"country-mobile-link search-country\">
  1093. \t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.france' | trans }}</p>
  1094. \t\t\t\t\t</a>
  1095. \t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJMVd4MymgVA0R99lHx5Y__Ws', 'search': 'true'}) }}\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
  1096. \t\t\t\t</div>
  1097. \t\t\t\t<div class=\"country-card\">
  1098. \t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/belgique.png') }}\" alt=\"{{ 'homepage.belgium' | trans }}\">
  1099. \t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJl5fz7WR9wUcR8g_mObTy60c', 'search': 'true'}) }}\" class=\"country-mobile-link search-country\">
  1100. \t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.belgium' | trans }}</p>
  1101. \t\t\t\t\t</a>
  1102. \t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJl5fz7WR9wUcR8g_mObTy60c', 'search': 'true'}) }}\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
  1103. \t\t\t\t</div>
  1104. \t\t\t\t<div class=\"country-card\">
  1105. \t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/maroc.png') }}\" alt=\"{{ 'homepage.morocco' | trans }}\">
  1106. \t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJjcVRlmGICw0Rw_8sxIGT09k', 'search': 'true'}) }}\" class=\"country-mobile-link search-country\">
  1107. \t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.morocco' | trans }}</p>
  1108. \t\t\t\t\t</a>
  1109. \t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJjcVRlmGICw0Rw_8sxIGT09k', 'search': 'true'}) }}\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
  1110. \t\t\t\t</div>
  1111. \t\t\t\t#}
  1112. \t\t\t
  1113. \t\t\t</div>
  1114. \t\t</section>
  1115. \t\t
  1116. \t\t{% if medias | length > 0 %}
  1117. \t\t
  1118. \t\t<section id=\"talks\">
  1119. \t\t\t<div class=\"container-fluid\">
  1120. \t\t\t\t<div class=\"main-title mb-5\">
  1121. \t\t\t\t\t<h2 class=\"title-text\">{{ 'homepage.sponsors' | trans }}</h2>
  1122. \t\t\t\t</div>
  1123. \t\t\t\t<div class=\"logos-wrap\">
  1124. \t\t\t\t\t
  1125. \t\t\t\t\t{% for media in medias %}
  1126. \t\t\t\t\t{% if media.link != null %}
  1127. \t\t\t\t\t<a href=\"{{media.link}}\" target=\"_blank\">
  1128. \t\t\t\t\t{% endif %}
  1129. \t\t\t\t\t<div class=\"logo-item\">
  1130. \t\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/media/' ~ media.image) }}\" alt=\"Sport Eco\">
  1131. \t\t\t\t\t\t<span class=\"logo-text\">\"{{ media.name }}\"</span>
  1132. \t\t\t\t\t</div>
  1133. \t\t\t\t\t{% if media.link != null %}
  1134. \t\t\t\t\t</a>
  1135. \t\t\t\t\t{% endif %}
  1136. \t\t\t\t\t{% endfor %}
  1137. \t\t\t\t
  1138. \t\t\t\t</div>
  1139. \t\t\t</div>
  1140. \t\t</section>
  1141. \t\t{% endif %}
  1142. \t\t{% if articles | length > 0 %}
  1143. \t\t\t<section class=\"blog-section\" id=\"articles\">
  1144. \t\t\t\t<div class=\"container-fluid\" id=\"news\">
  1145. \t\t\t\t\t<h2 class=\"section-title-underline\">{{ 'homepage.community' | trans }}</h2>
  1146. \t\t\t\t\t<div class=\"row\">
  1147. \t\t\t\t\t\t{% for article in articles %}
  1148. \t\t\t\t\t\t\t<div class=\"col-xl-3 col-lg-4 col-md-6 col-sm-12 blog-col\">
  1149. \t\t\t\t\t\t\t\t{% include \"front/blog/_blog-card.html.twig\" %}
  1150. \t\t\t\t\t\t\t</div>
  1151. \t\t\t\t\t\t{% endfor %}
  1152. \t\t\t\t\t</div>
  1153. \t\t\t\t\t<div class=\"text-center\">
  1154. \t\t\t\t\t\t<a href=\"{{ path('blog') }}\">
  1155. \t\t\t\t\t\t\t<button class=\"btn main-btn mx-auto\">{{ 'homepage.see_blog' | trans }}</button>
  1156. \t\t\t\t\t\t</a>
  1157. \t\t\t\t\t</div>
  1158. \t\t\t\t</div>
  1159. \t\t\t</section>
  1160. \t\t{% endif %}
  1161. \t\t<section id=\"\" class=\"pb-5\">
  1162. \t\t\t<div class=\"container-fluid\">
  1163. \t\t\t\t<div class=\"main-title mb-5\">
  1164. \t\t\t\t\t<h2 class=\"title-text\">{{ 'homepage.pros' | trans }}</h2>
  1165. \t\t\t\t</div>
  1166. \t\t\t\t<div class=\"partners-wrap\">
  1167. \t\t\t\t\t<div class=\"partner-item\">
  1168. \t\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/coach.png') }}\" alt=\"Coachs\">
  1169. \t\t\t\t\t\t<a href=\"{{ path('directory', {'type[]': 'coach'}) }}\" class=\"btn partner-btn coach\">{{ 'global.coachs' | trans }}</a>
  1170. \t\t\t\t\t</div>
  1171. \t\t\t\t\t<div class=\"partner-item\">
  1172. \t\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/club.png') }}\" alt=\"Clubs\">
  1173. \t\t\t\t\t\t<a href=\"{{ path('directory', {'type[]': 'club'}) }}\" class=\"btn partner-btn club\">{{ 'global.clubs' | trans }}</a>
  1174. \t\t\t\t\t</div>
  1175. \t\t\t\t\t<div class=\"partner-item\">
  1176. \t\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/operator.png') }}\" alt=\"OpĂ©rateurs\">
  1177. \t\t\t\t\t\t<a href=\"{{ path('directory', {'type[]': 'operator'}) }}\" class=\"btn partner-btn operator\">{{ 'global.operators' | trans }}</a>
  1178. \t\t\t\t\t</div>
  1179. \t\t\t\t</div>
  1180. \t\t\t</div>
  1181. \t\t</section>
  1182. \t\t{% include \"front/blog/_blog-cta.html.twig\" %}
  1183. \t</div>
  1184. {% endblock %}
  1185. {% block javascript %}
  1186. \t<script src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyBNWTs1XHaB_zzkP1menI9mdg-NBk1IZnY&libraries=places&language={{ app.request.locale }}\"></script>
  1187. \t{{ parent() }}
  1188. \t{{ encore_entry_script_tags('search') }}
  1189. \t<script>
  1190. \t\tgoogle.maps.event.addDomListener(window, 'load', initialize);
  1191. \t
  1192. \t\tfunction initialize() {
  1193.     \t\tvar address = document.getElementById('destination');
  1194. \t\t\tvar options = {
  1195. \t\t\t\ttypes: ['(regions)']
  1196. \t\t\t};
  1197. \t\t\tautocomplete = new google.maps.places.Autocomplete(address, options);
  1198. \t\t\t
  1199. \t\t\tgoogle.maps.event.addListener(autocomplete, 'place_changed', function() {
  1200. \t\t\t\tfillInAddress();
  1201. \t\t\t});
  1202. \t\t\tgoogle.maps.event.addDomListener(address, 'keydown', function(event) { 
  1203. \t\t\t\tif (event.keyCode === 13) { 
  1204. \t\t\t\t\tevent.preventDefault(); 
  1205. \t\t\t\t}
  1206. \t\t\t}); 
  1207. \t\t\t
  1208. \t\t}
  1209. \t\tfunction fillInAddress() {
  1210. \t\t\tvar place = autocomplete.getPlace();
  1211. \t\t\tdocument.getElementById('place').value = place.place_id;
  1212. \t\t\t
  1213. \t\t}
  1214. \t</script>
  1215. \t{#
  1216. \t<script>
  1217. \t\t\t\$.post('/set-device', { width: screen.width, height:screen.height }, function(json) {
  1218. \t\t\t\tif(json.outcome == 'success') {
  1219. \t\t\t\t\t// do something with the knowledge possibly?
  1220. \t\t\t\t} else {
  1221. \t\t\t\t\talert('Unable to let PHP know what the screen resolution is!');
  1222. \t\t\t\t}
  1223. \t\t\t},'json');
  1224. \t</script>
  1225. \t#}
  1226. \t<script>
  1227. \t\tvar searchInput = \$('#search');
  1228. \t\tvar place = \$('#place');
  1229. \t\tvar inSession = false;\t
  1230. \t\t\$('button[type=submit]').on('click', function (e) {
  1231. \t\t\tsearchInput.val(\"true\");
  1232. \t\t\tif (inSession == false) {
  1233. \t\t\t\te.preventDefault()
  1234. \t\t\t\tlet locale = \$('.header').data('locale');
  1235. \t\t\t\tlet destination = \$('#destination').val();
  1236. \t\t\t\t
  1237. \t\t\t\tinSession = true;
  1238. \t\t\t\tif (destination != '') {
  1239.         \t\t\tlocalStorage.setItem('destination', destination)
  1240. \t\t\t\t}
  1241. \t\t\t} 
  1242. \t\t\t\$('.home-search-form').trigger('submit');
  1243. \t\t})
  1244. \t\t\$('.search-country').on('click', function (e) {
  1245. \t\t\tif (inSession == false) {
  1246. \t\t\t\te.preventDefault()
  1247. \t\t\t\tlet locale = \$('.header').data('locale');
  1248. \t\t\t\tlet destination = null;
  1249. \t\t\t\tif (\$(this).hasClass('country-mobile-link')) {
  1250. \t\t\t\t\tdestination = \$(this).find('.country-title').text();
  1251. \t\t\t\t} else {
  1252. \t\t\t\t\tdestination = \$(this).prev().find('.country-title').text();
  1253. \t\t\t\t}
  1254. \t\t\t\tsearchInput.val(\"true\");
  1255. \t\t\t\tplace.val(\$(this).data('place'));
  1256. \t\t\t\t
  1257. \t\t\t\tinSession = true;
  1258. \t\t\t\tif (destination != '') {
  1259. \t\t\t\t\tlocalStorage.setItem('destination', destination)
  1260. \t\t\t\t}
  1261. \t\t\t} 
  1262. \t\t\t\$('.home-search-form').trigger('submit');
  1263. \t\t})
  1264. \t</script>
  1265. {% endblock %}
  1266. ""front/homepage.html.twig""/var/www/preprod/racket-trip/templates/front/homepage.html.twig");
  1267.     }
  1268. }