var/cache/website/dev/twig/0b/0b800fb8596c15a208c493811f631337.php line 83

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/_includes/details/_other-departures-pricing-fragment.html.twig */
  17. class __TwigTemplate_36b27922954d271a959396bf59b9b4f7 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->parent = false;
  29. $this->blocks = [
  30. ];
  31. }
  32. protected function doDisplay(array $context, array $blocks = []): iterable
  33. {
  34. $macros = $this->macros;
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/_includes/details/_other-departures-pricing-fragment.html.twig"));
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/_includes/details/_other-departures-pricing-fragment.html.twig"));
  39. // line 1
  40. $context["allDepartures"] = Twig\Extension\CoreExtension::default($this->extensions['App\Twig\Itinerary\ItineraryExtension']->getPricingDepartures((isset($context["currentCruise"]) || array_key_exists("currentCruise", $context) ? $context["currentCruise"] : (function () { throw new RuntimeError('Variable "currentCruise" does not exist.', 1, $this->source); })())), []);
  41. // line 2
  42. $context["subTypes"] = Twig\Extension\CoreExtension::default($this->extensions['App\Twig\Cabin\CabinSubTypeExtension']->getCabinSubTypesForPricing((isset($context["currentCruise"]) || array_key_exists("currentCruise", $context) ? $context["currentCruise"] : (function () { throw new RuntimeError('Variable "currentCruise" does not exist.', 2, $this->source); })()), (isset($context["allDepartures"]) || array_key_exists("allDepartures", $context) ? $context["allDepartures"] : (function () { throw new RuntimeError('Variable "allDepartures" does not exist.', 2, $this->source); })())), []);
  43. // line 3
  44. $context["subtypeCabinTypeMap"] = $this->extensions['App\Twig\Cabin\CabinSubTypeExtension']->getCabinSubTypesMap((isset($context["currentCruise"]) || array_key_exists("currentCruise", $context) ? $context["currentCruise"] : (function () { throw new RuntimeError('Variable "currentCruise" does not exist.', 3, $this->source); })()));
  45. // line 4
  46. yield "
  47. ";
  48. // line 5
  49. if ((Twig\Extension\CoreExtension::testEmpty((isset($context["subTypes"]) || array_key_exists("subTypes", $context) ? $context["subTypes"] : (function () { throw new RuntimeError('Variable "subTypes" does not exist.', 5, $this->source); })())) || Twig\Extension\CoreExtension::testEmpty((isset($context["allDepartures"]) || array_key_exists("allDepartures", $context) ? $context["allDepartures"] : (function () { throw new RuntimeError('Variable "allDepartures" does not exist.', 5, $this->source); })())))) {
  50. // line 6
  51. yield "\t<div class=\"other-departures-pricing-empty text-sm-md color-grey-text\" data-pricing-empty>
  52. \t\t";
  53. // line 7
  54. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::default($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("details.cabin_choice.pricing_unavailable"), "Aucun tarif disponible pour le moment."), "html", null, true);
  55. yield "
  56. \t</div>
  57. ";
  58. } elseif (( // line 9
  59. (isset($context["view"]) || array_key_exists("view", $context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.', 9, $this->source); })()) == "detailed")) {
  60. // line 10
  61. yield "\t";
  62. yield from $this->load("pages/_includes/details/_other-departures-detailed.html.twig", 10)->unwrap()->yield(CoreExtension::toArray(["allDepartures" => // line 11
  63. (isset($context["allDepartures"]) || array_key_exists("allDepartures", $context) ? $context["allDepartures"] : (function () { throw new RuntimeError('Variable "allDepartures" does not exist.', 11, $this->source); })()), "currentCruise" => // line 12
  64. (isset($context["currentCruise"]) || array_key_exists("currentCruise", $context) ? $context["currentCruise"] : (function () { throw new RuntimeError('Variable "currentCruise" does not exist.', 12, $this->source); })()), "subtypeCabinTypeMap" => // line 13
  65. (isset($context["subtypeCabinTypeMap"]) || array_key_exists("subtypeCabinTypeMap", $context) ? $context["subtypeCabinTypeMap"] : (function () { throw new RuntimeError('Variable "subtypeCabinTypeMap" does not exist.', 13, $this->source); })())]));
  66. } else {
  67. // line 16
  68. yield "\t";
  69. yield from $this->load("pages/_includes/details/_other-departures-table.html.twig", 16)->unwrap()->yield(CoreExtension::toArray(["allDepartures" => // line 17
  70. (isset($context["allDepartures"]) || array_key_exists("allDepartures", $context) ? $context["allDepartures"] : (function () { throw new RuntimeError('Variable "allDepartures" does not exist.', 17, $this->source); })()), "currentCruise" => // line 18
  71. (isset($context["currentCruise"]) || array_key_exists("currentCruise", $context) ? $context["currentCruise"] : (function () { throw new RuntimeError('Variable "currentCruise" does not exist.', 18, $this->source); })()), "subTypes" => // line 19
  72. (isset($context["subTypes"]) || array_key_exists("subTypes", $context) ? $context["subTypes"] : (function () { throw new RuntimeError('Variable "subTypes" does not exist.', 19, $this->source); })()), "subtypeCabinTypeMap" => // line 20
  73. (isset($context["subtypeCabinTypeMap"]) || array_key_exists("subtypeCabinTypeMap", $context) ? $context["subtypeCabinTypeMap"] : (function () { throw new RuntimeError('Variable "subtypeCabinTypeMap" does not exist.', 20, $this->source); })()), "bestUpComingPrice" => // line 21
  74. (isset($context["bestUpComingPrice"]) || array_key_exists("bestUpComingPrice", $context) ? $context["bestUpComingPrice"] : (function () { throw new RuntimeError('Variable "bestUpComingPrice" does not exist.', 21, $this->source); })())]));
  75. }
  76. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  77. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78. yield from [];
  79. }
  80. /**
  81. * @codeCoverageIgnore
  82. */
  83. public function getTemplateName(): string
  84. {
  85. return "pages/_includes/details/_other-departures-pricing-fragment.html.twig";
  86. }
  87. /**
  88. * @codeCoverageIgnore
  89. */
  90. public function isTraitable(): bool
  91. {
  92. return false;
  93. }
  94. /**
  95. * @codeCoverageIgnore
  96. */
  97. public function getDebugInfo(): array
  98. {
  99. return array ( 83 => 21, 82 => 20, 81 => 19, 80 => 18, 79 => 17, 77 => 16, 74 => 13, 73 => 12, 72 => 11, 70 => 10, 68 => 9, 63 => 7, 60 => 6, 58 => 5, 55 => 4, 53 => 3, 51 => 2, 49 => 1,);
  100. }
  101. public function getSourceContext(): Source
  102. {
  103. return new Source("{% set allDepartures = get_pricing_departures(currentCruise)|default([]) %}
  104. {% set subTypes = getCabinSubTypesForPricing(currentCruise, allDepartures)|default([]) %}
  105. {% set subtypeCabinTypeMap = getCabinSubTypesMap(currentCruise) %}
  106. {% if subTypes is empty or allDepartures is empty %}
  107. \t<div class=\"other-departures-pricing-empty text-sm-md color-grey-text\" data-pricing-empty>
  108. \t\t{{ \x27details.cabin_choice.pricing_unavailable\x27|trans|default(\x27Aucun tarif disponible pour le moment.\x27) }}
  109. \t</div>
  110. {% elseif view == \x27detailed\x27 %}
  111. \t{% include \x27pages/_includes/details/_other-departures-detailed.html.twig\x27 with {
  112. \t\tallDepartures: allDepartures,
  113. \t\tcurrentCruise: currentCruise,
  114. \t\tsubtypeCabinTypeMap: subtypeCabinTypeMap,
  115. \t} only %}
  116. {% else %}
  117. \t{% include \x27pages/_includes/details/_other-departures-table.html.twig\x27 with {
  118. \t\tallDepartures: allDepartures,
  119. \t\tcurrentCruise: currentCruise,
  120. \t\tsubTypes: subTypes,
  121. \t\tsubtypeCabinTypeMap: subtypeCabinTypeMap,
  122. \t\tbestUpComingPrice: bestUpComingPrice,
  123. \t} only %}
  124. {% endif %}
  125. ", "pages/_includes/details/_other-departures-pricing-fragment.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/_includes/details/_other-departures-pricing-fragment.html.twig");
  126. }
  127. }