var/cache/website/dev/twig/56/56826c7612d3666cfef1af92843140fb.php line 90

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/partials/_cabin-modal-link.html.twig */
  17. class __TwigTemplate_e878cee96ffd0a167d362ad0abd45a2a 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. 'link_content' => [$this, 'block_link_content'],
  31. ];
  32. }
  33. protected function doDisplay(array $context, array $blocks = []): iterable
  34. {
  35. $macros = $this->macros;
  36. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/_includes/partials/_cabin-modal-link.html.twig"));
  38. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/_includes/partials/_cabin-modal-link.html.twig"));
  40. // line 7
  41. if ((($tmp = (isset($context["subTypeId"]) || array_key_exists("subTypeId", $context) ? $context["subTypeId"] : (function () { throw new RuntimeError('Variable "subTypeId" does not exist.', 7, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  42. // line 8
  43. yield "\t<a
  44. \t\thref=\"#cabin-modal-";
  45. // line 9
  46. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("cabinTypeId", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["cabinTypeId"]) || array_key_exists("cabinTypeId", $context) ? $context["cabinTypeId"] : (function () { throw new RuntimeError('Variable "cabinTypeId" does not exist.', 9, $this->source); })()), 0)) : (0)), "html", null, true);
  47. yield "-";
  48. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["subTypeId"]) || array_key_exists("subTypeId", $context) ? $context["subTypeId"] : (function () { throw new RuntimeError('Variable "subTypeId" does not exist.', 9, $this->source); })()), "html", null, true);
  49. yield "\"
  50. \t\tclass=\"cabin-modal-link";
  51. // line 10
  52. if (array_key_exists("linkClass", $context)) {
  53. yield " ";
  54. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["linkClass"]) || array_key_exists("linkClass", $context) ? $context["linkClass"] : (function () { throw new RuntimeError('Variable "linkClass" does not exist.', 10, $this->source); })()), "html", null, true);
  55. }
  56. yield "\"
  57. \t\tdata-cabin-id=\"";
  58. // line 11
  59. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("cabinTypeId", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["cabinTypeId"]) || array_key_exists("cabinTypeId", $context) ? $context["cabinTypeId"] : (function () { throw new RuntimeError('Variable "cabinTypeId" does not exist.', 11, $this->source); })()), 0)) : (0)), "html", null, true);
  60. yield "\"
  61. \t\tdata-subtype-id=\"";
  62. // line 12
  63. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["subTypeId"]) || array_key_exists("subTypeId", $context) ? $context["subTypeId"] : (function () { throw new RuntimeError('Variable "subTypeId" does not exist.', 12, $this->source); })()), "html", null, true);
  64. yield "\"
  65. \t\t";
  66. // line 13
  67. if ((array_key_exists("modalMinPrice", $context) && ((isset($context["modalMinPrice"]) || array_key_exists("modalMinPrice", $context) ? $context["modalMinPrice"] : (function () { throw new RuntimeError('Variable "modalMinPrice" does not exist.', 13, $this->source); })()) > 0))) {
  68. yield "data-modal-min-price=\"";
  69. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["modalMinPrice"]) || array_key_exists("modalMinPrice", $context) ? $context["modalMinPrice"] : (function () { throw new RuntimeError('Variable "modalMinPrice" does not exist.', 13, $this->source); })()), "html", null, true);
  70. yield "\"";
  71. }
  72. // line 14
  73. yield "\t\taria-label=\"";
  74. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("ariaLabel", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["ariaLabel"]) || array_key_exists("ariaLabel", $context) ? $context["ariaLabel"] : (function () { throw new RuntimeError('Variable "ariaLabel" does not exist.', 14, $this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("details.cabin_choice.view_details"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("details.cabin_choice.view_details"))), "html", null, true);
  75. yield "\"
  76. \t>
  77. ";
  78. }
  79. // line 17
  80. yield "\t\t";
  81. yield from $this->unwrap()->yieldBlock('link_content', $context, $blocks);
  82. // line 18
  83. if ((($tmp = (isset($context["subTypeId"]) || array_key_exists("subTypeId", $context) ? $context["subTypeId"] : (function () { throw new RuntimeError('Variable "subTypeId" does not exist.', 18, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  84. // line 19
  85. yield "\t</a>
  86. ";
  87. }
  88. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  89. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  90. yield from [];
  91. }
  92. // line 17
  93. /**
  94. * @return iterable<null|scalar|\Stringable>
  95. */
  96. public function block_link_content(array $context, array $blocks = []): iterable
  97. {
  98. $macros = $this->macros;
  99. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  100. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "link_content"));
  101. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "link_content"));
  103. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  104. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  105. yield from [];
  106. }
  107. /**
  108. * @codeCoverageIgnore
  109. */
  110. public function getTemplateName(): string
  111. {
  112. return "pages/_includes/partials/_cabin-modal-link.html.twig";
  113. }
  114. /**
  115. * @codeCoverageIgnore
  116. */
  117. public function isTraitable(): bool
  118. {
  119. return false;
  120. }
  121. /**
  122. * @codeCoverageIgnore
  123. */
  124. public function getDebugInfo(): array
  125. {
  126. return array ( 107 => 17, 94 => 19, 92 => 18, 89 => 17, 82 => 14, 76 => 13, 72 => 12, 68 => 11, 61 => 10, 55 => 9, 52 => 8, 50 => 7,);
  127. }
  128. public function getSourceContext(): Source
  129. {
  130. return new Source("{# Lien HTML pour ouvrir une modale cabine pré-générée sur la page détail.
  131. Usage :
  132. {% embed \x27pages/_includes/partials/_cabin-modal-link.html.twig\x27 with { cabinTypeId: cabinTypeId, subTypeId: subType.id } %}
  133. {% block link_content %}...{% endblock %}
  134. {% endembed %}
  135. #}
  136. {% if subTypeId %}
  137. \t<a
  138. \t\thref=\"#cabin-modal-{{ cabinTypeId|default(0) }}-{{ subTypeId }}\"
  139. \t\tclass=\"cabin-modal-link{% if linkClass is defined %} {{ linkClass }}{% endif %}\"
  140. \t\tdata-cabin-id=\"{{ cabinTypeId|default(0) }}\"
  141. \t\tdata-subtype-id=\"{{ subTypeId }}\"
  142. \t\t{% if modalMinPrice is defined and modalMinPrice > 0 %}data-modal-min-price=\"{{ modalMinPrice }}\"{% endif %}
  143. \t\taria-label=\"{{ ariaLabel|default(\x27details.cabin_choice.view_details\x27|trans) }}\"
  144. \t>
  145. {% endif %}
  146. \t\t{% block link_content %}{% endblock %}
  147. {% if subTypeId %}
  148. \t</a>
  149. {% endif %}
  150. ", "pages/_includes/partials/_cabin-modal-link.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/_includes/partials/_cabin-modal-link.html.twig");
  151. }
  152. }