var/cache/website/dev/twig/29/2983de610baab750f98bcad433d64c14.php line 51

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Sandbox\SecurityNotAllowedTestError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. use Twig\TemplateWrapper;
  16. /* pages/list.html.twig */
  17. class __TwigTemplate_4f6c0e44a34a6cdf5016b0b70dc1def6 extends Template
  18. {
  19. private Source $source;
  20. /**
  21. * @var array<string, Template>
  22. */
  23. private array $macros = [];
  24. public function __construct(Environment $env)
  25. {
  26. parent::__construct($env);
  27. $this->source = $this->getSourceContext();
  28. $this->blocks = [
  29. 'page_class' => [$this, 'block_page_class'],
  30. 'stylesheets' => [$this, 'block_stylesheets'],
  31. 'header_search' => [$this, 'block_header_search'],
  32. 'header_search_mobile' => [$this, 'block_header_search_mobile'],
  33. 'content' => [$this, 'block_content'],
  34. 'seo' => [$this, 'block_seo'],
  35. 'tags' => [$this, 'block_tags'],
  36. 'javascripts' => [$this, 'block_javascripts'],
  37. ];
  38. }
  39. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  40. {
  41. // line 1
  42. return "base.html.twig";
  43. }
  44. protected function doDisplay(array $context, array $blocks = []): iterable
  45. {
  46. $macros = $this->macros;
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/list.html.twig"));
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  50. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/list.html.twig"));
  51. // line 7
  52. $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));
  53. // line 1
  54. $this->parent = $this->load("base.html.twig", 1);
  55. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  57. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58. }
  59. // line 3
  60. /**
  61. * @return iterable<null|scalar|\Stringable>
  62. */
  63. public function block_page_class(array $context, array $blocks = []): iterable
  64. {
  65. $macros = $this->macros;
  66. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
  68. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_class"));
  70. // line 4
  71. yield "\tpage list
  72. ";
  73. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  74. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75. yield from [];
  76. }
  77. // line 9
  78. /**
  79. * @return iterable<null|scalar|\Stringable>
  80. */
  81. public function block_stylesheets(array $context, array $blocks = []): iterable
  82. {
  83. $macros = $this->macros;
  84. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  85. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  86. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  87. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  88. // line 10
  89. yield "\t";
  90. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  91. yield "
  92. \t";
  93. // line 11
  94. yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("list_styles");
  95. yield "
  96. \t";
  97. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  98. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  99. yield from [];
  100. }
  101. // line 22
  102. /**
  103. * @return iterable<null|scalar|\Stringable>
  104. */
  105. public function block_header_search(array $context, array $blocks = []): iterable
  106. {
  107. $macros = $this->macros;
  108. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  109. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search"));
  110. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  111. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search"));
  112. // line 23
  113. yield "\t";
  114. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  115. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  116. yield from [];
  117. }
  118. // line 26
  119. /**
  120. * @return iterable<null|scalar|\Stringable>
  121. */
  122. public function block_header_search_mobile(array $context, array $blocks = []): iterable
  123. {
  124. $macros = $this->macros;
  125. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  126. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search_mobile"));
  127. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  128. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_search_mobile"));
  129. // line 27
  130. yield "\t";
  131. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  132. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  133. yield from [];
  134. }
  135. // line 30
  136. /**
  137. * @return iterable<null|scalar|\Stringable>
  138. */
  139. public function block_content(array $context, array $blocks = []): iterable
  140. {
  141. $macros = $this->macros;
  142. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  143. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  144. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  145. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  146. // line 31
  147. yield "
  148. \t";
  149. // line 34
  150. yield "\t";
  151. // line 38
  152. yield "
  153. \t";
  154. // line 40
  155. yield "
  156. \t";
  157. // line 41
  158. $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));
  159. // line 42
  160. yield "\t";
  161. // line 43
  162. yield "\t<div class=\"container-fluid\">
  163. \t\t<div class=\"row\">
  164. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
  165. \t\t\t<div class=\"col-lg-10 col-md-10 col-sm-12 list-page-main\">
  166. \t\t\t\t";
  167. // line 47
  168. $context["destinationData"] = null;
  169. // line 48
  170. yield "\t\t\t\t";
  171. $context["companyData"] = null;
  172. // line 49
  173. yield "
  174. \t\t\t\t";
  175. // line 50
  176. $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);
  177. // line 51
  178. yield "\t\t\t\t";
  179. $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);
  180. // line 52
  181. yield "
  182. \t\t\t\t";
  183. // line 53
  184. 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); })())))) {
  185. // line 54
  186. yield "\t\t\t\t\t";
  187. $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));
  188. // line 55
  189. yield "\t\t\t\t\t";
  190. 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)) {
  191. // line 56
  192. yield "\t\t\t\t\t\t";
  193. $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); })()))];
  194. // line 57
  195. yield "\t\t\t\t\t";
  196. }
  197. // line 58
  198. yield "\t\t\t\t";
  199. }
  200. // line 59
  201. yield "
  202. \t\t\t\t";
  203. // line 60
  204. 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); })())))) {
  205. // line 61
  206. yield "\t\t\t\t\t";
  207. $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));
  208. // line 62
  209. yield "\t\t\t\t\t";
  210. 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)) {
  211. // line 63
  212. yield "\t\t\t\t\t\t";
  213. $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); })()))];
  214. // line 64
  215. yield "\t\t\t\t\t";
  216. }
  217. // line 65
  218. yield "\t\t\t\t";
  219. }
  220. // line 66
  221. yield "
  222. \t\t\t\t";
  223. // line 67
  224. yield from $this->load("pages/_includes/_breadcrumb.html.twig", 67)->unwrap()->yield(CoreExtension::merge($context, ["destination" => // line 68
  225. (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
  226. (isset($context["companyData"]) || array_key_exists("companyData", $context) ? $context["companyData"] : (function () { throw new RuntimeError('Variable "companyData" does not exist.', 69, $this->source); })())]));
  227. // line 71
  228. yield "\t\t\t</div>
  229. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
  230. \t\t</div>
  231. \t</div>
  232. \t<div class=\"container-fluid mb-5\">
  233. \t\t<div class=\"row\">
  234. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
  235. \t\t\t<div class=\"col-lg-10 col-md-10 col-sm-12 list-page-main\">
  236. \t\t\t\t<div id=\"title\">
  237. \t\t\t\t\t";
  238. // line 81
  239. yield from $this->unwrap()->yieldBlock('seo', $context, $blocks);
  240. // line 88
  241. yield "\t\t\t\t</div>
  242. \t\t\t\t<div class=\"content layout container-fluid px-0\">
  243. \t\t\t\t";
  244. // line 92
  245. $context["filters"] = ["ships" => [], "companies" => [], "destinations" => [], "ports" => [], "durations" => [], "sort" => null, "number_of_cruises" => 0];
  246. // line 101
  247. yield "
  248. \t\t\t\t<div class=\"row\">
  249. \t\t\t\t\t<div id=\"filters\" class=\"col-lg-3 col-md-4 col-sm-12\" data-search-url=\"";
  250. // line 103
  251. 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);
  252. yield "\">
  253. \t\t\t\t\t\t";
  254. // line 104
  255. yield from $this->load("pages/_includes/list/_filters.html.twig", 104)->unwrap()->yield($context);
  256. // line 105
  257. yield "
  258. \t\t\t\t\t</div>
  259. \t\t\t\t\t<div id=\"list\" class=\"col-lg-9 col-md-8 col-sm-12\">
  260. \t\t\t\t\t\t";
  261. // line 109
  262. yield from $this->unwrap()->yieldBlock('tags', $context, $blocks);
  263. // line 112
  264. yield "
  265. \t\t\t\t\t\t<div class=\"tag_by_mobile mobile\">
  266. \t\t\t\t\t\t\t<div class=\"tag_by accordion\">
  267. \t\t\t\t\t\t\t\t<button class=\"tagBy accordion-trigger\">
  268. \t\t\t\t\t\t\t\t\t<span>";
  269. // line 116
  270. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.label"), "html", null, true);
  271. yield "</span>
  272. \t\t\t\t\t\t\t\t\t<div class=\"icon\">";
  273. // line 117
  274. yield (string) $this->env->getFunction('getLucidIcon')->getCallable()("arrow-down-wide-narrow");
  275. yield "</div>
  276. \t\t\t\t\t\t\t\t</button>
  277. \t\t\t\t\t\t\t\t<ul
  278. \t\t\t\t\t\t\t\t\tclass=\" br1 accordion-content\"
  279. \t\t\t\t\t\t\t\t\tdata-sort-label-date-desc=\"";
  280. // line 121
  281. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.date_desc"), "html_attr");
  282. yield "\"
  283. \t\t\t\t\t\t\t\t\tdata-sort-label-date-asc=\"";
  284. // line 122
  285. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.date_asc"), "html_attr");
  286. yield "\"
  287. \t\t\t\t\t\t\t\t\tdata-sort-label-price-asc=\"";
  288. // line 123
  289. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.price_asc"), "html_attr");
  290. yield "\"
  291. \t\t\t\t\t\t\t\t\tdata-sort-label-price-desc=\"";
  292. // line 124
  293. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.price_desc"), "html_attr");
  294. yield "\"
  295. \t\t\t\t\t\t\t\t\tdata-sort-label-duration-asc=\"";
  296. // line 125
  297. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.duration_asc"), "html_attr");
  298. yield "\"
  299. \t\t\t\t\t\t\t\t\tdata-sort-label-duration-desc=\"";
  300. // line 126
  301. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.sort.duration_desc"), "html_attr");
  302. yield "\"
  303. \t\t\t\t\t\t\t\t></ul>
  304. \t\t\t\t\t\t\t</div>
  305. \t\t\t\t\t\t</div>
  306. \t\t\t\t\t\t";
  307. // line 134
  308. yield "
  309. \t\t\t\t\t\t";
  310. // line 137
  311. yield "\t\t\t\t\t\t";
  312. $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), [])) : ([]));
  313. // line 138
  314. yield "\t\t\t\t\t\t<div class=\"cruise-search-zone\" data-cruise-search-zone>
  315. \t\t\t\t\t\t\t<div
  316. \t\t\t\t\t\t\t\tid=\"cruise_results\"
  317. \t\t\t\t\t\t\t\tclass=\"cruises-container\"
  318. \t\t\t\t\t\t\t\t";
  319. // line 142
  320. if (CoreExtension::getAttribute($this->env, $this->source, ($context["cruiseSearchResult"] ?? null), "pagination", [], "any", true, true, false, 142)) {
  321. // line 143
  322. yield "\t\t\t\t\t\t\t\t\tdata-cruise-per-page=\"";
  323. 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);
  324. yield "\"
  325. \t\t\t\t\t\t\t\t\tdata-cruise-total-count=\"";
  326. // line 144
  327. 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);
  328. yield "\"
  329. \t\t\t\t\t\t\t\t\tdata-cruise-total-pages=\"";
  330. // line 145
  331. 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);
  332. yield "\"
  333. \t\t\t\t\t\t\t\t\tdata-cruise-current-page=\"";
  334. // line 146
  335. 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);
  336. yield "\"
  337. \t\t\t\t\t\t\t\t";
  338. }
  339. // line 148
  340. yield "\t\t\t\t\t\t\t>
  341. \t\t\t\t\t\t\t\t";
  342. // line 149
  343. 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); })()))) {
  344. // line 150
  345. yield "\t\t\t\t\t\t\t\t\t";
  346. $context['_parent'] = $context;
  347. $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); })()));
  348. $context['loop'] = [
  349. 'parent' => $context['_parent'],
  350. 'index0' => 0,
  351. 'index' => 1,
  352. 'first' => true,
  353. ];
  354. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  355. $length = count($context['_seq']);
  356. $context['loop']['revindex0'] = $length - 1;
  357. $context['loop']['revindex'] = $length;
  358. $context['loop']['length'] = $length;
  359. $context['loop']['last'] = 1 === $length;
  360. }
  361. foreach ($context['_seq'] as $context["_key"] => $context["cruise"]) {
  362. // line 151
  363. yield "\t\t\t\t\t\t\t\t\t\t";
  364. $context["content"] = ["isFloa" => true];
  365. // line 152
  366. yield "\t\t\t\t\t\t\t\t\t\t";
  367. yield from $this->load("_snippets/components/cards/list_card.html.twig", 152)->unwrap()->yield(CoreExtension::merge($context, ["cruise" => // line 153
  368. $context["cruise"], "content" => // line 154
  369. (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 154, $this->source); })())]));
  370. // line 156
  371. yield "\t\t\t\t\t\t\t\t\t";
  372. ++$context['loop']['index0'];
  373. ++$context['loop']['index'];
  374. $context['loop']['first'] = false;
  375. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  376. --$context['loop']['revindex0'];
  377. --$context['loop']['revindex'];
  378. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  379. }
  380. }
  381. $_parent = $context['_parent'];
  382. unset($context['_seq'], $context['_key'], $context['cruise'], $context['_parent'], $context['loop']);
  383. $context = array_intersect_key($context, $_parent);
  384. $context += $_parent;
  385. // line 157
  386. yield "\t\t\t\t\t\t\t\t";
  387. } else {
  388. // line 158
  389. yield "\t\t\t\t\t\t\t\t\t";
  390. yield from $this->load("pages/_includes/list/_no_results_card.html.twig", 158)->unwrap()->yield($context);
  391. // line 159
  392. yield "\t\t\t\t\t\t\t\t";
  393. }
  394. // line 160
  395. yield "\t\t\t\t\t\t\t</div>
  396. \t\t\t\t\t\t\t";
  397. // line 162
  398. 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); })()))) {
  399. // line 163
  400. yield "\t\t\t\t\t\t\t\t<div class=\"cruise-infinite-scroll\" data-cruise-infinite-scroll aria-live=\"polite\">
  401. \t\t\t\t\t\t\t\t\t<div class=\"cruise-infinite-scroll__sentinel\" data-cruise-infinite-sentinel></div>
  402. \t\t\t\t\t\t\t\t\t<div class=\"cruise-infinite-scroll__loading\" data-cruise-infinite-loading hidden>
  403. \t\t\t\t\t\t\t\t\t\t<p class=\"cruise-infinite-scroll__status\">Chargement des croisières…</p>
  404. \t\t\t\t\t\t\t\t\t\t";
  405. // line 167
  406. $context['_parent'] = $context;
  407. $context['_seq'] = CoreExtension::ensureTraversable(range(1, 3));
  408. foreach ($context['_seq'] as $context["_key"] => $context["skeletonIndex"]) {
  409. // line 168
  410. yield "\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton\" aria-hidden=\"true\">
  411. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__media\"></div>
  412. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__main\">
  413. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--xs\"></div>
  414. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--title\"></div>
  415. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line\"></div>
  416. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--md\"></div>
  417. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--sm\"></div>
  418. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  419. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__aside\">
  420. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__price\"></div>
  421. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__cta\"></div>
  422. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  423. \t\t\t\t\t\t\t\t\t\t\t</div>
  424. \t\t\t\t\t\t\t\t\t\t";
  425. }
  426. $_parent = $context['_parent'];
  427. unset($context['_seq'], $context['_key'], $context['skeletonIndex'], $context['_parent']);
  428. $context = array_intersect_key($context, $_parent);
  429. $context += $_parent;
  430. // line 183
  431. yield "\t\t\t\t\t\t\t\t\t</div>
  432. \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>
  433. \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>
  434. \t\t\t\t\t\t\t\t</div>
  435. \t\t\t\t\t\t\t\t<div class=\"cruise-search-paging is-visually-hidden\" data-cruise-search-paging aria-hidden=\"true\">
  436. \t\t\t\t\t\t\t\t\t";
  437. // line 188
  438. yield from $this->load("@CroisilandCommon/pagination/_pagination.html.twig", 188)->unwrap()->yield(CoreExtension::merge($context, ["pagination" => CoreExtension::getAttribute($this->env, $this->source, // line 189
  439. (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)]));
  440. // line 191
  441. yield "\t\t\t\t\t\t\t\t</div>
  442. \t\t\t\t\t\t\t";
  443. }
  444. // line 193
  445. yield "\t\t\t\t\t\t</div>
  446. \t\t\t\t\t</div>
  447. \t\t\t\t</div>
  448. \t\t\t\t</div>
  449. \t\t\t</div>
  450. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
  451. \t\t</div>
  452. \t\t<div class=\"list-footer-stack\" data-list-footer-stack hidden>
  453. \t\t\t<div class=\"list-page-dock\" data-list-page-dock>
  454. \t\t\t\t<button type=\"button\" class=\"list-page-dock__footer\" data-list-dock-footer aria-expanded=\"false\" data-label-show=\"";
  455. // line 203
  456. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.dock.show_footer"), "html_attr");
  457. yield "\" data-label-hide=\"";
  458. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.dock.hide_footer"), "html_attr");
  459. yield "\">
  460. \t\t\t\t\t";
  461. // line 204
  462. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.dock.show_footer"), "html", null, true);
  463. yield "
  464. \t\t\t\t</button>
  465. \t\t\t</div>
  466. \t\t\t<div class=\"list-footer-panel\" data-list-footer-panel inert>
  467. \t\t\t\t<footer class=\"footer list-footer-panel__footer\">
  468. \t\t\t\t\t";
  469. // line 209
  470. yield from $this->load("pages/_includes/base/_footer.html.twig", 209)->unwrap()->yield(CoreExtension::merge($context, ["showFloatingActions" => false]));
  471. // line 210
  472. yield "\t\t\t\t</footer>
  473. \t\t\t</div>
  474. \t\t</div>
  475. \t\t<div
  476. \t\t\tid=\"cruise-search-loader-modal\"
  477. \t\t\tclass=\"cruise-search-loader-modal\"
  478. \t\t\thidden
  479. \t\t\taria-hidden=\"true\"
  480. \t\t\trole=\"alertdialog\"
  481. \t\t\taria-modal=\"true\"
  482. \t\t\taria-labelledby=\"cruise-search-loader-title\"
  483. \t\t>
  484. \t\t\t<div class=\"cruise-search-loader-modal__panel\" tabindex=\"-1\">
  485. \t\t\t\t<div class=\"cruise-search-loader-modal__spinner\" aria-hidden=\"true\"></div>
  486. \t\t\t\t<p id=\"cruise-search-loader-title\" class=\"cruise-search-loader-modal__text\">
  487. \t\t\t\t\t";
  488. // line 226
  489. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("list.search.updating"), "html", null, true);
  490. yield "
  491. \t\t\t\t</p>
  492. \t\t\t</div>
  493. \t\t</div>
  494. \t";
  495. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  496. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  497. yield from [];
  498. }
  499. // line 81
  500. /**
  501. * @return iterable<null|scalar|\Stringable>
  502. */
  503. public function block_seo(array $context, array $blocks = []): iterable
  504. {
  505. $macros = $this->macros;
  506. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  507. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
  508. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  509. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
  510. // line 82
  511. yield "\t\t\t\t\t\t";
  512. 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)))) {
  513. // line 83
  514. yield "\t\t\t\t\t\t\t";
  515. 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)]));
  516. // line 84
  517. yield "\t\t\t\t\t\t";
  518. } else {
  519. // line 85
  520. yield "\t\t\t\t\t\t\t";
  521. yield from $this->load("pages/_includes/list/seo_templates/_seo_default.html.twig", 85)->unwrap()->yield($context);
  522. // line 86
  523. yield "\t\t\t\t\t\t";
  524. }
  525. // line 87
  526. yield "\t\t\t\t\t";
  527. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  528. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  529. yield from [];
  530. }
  531. // line 109
  532. /**
  533. * @return iterable<null|scalar|\Stringable>
  534. */
  535. public function block_tags(array $context, array $blocks = []): iterable
  536. {
  537. $macros = $this->macros;
  538. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  539. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tags"));
  540. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  541. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tags"));
  542. // line 110
  543. yield "\t\t\t\t\t\t\t";
  544. yield from $this->load("pages/_includes/list/_super-tags.html.twig", 110)->unwrap()->yield($context);
  545. // line 111
  546. yield "\t\t\t\t\t\t";
  547. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  548. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  549. yield from [];
  550. }
  551. // line 233
  552. /**
  553. * @return iterable<null|scalar|\Stringable>
  554. */
  555. public function block_javascripts(array $context, array $blocks = []): iterable
  556. {
  557. $macros = $this->macros;
  558. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  559. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  560. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  561. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  562. // line 234
  563. yield "\t\t";
  564. yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  565. yield "
  566. \t\t";
  567. // line 235
  568. yield (string) $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("list_page");
  569. yield "
  570. \t\t";
  571. // line 239
  572. yield "\t";
  573. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  574. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  575. yield from [];
  576. }
  577. /**
  578. * @codeCoverageIgnore
  579. */
  580. public function getTemplateName(): string
  581. {
  582. return "pages/list.html.twig";
  583. }
  584. /**
  585. * @codeCoverageIgnore
  586. */
  587. public function isTraitable(): bool
  588. {
  589. return false;
  590. }
  591. /**
  592. * @codeCoverageIgnore
  593. */
  594. public function getDebugInfo(): array
  595. {
  596. 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,);
  597. }
  598. public function getSourceContext(): Source
  599. {
  600. return new Source("{% extends \x27base.html.twig\x27 %}
  601. {% block page_class %}
  602. \tpage list
  603. {% endblock %}
  604. {% 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) %}
  605. {% block stylesheets %}
  606. \t{{parent()}}
  607. \t{{ encore_entry_link_tags(\x27list_styles\x27) }}
  608. \t{# Leaflet chargé à la demande à l\x27ouverture de la modale carte (initModalLeaflet)
  609. \t<link rel=\"stylesheet\" href=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.css\" crossorigin=\"\"/>
  610. \t#}
  611. {% endblock %}
  612. {# Simulation de pagination #}
  613. {# {% set cruisesPerPage = 8 %}
  614. {% set totalCruises = croisieres|length %}
  615. {% set totalPages = (totalCruises / cruisesPerPage)|round(0, \x27ceil\x27) %}
  616. {% set currentPage = 1 %}
  617. {% set pageRange = 3 %} #}{% block header_search %}
  618. \t{# Page liste : pas de barre de recherche #}
  619. {% endblock %}
  620. {% block header_search_mobile %}
  621. \t{# Page liste : pas de barre de recherche #}
  622. {% endblock %}
  623. {% block content %}
  624. \t{# Tri des navires #}
  625. \t{# {% set navires_top = navires|filter(n => n.top == 1) %}
  626. \t{% set navires_rest = navires|filter(n => n.top != 1) %}
  627. \t{% set sorted_navires = navires_top|merge(navires_rest) %} #}
  628. \t{# {% set cruises_number = companiesDatas|reduce((carry, company) => carry + (company.cruises|length), 0) %} #}
  629. \t{% set cruises_number = cruiseSearchResult.pagination.total_count|default(0) %}
  630. \t{# Fil d\x27Ariane #}
  631. \t<div class=\"container-fluid\">
  632. \t\t<div class=\"row\">
  633. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
  634. \t\t\t<div class=\"col-lg-10 col-md-10 col-sm-12 list-page-main\">
  635. \t\t\t\t{% set destinationData = null %}
  636. \t\t\t\t{% set companyData = null %}
  637. \t\t\t\t{% set destinationId = app.request.query.get(\x27destination\x27) %}
  638. \t\t\t\t{% set companyId = app.request.query.get(\x27company\x27) %}
  639. \t\t\t\t{% if destinationId is not null and destinationId is not empty %}
  640. \t\t\t\t\t{% set destination = getDestinationById(destinationId + 0) %}
  641. \t\t\t\t\t{% if destination %}
  642. \t\t\t\t\t\t{% set destinationData = { name: destination.name, url: \x27/croisieres?destination=\x27 ~ destinationId } %}
  643. \t\t\t\t\t{% endif %}
  644. \t\t\t\t{% endif %}
  645. \t\t\t\t{% if companyId is not null and companyId is not empty %}
  646. \t\t\t\t\t{% set company = getCompanyById(companyId + 0) %}
  647. \t\t\t\t\t{% if company %}
  648. \t\t\t\t\t\t{% set companyData = { name: company.name, url: \x27/croisieres?company=\x27 ~ companyId } %}
  649. \t\t\t\t\t{% endif %}
  650. \t\t\t\t{% endif %}
  651. \t\t\t\t{% include \x27pages/_includes/_breadcrumb.html.twig\x27 with {
  652. \t\t\t\t\t\tdestination: destinationData,
  653. \t\t\t\t\t\tcompany: companyData
  654. \t\t\t\t\t} %}
  655. \t\t\t</div>
  656. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
  657. \t\t</div>
  658. \t</div>
  659. \t<div class=\"container-fluid mb-5\">
  660. \t\t<div class=\"row\">
  661. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
  662. \t\t\t<div class=\"col-lg-10 col-md-10 col-sm-12 list-page-main\">
  663. \t\t\t\t<div id=\"title\">
  664. \t\t\t\t\t{% block seo %}
  665. \t\t\t\t\t\t{% if searchMainSubjectInfos.subject is defined and searchMainSubjectInfos.subject is not empty %}
  666. \t\t\t\t\t\t\t{% include \x27pages/_includes/list/seo_templates/_\x27 ~ searchMainSubjectInfos.template ~ \x27.html.twig\x27 with { content: searchMainSubjectInfos.subject } %}
  667. \t\t\t\t\t\t{% else%}
  668. \t\t\t\t\t\t\t{% include \x27pages/_includes/list/seo_templates/_seo_default.html.twig\x27 %}
  669. \t\t\t\t\t\t{% endif %}
  670. \t\t\t\t\t{% endblock %}
  671. \t\t\t\t</div>
  672. \t\t\t\t<div class=\"content layout container-fluid px-0\">
  673. \t\t\t\t{% set filters = {
  674. \t\t\t\t\t\x27ships\x27 : [],
  675. \t\t\t\t\t\x27companies\x27 : [],
  676. \t\t\t\t\t\x27destinations\x27 : [],
  677. \t\t\t\t\t\x27ports\x27 : [],
  678. \t\t\t\t\t\x27durations\x27 : [],
  679. \t\t\t\t\t\x27sort\x27 : null,
  680. \t\t\t\t\t\x27number_of_cruises\x27 : 0
  681. \t\t\t\t}%}
  682. \t\t\t\t<div class=\"row\">
  683. \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) }}\">
  684. \t\t\t\t\t\t{% include \x27pages/_includes/list/_filters.html.twig\x27 %}
  685. \t\t\t\t\t</div>
  686. \t\t\t\t\t<div id=\"list\" class=\"col-lg-9 col-md-8 col-sm-12\">
  687. \t\t\t\t\t\t{% block tags %}
  688. \t\t\t\t\t\t\t{% include \x27pages/_includes/list/_super-tags.html.twig\x27 %}
  689. \t\t\t\t\t\t{% endblock %}
  690. \t\t\t\t\t\t<div class=\"tag_by_mobile mobile\">
  691. \t\t\t\t\t\t\t<div class=\"tag_by accordion\">
  692. \t\t\t\t\t\t\t\t<button class=\"tagBy accordion-trigger\">
  693. \t\t\t\t\t\t\t\t\t<span>{{ \x27list.sort.label\x27|trans }}</span>
  694. \t\t\t\t\t\t\t\t\t<div class=\"icon\">{{ getLucidIcon(\x27arrow-down-wide-narrow\x27) }}</div>
  695. \t\t\t\t\t\t\t\t</button>
  696. \t\t\t\t\t\t\t\t<ul
  697. \t\t\t\t\t\t\t\t\tclass=\" br1 accordion-content\"
  698. \t\t\t\t\t\t\t\t\tdata-sort-label-date-desc=\"{{ \x27list.sort.date_desc\x27|trans|e(\x27html_attr\x27) }}\"
  699. \t\t\t\t\t\t\t\t\tdata-sort-label-date-asc=\"{{ \x27list.sort.date_asc\x27|trans|e(\x27html_attr\x27) }}\"
  700. \t\t\t\t\t\t\t\t\tdata-sort-label-price-asc=\"{{ \x27list.sort.price_asc\x27|trans|e(\x27html_attr\x27) }}\"
  701. \t\t\t\t\t\t\t\t\tdata-sort-label-price-desc=\"{{ \x27list.sort.price_desc\x27|trans|e(\x27html_attr\x27) }}\"
  702. \t\t\t\t\t\t\t\t\tdata-sort-label-duration-asc=\"{{ \x27list.sort.duration_asc\x27|trans|e(\x27html_attr\x27) }}\"
  703. \t\t\t\t\t\t\t\t\tdata-sort-label-duration-desc=\"{{ \x27list.sort.duration_desc\x27|trans|e(\x27html_attr\x27) }}\"
  704. \t\t\t\t\t\t\t\t></ul>
  705. \t\t\t\t\t\t\t</div>
  706. \t\t\t\t\t\t</div>
  707. \t\t\t\t\t\t{#
  708. \t\t\t\t\t\t{% block cruises %}
  709. \t\t\t\t\t\t\t{% include \x27_snippets/mocks/card_list.html.twig\x27 %}
  710. \t\t\t\t\t\t{% endblock %} #}
  711. \t\t\t\t\t\t{# Zone AJAX (cf. _cruise_search_ajax.js) : au filtre / pagination,
  712. \t\t\t\t\t\t\tseuls #cruise_results, le scroll infini et la pagination sont mis à jour. #}
  713. \t\t\t\t\t\t{% set cruise_list = cruiseSearchResult.paginated_result|default([]) %}
  714. \t\t\t\t\t\t<div class=\"cruise-search-zone\" data-cruise-search-zone>
  715. \t\t\t\t\t\t\t<div
  716. \t\t\t\t\t\t\t\tid=\"cruise_results\"
  717. \t\t\t\t\t\t\t\tclass=\"cruises-container\"
  718. \t\t\t\t\t\t\t\t{% if cruiseSearchResult.pagination is defined %}
  719. \t\t\t\t\t\t\t\t\tdata-cruise-per-page=\"{{ cruiseSearchResult.pagination.per_page|default(5) }}\"
  720. \t\t\t\t\t\t\t\t\tdata-cruise-total-count=\"{{ cruiseSearchResult.pagination.total_count|default(0) }}\"
  721. \t\t\t\t\t\t\t\t\tdata-cruise-total-pages=\"{{ cruiseSearchResult.pagination.total_pages|default(1) }}\"
  722. \t\t\t\t\t\t\t\t\tdata-cruise-current-page=\"{{ cruiseSearchResult.pagination.current_page|default(1) }}\"
  723. \t\t\t\t\t\t\t\t{% endif %}
  724. \t\t\t\t\t\t\t>
  725. \t\t\t\t\t\t\t\t{% if cruise_list is not empty %}
  726. \t\t\t\t\t\t\t\t\t{% for cruise in cruise_list %}
  727. \t\t\t\t\t\t\t\t\t\t{% set content = { isFloa: true } %}
  728. \t\t\t\t\t\t\t\t\t\t{% include \x27_snippets/components/cards/list_card.html.twig\x27 with {
  729. \t\t\t\t\t\t\t\t\t\t\tcruise: cruise,
  730. \t\t\t\t\t\t\t\t\t\t\tcontent: content
  731. \t\t\t\t\t\t\t\t\t\t} %}
  732. \t\t\t\t\t\t\t\t\t{% endfor %}
  733. \t\t\t\t\t\t\t\t{% else %}
  734. \t\t\t\t\t\t\t\t\t{% include \x27pages/_includes/list/_no_results_card.html.twig\x27 %}
  735. \t\t\t\t\t\t\t\t{% endif %}
  736. \t\t\t\t\t\t\t</div>
  737. \t\t\t\t\t\t\t{% if cruise_list is not empty %}
  738. \t\t\t\t\t\t\t\t<div class=\"cruise-infinite-scroll\" data-cruise-infinite-scroll aria-live=\"polite\">
  739. \t\t\t\t\t\t\t\t\t<div class=\"cruise-infinite-scroll__sentinel\" data-cruise-infinite-sentinel></div>
  740. \t\t\t\t\t\t\t\t\t<div class=\"cruise-infinite-scroll__loading\" data-cruise-infinite-loading hidden>
  741. \t\t\t\t\t\t\t\t\t\t<p class=\"cruise-infinite-scroll__status\">Chargement des croisières…</p>
  742. \t\t\t\t\t\t\t\t\t\t{% for skeletonIndex in 1..3 %}
  743. \t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton\" aria-hidden=\"true\">
  744. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__media\"></div>
  745. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__main\">
  746. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--xs\"></div>
  747. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--title\"></div>
  748. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line\"></div>
  749. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--md\"></div>
  750. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__line cruise-skeleton__line--sm\"></div>
  751. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  752. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__aside\">
  753. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__price\"></div>
  754. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cruise-skeleton__cta\"></div>
  755. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  756. \t\t\t\t\t\t\t\t\t\t\t</div>
  757. \t\t\t\t\t\t\t\t\t\t{% endfor %}
  758. \t\t\t\t\t\t\t\t\t</div>
  759. \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>
  760. \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>
  761. \t\t\t\t\t\t\t\t</div>
  762. \t\t\t\t\t\t\t\t<div class=\"cruise-search-paging is-visually-hidden\" data-cruise-search-paging aria-hidden=\"true\">
  763. \t\t\t\t\t\t\t\t\t{% include \x27@CroisilandCommon/pagination/_pagination.html.twig\x27 with {
  764. \t\t\t\t\t\t\t\t\t\t\x27pagination\x27: cruiseSearchResult.pagination
  765. \t\t\t\t\t\t\t\t\t} %}
  766. \t\t\t\t\t\t\t\t</div>
  767. \t\t\t\t\t\t\t{% endif %}
  768. \t\t\t\t\t\t</div>
  769. \t\t\t\t\t</div>
  770. \t\t\t\t</div>
  771. \t\t\t\t</div>
  772. \t\t\t</div>
  773. \t\t\t<div class=\"col-lg-1 col-md-1 col-sm-12 list-page-gutter\" aria-hidden=\"true\"></div>
  774. \t\t</div>
  775. \t\t<div class=\"list-footer-stack\" data-list-footer-stack hidden>
  776. \t\t\t<div class=\"list-page-dock\" data-list-page-dock>
  777. \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) }}\">
  778. \t\t\t\t\t{{ \x27list.dock.show_footer\x27|trans }}
  779. \t\t\t\t</button>
  780. \t\t\t</div>
  781. \t\t\t<div class=\"list-footer-panel\" data-list-footer-panel inert>
  782. \t\t\t\t<footer class=\"footer list-footer-panel__footer\">
  783. \t\t\t\t\t{% include \x27pages/_includes/base/_footer.html.twig\x27 with { showFloatingActions: false } %}
  784. \t\t\t\t</footer>
  785. \t\t\t</div>
  786. \t\t</div>
  787. \t\t<div
  788. \t\t\tid=\"cruise-search-loader-modal\"
  789. \t\t\tclass=\"cruise-search-loader-modal\"
  790. \t\t\thidden
  791. \t\t\taria-hidden=\"true\"
  792. \t\t\trole=\"alertdialog\"
  793. \t\t\taria-modal=\"true\"
  794. \t\t\taria-labelledby=\"cruise-search-loader-title\"
  795. \t\t>
  796. \t\t\t<div class=\"cruise-search-loader-modal__panel\" tabindex=\"-1\">
  797. \t\t\t\t<div class=\"cruise-search-loader-modal__spinner\" aria-hidden=\"true\"></div>
  798. \t\t\t\t<p id=\"cruise-search-loader-title\" class=\"cruise-search-loader-modal__text\">
  799. \t\t\t\t\t{{ \x27list.search.updating\x27|trans }}
  800. \t\t\t\t</p>
  801. \t\t\t</div>
  802. \t\t</div>
  803. \t{% endblock %}
  804. \t{% block javascripts %}
  805. \t\t{{ parent() }}
  806. \t\t{{ encore_entry_script_tags(\x27list_page\x27) }}
  807. \t\t{# Leaflet chargé à la demande — voir initModalLeaflet (map-bundle)
  808. \t\t<script src=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.js\" crossorigin=\"\"></script>
  809. \t\t#}
  810. \t{% endblock %}
  811. ", "pages/list.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/list.html.twig");
  812. }
  813. }