<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front/homepage.html.twig */
class __TwigTemplate_acfcebc932b1403520840fc5c85d20b3 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'seo' => [$this, 'block_seo'],
'og' => [$this, 'block_og'],
'choice_widget_expanded' => [$this, 'block_choice_widget_expanded'],
'body' => [$this, 'block_body'],
'javascript' => [$this, 'block_javascript'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "front/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/homepage.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/homepage.html.twig"));
// line 18
$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);
// line 1
$this->parent = $this->loadTemplate("front/base.html.twig", "front/homepage.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 4
echo "\t";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.home_title"), "html", null, true);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 7
public function block_seo($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
// line 8
echo "\t<meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.home_description"), "html", null, true);
echo "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
public function block_og($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "og"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "og"));
// line 12
echo "\t<meta property=\"og:type\" content=\"website\" />
\t<meta property=\"og:title\" content=\"";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.home_title"), "html", null, true);
echo "\" />
\t<meta property=\"og:image\" content=\"";
// line 14
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage_no_locale");
echo "images/open-graph.png\"/>
\t<meta property=\"og:description\" content=\"";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.home_description"), "html", null, true);
echo "\"/>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 20
public function block_choice_widget_expanded($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_expanded"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "choice_widget_expanded"));
// line 22
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 23
echo "\t<div class=\"checkbox icheck-primary\">";
// line 24
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
// line 25
echo "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 28
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 29
echo "
<section class=\"screen-height overflow-hidden pt-0\" id=\"hero-section\">
\t<div class=\"home-sliders hide-mobile\">
\t\t";
// line 32
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)) {
// line 33
echo "\t\t
\t\t";
// line 34
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["slider"]) {
// line 35
echo "\t\t\t<div class=\"landing-slider-item\" style=\"background-image: url('/images/header/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["slider"], "image", [], "any", false, false, false, 35), "html", null, true);
echo "');\">
\t\t\t\t<div class=\"container-fluid\">
\t\t\t\t\t<div class=\"row slide-row\">
\t\t\t\t\t\t<div class=\"col-12 content\">
\t\t\t\t\t\t\t<h3 class=\"title\">";
// line 39
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["slider"], "title", [], "any", false, false, false, 39), "html", null, true);
echo "</h3>
\t\t\t\t\t\t\t<p class=\"text\">
\t\t\t\t\t\t\t\t";
// line 41
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["slider"], "description", [], "any", false, false, false, 41), "html", null, true);
echo "
\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t";
// line 43
if (twig_get_attribute($this->env, $this->source, $context["slider"], "link", [], "any", false, false, false, 43)) {
// line 44
echo "\t\t\t\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["slider"], "link", [], "any", false, false, false, 44), "html", null, true);
echo "\" class=\"btn discover\" target=\"_blank\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t";
}
// line 46
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['slider'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 51
echo "\t\t";
} else {
// line 52
echo "\t\t\t<div class=\"landing-slider-item\" style=\"background-image: url('/images/hero-mobile.png');\">
\t\t\t\t<div class=\"container-fluid\">
\t\t\t\t\t<div class=\"row slide-row\">
\t\t\t\t\t\t<div class=\"col-12 content\">
\t\t\t\t\t\t\t<h3 class=\"title\">Racket Trip</h3>
\t\t\t\t\t\t\t<p class=\"text\">
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t";
}
// line 65
echo "\t</div>
\t<div class=\"home-intro hide-desktop\" style=\"background-image: url('/images/hero-mobile.png');\"></div>
\t<div class=\"card search-card\">
\t\t<h3 class=\"title\">";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.looking_for_what"), "html", null, true);
echo "</h3>
\t\t";
// line 71
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"]]);
echo "
\t\t\t<div class=\"input-group global destination\">
\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<input type=\"text\" id=\"destination\" autocomplete=\"off\" placeholder=\"";
// line 74
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.where_to"), "html", null, true);
echo "\" class=\"form-control\">
\t\t\t\t</div>
\t\t\t\t";
// line 76
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", false, false, false, 76), 'widget');
echo "
\t\t\t</div>
\t\t\t<div class=\"custom-dropdown-input short-input\" id=\"sport-wrap\">
\t\t\t\t<span class=\"custom-dropdown-label\" id=\"sport-checkbox-label\">";
// line 79
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("directory.sport"), "html", null, true);
echo "</span>
\t\t\t\t<div class=\"custom-dropdown-content\" id=\"sport-checkbox\">
\t\t\t\t\t";
// line 81
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", false, false, false, 81), 'widget');
echo "
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"custom-dropdown-input short-input\" id=\"date-wrap\">
\t\t\t\t<span class=\"custom-dropdown-label\" id=\"date-input-label\">";
// line 85
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("page_course_detail.from"), "html", null, true);
echo "</span>
\t\t\t\t<div class=\"custom-dropdown-content\">
\t\t\t\t\t<div id=\"datepicker\"></div>
\t\t\t\t\t";
// line 88
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", false, false, false, 88), 'widget');
echo "
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"hide\">
\t\t\t\t";
// line 92
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", false, false, false, 92), 'row');
echo "
\t\t\t\t";
// line 93
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');
echo "
\t\t\t</div>
\t\t\t<button type=\"submit\" class=\"btn main-btn mx-auto\">";
// line 95
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("global.search"), "html", null, true);
echo "</button>
\t\t";
// line 96
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');
echo "
\t</div>
\t<div class=\"landing-scroll\" id=\"discover\">
\t\t<span class=\"scroll-text\">";
// line 100
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover_offers"), "html", null, true);
echo "</span>
\t\t<i class=\"far fa-chevron-down\"></i>
\t</div>
</section>
<div class=\"overflow-hidden\">
\t";
// line 108
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)) {
// line 109
echo "
\t\t<section class=\"home-courses\" id=\"courses\">
\t\t\t<div class=\"container-fluid home-courses-container\">
\t\t\t\t<div class=\"main-title\">
\t\t\t\t\t<h1 class=\"title-text\">";
// line 113
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.current_courses"), "html", null, true);
echo "</h1>
\t\t\t\t</div>
\t\t\t\t<div class=\"courses-slider-wrapper mt-4\">
\t\t\t\t\t";
// line 116
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
// line 117
echo "
\t\t\t\t\t";
// line 118
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", false, false, false, 118) != null)) {
// line 119
echo "
\t\t\t\t\t";
// line 120
$this->loadTemplate("front/course/_course-card.html.twig", "front/homepage.html.twig", 120)->display($context);
// line 121
echo "
\t\t\t\t\t";
}
// line 123
echo "
\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['course'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 125
echo "\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t";
}
// line 130
echo "
\t";
// line 131
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))) {
// line 132
echo "
\t\t<section id=\"trainee-courses\">
\t\t\t<div class=\"container-fluid home-courses-container\">
\t\t\t\t<div class=\"main-title\">
\t\t\t\t\t<h1 class=\"title-text\">";
// line 136
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.current_courses_trainee"), "html", null, true);
echo "</h1>
\t\t\t\t</div>
\t\t\t\t<div class=\"courses-slider-wrapper mt-4\">
\t\t\t\t\t";
// line 140
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
// line 141
echo "\t\t\t\t\t\t";
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", false, false, false, 141) != null)) {
// line 142
echo "\t\t\t\t\t\t\t";
$this->loadTemplate("front/course/_course-card.html.twig", "front/homepage.html.twig", 142)->display($context);
// line 143
echo "\t\t\t\t\t\t";
}
// line 144
echo "\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['course'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 145
echo "
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t\t
\t";
}
// line 151
echo "
\t<section id=\"countries\">
\t\t<div class=\"container-fluid\">
\t\t\t<h2 class=\"section-title-underline\">";
// line 154
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.countries"), "html", null, true);
echo "</h2>
\t\t\t<div class=\"countries-grid\">
\t\t\t
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"";
// line 158
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/destinations/espagne.png"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.spain"), "html", null, true);
echo "\">
\t\t\t\t\t<a href=\"";
// line 159
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
echo "\" data-place=\"ChIJi7xhMnjjQgwR7KNoB5Qs7KY\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">";
// line 160
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.spain"), "html", null, true);
echo "</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"";
// line 162
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
echo "\" data-place=\"ChIJi7xhMnjjQgwR7KNoB5Qs7KY\" class=\"country-link search-country\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html", null, true);
echo "</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"";
// line 166
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/destinations/senegal.png"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.senegal"), "html", null, true);
echo "\">
\t\t\t\t\t<a href=\"";
// line 167
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
echo "\" data-place=\"ChIJcbvFs_VywQ4RQFlhmVClRlo\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">";
// line 168
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.senegal"), "html", null, true);
echo "</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"";
// line 170
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
echo "\" data-place=\"ChIJcbvFs_VywQ4RQFlhmVClRlo\" class=\"country-link search-country\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html", null, true);
echo "</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"";
// line 174
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/destinations/italie.png"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.italy"), "html", null, true);
echo "\">
\t\t\t\t\t<a href=\"";
// line 175
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
echo "\" data-place=\"ChIJA9KNRIL-1BIRb15jJFz1LOI\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">";
// line 176
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.italy"), "html", null, true);
echo "</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"";
// line 178
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
echo "\" data-place=\"ChIJA9KNRIL-1BIRb15jJFz1LOI\" class=\"country-link search-country\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html", null, true);
echo "</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"";
// line 182
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/destinations/france.png"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.france"), "html", null, true);
echo "\">
\t\t\t\t\t<a href=\"";
// line 183
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
echo "\" data-place=\"ChIJMVd4MymgVA0R99lHx5Y__Ws\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">";
// line 184
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.france"), "html", null, true);
echo "</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"";
// line 186
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
echo "\" data-place=\"ChIJMVd4MymgVA0R99lHx5Y__Ws\" class=\"country-link search-country\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html", null, true);
echo "</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"";
// line 190
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/destinations/belgique.png"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.belgium"), "html", null, true);
echo "\">
\t\t\t\t\t<a href=\"";
// line 191
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
echo "\" data-place=\"ChIJl5fz7WR9wUcR8g_mObTy60c\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">";
// line 192
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.belgium"), "html", null, true);
echo "</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"";
// line 194
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
echo "\" data-place=\"ChIJl5fz7WR9wUcR8g_mObTy60c\" class=\"country-link search-country\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html", null, true);
echo "</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"";
// line 198
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/destinations/maroc.png"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.morocco"), "html", null, true);
echo "\">
\t\t\t\t\t<a href=\"";
// line 199
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
echo "\" data-place=\"ChIJjcVRlmGICw0Rw_8sxIGT09k\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">";
// line 200
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.morocco"), "html", null, true);
echo "</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"";
// line 202
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses");
echo "\" data-place=\"ChIJjcVRlmGICw0Rw_8sxIGT09k\" class=\"country-link search-country\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.discover"), "html", null, true);
echo "</a>
\t\t\t\t</div>
\t\t\t\t";
// line 249
echo "\t\t\t
\t\t\t</div>
\t\t</section>
\t\t
\t\t";
// line 253
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)) {
// line 254
echo "\t\t
\t\t<section id=\"talks\">
\t\t\t<div class=\"container-fluid\">
\t\t\t\t<div class=\"main-title mb-5\">
\t\t\t\t\t<h2 class=\"title-text\">";
// line 258
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.sponsors"), "html", null, true);
echo "</h2>
\t\t\t\t</div>
\t\t\t\t<div class=\"logos-wrap\">
\t\t\t\t\t
\t\t\t\t\t";
// line 262
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 263
echo "\t\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["media"], "link", [], "any", false, false, false, 263) != null)) {
// line 264
echo "\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "link", [], "any", false, false, false, 264), "html", null, true);
echo "\" target=\"_blank\">
\t\t\t\t\t";
}
// line 266
echo "\t\t\t\t\t<div class=\"logo-item\">
\t\t\t\t\t\t<img loading=\"lazy\" src=\"";
// line 267
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", false, false, false, 267))), "html", null, true);
echo "\" alt=\"Sport Eco\">
\t\t\t\t\t\t<span class=\"logo-text\">\"";
// line 268
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "name", [], "any", false, false, false, 268), "html", null, true);
echo "\"</span>
\t\t\t\t\t</div>
\t\t\t\t\t";
// line 270
if ((twig_get_attribute($this->env, $this->source, $context["media"], "link", [], "any", false, false, false, 270) != null)) {
// line 271
echo "\t\t\t\t\t</a>
\t\t\t\t\t";
}
// line 273
echo "\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 274
echo "\t\t\t\t
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t\t";
}
// line 280
echo "
\t\t";
// line 281
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)) {
// line 282
echo "\t\t\t<section class=\"blog-section\" id=\"articles\">
\t\t\t\t<div class=\"container-fluid\" id=\"news\">
\t\t\t\t\t<h2 class=\"section-title-underline\">";
// line 284
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.community"), "html", null, true);
echo "</h2>
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t";
// line 286
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 287
echo "\t\t\t\t\t\t\t<div class=\"col-xl-3 col-lg-4 col-md-6 col-sm-12 blog-col\">
\t\t\t\t\t\t\t\t";
// line 288
$this->loadTemplate("front/blog/_blog-card.html.twig", "front/homepage.html.twig", 288)->display($context);
// line 289
echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 291
echo "\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"text-center\">
\t\t\t\t\t\t<a href=\"";
// line 293
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog");
echo "\">
\t\t\t\t\t\t\t<button class=\"btn main-btn mx-auto\">";
// line 294
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.see_blog"), "html", null, true);
echo "</button>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</section>
\t\t";
}
// line 300
echo "
\t\t<section id=\"\" class=\"pb-5\">
\t\t\t<div class=\"container-fluid\">
\t\t\t\t<div class=\"main-title mb-5\">
\t\t\t\t\t<h2 class=\"title-text\">";
// line 306
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.pros"), "html", null, true);
echo "</h2>
\t\t\t\t</div>
\t\t\t\t<div class=\"partners-wrap\">
\t\t\t\t\t<div class=\"partner-item\">
\t\t\t\t\t\t<img loading=\"lazy\" src=\"";
// line 310
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/coach.png"), "html", null, true);
echo "\" alt=\"Coachs\">
\t\t\t\t\t\t<a href=\"";
// line 311
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("directory", ["type[]" => "coach"]);
echo "\" class=\"btn partner-btn coach\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("global.coachs"), "html", null, true);
echo "</a>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"partner-item\">
\t\t\t\t\t\t<img loading=\"lazy\" src=\"";
// line 314
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/club.png"), "html", null, true);
echo "\" alt=\"Clubs\">
\t\t\t\t\t\t<a href=\"";
// line 315
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("directory", ["type[]" => "club"]);
echo "\" class=\"btn partner-btn club\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("global.clubs"), "html", null, true);
echo "</a>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"partner-item\">
\t\t\t\t\t\t<img loading=\"lazy\" src=\"";
// line 318
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/images/operator.png"), "html", null, true);
echo "\" alt=\"Opérateurs\">
\t\t\t\t\t\t<a href=\"";
// line 319
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("directory", ["type[]" => "operator"]);
echo "\" class=\"btn partner-btn operator\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("global.operators"), "html", null, true);
echo "</a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t\t";
// line 325
$this->loadTemplate("front/blog/_blog-cta.html.twig", "front/homepage.html.twig", 325)->display($context);
// line 326
echo "
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 330
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 331
echo "
\t<script src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyBNWTs1XHaB_zzkP1menI9mdg-NBk1IZnY&libraries=places&language=";
// line 332
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 332), "locale", [], "any", false, false, false, 332), "html", null, true);
echo "\"></script>
\t";
// line 334
$this->displayParentBlock("javascript", $context, $blocks);
echo "
\t";
// line 335
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("search");
echo "
\t<script>
\t\tgoogle.maps.event.addDomListener(window, 'load', initialize);
\t
\t\tfunction initialize() {
\t\tvar address = document.getElementById('destination');
\t\t\tvar options = {
\t\t\t\ttypes: ['(regions)']
\t\t\t};
\t\t\tautocomplete = new google.maps.places.Autocomplete(address, options);
\t\t\t
\t\t\tgoogle.maps.event.addListener(autocomplete, 'place_changed', function() {
\t\t\t\tfillInAddress();
\t\t\t});
\t\t\tgoogle.maps.event.addDomListener(address, 'keydown', function(event) {
\t\t\t\tif (event.keyCode === 13) {
\t\t\t\t\tevent.preventDefault();
\t\t\t\t}
\t\t\t});
\t\t\t
\t\t}
\t\tfunction fillInAddress() {
\t\t\tvar place = autocomplete.getPlace();
\t\t\tdocument.getElementById('place').value = place.place_id;
\t\t\t
\t\t}
\t</script>
\t";
// line 383
echo "
\t<script>
\t\tvar searchInput = \$('#search');
\t\tvar place = \$('#place');
\t\tvar inSession = false;\t
\t\t\$('button[type=submit]').on('click', function (e) {
\t\t\tsearchInput.val(\"true\");
\t\t\tif (inSession == false) {
\t\t\t\te.preventDefault()
\t\t\t\tlet locale = \$('.header').data('locale');
\t\t\t\tlet destination = \$('#destination').val();
\t\t\t\t
\t\t\t\tinSession = true;
\t\t\t\tif (destination != '') {
\t\t\tlocalStorage.setItem('destination', destination)
\t\t\t\t}
\t\t\t}
\t\t\t\$('.home-search-form').trigger('submit');
\t\t})
\t\t\$('.search-country').on('click', function (e) {
\t\t\tif (inSession == false) {
\t\t\t\te.preventDefault()
\t\t\t\tlet locale = \$('.header').data('locale');
\t\t\t\tlet destination = null;
\t\t\t\tif (\$(this).hasClass('country-mobile-link')) {
\t\t\t\t\tdestination = \$(this).find('.country-title').text();
\t\t\t\t} else {
\t\t\t\t\tdestination = \$(this).prev().find('.country-title').text();
\t\t\t\t}
\t\t\t\tsearchInput.val(\"true\");
\t\t\t\tplace.val(\$(this).data('place'));
\t\t\t\t
\t\t\t\tinSession = true;
\t\t\t\tif (destination != '') {
\t\t\t\t\tlocalStorage.setItem('destination', destination)
\t\t\t\t}
\t\t\t}
\t\t\t\$('.home-search-form').trigger('submit');
\t\t})
\t</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/homepage.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"front/base.html.twig\" %}
{% block title %}
\t{{ 'seo.home_title' | trans }}
{% endblock %}
{% block seo %}
\t<meta name=\"description\" content=\"{{ 'seo.home_description' | trans }}\">
{% endblock %}
{% block og %}
\t<meta property=\"og:type\" content=\"website\" />
\t<meta property=\"og:title\" content=\"{{ 'seo.home_title' | trans }}\" />
\t<meta property=\"og:image\" content=\"{{ url('homepage_no_locale') }}images/open-graph.png\"/>
\t<meta property=\"og:description\" content=\"{{ 'seo.home_description' | trans }}\"/>
{% endblock %}
{% form_theme form _self %}
{%- block choice_widget_expanded -%}
{%- for child in form %}
\t<div class=\"checkbox icheck-primary\">
\t\t{{- form_widget(child) -}}
\t</div>
{% endfor -%}{%- endblock choice_widget_expanded -%}
{% block body %}
<section class=\"screen-height overflow-hidden pt-0\" id=\"hero-section\">
\t<div class=\"home-sliders hide-mobile\">
\t\t{% if sliders | length > 0 %}
\t\t
\t\t{% for slider in sliders %}
\t\t\t<div class=\"landing-slider-item\" style=\"background-image: url('/images/header/{{ slider.image }}');\">
\t\t\t\t<div class=\"container-fluid\">
\t\t\t\t\t<div class=\"row slide-row\">
\t\t\t\t\t\t<div class=\"col-12 content\">
\t\t\t\t\t\t\t<h3 class=\"title\">{{ slider.title }}</h3>
\t\t\t\t\t\t\t<p class=\"text\">
\t\t\t\t\t\t\t\t{{ slider.description }}
\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t{% if slider.link %}
\t\t\t\t\t\t\t\t<a href=\"{{ slider.link }}\" class=\"btn discover\" target=\"_blank\">{{ 'homepage.discover' | trans }}</a>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t{% endfor %}
\t\t{% else %}
\t\t\t<div class=\"landing-slider-item\" style=\"background-image: url('/images/hero-mobile.png');\">
\t\t\t\t<div class=\"container-fluid\">
\t\t\t\t\t<div class=\"row slide-row\">
\t\t\t\t\t\t<div class=\"col-12 content\">
\t\t\t\t\t\t\t<h3 class=\"title\">Racket Trip</h3>
\t\t\t\t\t\t\t<p class=\"text\">
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t{% endif %}
\t</div>
\t<div class=\"home-intro hide-desktop\" style=\"background-image: url('/images/hero-mobile.png');\"></div>
\t<div class=\"card search-card\">
\t\t<h3 class=\"title\">{{ \"form.looking_for_what\" | trans }}</h3>
\t\t{{ form_start(form, {'attr': {'class': 'home-search-form'}}) }}
\t\t\t<div class=\"input-group global destination\">
\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<input type=\"text\" id=\"destination\" autocomplete=\"off\" placeholder=\"{{ \"homepage.where_to\" | trans }}\" class=\"form-control\">
\t\t\t\t</div>
\t\t\t\t{{ form_widget(form.place) }}
\t\t\t</div>
\t\t\t<div class=\"custom-dropdown-input short-input\" id=\"sport-wrap\">
\t\t\t\t<span class=\"custom-dropdown-label\" id=\"sport-checkbox-label\">{{ \"directory.sport\" | trans }}</span>
\t\t\t\t<div class=\"custom-dropdown-content\" id=\"sport-checkbox\">
\t\t\t\t\t{{ form_widget(form.sports) }}
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"custom-dropdown-input short-input\" id=\"date-wrap\">
\t\t\t\t<span class=\"custom-dropdown-label\" id=\"date-input-label\">{{ \"page_course_detail.from\" | trans }}</span>
\t\t\t\t<div class=\"custom-dropdown-content\">
\t\t\t\t\t<div id=\"datepicker\"></div>
\t\t\t\t\t{{ form_widget(form.begin) }}
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"hide\">
\t\t\t\t{{ form_row(form.search) }}
\t\t\t\t{{ form_rest(form) }}
\t\t\t</div>
\t\t\t<button type=\"submit\" class=\"btn main-btn mx-auto\">{{ \"global.search\" | trans }}</button>
\t\t{{ form_end(form) }}
\t</div>
\t<div class=\"landing-scroll\" id=\"discover\">
\t\t<span class=\"scroll-text\">{{ 'homepage.discover_offers' | trans }}</span>
\t\t<i class=\"far fa-chevron-down\"></i>
\t</div>
</section>
<div class=\"overflow-hidden\">
\t{% if courses | length > 0 %}
\t\t<section class=\"home-courses\" id=\"courses\">
\t\t\t<div class=\"container-fluid home-courses-container\">
\t\t\t\t<div class=\"main-title\">
\t\t\t\t\t<h1 class=\"title-text\">{{ 'homepage.current_courses' | trans }}</h1>
\t\t\t\t</div>
\t\t\t\t<div class=\"courses-slider-wrapper mt-4\">
\t\t\t\t\t{% for course in courses %}
\t\t\t\t\t{% if course | nextdate(startingDate).begin != null %}
\t\t\t\t\t{% include \"front/course/_course-card.html.twig\" %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t{% endif %}
\t{% if is_granted('ROLE_TRAINEE') and traineeCourses | length > 0 %}
\t\t<section id=\"trainee-courses\">
\t\t\t<div class=\"container-fluid home-courses-container\">
\t\t\t\t<div class=\"main-title\">
\t\t\t\t\t<h1 class=\"title-text\">{{ 'homepage.current_courses_trainee' | trans }}</h1>
\t\t\t\t</div>
\t\t\t\t<div class=\"courses-slider-wrapper mt-4\">
\t\t\t\t\t{% for course in traineeCourses %}
\t\t\t\t\t\t{% if course | nextdate(startingDate).begin != null %}
\t\t\t\t\t\t\t{% include \"front/course/_course-card.html.twig\" %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t\t
\t{% endif %}
\t<section id=\"countries\">
\t\t<div class=\"container-fluid\">
\t\t\t<h2 class=\"section-title-underline\">{{ 'homepage.countries' | trans }}</h2>
\t\t\t<div class=\"countries-grid\">
\t\t\t
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/espagne.png') }}\" alt=\"{{ 'homepage.spain' | trans }}\">
\t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJi7xhMnjjQgwR7KNoB5Qs7KY\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.spain' | trans }}</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJi7xhMnjjQgwR7KNoB5Qs7KY\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/senegal.png') }}\" alt=\"{{ 'homepage.senegal' | trans }}\">
\t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJcbvFs_VywQ4RQFlhmVClRlo\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.senegal' | trans }}</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJcbvFs_VywQ4RQFlhmVClRlo\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/italie.png') }}\" alt=\"{{ 'homepage.italy' | trans }}\">
\t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJA9KNRIL-1BIRb15jJFz1LOI\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.italy' | trans }}</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJA9KNRIL-1BIRb15jJFz1LOI\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/france.png') }}\" alt=\"{{ 'homepage.france' | trans }}\">
\t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJMVd4MymgVA0R99lHx5Y__Ws\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.france' | trans }}</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJMVd4MymgVA0R99lHx5Y__Ws\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/belgique.png') }}\" alt=\"{{ 'homepage.belgium' | trans }}\">
\t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJl5fz7WR9wUcR8g_mObTy60c\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.belgium' | trans }}</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJl5fz7WR9wUcR8g_mObTy60c\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/maroc.png') }}\" alt=\"{{ 'homepage.morocco' | trans }}\">
\t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJjcVRlmGICw0Rw_8sxIGT09k\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.morocco' | trans }}</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"{{ path('courses') }}\" data-place=\"ChIJjcVRlmGICw0Rw_8sxIGT09k\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
\t\t\t\t</div>
\t\t\t\t{#
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/espagne.png') }}\" alt=\"{{ 'homepage.spain' | trans }}\">
\t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJi7xhMnjjQgwR7KNoB5Qs7KY', 'search': 'true'}) }}\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.spain' | trans }}</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJi7xhMnjjQgwR7KNoB5Qs7KY', 'search': 'true'}) }}\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/senegal.png') }}\" alt=\"{{ 'homepage.senegal' | trans }}\">
\t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJcbvFs_VywQ4RQFlhmVClRlo', 'search': 'true'}) }}\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.senegal' | trans }}</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJcbvFs_VywQ4RQFlhmVClRlo', 'search': 'true'}) }}\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/italie.png') }}\" alt=\"{{ 'homepage.italy' | trans }}\">
\t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJA9KNRIL-1BIRb15jJFz1LOI', 'search': 'true'}) }}\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.italy' | trans }}</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJA9KNRIL-1BIRb15jJFz1LOI', 'search': 'true'}) }}\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/france.png') }}\" alt=\"{{ 'homepage.france' | trans }}\">
\t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJMVd4MymgVA0R99lHx5Y__Ws', 'search': 'true'}) }}\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.france' | trans }}</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJMVd4MymgVA0R99lHx5Y__Ws', 'search': 'true'}) }}\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/belgique.png') }}\" alt=\"{{ 'homepage.belgium' | trans }}\">
\t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJl5fz7WR9wUcR8g_mObTy60c', 'search': 'true'}) }}\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.belgium' | trans }}</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJl5fz7WR9wUcR8g_mObTy60c', 'search': 'true'}) }}\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"country-card\">
\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/destinations/maroc.png') }}\" alt=\"{{ 'homepage.morocco' | trans }}\">
\t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJjcVRlmGICw0Rw_8sxIGT09k', 'search': 'true'}) }}\" class=\"country-mobile-link search-country\">
\t\t\t\t\t\t<p class=\"country-title\">{{ 'homepage.morocco' | trans }}</p>
\t\t\t\t\t</a>
\t\t\t\t\t<a href=\"{{ path('courses', {'place': 'ChIJjcVRlmGICw0Rw_8sxIGT09k', 'search': 'true'}) }}\" class=\"country-link search-country\">{{ 'homepage.discover' | trans }}</a>
\t\t\t\t</div>
\t\t\t\t#}
\t\t\t
\t\t\t</div>
\t\t</section>
\t\t
\t\t{% if medias | length > 0 %}
\t\t
\t\t<section id=\"talks\">
\t\t\t<div class=\"container-fluid\">
\t\t\t\t<div class=\"main-title mb-5\">
\t\t\t\t\t<h2 class=\"title-text\">{{ 'homepage.sponsors' | trans }}</h2>
\t\t\t\t</div>
\t\t\t\t<div class=\"logos-wrap\">
\t\t\t\t\t
\t\t\t\t\t{% for media in medias %}
\t\t\t\t\t{% if media.link != null %}
\t\t\t\t\t<a href=\"{{media.link}}\" target=\"_blank\">
\t\t\t\t\t{% endif %}
\t\t\t\t\t<div class=\"logo-item\">
\t\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/media/' ~ media.image) }}\" alt=\"Sport Eco\">
\t\t\t\t\t\t<span class=\"logo-text\">\"{{ media.name }}\"</span>
\t\t\t\t\t</div>
\t\t\t\t\t{% if media.link != null %}
\t\t\t\t\t</a>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t\t{% endif %}
\t\t{% if articles | length > 0 %}
\t\t\t<section class=\"blog-section\" id=\"articles\">
\t\t\t\t<div class=\"container-fluid\" id=\"news\">
\t\t\t\t\t<h2 class=\"section-title-underline\">{{ 'homepage.community' | trans }}</h2>
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t{% for article in articles %}
\t\t\t\t\t\t\t<div class=\"col-xl-3 col-lg-4 col-md-6 col-sm-12 blog-col\">
\t\t\t\t\t\t\t\t{% include \"front/blog/_blog-card.html.twig\" %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"text-center\">
\t\t\t\t\t\t<a href=\"{{ path('blog') }}\">
\t\t\t\t\t\t\t<button class=\"btn main-btn mx-auto\">{{ 'homepage.see_blog' | trans }}</button>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</section>
\t\t{% endif %}
\t\t<section id=\"\" class=\"pb-5\">
\t\t\t<div class=\"container-fluid\">
\t\t\t\t<div class=\"main-title mb-5\">
\t\t\t\t\t<h2 class=\"title-text\">{{ 'homepage.pros' | trans }}</h2>
\t\t\t\t</div>
\t\t\t\t<div class=\"partners-wrap\">
\t\t\t\t\t<div class=\"partner-item\">
\t\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/coach.png') }}\" alt=\"Coachs\">
\t\t\t\t\t\t<a href=\"{{ path('directory', {'type[]': 'coach'}) }}\" class=\"btn partner-btn coach\">{{ 'global.coachs' | trans }}</a>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"partner-item\">
\t\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/club.png') }}\" alt=\"Clubs\">
\t\t\t\t\t\t<a href=\"{{ path('directory', {'type[]': 'club'}) }}\" class=\"btn partner-btn club\">{{ 'global.clubs' | trans }}</a>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"partner-item\">
\t\t\t\t\t\t<img loading=\"lazy\" src=\"{{ asset('/images/operator.png') }}\" alt=\"Opérateurs\">
\t\t\t\t\t\t<a href=\"{{ path('directory', {'type[]': 'operator'}) }}\" class=\"btn partner-btn operator\">{{ 'global.operators' | trans }}</a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</section>
\t\t{% include \"front/blog/_blog-cta.html.twig\" %}
\t</div>
{% endblock %}
{% block javascript %}
\t<script src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyBNWTs1XHaB_zzkP1menI9mdg-NBk1IZnY&libraries=places&language={{ app.request.locale }}\"></script>
\t{{ parent() }}
\t{{ encore_entry_script_tags('search') }}
\t<script>
\t\tgoogle.maps.event.addDomListener(window, 'load', initialize);
\t
\t\tfunction initialize() {
\t\tvar address = document.getElementById('destination');
\t\t\tvar options = {
\t\t\t\ttypes: ['(regions)']
\t\t\t};
\t\t\tautocomplete = new google.maps.places.Autocomplete(address, options);
\t\t\t
\t\t\tgoogle.maps.event.addListener(autocomplete, 'place_changed', function() {
\t\t\t\tfillInAddress();
\t\t\t});
\t\t\tgoogle.maps.event.addDomListener(address, 'keydown', function(event) {
\t\t\t\tif (event.keyCode === 13) {
\t\t\t\t\tevent.preventDefault();
\t\t\t\t}
\t\t\t});
\t\t\t
\t\t}
\t\tfunction fillInAddress() {
\t\t\tvar place = autocomplete.getPlace();
\t\t\tdocument.getElementById('place').value = place.place_id;
\t\t\t
\t\t}
\t</script>
\t{#
\t<script>
\t\t\t\$.post('/set-device', { width: screen.width, height:screen.height }, function(json) {
\t\t\t\tif(json.outcome == 'success') {
\t\t\t\t\t// do something with the knowledge possibly?
\t\t\t\t} else {
\t\t\t\t\talert('Unable to let PHP know what the screen resolution is!');
\t\t\t\t}
\t\t\t},'json');
\t</script>
\t#}
\t<script>
\t\tvar searchInput = \$('#search');
\t\tvar place = \$('#place');
\t\tvar inSession = false;\t
\t\t\$('button[type=submit]').on('click', function (e) {
\t\t\tsearchInput.val(\"true\");
\t\t\tif (inSession == false) {
\t\t\t\te.preventDefault()
\t\t\t\tlet locale = \$('.header').data('locale');
\t\t\t\tlet destination = \$('#destination').val();
\t\t\t\t
\t\t\t\tinSession = true;
\t\t\t\tif (destination != '') {
\t\t\tlocalStorage.setItem('destination', destination)
\t\t\t\t}
\t\t\t}
\t\t\t\$('.home-search-form').trigger('submit');
\t\t})
\t\t\$('.search-country').on('click', function (e) {
\t\t\tif (inSession == false) {
\t\t\t\te.preventDefault()
\t\t\t\tlet locale = \$('.header').data('locale');
\t\t\t\tlet destination = null;
\t\t\t\tif (\$(this).hasClass('country-mobile-link')) {
\t\t\t\t\tdestination = \$(this).find('.country-title').text();
\t\t\t\t} else {
\t\t\t\t\tdestination = \$(this).prev().find('.country-title').text();
\t\t\t\t}
\t\t\t\tsearchInput.val(\"true\");
\t\t\t\tplace.val(\$(this).data('place'));
\t\t\t\t
\t\t\t\tinSession = true;
\t\t\t\tif (destination != '') {
\t\t\t\t\tlocalStorage.setItem('destination', destination)
\t\t\t\t}
\t\t\t}
\t\t\t\$('.home-search-form').trigger('submit');
\t\t})
\t</script>
{% endblock %}
", "front/homepage.html.twig", "/var/www/preprod/racket-trip/templates/front/homepage.html.twig");
}
}