<?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/_includes/partials/_cabin-modal-link.html.twig */
class __TwigTemplate_e878cee96ffd0a167d362ad0abd45a2a 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->parent = false;
$this->blocks = [
'link_content' => [$this, 'block_link_content'],
];
}
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/_includes/partials/_cabin-modal-link.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/_includes/partials/_cabin-modal-link.html.twig"));
// line 7
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)) {
// line 8
yield "\t<a
\t\thref=\"#cabin-modal-";
// line 9
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);
yield "-";
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);
yield "\"
\t\tclass=\"cabin-modal-link";
// line 10
if (array_key_exists("linkClass", $context)) {
yield " ";
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);
}
yield "\"
\t\tdata-cabin-id=\"";
// line 11
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);
yield "\"
\t\tdata-subtype-id=\"";
// line 12
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);
yield "\"
\t\t";
// line 13
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))) {
yield "data-modal-min-price=\"";
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);
yield "\"";
}
// line 14
yield "\t\taria-label=\"";
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);
yield "\"
\t>
";
}
// line 17
yield "\t\t";
yield from $this->unwrap()->yieldBlock('link_content', $context, $blocks);
// line 18
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)) {
// line 19
yield "\t</a>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
// line 17
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_link_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", "link_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "link_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/_includes/partials/_cabin-modal-link.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{# Lien HTML pour ouvrir une modale cabine pré-générée sur la page détail.
Usage :
{% embed \x27pages/_includes/partials/_cabin-modal-link.html.twig\x27 with { cabinTypeId: cabinTypeId, subTypeId: subType.id } %}
{% block link_content %}...{% endblock %}
{% endembed %}
#}
{% if subTypeId %}
\t<a
\t\thref=\"#cabin-modal-{{ cabinTypeId|default(0) }}-{{ subTypeId }}\"
\t\tclass=\"cabin-modal-link{% if linkClass is defined %} {{ linkClass }}{% endif %}\"
\t\tdata-cabin-id=\"{{ cabinTypeId|default(0) }}\"
\t\tdata-subtype-id=\"{{ subTypeId }}\"
\t\t{% if modalMinPrice is defined and modalMinPrice > 0 %}data-modal-min-price=\"{{ modalMinPrice }}\"{% endif %}
\t\taria-label=\"{{ ariaLabel|default(\x27details.cabin_choice.view_details\x27|trans) }}\"
\t>
{% endif %}
\t\t{% block link_content %}{% endblock %}
{% if subTypeId %}
\t</a>
{% endif %}
", "pages/_includes/partials/_cabin-modal-link.html.twig", "/home/croisiland-pp/www/f0312421abff37637dabe6f4d57b6afd95d16263/templates/pages/_includes/partials/_cabin-modal-link.html.twig");
}
}