<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* pages/list.html.twig */
class __TwigTemplate_4f6c0e44a34a6cdf5016b0b70dc1def6 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_class' => [$this, 'block_page_class'],
'stylesheets' => [$this, 'block_stylesheets'],
'header_search' => [$this, 'block_header_search'],
'header_search_mobile' => [$this, 'block_header_search_mobile'],
'content' => [$this, 'block_content'],
'seo' => [$this, 'block_seo'],
'tags' => [$this, 'block_tags'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "pages/list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/list.html.twig"));
// line 7
$context["url"] = (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "server", [], "any", false, false, false, 7), "get", ["REQUEST_SCHEME"], "method", false, false, false, 7) . "://") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "server", [], "any", false, false, false, 7), "get", ["SERVER_NAME"], "method", false, false, false, 7)) . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "server", [], "any", false, false, false, 7), "get", ["REQUEST_URI"], "method", false, false, false, 7));
// line 1
$this->parent = $this->load("base.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_page_class(array $context, array $blocks = []): iterable
{
$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", "page_class"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
// line 4
yield "\tpage list
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 9
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 10
yield "\t";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
\t";
// line 11
yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("list_styles");
yield "
\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 22
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_search(array $context, array $blocks = []): iterable
{
$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", "header_search"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search"));
// line 23
yield "\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 26
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_search_mobile(array $context, array $blocks = []): iterable
{
$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", "header_search_mobile"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search_mobile"));
// line 27
yield "\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 30
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 31
yield "
\t";
// line 34
yield "\t";
// line 38
yield "
\t";
// line 40
yield "
\t";
// line 41
$context["cruises_number"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["cruiseSearchResult"] ?? null), "pagination", [], "any", false, true, false, 41), "total_count", [], "any", true, true, false, 41)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cruiseSearchResult"]) || array_key_exists("cruiseSearchResult", $context) ? $context["cruiseSearchResult"] : (function () { throw new RuntimeError('Variable "cruiseSearchResult" does not exist.', 41, $this->source); })()), "pagination", [], "any", false, false, false, 41), "total_count", [], "any", false, false, false, 41), 0)) : (0));
// line 42
yield "\t";
// line 43
yield "\t<div class=\"container-fluid\">
\t\t<div class=\"row\">
\t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
\t\t\t<div class=\"col-lg-10 col-md-10 col-sm-12 list-page-main\">
\t\t\t\t";
// line 47
$context["destinationData"] = null;
// line 48
yield "\t\t\t\t";
$context["companyData"] = null;
// line 49
yield "
\t\t\t\t";
// line 50
$context["destinationId"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 50, $this->source); })()), "request", [], "any", false, false, false, 50), "query", [], "any", false, false, false, 50), "get", ["destination"], "method", false, false, false, 50);
// line 51
yield "\t\t\t\t";
$context["companyId"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 51, $this->source); })()), "request", [], "any", false, false, false, 51), "query", [], "any", false, false, false, 51), "get", ["company"], "method", false, false, false, 51);
// line 52
yield "
\t\t\t\t";
// line 53
if (( !(null === (isset($context["destinationId"]) || array_key_exists("destinationId", $context) ? $context["destinationId"] : (function () { throw new RuntimeError('Variable "destinationId" does not exist.', 53, $this->source); })())) && !Twig\Extension\CoreExtension::testEmpty((isset($context["destinationId"]) || array_key_exists("destinationId", $context) ? $context["destinationId"] : (function () { throw new RuntimeError('Variable "destinationId" does not exist.', 53, $this->source); })())))) {
// line 54
yield "\t\t\t\t\t";
$context["destination"] = $this->extensions['App\Twig\Itinerary\DestinationExtension']->getDestinationById(((isset($context["destinationId"]) || array_key_exists("destinationId", $context) ? $context["destinationId"] : (function () { throw new RuntimeError('Variable "destinationId" does not exist.', 54, $this->source); })()) + 0));
// line 55
yield "\t\t\t\t\t";
if ((($tmp = (isset($context["destination"]) || array_key_exists("destination", $context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.', 55, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 56
yield "\t\t\t\t\t\t";
$context["destinationData"] = ["name" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["destination"]) || array_key_exists("destination", $context) ? $context["destination"] : (function () { throw new RuntimeError('Variable "destination" does not exist.', 56, $this->source); })()), "name", [], "any", false, false, false, 56), "url" => ("/croisieres?destination=" . (isset($context["destinationId"]) || array_key_exists("destinationId", $context) ? $context["destinationId"] : (function () { throw new RuntimeError('Variable "destinationId" does not exist.', 56, $this->source); })()))];
// line 57
yield "\t\t\t\t\t";
}
// line 58
yield "\t\t\t\t";
}
// line 59
yield "
\t\t\t\t";
// line 60
if (( !(null === (isset($context["companyId"]) || array_key_exists("companyId", $context) ? $context["companyId"] : (function () { throw new RuntimeError('Variable "companyId" does not exist.', 60, $this->source); })())) && !Twig\Extension\CoreExtension::testEmpty((isset($context["companyId"]) || array_key_exists("companyId", $context) ? $context["companyId"] : (function () { throw new RuntimeError('Variable "companyId" does not exist.', 60, $this->source); })())))) {
// line 61
yield "\t\t\t\t\t";
$context["company"] = $this->extensions['App\Twig\Company\CompanyExtension']->getCompanyById(((isset($context["companyId"]) || array_key_exists("companyId", $context) ? $context["companyId"] : (function () { throw new RuntimeError('Variable "companyId" does not exist.', 61, $this->source); })()) + 0));
// line 62
yield "\t\t\t\t\t";
if ((($tmp = (isset($context["company"]) || array_key_exists("company", $context) ? $context["company"] : (function () { throw new RuntimeError('Variable "company" does not exist.', 62, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 63
yield "\t\t\t\t\t\t";
$context["companyData"] = ["name" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["company"]) || array_key_exists("company", $context) ? $context["company"] : (function () { throw new RuntimeError('Variable "company" does not exist.', 63, $this->source); })()), "name", [], "any", false, false, false, 63), "url" => ("/croisieres?company=" . (isset($context["companyId"]) || array_key_exists("companyId", $context) ? $context["companyId"] : (function () { throw new RuntimeError('Variable "companyId" does not exist.', 63, $this->source); })()))];
// line 64
yield "\t\t\t\t\t";
}
// line 65
yield "\t\t\t\t";
}
// line 66
yield "
\t\t\t\t";
// line 67
yield from $this->load("pages/_includes/_breadcrumb.html.twig", 67)->unwrap()->yield(CoreExtension::merge($context, ["destination" => // line 68
(isset($context["destinationData"]) || array_key_exists("destinationData", $context) ? $context["destinationData"] : (function () { throw new RuntimeError('Variable "destinationData" does not exist.', 68, $this->source); })()), "company" => // line 69
(isset($context["companyData"]) || array_key_exists("companyData", $context) ? $context["companyData"] : (function () { throw new RuntimeError('Variable "companyData" does not exist.', 69, $this->source); })())]));
// line 71
yield "\t\t\t</div>
\t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
\t\t</div>
\t</div>
\t<div class=\"container-fluid mb-5\">
\t\t<div class=\"row\">
\t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
\t\t\t<div class=\"col-lg-10 col-md-10 col-sm-12 list-page-main\">
\t\t\t\t<div id=\"title\">
\t\t\t\t\t";
// line 81
yield from $this->unwrap()->yieldBlock('seo', $context, $blocks);
// line 88
yield "\t\t\t\t</div>
\t\t\t\t<div class=\"content layout container-fluid px-0\">
\t\t\t\t";
// line 92
$context["filters"] = ["ships" => [], "companies" => [], "destinations" => [], "ports" => [], "durations" => [], "sort" => null, "number_of_cruises" => 0];
// line 101
yield "
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div id=\"filters\" class=\"col-lg-3 col-md-4 col-sm-12\" data-search-url=\"";
// line 103
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("searchUrl", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["searchUrl"]) || array_key_exists("searchUrl", $context) ? $context["searchUrl"] : (function () { throw new RuntimeError('Variable "searchUrl" does not exist.', 103, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 103, $this->source); })()), "request", [], "any", false, false, false, 103), "uri", [], "any", false, false, false, 103))) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 103, $this->source); })()), "request", [], "any", false, false, false, 103), "uri", [], "any", false, false, false, 103))), "html", null, true);
yield "\">
\t\t\t\t\t\t";
// line 104
yield from $this->load("pages/_includes/list/_filters.html.twig", 104)->unwrap()->yield($context);
// line 105
yield "
\t\t\t\t\t</div>
\t\t\t\t\t<div id=\"list\" class=\"col-lg-9 col-md-8 col-sm-12\">
\t\t\t\t\t\t";
// line 109
yield from $this->unwrap()->yieldBlock('tags', $context, $blocks);
// line 112
yield "
\t\t\t\t\t\t<div class=\"tag_by_mobile mobile\">
\t\t\t\t\t\t\t<div class=\"tag_by accordion\">
\t\t\t\t\t\t\t\t<button class=\"tagBy accordion-trigger\">
\t\t\t\t\t\t\t\t\t<span>";
// line 116
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.label"), "html", null, true);
yield "</span>
\t\t\t\t\t\t\t\t\t<div class=\"icon\">";
// line 117
yield (string) $this->env->getFunction('getLucidIcon')->getCallable()("arrow-down-wide-narrow");
yield "</div>
\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t<ul
\t\t\t\t\t\t\t\t\tclass=\" br1 accordion-content\"
\t\t\t\t\t\t\t\t\tdata-sort-label-date-desc=\"";
// line 121
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.date_desc"), "html_attr");
yield "\"
\t\t\t\t\t\t\t\t\tdata-sort-label-date-asc=\"";
// line 122
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.date_asc"), "html_attr");
yield "\"
\t\t\t\t\t\t\t\t\tdata-sort-label-price-asc=\"";
// line 123
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.price_asc"), "html_attr");
yield "\"
\t\t\t\t\t\t\t\t\tdata-sort-label-price-desc=\"";
// line 124
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.price_desc"), "html_attr");
yield "\"
\t\t\t\t\t\t\t\t\tdata-sort-label-duration-asc=\"";
// line 125
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.duration_asc"), "html_attr");
yield "\"
\t\t\t\t\t\t\t\t\tdata-sort-label-duration-desc=\"";
// line 126
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.duration_desc"), "html_attr");
yield "\"
\t\t\t\t\t\t\t\t></ul>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
// line 134
yield "
\t\t\t\t\t\t";
// line 137
yield "\t\t\t\t\t\t";
$context["cruise_list"] = ((CoreExtension::getAttribute($this->env, $this->source, ($context["cruiseSearchResult"] ?? null), "paginated_result", [], "any", true, true, false, 137)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cruiseSearchResult"]) || array_key_exists("cruiseSearchResult", $context) ? $context["cruiseSearchResult"] : (function () { throw new RuntimeError('Variable "cruiseSearchResult" does not exist.', 137, $this->source); })()), "paginated_result", [], "any", false, false, false, 137), [])) : ([]));
// line 138
yield "\t\t\t\t\t\t<div class=\"cruise-search-zone\" data-cruise-search-zone>
\t\t\t\t\t\t\t<div
\t\t\t\t\t\t\t\tid=\"cruise_results\"
\t\t\t\t\t\t\t\tclass=\"cruises-container\"
\t\t\t\t\t\t\t\t";
// line 142
if (CoreExtension::getAttribute($this->env, $this->source, ($context["cruiseSearchResult"] ?? null), "pagination", [], "any", true, true, false, 142)) {
// line 143
yield "\t\t\t\t\t\t\t\t\tdata-cruise-per-page=\"";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["cruiseSearchResult"] ?? null), "pagination", [], "any", false, true, false, 143), "per_page", [], "any", true, true, false, 143)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cruiseSearchResult"]) || array_key_exists("cruiseSearchResult", $context) ? $context["cruiseSearchResult"] : (function () { throw new RuntimeError('Variable "cruiseSearchResult" does not exist.', 143, $this->source); })()), "pagination", [], "any", false, false, false, 143), "per_page", [], "any", false, false, false, 143), 5)) : (5)), "html", null, true);
yield "\"
\t\t\t\t\t\t\t\t\tdata-cruise-total-count=\"";
// line 144
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["cruiseSearchResult"] ?? null), "pagination", [], "any", false, true, false, 144), "total_count", [], "any", true, true, false, 144)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cruiseSearchResult"]) || array_key_exists("cruiseSearchResult", $context) ? $context["cruiseSearchResult"] : (function () { throw new RuntimeError('Variable "cruiseSearchResult" does not exist.', 144, $this->source); })()), "pagination", [], "any", false, false, false, 144), "total_count", [], "any", false, false, false, 144), 0)) : (0)), "html", null, true);
yield "\"
\t\t\t\t\t\t\t\t\tdata-cruise-total-pages=\"";
// line 145
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["cruiseSearchResult"] ?? null), "pagination", [], "any", false, true, false, 145), "total_pages", [], "any", true, true, false, 145)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cruiseSearchResult"]) || array_key_exists("cruiseSearchResult", $context) ? $context["cruiseSearchResult"] : (function () { throw new RuntimeError('Variable "cruiseSearchResult" does not exist.', 145, $this->source); })()), "pagination", [], "any", false, false, false, 145), "total_pages", [], "any", false, false, false, 145), 1)) : (1)), "html", null, true);
yield "\"
\t\t\t\t\t\t\t\t\tdata-cruise-current-page=\"";
// line 146
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["cruiseSearchResult"] ?? null), "pagination", [], "any", false, true, false, 146), "current_page", [], "any", true, true, false, 146)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["cruiseSearchResult"]) || array_key_exists("cruiseSearchResult", $context) ? $context["cruiseSearchResult"] : (function () { throw new RuntimeError('Variable "cruiseSearchResult" does not exist.', 146, $this->source); })()), "pagination", [], "any", false, false, false, 146), "current_page", [], "any", false, false, false, 146), 1)) : (1)), "html", null, true);
yield "\"
\t\t\t\t\t\t\t\t";
}
// line 148
yield "\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t";
// line 149
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["cruise_list"]) || array_key_exists("cruise_list", $context) ? $context["cruise_list"] : (function () { throw new RuntimeError('Variable "cruise_list" does not exist.', 149, $this->source); })()))) {
// line 150
yield "\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["cruise_list"]) || array_key_exists("cruise_list", $context) ? $context["cruise_list"] : (function () { throw new RuntimeError('Variable "cruise_list" does not exist.', 150, $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["cruise"]) {
// line 151
yield "\t\t\t\t\t\t\t\t\t\t";
$context["content"] = ["isFloa" => true];
// line 152
yield "\t\t\t\t\t\t\t\t\t\t";
yield from $this->load("_snippets/components/cards/list_card.html.twig", 152)->unwrap()->yield(CoreExtension::merge($context, ["cruise" => // line 153
$context["cruise"], "content" => // line 154
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 154, $this->source); })())]));
// line 156
yield "\t\t\t\t\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['cruise'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 157
yield "\t\t\t\t\t\t\t\t";
} else {
// line 158
yield "\t\t\t\t\t\t\t\t\t";
yield from $this->load("pages/_includes/list/_no_results_card.html.twig", 158)->unwrap()->yield($context);
// line 159
yield "\t\t\t\t\t\t\t\t";
}
// line 160
yield "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
// line 162
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["cruise_list"]) || array_key_exists("cruise_list", $context) ? $context["cruise_list"] : (function () { throw new RuntimeError('Variable "cruise_list" does not exist.', 162, $this->source); })()))) {
// line 163
yield "\t\t\t\t\t\t\t\t<div class=\"cruise-infinite-scroll\" data-cruise-infinite-scroll aria-live=\"polite\">
\t\t\t\t\t\t\t\t\t<div class=\"cruise-infinite-scroll__sentinel\" data-cruise-infinite-sentinel></div>
\t\t\t\t\t\t\t\t\t<div class=\"cruise-infinite-scroll__loading\" data-cruise-infinite-loading hidden>
\t\t\t\t\t\t\t\t\t\t<p class=\"cruise-infinite-scroll__status\">Chargement des croisières…</p>
\t\t\t\t\t\t\t\t\t\t";
// line 167
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(range(1, 3));
foreach ($context['_seq'] as $context["_key"] => $context["skeletonIndex"]) {
// line 168
yield "\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton\" aria-hidden=\"true\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__media\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__main\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--xs\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--title\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--md\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--sm\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__aside\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__price\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__cta\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['skeletonIndex'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 183
yield "\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<p class=\"cruise-infinite-scroll__end\" data-cruise-infinite-end hidden>Toutes les croisières sont affichées.</p>
\t\t\t\t\t\t\t\t\t<p class=\"cruise-infinite-scroll__error\" data-cruise-infinite-error hidden>Impossible de charger la page suivante.</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"cruise-search-paging is-visually-hidden\" data-cruise-search-paging aria-hidden=\"true\">
\t\t\t\t\t\t\t\t\t";
// line 188
yield from $this->load("@CroisilandCommon/pagination/_pagination.html.twig", 188)->unwrap()->yield(CoreExtension::merge($context, ["pagination" => CoreExtension::getAttribute($this->env, $this->source, // line 189
(isset($context["cruiseSearchResult"]) || array_key_exists("cruiseSearchResult", $context) ? $context["cruiseSearchResult"] : (function () { throw new RuntimeError('Variable "cruiseSearchResult" does not exist.', 189, $this->source); })()), "pagination", [], "any", false, false, false, 189)]));
// line 191
yield "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
}
// line 193
yield "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
\t\t</div>
\t\t<div class=\"list-footer-stack\" data-list-footer-stack hidden>
\t\t\t<div class=\"list-page-dock\" data-list-page-dock>
\t\t\t\t<button type=\"button\" class=\"list-page-dock__footer\" data-list-dock-footer aria-expanded=\"false\" data-label-show=\"";
// line 203
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.dock.show_footer"), "html_attr");
yield "\" data-label-hide=\"";
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.dock.hide_footer"), "html_attr");
yield "\">
\t\t\t\t\t";
// line 204
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.dock.show_footer"), "html", null, true);
yield "
\t\t\t\t</button>
\t\t\t</div>
\t\t\t<div class=\"list-footer-panel\" data-list-footer-panel inert>
\t\t\t\t<footer class=\"footer list-footer-panel__footer\">
\t\t\t\t\t";
// line 209
yield from $this->load("pages/_includes/base/_footer.html.twig", 209)->unwrap()->yield(CoreExtension::merge($context, ["showFloatingActions" => false]));
// line 210
yield "\t\t\t\t</footer>
\t\t\t</div>
\t\t</div>
\t\t<div
\t\t\tid=\"cruise-search-loader-modal\"
\t\t\tclass=\"cruise-search-loader-modal\"
\t\t\thidden
\t\t\taria-hidden=\"true\"
\t\t\trole=\"alertdialog\"
\t\t\taria-modal=\"true\"
\t\t\taria-labelledby=\"cruise-search-loader-title\"
\t\t>
\t\t\t<div class=\"cruise-search-loader-modal__panel\" tabindex=\"-1\">
\t\t\t\t<div class=\"cruise-search-loader-modal__spinner\" aria-hidden=\"true\"></div>
\t\t\t\t<p id=\"cruise-search-loader-title\" class=\"cruise-search-loader-modal__text\">
\t\t\t\t\t";
// line 226
yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.search.updating"), "html", null, true);
yield "
\t\t\t\t</p>
\t\t\t</div>
\t\t</div>
\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 81
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_seo(array $context, array $blocks = []): iterable
{
$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 82
yield "\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["searchMainSubjectInfos"] ?? null), "subject", [], "any", true, true, false, 82) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["searchMainSubjectInfos"]) || array_key_exists("searchMainSubjectInfos", $context) ? $context["searchMainSubjectInfos"] : (function () { throw new RuntimeError('Variable "searchMainSubjectInfos" does not exist.', 82, $this->source); })()), "subject", [], "any", false, false, false, 82)))) {
// line 83
yield "\t\t\t\t\t\t\t";
yield from $this->load((("pages/_includes/list/seo_templates/_" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["searchMainSubjectInfos"]) || array_key_exists("searchMainSubjectInfos", $context) ? $context["searchMainSubjectInfos"] : (function () { throw new RuntimeError('Variable "searchMainSubjectInfos" does not exist.', 83, $this->source); })()), "template", [], "any", false, false, false, 83)) . ".html.twig"), 83)->unwrap()->yield(CoreExtension::merge($context, ["content" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["searchMainSubjectInfos"]) || array_key_exists("searchMainSubjectInfos", $context) ? $context["searchMainSubjectInfos"] : (function () { throw new RuntimeError('Variable "searchMainSubjectInfos" does not exist.', 83, $this->source); })()), "subject", [], "any", false, false, false, 83)]));
// line 84
yield "\t\t\t\t\t\t";
} else {
// line 85
yield "\t\t\t\t\t\t\t";
yield from $this->load("pages/_includes/list/seo_templates/_seo_default.html.twig", 85)->unwrap()->yield($context);
// line 86
yield "\t\t\t\t\t\t";
}
// line 87
yield "\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 109
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_tags(array $context, array $blocks = []): iterable
{
$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", "tags"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tags"));
// line 110
yield "\t\t\t\t\t\t\t";
yield from $this->load("pages/_includes/list/_super-tags.html.twig", 110)->unwrap()->yield($context);
// line 111
yield "\t\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 233
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 234
yield "\t\t";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
\t\t";
// line 235
yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("list_page");
yield "
\t\t";
// line 239
yield "\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 646 => 239, 642 => 235, 637 => 234, 624 => 233, 613 => 111, 610 => 110, 597 => 109, 586 => 87, 583 => 86, 580 => 85, 577 => 84, 574 => 83, 571 => 82, 558 => 81, 541 => 226, 523 => 210, 521 => 209, 513 => 204, 507 => 203, 495 => 193, 491 => 191, 489 => 189, 488 => 188, 481 => 183, 460 => 168, 456 => 167, 450 => 163, 448 => 162, 444 => 160, 441 => 159, 438 => 158, 435 => 157, 420 => 156, 418 => 154, 417 => 153, 415 => 152, 412 => 151, 394 => 150, 392 => 149, 389 => 148, 384 => 146, 380 => 145, 376 => 144, 371 => 143, 369 => 142, 363 => 138, 360 => 137, 357 => 134, 350 => 126, 346 => 125, 342 => 124, 338 => 123, 334 => 122, 330 => 121, 323 => 117, 319 => 116, 313 => 112, 311 => 109, 305 => 105, 303 => 104, 299 => 103, 295 => 101, 293 => 92, 287 => 88, 285 => 81, 273 => 71, 271 => 69, 270 => 68, 269 => 67, 266 => 66, 263 => 65, 260 => 64, 257 => 63, 254 => 62, 251 => 61, 249 => 60, 246 => 59, 243 => 58, 240 => 57, 237 => 56, 234 => 55, 231 => 54, 229 => 53, 226 => 52, 223 => 51, 221 => 50, 218 => 49, 215 => 48, 213 => 47, 207 => 43, 205 => 42, 203 => 41, 200 => 40, 197 => 38, 195 => 34, 191 => 31, 178 => 30, 167 => 27, 154 => 26, 143 => 23, 130 => 22, 117 => 11, 112 => 10, 99 => 9, 87 => 4, 74 => 3, 63 => 1, 61 => 7, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27base.html.twig\x27 %}
{% block page_class %}
\tpage list
{% endblock %}
{% set url = app.request.server.get(\x27REQUEST_SCHEME\x27) ~ \x27://\x27 ~ app.request.server.get(\x27SERVER_NAME\x27) ~ app.request.server.get(\x27REQUEST_URI\x27) %}
{% block stylesheets %}
\t{{parent()}}
\t{{ encore_entry_link_tags(\x27list_styles\x27) }}
\t{# Leaflet chargé à la demande à l\x27ouverture de la modale carte (initModalLeaflet)
\t<link rel=\"stylesheet\" href=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.css\" crossorigin=\"\"/>
\t#}
{% endblock %}
{# Simulation de pagination #}
{# {% set cruisesPerPage = 8 %}
{% set totalCruises = croisieres|length %}
{% set totalPages = (totalCruises / cruisesPerPage)|round(0, \x27ceil\x27) %}
{% set currentPage = 1 %}
{% set pageRange = 3 %} #}{% block header_search %}
\t{# Page liste : pas de barre de recherche #}
{% endblock %}
{% block header_search_mobile %}
\t{# Page liste : pas de barre de recherche #}
{% endblock %}
{% block content %}
\t{# Tri des navires #}
\t{# {% set navires_top = navires|filter(n => n.top == 1) %}
\t{% set navires_rest = navires|filter(n => n.top != 1) %}
\t{% set sorted_navires = navires_top|merge(navires_rest) %} #}
\t{# {% set cruises_number = companiesDatas|reduce((carry, company) => carry + (company.cruises|length), 0) %} #}
\t{% set cruises_number = cruiseSearchResult.pagination.total_count|default(0) %}
\t{# Fil d\x27Ariane #}
\t<div class=\"container-fluid\">
\t\t<div class=\"row\">
\t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
\t\t\t<div class=\"col-lg-10 col-md-10 col-sm-12 list-page-main\">
\t\t\t\t{% set destinationData = null %}
\t\t\t\t{% set companyData = null %}
\t\t\t\t{% set destinationId = app.request.query.get(\x27destination\x27) %}
\t\t\t\t{% set companyId = app.request.query.get(\x27company\x27) %}
\t\t\t\t{% if destinationId is not null and destinationId is not empty %}
\t\t\t\t\t{% set destination = getDestinationById(destinationId + 0) %}
\t\t\t\t\t{% if destination %}
\t\t\t\t\t\t{% set destinationData = { name: destination.name, url: \x27/croisieres?destination=\x27 ~ destinationId } %}
\t\t\t\t\t{% endif %}
\t\t\t\t{% endif %}
\t\t\t\t{% if companyId is not null and companyId is not empty %}
\t\t\t\t\t{% set company = getCompanyById(companyId + 0) %}
\t\t\t\t\t{% if company %}
\t\t\t\t\t\t{% set companyData = { name: company.name, url: \x27/croisieres?company=\x27 ~ companyId } %}
\t\t\t\t\t{% endif %}
\t\t\t\t{% endif %}
\t\t\t\t{% include \x27pages/_includes/_breadcrumb.html.twig\x27 with {
\t\t\t\t\t\tdestination: destinationData,
\t\t\t\t\t\tcompany: companyData
\t\t\t\t\t} %}
\t\t\t</div>
\t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
\t\t</div>
\t</div>
\t<div class=\"container-fluid mb-5\">
\t\t<div class=\"row\">
\t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
\t\t\t<div class=\"col-lg-10 col-md-10 col-sm-12 list-page-main\">
\t\t\t\t<div id=\"title\">
\t\t\t\t\t{% block seo %}
\t\t\t\t\t\t{% if searchMainSubjectInfos.subject is defined and searchMainSubjectInfos.subject is not empty %}
\t\t\t\t\t\t\t{% include \x27pages/_includes/list/seo_templates/_\x27 ~ searchMainSubjectInfos.template ~ \x27.html.twig\x27 with { content: searchMainSubjectInfos.subject } %}
\t\t\t\t\t\t{% else%}
\t\t\t\t\t\t\t{% include \x27pages/_includes/list/seo_templates/_seo_default.html.twig\x27 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endblock %}
\t\t\t\t</div>
\t\t\t\t<div class=\"content layout container-fluid px-0\">
\t\t\t\t{% set filters = {
\t\t\t\t\t\x27ships\x27 : [],
\t\t\t\t\t\x27companies\x27 : [],
\t\t\t\t\t\x27destinations\x27 : [],
\t\t\t\t\t\x27ports\x27 : [],
\t\t\t\t\t\x27durations\x27 : [],
\t\t\t\t\t\x27sort\x27 : null,
\t\t\t\t\t\x27number_of_cruises\x27 : 0
\t\t\t\t}%}
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<div id=\"filters\" class=\"col-lg-3 col-md-4 col-sm-12\" data-search-url=\"{{ searchUrl|default(app.request.uri) }}\">
\t\t\t\t\t\t{% include \x27pages/_includes/list/_filters.html.twig\x27 %}
\t\t\t\t\t</div>
\t\t\t\t\t<div id=\"list\" class=\"col-lg-9 col-md-8 col-sm-12\">
\t\t\t\t\t\t{% block tags %}
\t\t\t\t\t\t\t{% include \x27pages/_includes/list/_super-tags.html.twig\x27 %}
\t\t\t\t\t\t{% endblock %}
\t\t\t\t\t\t<div class=\"tag_by_mobile mobile\">
\t\t\t\t\t\t\t<div class=\"tag_by accordion\">
\t\t\t\t\t\t\t\t<button class=\"tagBy accordion-trigger\">
\t\t\t\t\t\t\t\t\t<span>{{ \x27list.sort.label\x27|trans }}</span>
\t\t\t\t\t\t\t\t\t<div class=\"icon\">{{ getLucidIcon(\x27arrow-down-wide-narrow\x27) }}</div>
\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t<ul
\t\t\t\t\t\t\t\t\tclass=\" br1 accordion-content\"
\t\t\t\t\t\t\t\t\tdata-sort-label-date-desc=\"{{ \x27list.sort.date_desc\x27|trans|e(\x27html_attr\x27) }}\"
\t\t\t\t\t\t\t\t\tdata-sort-label-date-asc=\"{{ \x27list.sort.date_asc\x27|trans|e(\x27html_attr\x27) }}\"
\t\t\t\t\t\t\t\t\tdata-sort-label-price-asc=\"{{ \x27list.sort.price_asc\x27|trans|e(\x27html_attr\x27) }}\"
\t\t\t\t\t\t\t\t\tdata-sort-label-price-desc=\"{{ \x27list.sort.price_desc\x27|trans|e(\x27html_attr\x27) }}\"
\t\t\t\t\t\t\t\t\tdata-sort-label-duration-asc=\"{{ \x27list.sort.duration_asc\x27|trans|e(\x27html_attr\x27) }}\"
\t\t\t\t\t\t\t\t\tdata-sort-label-duration-desc=\"{{ \x27list.sort.duration_desc\x27|trans|e(\x27html_attr\x27) }}\"
\t\t\t\t\t\t\t\t></ul>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t{#
\t\t\t\t\t\t{% block cruises %}
\t\t\t\t\t\t\t{% include \x27_snippets/mocks/card_list.html.twig\x27 %}
\t\t\t\t\t\t{% endblock %} #}
\t\t\t\t\t\t{# Zone AJAX (cf. _cruise_search_ajax.js) : au filtre / pagination,
\t\t\t\t\t\t\tseuls #cruise_results, le scroll infini et la pagination sont mis à jour. #}
\t\t\t\t\t\t{% set cruise_list = cruiseSearchResult.paginated_result|default([]) %}
\t\t\t\t\t\t<div class=\"cruise-search-zone\" data-cruise-search-zone>
\t\t\t\t\t\t\t<div
\t\t\t\t\t\t\t\tid=\"cruise_results\"
\t\t\t\t\t\t\t\tclass=\"cruises-container\"
\t\t\t\t\t\t\t\t{% if cruiseSearchResult.pagination is defined %}
\t\t\t\t\t\t\t\t\tdata-cruise-per-page=\"{{ cruiseSearchResult.pagination.per_page|default(5) }}\"
\t\t\t\t\t\t\t\t\tdata-cruise-total-count=\"{{ cruiseSearchResult.pagination.total_count|default(0) }}\"
\t\t\t\t\t\t\t\t\tdata-cruise-total-pages=\"{{ cruiseSearchResult.pagination.total_pages|default(1) }}\"
\t\t\t\t\t\t\t\t\tdata-cruise-current-page=\"{{ cruiseSearchResult.pagination.current_page|default(1) }}\"
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t{% if cruise_list is not empty %}
\t\t\t\t\t\t\t\t\t{% for cruise in cruise_list %}
\t\t\t\t\t\t\t\t\t\t{% set content = { isFloa: true } %}
\t\t\t\t\t\t\t\t\t\t{% include \x27_snippets/components/cards/list_card.html.twig\x27 with {
\t\t\t\t\t\t\t\t\t\t\tcruise: cruise,
\t\t\t\t\t\t\t\t\t\t\tcontent: content
\t\t\t\t\t\t\t\t\t\t} %}
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{% include \x27pages/_includes/list/_no_results_card.html.twig\x27 %}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% if cruise_list is not empty %}
\t\t\t\t\t\t\t\t<div class=\"cruise-infinite-scroll\" data-cruise-infinite-scroll aria-live=\"polite\">
\t\t\t\t\t\t\t\t\t<div class=\"cruise-infinite-scroll__sentinel\" data-cruise-infinite-sentinel></div>
\t\t\t\t\t\t\t\t\t<div class=\"cruise-infinite-scroll__loading\" data-cruise-infinite-loading hidden>
\t\t\t\t\t\t\t\t\t\t<p class=\"cruise-infinite-scroll__status\">Chargement des croisières…</p>
\t\t\t\t\t\t\t\t\t\t{% for skeletonIndex in 1..3 %}
\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton\" aria-hidden=\"true\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__media\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__main\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--xs\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--title\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--md\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--sm\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__aside\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__price\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__cta\"></div>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<p class=\"cruise-infinite-scroll__end\" data-cruise-infinite-end hidden>Toutes les croisières sont affichées.</p>
\t\t\t\t\t\t\t\t\t<p class=\"cruise-infinite-scroll__error\" data-cruise-infinite-error hidden>Impossible de charger la page suivante.</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"cruise-search-paging is-visually-hidden\" data-cruise-search-paging aria-hidden=\"true\">
\t\t\t\t\t\t\t\t\t{% include \x27@CroisilandCommon/pagination/_pagination.html.twig\x27 with {
\t\t\t\t\t\t\t\t\t\t\x27pagination\x27: cruiseSearchResult.pagination
\t\t\t\t\t\t\t\t\t} %}
\t\t\t\t\t\t\t\t</div>
\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\t</div>
\t\t\t</div>
\t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
\t\t</div>
\t\t<div class=\"list-footer-stack\" data-list-footer-stack hidden>
\t\t\t<div class=\"list-page-dock\" data-list-page-dock>
\t\t\t\t<button type=\"button\" class=\"list-page-dock__footer\" data-list-dock-footer aria-expanded=\"false\" data-label-show=\"{{ \x27list.dock.show_footer\x27|trans|e(\x27html_attr\x27) }}\" data-label-hide=\"{{ \x27list.dock.hide_footer\x27|trans|e(\x27html_attr\x27) }}\">
\t\t\t\t\t{{ \x27list.dock.show_footer\x27|trans }}
\t\t\t\t</button>
\t\t\t</div>
\t\t\t<div class=\"list-footer-panel\" data-list-footer-panel inert>
\t\t\t\t<footer class=\"footer list-footer-panel__footer\">
\t\t\t\t\t{% include \x27pages/_includes/base/_footer.html.twig\x27 with { showFloatingActions: false } %}
\t\t\t\t</footer>
\t\t\t</div>
\t\t</div>
\t\t<div
\t\t\tid=\"cruise-search-loader-modal\"
\t\t\tclass=\"cruise-search-loader-modal\"
\t\t\thidden
\t\t\taria-hidden=\"true\"
\t\t\trole=\"alertdialog\"
\t\t\taria-modal=\"true\"
\t\t\taria-labelledby=\"cruise-search-loader-title\"
\t\t>
\t\t\t<div class=\"cruise-search-loader-modal__panel\" tabindex=\"-1\">
\t\t\t\t<div class=\"cruise-search-loader-modal__spinner\" aria-hidden=\"true\"></div>
\t\t\t\t<p id=\"cruise-search-loader-title\" class=\"cruise-search-loader-modal__text\">
\t\t\t\t\t{{ \x27list.search.updating\x27|trans }}
\t\t\t\t</p>
\t\t\t</div>
\t\t</div>
\t{% endblock %}
\t{% block javascripts %}
\t\t{{ parent() }}
\t\t{{ encore_entry_script_tags(\x27list_page\x27) }}
\t\t{# Leaflet chargé à la demande — voir initModalLeaflet (map-bundle)
\t\t<script src=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.js\" crossorigin=\"\"></script>
\t\t#}
\t{% endblock %}
", "pages/list.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/list.html.twig");
}
}