<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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\Source;
use Twig\Template;
/* @ElementsDemiFrontend/Includes/teaser/room-teaser.mobile.html.twig */
class __TwigTemplate_4e45b48d25d02ec90fa24bcab2b43209 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "@ElementsDemiFrontend/Includes/teaser/room-teaser.mobile.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ElementsDemiFrontend/Includes/teaser/room-teaser.mobile.html.twig"));
// line 13
echo "
";
// line 14
if (( !array_key_exists("searchParam", $context) || twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 14, $this->source); })()), "getDateFrom", [], "method", false, false, true, 14)))) {
// line 15
echo " ";
$context["fromDate"] = null;
} else {
// line 17
echo " ";
$context["fromDate"] = $this->env->getFunction('demi_getSearchFrom')->getCallable()();
}
// line 19
echo "
";
// line 20
if (((is_iterable((isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 20, $this->source); })())) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["productData"] ?? null), "roomRow", [], "any", false, true, true, 20), 0, [], "array", true, true, true, 20)) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["productData"] ?? null), "products", [], "any", false, true, true, 20), 0, [], "array", true, true, true, 20))) {
// line 21
echo "
";
// line 22
$context["possibleIndices"] = twig_get_array_keys_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 22, $this->source); })()), "roomRow", [], "any", false, false, true, 22), 22, $this->source));
// line 23
echo " ";
$context["i"] = twig_first($this->env, $this->sandbox->ensureToStringAllowed((isset($context["possibleIndices"]) || array_key_exists("possibleIndices", $context) ? $context["possibleIndices"] : (function () { throw new RuntimeError('Variable "possibleIndices" does not exist.', 23, $this->source); })()), 23, $this->source));
// line 24
echo " ";
$context["roomRow"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 24, $this->source); })()), "roomRow", [], "any", false, false, true, 24), (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 24, $this->source); })()), [], "array", false, false, true, 24), "getRowObject", [], "method", false, false, true, 24);
// line 25
echo " ";
$context["product"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 25, $this->source); })()), "products", [], "any", false, false, true, 25), (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 25, $this->source); })()), [], "array", false, false, true, 25);
// line 26
echo " ";
$context["accommodationProduct"] = Pimcore\Model\DataObject::getById($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 26, $this->source); })()), "getProductId", [], "method", false, false, true, 26), 26, $this->source));
// line 27
echo " ";
if (((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 27, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 27, $this->source); })()), "isPublished", [], "method", false, false, true, 27))) {
// line 28
echo " <li>
";
// line 29
$context["id"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 29, $this->source); })()), "getProductId", [], "method", false, false, true, 29);
// line 30
echo " ";
$context["title"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 30, $this->source); })()), "getName", [], "method", false, false, true, 30);
// line 31
echo "
";
// line 32
if (( !(null === (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 32, $this->source); })())) && !(null === (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 32, $this->source); })())))) {
// line 33
echo " ";
$context["priceData"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 33, $this->source); })()), "getPriceData", [], "method", false, false, true, 33);
// line 34
echo " ";
$context["price"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 34, $this->source); })()), "getPrice", [], "method", false, false, true, 34);
// line 35
echo " ";
$context["showVacancy"] = true;
// line 36
echo " ";
$context["showSelection"] = true;
// line 37
echo " ";
$context["vacancyCount"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 37, $this->source); })()), "getUnits", [], "method", false, false, true, 37);
// line 38
echo "
";
// line 39
$context["promotionText"] = null;
// line 40
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 40, $this->source); })()), "getCancellationInformation", [], "method", false, false, true, 40))) {
// line 41
echo " ";
$context["cancellationInformation"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 41, $this->source); })()), "getCancellationInformation", [], "method", false, false, true, 41);
// line 42
echo " ";
$context["displayInfo"] = $this->env->getFunction('demi_getCancellationDisplayInfo')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["cancellationInformation"]) || array_key_exists("cancellationInformation", $context) ? $context["cancellationInformation"] : (function () { throw new RuntimeError('Variable "cancellationInformation" does not exist.', 42, $this->source); })()), 42, $this->source), $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 42, $this->source); })()), "getDateFrom", [], "method", false, false, true, 42), 42, $this->source));
// line 43
echo " ";
$context["freeCancelText"] = twig_get_attribute($this->env, $this->source, (isset($context["displayInfo"]) || array_key_exists("displayInfo", $context) ? $context["displayInfo"] : (function () { throw new RuntimeError('Variable "displayInfo" does not exist.', 43, $this->source); })()), "getFreeCancellationText", [], "method", false, false, true, 43);
// line 44
echo " ";
$context["promotionText"] = ((((isset($context["freeCancelText"]) || array_key_exists("freeCancelText", $context) ? $context["freeCancelText"] : (function () { throw new RuntimeError('Variable "freeCancelText" does not exist.', 44, $this->source); })()) == "")) ? (null) : ((isset($context["freeCancelText"]) || array_key_exists("freeCancelText", $context) ? $context["freeCancelText"] : (function () { throw new RuntimeError('Variable "freeCancelText" does not exist.', 44, $this->source); })())));
// line 45
echo " ";
}
// line 46
echo "
";
} elseif ( !(null === // line 48
(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 48, $this->source); })()))) {
// line 49
echo " ";
$context["price"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 49, $this->source); })()), "getBasePrice", [], "method", false, false, true, 49);
// line 50
echo " ";
$context["showVacancy"] = false;
// line 51
echo " ";
$context["showSelection"] = false;
// line 52
echo " ";
$context["vacancyCount"] = 0;
// line 53
echo "
";
// line 54
$context["priceInfo"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 54, $this->source); })()), "getPriceInfo", [], "method", false, false, true, 54);
// line 55
echo " ";
if ( !twig_test_empty((isset($context["priceInfo"]) || array_key_exists("priceInfo", $context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.', 55, $this->source); })()))) {
// line 56
echo " ";
$context["priceInfoText"] = twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/priceInfoStr.html.twig", ["type" => twig_get_attribute($this->env, $this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo", $context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.', 56, $this->source); })()), "type", [], "array", false, false, true, 56), "nights" => twig_get_attribute($this->env, $this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo", $context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.', 56, $this->source); })()), "nights", [], "array", false, false, true, 56)]);
// line 57
echo " ";
}
// line 58
echo " ";
}
// line 59
echo "
";
// line 61
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 61, $this->source); })()), "getDateFrom", [], "method", false, false, true, 61))) {
// line 62
echo " ";
if ($this->env->getTest('instanceof')->getCallable()((isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 62, $this->source); })()), "ElementsDemiLtsAccommodationSearchParameter")) {
// line 63
echo " ";
$context["mealArray"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 63, $this->source); })()), "getPossibleMealCodes", [], "method", false, false, true, 63);
// line 64
echo " ";
} elseif ($this->env->getTest('instanceof')->getCallable()((isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 64, $this->source); })()), "ElementsDemiPackageSearchParameter")) {
// line 65
echo " ";
$context["mealArray"] = [];
// line 66
echo " ";
} else {
// line 67
echo " ";
$context["mealArray"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 67, $this->source); })()), "getValidMeals", [twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 67, $this->source); })()), "getPeriod", [], "method", false, false, true, 67), twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 67, $this->source); })()), "getDateFrom", [], "method", false, false, true, 67)], "method", false, false, true, 67);
// line 68
echo " ";
}
// line 69
echo " ";
$context["liveMeal"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 69, $this->source); })()), "getMealCode", [], "method", false, false, true, 69);
// line 70
echo " ";
$context["liveMealObj"] = $this->extensions['Elements\Bundle\DemiFrontendBundle\Twig\DemiFrontendExtension']->getClassByStringAndIdentifier("\\Elements\\Demi\\Model\\MealType", "getByFid", $this->sandbox->ensureToStringAllowed((isset($context["liveMeal"]) || array_key_exists("liveMeal", $context) ? $context["liveMeal"] : (function () { throw new RuntimeError('Variable "liveMeal" does not exist.', 70, $this->source); })()), 70, $this->source));
// line 71
echo " ";
if (!twig_in_filter((isset($context["liveMeal"]) || array_key_exists("liveMeal", $context) ? $context["liveMeal"] : (function () { throw new RuntimeError('Variable "liveMeal" does not exist.', 71, $this->source); })()), twig_get_array_keys_filter((isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 71, $this->source); })())))) {
// line 72
echo " ";
$context["mealArray"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 72, $this->source); })()), 72, $this->source), [(isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 72, $this->source); })())]);
// line 73
echo " ";
}
// line 74
echo " ";
} else {
// line 75
echo " ";
$context["mealArray"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 75, $this->source); })()), "getValidMeals", [0], "method", false, false, true, 75);
// line 76
echo " ";
}
// line 77
echo "
";
// line 78
$context["images"] = (( !(null === (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 78, $this->source); })()))) ? ($this->env->getFunction('demi_getRoomPictures')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 78, $this->source); })()), 78, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 78, $this->source); })()), 78, $this->source))) : ([]));
// line 79
echo "
<div id=\"room-row-collapse-parent-";
// line 80
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 80, $this->source); })()), "getProductId", [], "method", false, false, true, 80), 80, $this->source), "html", null, true);
echo "\"
class=\"js-room-selection__room\"
data-availability-reference-id=\"";
// line 82
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 82, $this->source); })()), "getAvailabilityReference", [], "method", false, false, true, 82) === "Service")) ? (twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 82, $this->source); })()), "getServiceId", [], "method", false, false, true, 82)) : (twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 82, $this->source); })()), "getProductId", [], "method", false, false, true, 82))), "html", null, true);
echo "\"
data-room-id=\"";
// line 83
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 83, $this->source); })()), "getProductId", [], "method", false, false, true, 83), 83, $this->source), "html", null, true);
echo "\"
data-tracking-variant=\"";
// line 84
echo $this->env->getFunction('demi_impressionVariant')->getCallable()((((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 84, $this->source); })())) ?: ((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 84, $this->source); })()))), $this->sandbox->ensureToStringAllowed((isset($context["tvbPackage"]) || array_key_exists("tvbPackage", $context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.', 84, $this->source); })()), 84, $this->source));
echo "\"
data-tracking-variant-id=\"";
// line 85
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 85, $this->source); })()), "getProductId", [], "method", false, false, true, 85), 85, $this->source), "html", null, true);
echo "\"
data-settler-code=\"";
// line 86
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["settlerCode"]) || array_key_exists("settlerCode", $context) ? $context["settlerCode"] : (function () { throw new RuntimeError('Variable "settlerCode" does not exist.', 86, $this->source); })()), 86, $this->source), "html", null, true);
echo "\"
data-booking-type=\"";
// line 87
echo ((twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 87, $this->source); })()), "getBookable", [], "method", false, false, true, 87)) ? ("bookable") : ("onrequest"));
echo "\">
<div class=\"card box-shadow mt-3 ";
// line 88
echo (((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow", $context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.', 88, $this->source); })())) ? ("js-room-selection__room-row") : ("z-1"));
echo "\"
";
// line 89
if ((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow", $context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.', 89, $this->source); })())) {
// line 90
echo " ";
if (((is_iterable((isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 90, $this->source); })())) && is_iterable(twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 90, $this->source); })()), "products", [], "array", false, false, true, 90))) && is_iterable(twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 90, $this->source); })()), "roomRow", [], "array", false, false, true, 90)))) {
// line 91
echo " ";
$context["done"] = false;
// line 92
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 92, $this->source); })()), "products", [], "array", false, false, true, 92));
foreach ($context['_seq'] as $context["productIndex"] => $context["product"]) {
// line 93
echo " ";
if ( !(isset($context["done"]) || array_key_exists("done", $context) ? $context["done"] : (function () { throw new RuntimeError('Variable "done" does not exist.', 93, $this->source); })())) {
// line 94
echo " ";
$context["roomRowIndexSingleRoom"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 94, $this->source); })()), "roomRow", [], "array", false, false, true, 94), $context["productIndex"], [], "array", false, false, true, 94), "getIndex", [], "method", false, false, true, 94);
// line 95
echo " ";
$context["done"] = true;
// line 96
echo " ";
}
// line 97
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['productIndex'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 98
echo " ";
} else {
// line 99
echo " ";
$context["roomRowIndexSingleRoom"] = 0;
// line 100
echo " ";
}
// line 101
echo " data-room-row-id=\"";
((array_key_exists("roomRowIndexSingleRoom", $context)) ? (print (twig_escape_filter($this->env, (isset($context["roomRowIndexSingleRoom"]) || array_key_exists("roomRowIndexSingleRoom", $context) ? $context["roomRowIndexSingleRoom"] : (function () { throw new RuntimeError('Variable "roomRowIndexSingleRoom" does not exist.', 101, $this->source); })()), "html", null, true))) : (print (0)));
echo "\"
data-initial-price=\"";
// line 102
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 102, $this->source); })()), 102, $this->source), 2, ".", ""), "html", null, true);
echo "\"
";
// line 103
if (((array_key_exists("priceData", $context) && !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 103, $this->source); })()))) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 103, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, true, 103) > twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 103, $this->source); })()), "getPrice", [], "method", false, false, true, 103)))) {
// line 104
echo " data-initial-price-before-special=\"";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 104, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, true, 104), 104, $this->source), 2, ".", ""), "html", null, true);
echo "\"
";
}
// line 106
echo " data-room-row-title=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 106, $this->source); })()), 106, $this->source));
echo "\"
";
}
// line 108
echo " >
<section class=\"teaser teaser--body-padding\">
<div class=\"row row--gutter-width-10\">
<div class=\"col-4 d-flex flex-column\">
";
// line 115
if ((((array_key_exists("priceData", $context) && !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 115, $this->source); })()))) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 115, $this->source); })()), "getSpecialPriceType", [], "method", false, false, true, 115) === "None")) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 115, $this->source); })()), "getSpecialPriceName", [], "method", false, false, true, 115)))) {
// line 116
echo " <div class=\"teaser__label bg-warning text-center p-1 small text-white strong\">
";
// line 117
if (((twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 117, $this->source); })()), "getSplitPay", [], "method", false, false, true, 117) && twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 117, $this->source); })()), "getSplitStay", [], "method", false, false, true, 117)) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 117, $this->source); })()), "getSplitPay", [], "method", false, false, true, 117) != twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 117, $this->source); })()), "getSplitStay", [], "method", false, false, true, 117)))) {
// line 118
echo " ";
echo $this->env->getFunction('demi_fillTranslation')->getCallable()(["[STAY]" => twig_get_attribute($this->env, $this->source, // line 119
(isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 119, $this->source); })()), "getSplitStay", [], "method", false, false, true, 119), "[PAY]" => twig_get_attribute($this->env, $this->source, // line 120
(isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 120, $this->source); })()), "getSplitPay", [], "method", false, false, true, 120)], "demi.price-special-type.splitpay");
// line 121
echo "
";
} else {
// line 123
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 123, $this->source); })()), "getSpecialPriceName", [], "method", false, false, true, 123), 123, $this->source), "html", null, true);
echo "
";
}
// line 125
echo " </div>
";
}
// line 127
echo "
";
// line 128
if (((((array_key_exists("priceData", $context) && !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 128, $this->source); })()))) && twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 128, $this->source); })()), "getSpecialPriceType", [], "method", false, false, true, 128)) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 128, $this->source); })()), "getSpecialPriceType", [], "method", false, false, true, 128) != twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 128, $this->source); })()), "getSpecialPriceName", [], "method", false, false, true, 128))) && !(twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 128, $this->source); })()), "getSpecialPriceType", [], "method", false, false, true, 128) === "None"))) {
// line 129
echo " <div class=\"teaser__label bg-warning text-center p-1 small text-white strong\">
";
// line 130
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("demi.price-special-type." . twig_lower_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 130, $this->source); })()), "getSpecialPriceType", [], "method", false, false, true, 130), 130, $this->source)))), "html", null, true);
echo "
</div>
";
}
// line 133
echo "
";
// line 134
$context["galUrl"] = (("#" . (( !(null === (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 134, $this->source); })()))) ? (twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 134, $this->source); })()), "getId", [], "method", false, false, true, 134)) : (""))) . "-imgs-overlay");
// line 135
echo " ";
if ((twig_length_filter($this->env, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 135, $this->source); })())) == 0)) {
// line 136
echo " ";
$context["images"] = [$this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getTeaserFallbackImage", [])];
// line 137
echo " ";
$context["galUrl"] = "";
// line 138
echo " ";
}
// line 139
echo "
<button type=\"button\" class=\"teaser__img btn-no-styling js-overlay__toggle figure js-tracking--click-piwik\"
data-target=\"";
// line 141
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["galUrl"]) || array_key_exists("galUrl", $context) ? $context["galUrl"] : (function () { throw new RuntimeError('Variable "galUrl" does not exist.', 141, $this->source); })()), 141, $this->source), "html", null, true);
echo "\"
data-tracking-category=\"Gallery\"
data-tracking-action=\"open\"
";
// line 144
if (twig_get_attribute($this->env, $this->source, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 144, $this->source); })()), 0, [], "array", false, false, true, 144)) {
// line 145
echo " style=\"background-image:url(";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 145, $this->source); })()), 0, [], "array", false, false, true, 145), "getThumbnail", ["demi-mobile-room-teaser"], "method", false, false, true, 145), 145, $this->source), "html", null, true);
echo ");\">
";
// line 146
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 146, $this->source); })()), 0, [], "array", false, false, true, 146), "getThumbnail", ["demi-mobile-room-teaser"], "method", false, false, true, 146), "getHTML", [["imgAttributes" => ["class" => "sr-only", "alt" => (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.image-alt-prefix") . " ") . (( !(null === (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 146, $this->source); })()))) ? (twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 146, $this->source); })()), "getName", [], "method", false, false, true, 146)) : (twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 146, $this->source); })()), "getDescription", [], "method", false, false, true, 146))))]]], "method", false, false, true, 146), 146, $this->source);
echo "
";
// line 147
if ((twig_length_filter($this->env, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 147, $this->source); })())) > 1)) {
// line 148
echo " <span class=\"figure__overlay p-1\">1/";
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 148, $this->source); })()), 148, $this->source)), "html", null, true);
echo "</span>
";
}
// line 150
echo " ";
}
// line 151
echo " </button>
</div>
<div class=\"col-8 teaser__body collapsed js-tracking--click-piwik\"
data-toggle=\"collapse\"
data-target=\"#detail-";
// line 156
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 156, $this->source); })()), 156, $this->source), "html", null, true);
echo "\"
data-tracking-category=\"Product\"
data-tracking-action=\"click detail\"
data-tracking-label=\"";
// line 159
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 159, $this->source); })()), 159, $this->source), "html", null, true);
echo "\"
>
<div class=\"teaser__main-body\">
<h3 class=\"mb-1 text-primary\">
<a href=\"#detail-";
// line 165
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 165, $this->source); })()), 165, $this->source), "html", null, true);
echo "\"
aria-controls=\"detail-";
// line 166
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 166, $this->source); })()), 166, $this->source), "html", null, true);
echo "\"
aria-expanded=\"false\"
data-toggle=\"collapse\"
class=\"collapsed\"
>";
// line 170
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 170, $this->source); })()), 170, $this->source), "html", null, true);
echo "</a>
</h3>
";
// line 173
if ((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow", $context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.', 173, $this->source); })())) {
// line 174
echo "
<div class=\"mb-1 small text-muted\">
<div class=\"media\">
<div class=\"demi-icon demi-icon-person mr-1 icon-in-text\"
aria-hidden=\"true\"></div>
<div class=\"media-body\">
";
// line 181
if ( !(null === (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 181, $this->source); })()))) {
// line 182
echo " ";
$context["adults"] = twig_get_attribute($this->env, $this->source, (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 182, $this->source); })()), "getAdults", [], "method", false, false, true, 182);
// line 183
echo " ";
$context["children"] = twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 183, $this->source); })()), "getChildAges", [], "method", false, false, true, 183), 183, $this->source));
// line 184
echo " ";
$context["adultsStr"] = ((((isset($context["adults"]) || array_key_exists("adults", $context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.', 184, $this->source); })()) > 1)) ? ((($this->sandbox->ensureToStringAllowed((isset($context["adults"]) || array_key_exists("adults", $context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.', 184, $this->source); })()), 184, $this->source) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.adults"))) : ((($this->sandbox->ensureToStringAllowed((isset($context["adults"]) || array_key_exists("adults", $context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.', 184, $this->source); })()), 184, $this->source) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.adult"))));
// line 185
echo " ";
$context["childrenStr"] = ((((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 185, $this->source); })()) > 1)) ? ((($this->sandbox->ensureToStringAllowed((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 185, $this->source); })()), 185, $this->source) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.children"))) : ((($this->sandbox->ensureToStringAllowed((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 185, $this->source); })()), 185, $this->source) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.child"))));
// line 186
echo "
";
} else {
// line 188
echo " ";
$context["adultsStr"] = (((($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 188, $this->source); })()), "getBedsMin", [], "method", false, false, true, 188), 188, $this->source) . "-") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 188, $this->source); })()), "getBedsMax", [], "method", false, false, true, 188), 188, $this->source)) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.persons"));
// line 189
echo " ";
}
// line 190
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["adultsStr"]) || array_key_exists("adultsStr", $context) ? $context["adultsStr"] : (function () { throw new RuntimeError('Variable "adultsStr" does not exist.', 190, $this->source); })()), 190, $this->source), "html", null, true);
echo "
";
// line 191
if ((array_key_exists("children", $context) && (twig_length_filter($this->env, (isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 191, $this->source); })())) > 0))) {
// line 192
echo " , ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["childrenStr"]) || array_key_exists("childrenStr", $context) ? $context["childrenStr"] : (function () { throw new RuntimeError('Variable "childrenStr" does not exist.', 192, $this->source); })()), 192, $this->source), "html", null, true);
echo "
";
}
// line 194
echo " </div>
</div>
</div>
";
}
// line 199
echo "
";
// line 200
if ((isset($context["showVacancy"]) || array_key_exists("showVacancy", $context) ? $context["showVacancy"] : (function () { throw new RuntimeError('Variable "showVacancy" does not exist.', 200, $this->source); })())) {
// line 201
echo " ";
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/elements/vacancy-info.html.twig", ["vacancyCount" => (isset($context["vacancyCount"]) || array_key_exists("vacancyCount", $context) ? $context["vacancyCount"] : (function () { throw new RuntimeError('Variable "vacancyCount" does not exist.', 201, $this->source); })()), "tvbPackage" => (isset($context["tvbPackage"]) || array_key_exists("tvbPackage", $context) ? $context["tvbPackage"] : (function () { throw new RuntimeError('Variable "tvbPackage" does not exist.', 201, $this->source); })())]);
echo "
";
}
// line 203
echo " </div>
";
// line 205
if ((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow", $context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.', 205, $this->source); })())) {
// line 206
echo " <hr class=\"my-1\">
<div>
";
// line 209
if ((array_key_exists("liveMealObj", $context) && !twig_test_empty((isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 209, $this->source); })())))) {
// line 210
echo " <div class=\"mb-1 small text-muted\">
<span class=\"js-room-selection__meal-text\">
";
// line 212
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 212, $this->source); })()), "getText", [], "method", false, false, true, 212), 212, $this->source), "html", null, true);
echo "
</span>
";
// line 215
if ((twig_length_filter($this->env, (isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 215, $this->source); })())) > 1)) {
// line 216
echo " <label for=\"meal-selector-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 216, $this->source); })()), "getProductId", [], "method", false, false, true, 216), 216, $this->source), "html", null, true);
echo "\" tabindex=\"0\"
class=\"btn-no-styling increased-click-area js-room-selection__add\">
<span class=\"demi-icon demi-icon-edit icon-in-text\"
title=\"";
// line 219
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.change-meal"), "html", null, true);
echo "\"
aria-label=\"";
// line 220
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.change-meal"), "html", null, true);
echo "\"></span>
</label>
";
}
// line 223
echo " </div>
";
}
// line 225
echo "
<div class=\"row align-items-baseline\">
<div class=\"col\">
";
// line 228
if (((array_key_exists("priceData", $context) && !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 228, $this->source); })()))) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 228, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, true, 228) > twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 228, $this->source); })()), "getPrice", [], "method", false, false, true, 228)))) {
// line 229
echo " <span class=\"sr-only\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.old-price"), "html", null, true);
echo "</span>
<s class=\"text-muted js-room-selection__price-before-special\">";
// line 230
echo $this->env->getFunction('demi_paymentGetPriceObject')->getCallable()($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 230, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, true, 230), 230, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 230, $this->source); })()), 230, $this->source));
echo "</s>
";
}
// line 232
echo "
";
// line 233
if (array_key_exists("priceInfoText", $context)) {
// line 234
echo " <div class=\"small text-muted\">
";
// line 235
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["priceInfoText"]) || array_key_exists("priceInfoText", $context) ? $context["priceInfoText"] : (function () { throw new RuntimeError('Variable "priceInfoText" does not exist.', 235, $this->source); })()), 235, $this->source), "html", null, true);
echo "
</div>
";
}
// line 238
echo " </div>
";
// line 240
if (( !(null === (isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 240, $this->source); })())) && ((isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 240, $this->source); })()) > 0))) {
// line 241
echo " <strong class=\"col col-auto mr-auto\">
<span class=\"price text-success\" aria-live=\"polite\">
<span class=\"js-room-selection__price\">
";
// line 244
if (twig_test_empty((isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 244, $this->source); })()))) {
// line 245
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.price-from-short"), "html", null, true);
echo "
";
}
// line 246
echo " ";
echo $this->env->getFunction('demi_paymentGetPriceObject')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 246, $this->source); })()), 246, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 246, $this->source); })()), 246, $this->source));
echo "
</span>
<span class=\"js-room-selection__price-loading\" hidden>
<span class=\"circle-spinner circle-spinner--small float-left mr-1\"
aria-label=\"";
// line 250
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.content-loading"), "html", null, true);
echo "\"
title=\"";
// line 251
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.content-loading"), "html", null, true);
echo "\"></span>
</span>
</span>
";
// line 255
if ((array_key_exists("priceData", $context) && !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 255, $this->source); })())))) {
// line 256
echo " <button type=\"button\" data-target=\"#price-info-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 256, $this->source); })()), 256, $this->source), "html", null, true);
echo "-room-row-0\"
class=\"btn-no-styling increased-click-area js-overlay__toggle text-gray-medium js-tracking--click-piwik\"
data-tracking-category=\"Product\"
data-tracking-action=\"click price\"
data-tracking-label=\"";
// line 260
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 260, $this->source); })()), 260, $this->source), "html", null, true);
echo "\"
>
<span class=\"demi-icon demi-icon-info-circle icon-in-text\"
title=\"";
// line 263
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "html", null, true);
echo "\"
aria-label=\"";
// line 264
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "html", null, true);
echo "\"></span>
</button>
";
}
// line 267
echo " </strong>
";
}
// line 269
echo " </div>
</div>
";
}
// line 272
echo " <a class=\"teaser__collapse-arrow collapsed demi-icon demi-icon-chevron-down\"
aria-expanded=\"false\"
aria-controls=\"detail-";
// line 274
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 274, $this->source); })()), 274, $this->source), "html", null, true);
echo "\"
href=\"#detail-";
// line 275
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 275, $this->source); })()), 275, $this->source), "html", null, true);
echo "\"
data-toggle=\"collapse\"
title=\"";
// line 277
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.show-details"), "html", null, true);
echo "\"
aria-label=\"";
// line 278
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.show-details"), "html", null, true);
echo "\"></a>
</div>
</div>
</section>
";
// line 285
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/teaser/room-details.html.twig", ["accommodationProduct" => // line 286
(isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 286, $this->source); })()), "images" => // line 287
(isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 287, $this->source); })()), "availabilityIsChecked" => // line 288
(isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 288, $this->source); })()), "dateFrom" => twig_get_attribute($this->env, $this->source, // line 289
(isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 289, $this->source); })()), "getDateFrom", [], "method", false, false, true, 289)]);
// line 290
echo "
";
// line 293
if ((isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow", $context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.', 293, $this->source); })())) {
// line 294
echo " <div class=\"card-body\">
";
// line 295
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/teaser/room-buttons.html.twig", ["accommodationProduct" => // line 296
(isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 296, $this->source); })()), "product" => // line 297
(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 297, $this->source); })()), "mealArray" => // line 298
(isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 298, $this->source); })()), "liveMealObj" => (( // line 299
array_key_exists("liveMealObj", $context)) ? ((isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 299, $this->source); })())) : (null)), "availabilityIsChecked" => // line 300
(isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 300, $this->source); })()), "promotionText" => (( // line 301
array_key_exists("promotionText", $context)) ? ((isset($context["promotionText"]) || array_key_exists("promotionText", $context) ? $context["promotionText"] : (function () { throw new RuntimeError('Variable "promotionText" does not exist.', 301, $this->source); })())) : (null))]);
// line 302
echo "
</div>
";
// line 305
if ((array_key_exists("priceData", $context) && !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 305, $this->source); })())))) {
// line 306
echo " ";
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/overlays/price-info.html.twig", ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "id" => (("price-info-" . $this->sandbox->ensureToStringAllowed( // line 308
(isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 308, $this->source); })()), 308, $this->source)) . "-room-row-0"), "priceData" => // line 309
(isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 309, $this->source); })()), "accommodationProduct" => // line 310
(isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 310, $this->source); })()), "roomRow" => // line 311
(isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 311, $this->source); })()), "roomRowIndex" => 0, "productSet" => // line 313
(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 313, $this->source); })())]);
// line 314
echo "
<script>
_config.ajaxOverlay = true;
</script>
";
}
// line 320
echo " ";
}
// line 321
echo "
</div>
";
// line 326
if ( !(isset($context["hasSingleRoomRow"]) || array_key_exists("hasSingleRoomRow", $context) ? $context["hasSingleRoomRow"] : (function () { throw new RuntimeError('Variable "hasSingleRoomRow" does not exist.', 326, $this->source); })())) {
// line 327
echo " <div class=\"teaser-detail mx-2\">
<div class=\"card box-shadow\">
";
// line 329
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 329, $this->source); })()), "products", [], "array", false, false, true, 329));
$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["productIndex"] => $context["product"]) {
// line 330
echo " ";
$context["roomRow"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["productData"]) || array_key_exists("productData", $context) ? $context["productData"] : (function () { throw new RuntimeError('Variable "productData" does not exist.', 330, $this->source); })()), "roomRow", [], "array", false, false, true, 330), $context["productIndex"], [], "array", false, false, true, 330), "getRowObject", [], "method", false, false, true, 330);
// line 331
echo " ";
$context["accommodationProduct"] = Pimcore\Model\DataObject::getById($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "getProductId", [], "method", false, false, true, 331), 331, $this->source));
// line 332
echo " ";
$context["id"] = (((isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 332, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 332, $this->source); })()), "getId", [], "method", false, false, true, 332)) : (twig_get_attribute($this->env, $this->source, $context["product"], "getProductId", [], "method", false, false, true, 332)));
// line 333
echo " ";
$context["title"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 333, $this->source); })()), "getName", [], "method", false, false, true, 333);
// line 334
echo " ";
if (( !(null === $context["product"]) && !(null === (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 334, $this->source); })())))) {
// line 335
echo " ";
$context["priceData"] = twig_get_attribute($this->env, $this->source, $context["product"], "getPriceData", [], "method", false, false, true, 335);
// line 336
echo " ";
$context["price"] = twig_get_attribute($this->env, $this->source, $context["product"], "getPrice", [], "method", false, false, true, 336);
// line 337
echo " ";
$context["showVacancy"] = true;
// line 338
echo " ";
$context["showSelection"] = true;
// line 339
echo " ";
$context["vacancyCount"] = twig_get_attribute($this->env, $this->source, $context["product"], "getUnits", [], "method", false, false, true, 339);
// line 340
echo "
";
} elseif ( !(null === // line 341
$context["product"])) {
// line 342
echo " ";
$context["price"] = twig_get_attribute($this->env, $this->source, $context["product"], "getBasePrice", [], "method", false, false, true, 342);
// line 343
echo " ";
$context["showVacancy"] = false;
// line 344
echo " ";
$context["showSelection"] = false;
// line 345
echo " ";
$context["vacancyCount"] = 0;
// line 346
echo "
";
// line 347
$context["priceInfo"] = twig_get_attribute($this->env, $this->source, $context["product"], "getPriceInfo", [], "method", false, false, true, 347);
// line 348
echo " ";
$context["priceInfoText"] = twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/priceInfoStr.html.twig", ["type" => twig_get_attribute($this->env, $this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo", $context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.', 348, $this->source); })()), "type", [], "array", false, false, true, 348), "nights" => twig_get_attribute($this->env, $this->source, (isset($context["priceInfo"]) || array_key_exists("priceInfo", $context) ? $context["priceInfo"] : (function () { throw new RuntimeError('Variable "priceInfo" does not exist.', 348, $this->source); })()), "nights", [], "array", false, false, true, 348)]);
// line 349
echo " ";
}
// line 350
echo "
";
// line 352
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 352, $this->source); })()), "getDateFrom", [], "method", false, false, true, 352))) {
// line 353
echo " ";
if ($this->env->getTest('instanceof')->getCallable()((isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 353, $this->source); })()), "ElementsDemiPackageSearchParameter")) {
// line 354
echo " ";
$context["mealArray"] = [];
// line 355
echo " ";
} else {
// line 356
echo " ";
$context["mealArray"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 356, $this->source); })()), "getValidMeals", [twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 356, $this->source); })()), "getPeriod", [], "method", false, false, true, 356), (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 356, $this->source); })())], "method", false, false, true, 356);
// line 357
echo " ";
}
// line 358
echo " ";
$context["liveMeal"] = twig_get_attribute($this->env, $this->source, $context["product"], "getMealCode", [], "method", false, false, true, 358);
// line 359
echo " ";
$context["liveMealObj"] = $this->extensions['Elements\Bundle\DemiFrontendBundle\Twig\DemiFrontendExtension']->getClassByStringAndIdentifier("\\Elements\\Demi\\Model\\MealType", "getByFid", $this->sandbox->ensureToStringAllowed((isset($context["liveMeal"]) || array_key_exists("liveMeal", $context) ? $context["liveMeal"] : (function () { throw new RuntimeError('Variable "liveMeal" does not exist.', 359, $this->source); })()), 359, $this->source));
// line 360
echo " ";
if (!twig_in_filter((isset($context["liveMeal"]) || array_key_exists("liveMeal", $context) ? $context["liveMeal"] : (function () { throw new RuntimeError('Variable "liveMeal" does not exist.', 360, $this->source); })()), twig_get_array_keys_filter((isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 360, $this->source); })())))) {
// line 361
echo " ";
$context["mealArray"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 361, $this->source); })()), 361, $this->source), [(isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 361, $this->source); })())]);
// line 362
echo " ";
}
// line 363
echo " ";
} else {
// line 364
echo " ";
$context["mealArray"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 364, $this->source); })()), "getValidMeals", [0, (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 364, $this->source); })())], "method", false, false, true, 364);
// line 365
echo " ";
}
// line 366
echo "
";
// line 368
$context["serviceImages"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 368, $this->source); })()), "getService", [], "method", false, false, true, 368), "getImages", [null, (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 368, $this->source); })())], "method", false, false, true, 368);
// line 369
echo " ";
$context["productImages"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 369, $this->source); })()), "getImages", [null, (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 369, $this->source); })())], "method", false, false, true, 369);
// line 370
echo " ";
$context["images"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["productImages"]) || array_key_exists("productImages", $context) ? $context["productImages"] : (function () { throw new RuntimeError('Variable "productImages" does not exist.', 370, $this->source); })()), 370, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["serviceImages"]) || array_key_exists("serviceImages", $context) ? $context["serviceImages"] : (function () { throw new RuntimeError('Variable "serviceImages" does not exist.', 370, $this->source); })()), 370, $this->source));
// line 371
echo "
<div class=\"js-room-selection__room-row\"
data-room-row-id=\"";
// line 373
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["productIndex"], 373, $this->source), "html", null, true);
echo "\"
data-initial-price=\"";
// line 374
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "getPrice", [], "method", false, false, true, 374), 374, $this->source), 2, ".", ""), "html", null, true);
echo "\"
";
// line 375
if (((isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 375, $this->source); })()) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 375, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, true, 375) > twig_get_attribute($this->env, $this->source, $context["product"], "getPrice", [], "method", false, false, true, 375)))) {
// line 376
echo " data-initial-price-before-special=\"";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 376, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, true, 376), 376, $this->source), 2, ".", ""), "html", null, true);
echo "\"
";
}
// line 378
echo " data-room-row-title=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 378, $this->source); })()), 378, $this->source));
echo "\">
";
// line 379
if ($context["productIndex"]) {
// line 380
echo " <hr class=\"m-0\">
";
}
// line 382
echo "
<div class=\"card-body p-2\">
";
// line 384
$context["translation"] = ("demi.detail.room.select-headline-" . twig_lower_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 384, $this->source); })()), "getAccommodationType", [], "method", false, false, true, 384), 384, $this->source)));
// line 385
echo " <h4 class=\"h3 font-medium\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed((isset($context["translation"]) || array_key_exists("translation", $context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.', 385, $this->source); })()), 385, $this->source)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ($context["productIndex"] + 1), "html", null, true);
echo "</h4>
<div class=\"mb-1 small text-muted\">
<div class=\"media\">
<div class=\"demi-icon demi-icon-person mr-1 icon-in-text\" aria-hidden=\"true\"></div>
<div class=\"media-body\">
";
// line 392
if ( !(null === (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 392, $this->source); })()))) {
// line 393
echo " ";
$context["adults"] = twig_get_attribute($this->env, $this->source, (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 393, $this->source); })()), "getAdults", [], "method", false, false, true, 393);
// line 394
echo " ";
$context["children"] = twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 394, $this->source); })()), "getChildAges", [], "method", false, false, true, 394), 394, $this->source));
// line 395
echo " ";
$context["adultsStr"] = ((((isset($context["adults"]) || array_key_exists("adults", $context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.', 395, $this->source); })()) > 1)) ? ((($this->sandbox->ensureToStringAllowed((isset($context["adults"]) || array_key_exists("adults", $context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.', 395, $this->source); })()), 395, $this->source) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.adults"))) : ((($this->sandbox->ensureToStringAllowed((isset($context["adults"]) || array_key_exists("adults", $context) ? $context["adults"] : (function () { throw new RuntimeError('Variable "adults" does not exist.', 395, $this->source); })()), 395, $this->source) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.adult"))));
// line 396
echo " ";
$context["childrenStr"] = ((((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 396, $this->source); })()) > 1)) ? ((($this->sandbox->ensureToStringAllowed((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 396, $this->source); })()), 396, $this->source) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.children"))) : ((($this->sandbox->ensureToStringAllowed((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 396, $this->source); })()), 396, $this->source) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.occupancy.child"))));
// line 397
echo "
";
} else {
// line 399
echo " ";
$context["adultsStr"] = ((($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 399, $this->source); })()), "getBedsMin", [], "method", false, false, true, 399), 399, $this->source) . "-") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 399, $this->source); })()), "getBedsMax", [], "method", false, false, true, 399), 399, $this->source)) . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, " ", "translate", ["demi.detail.room.occupancy.persons"], "method", false, false, true, 399), 399, $this->source));
// line 400
echo " ";
}
// line 401
echo "
";
// line 402
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["adultsStr"]) || array_key_exists("adultsStr", $context) ? $context["adultsStr"] : (function () { throw new RuntimeError('Variable "adultsStr" does not exist.', 402, $this->source); })()), 402, $this->source), "html", null, true);
echo "
";
// line 403
if (((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 403, $this->source); })()) > 0)) {
// line 404
echo " , ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["childrenStr"]) || array_key_exists("childrenStr", $context) ? $context["childrenStr"] : (function () { throw new RuntimeError('Variable "childrenStr" does not exist.', 404, $this->source); })()), 404, $this->source), "html", null, true);
echo "
";
}
// line 406
echo " </div>
</div>
</div>
";
// line 411
if ((isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 411, $this->source); })())) {
// line 412
echo " <div class=\"mb-1 small text-muted\">
<span class=\"js-room-selection__meal-text\">
";
// line 414
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 414, $this->source); })()), "getText", [], "method", false, false, true, 414), 414, $this->source), "html", null, true);
echo "
</span>
";
// line 417
if ((twig_length_filter($this->env, (isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 417, $this->source); })())) > 1)) {
// line 418
echo " <label for=\"meal-selector-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "getProductId", [], "method", false, false, true, 418), 418, $this->source), "html", null, true);
echo "\" tabindex=\"0\"
class=\"btn-no-styling increased-click-area js-room-selection__add\">
<span class=\"demi-icon demi-icon-edit icon-in-text\"
title=\"";
// line 421
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.change-meal"), "html", null, true);
echo "\"
aria-label=\"";
// line 422
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.change-meal"), "html", null, true);
echo "\"></span>
</label>
";
}
// line 425
echo " </div>
";
}
// line 427
echo "
<div class=\"row align-items-baseline\">
<div class=\"col\">
";
// line 430
if (( !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 430, $this->source); })())) && (twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 430, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, true, 430) > twig_get_attribute($this->env, $this->source, $context["product"], "getPrice", [], "method", false, false, true, 430)))) {
// line 431
echo " <span class=\"sr-only\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.old-price"), "html", null, true);
echo "</span>
<s class=\"text-muted js-room-selection__price-before-special\">";
// line 432
echo $this->env->getFunction('demi_paymentGetPriceObject')->getCallable()($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 432, $this->source); })()), "getPriceBeforeSpecial", [], "method", false, false, true, 432), 432, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 432, $this->source); })()), 432, $this->source));
echo "</s>
";
}
// line 434
echo "
";
// line 435
if ( !twig_test_empty((isset($context["priceInfoText"]) || array_key_exists("priceInfoText", $context) ? $context["priceInfoText"] : (function () { throw new RuntimeError('Variable "priceInfoText" does not exist.', 435, $this->source); })()))) {
// line 436
echo " <div class=\"small text-muted\">
";
// line 437
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["priceInfoText"]) || array_key_exists("priceInfoText", $context) ? $context["priceInfoText"] : (function () { throw new RuntimeError('Variable "priceInfoText" does not exist.', 437, $this->source); })()), 437, $this->source), "html", null, true);
echo "
</div>
";
}
// line 440
echo " </div>
";
// line 442
if ((array_key_exists("price", $context) && ((isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 442, $this->source); })()) > 0))) {
// line 443
echo " <strong class=\"col col-auto mr-auto\">
<span class=\"price text-success\" aria-live=\"polite\">
<span class=\"js-room-selection__price\">
";
// line 446
if ((null === (isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 446, $this->source); })()))) {
// line 447
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.price-from-short"), "html", null, true);
echo "
";
}
// line 448
echo " ";
echo $this->env->getFunction('demi_paymentGetPriceObject')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["price"]) || array_key_exists("price", $context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.', 448, $this->source); })()), 448, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 448, $this->source); })()), 448, $this->source));
echo "
</span>
<span class=\"js-room-selection__price-loading\" hidden>
<span class=\"circle-spinner circle-spinner--small float-left mr-1\"
aria-label=\"";
// line 452
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.content-loading"), "html", null, true);
echo "\"
title=\"";
// line 453
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.content-loading"), "html", null, true);
echo "\"></span>
</span>
</span>
";
// line 457
if ( !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 457, $this->source); })()))) {
// line 458
echo " <button type=\"button\" data-target=\"#price-info-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 458, $this->source); })()), 458, $this->source), "html", null, true);
echo "-room-row-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["productIndex"], 458, $this->source), "html", null, true);
echo "\"
class=\"btn-no-styling increased-click-area js-overlay__toggle text-gray-medium\">
<span class=\"demi-icon demi-icon-info-circle icon-in-text\"
title=\"";
// line 461
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "html", null, true);
echo "\"
aria-label=\"";
// line 462
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "html", null, true);
echo "\"></span>
</button>
";
}
// line 465
echo " </strong>
";
}
// line 467
echo " </div>
<div class=\"mt-2\">
";
// line 470
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/teaser/room-buttons.html.twig", ["accommodationProduct" => // line 471
(isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 471, $this->source); })()), "product" => // line 472
$context["product"], "mealArray" => // line 473
(isset($context["mealArray"]) || array_key_exists("mealArray", $context) ? $context["mealArray"] : (function () { throw new RuntimeError('Variable "mealArray" does not exist.', 473, $this->source); })()), "liveMealObj" => // line 474
(isset($context["liveMealObj"]) || array_key_exists("liveMealObj", $context) ? $context["liveMealObj"] : (function () { throw new RuntimeError('Variable "liveMealObj" does not exist.', 474, $this->source); })()), "availabilityIsChecked" => // line 475
(isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 475, $this->source); })()), "showSelection" => // line 476
(isset($context["showSelection"]) || array_key_exists("showSelection", $context) ? $context["showSelection"] : (function () { throw new RuntimeError('Variable "showSelection" does not exist.', 476, $this->source); })()), "promotionText" => // line 477
(isset($context["promotionText"]) || array_key_exists("promotionText", $context) ? $context["promotionText"] : (function () { throw new RuntimeError('Variable "promotionText" does not exist.', 477, $this->source); })())]);
// line 478
echo "
</div>
</div>
";
// line 482
if ( !(null === (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 482, $this->source); })()))) {
// line 483
echo " ";
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/overlays/price-info.html.twig", ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.price-info"), "id" => ((("price-info-" . $this->sandbox->ensureToStringAllowed( // line 486
(isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 486, $this->source); })()), 486, $this->source)) . "-room-row-") . $this->sandbox->ensureToStringAllowed($context["productIndex"], 486, $this->source)), "priceData" => // line 487
(isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 487, $this->source); })()), "accommodationProduct" => // line 488
(isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 488, $this->source); })()), "roomRow" => // line 489
(isset($context["roomRow"]) || array_key_exists("roomRow", $context) ? $context["roomRow"] : (function () { throw new RuntimeError('Variable "roomRow" does not exist.', 489, $this->source); })()), "roomRowIndex" => // line 490
$context["productIndex"], "productSet" => // line 491
$context["product"]]);
// line 492
echo "
";
}
// line 494
echo "
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['productIndex'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 498
echo " </div>
</div>
";
}
// line 501
echo "
";
// line 502
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/overlays/img-gallery.html.twig", ["imagesTypes" => ["Service", "Product"], "accommodation" => // line 504
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 504, $this->source); })()), "accommodationProduct" => // line 505
(isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 505, $this->source); })()), "lazyLoadAll" => true]);
// line 507
echo "
</div>
</li>
";
}
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@ElementsDemiFrontend/Includes/teaser/room-teaser.mobile.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 1188 => 507, 1186 => 505, 1185 => 504, 1184 => 502, 1181 => 501, 1176 => 498, 1159 => 494, 1155 => 492, 1153 => 491, 1152 => 490, 1151 => 489, 1150 => 488, 1149 => 487, 1148 => 486, 1146 => 483, 1144 => 482, 1138 => 478, 1136 => 477, 1135 => 476, 1134 => 475, 1133 => 474, 1132 => 473, 1131 => 472, 1130 => 471, 1129 => 470, 1124 => 467, 1120 => 465, 1114 => 462, 1110 => 461, 1101 => 458, 1099 => 457, 1092 => 453, 1088 => 452, 1080 => 448, 1074 => 447, 1072 => 446, 1067 => 443, 1065 => 442, 1061 => 440, 1055 => 437, 1052 => 436, 1050 => 435, 1047 => 434, 1042 => 432, 1037 => 431, 1035 => 430, 1030 => 427, 1026 => 425, 1020 => 422, 1016 => 421, 1009 => 418, 1007 => 417, 1001 => 414, 997 => 412, 995 => 411, 988 => 406, 982 => 404, 980 => 403, 976 => 402, 973 => 401, 970 => 400, 967 => 399, 963 => 397, 960 => 396, 957 => 395, 954 => 394, 951 => 393, 949 => 392, 936 => 385, 934 => 384, 930 => 382, 926 => 380, 924 => 379, 919 => 378, 913 => 376, 911 => 375, 907 => 374, 903 => 373, 899 => 371, 896 => 370, 893 => 369, 891 => 368, 887 => 366, 884 => 365, 881 => 364, 878 => 363, 875 => 362, 872 => 361, 869 => 360, 866 => 359, 863 => 358, 860 => 357, 857 => 356, 854 => 355, 851 => 354, 848 => 353, 846 => 352, 842 => 350, 839 => 349, 836 => 348, 834 => 347, 831 => 346, 828 => 345, 825 => 344, 822 => 343, 819 => 342, 817 => 341, 814 => 340, 811 => 339, 808 => 338, 805 => 337, 802 => 336, 799 => 335, 796 => 334, 793 => 333, 790 => 332, 787 => 331, 784 => 330, 767 => 329, 763 => 327, 761 => 326, 754 => 321, 751 => 320, 743 => 314, 741 => 313, 740 => 311, 739 => 310, 738 => 309, 737 => 308, 735 => 306, 733 => 305, 728 => 302, 726 => 301, 725 => 300, 724 => 299, 723 => 298, 722 => 297, 721 => 296, 720 => 295, 717 => 294, 715 => 293, 710 => 290, 708 => 289, 707 => 288, 706 => 287, 705 => 286, 704 => 285, 694 => 278, 690 => 277, 685 => 275, 681 => 274, 677 => 272, 672 => 269, 668 => 267, 662 => 264, 658 => 263, 652 => 260, 644 => 256, 642 => 255, 635 => 251, 631 => 250, 623 => 246, 617 => 245, 615 => 244, 610 => 241, 608 => 240, 604 => 238, 598 => 235, 595 => 234, 593 => 233, 590 => 232, 585 => 230, 580 => 229, 578 => 228, 573 => 225, 569 => 223, 563 => 220, 559 => 219, 552 => 216, 550 => 215, 544 => 212, 540 => 210, 538 => 209, 533 => 206, 531 => 205, 527 => 203, 521 => 201, 519 => 200, 516 => 199, 509 => 194, 503 => 192, 501 => 191, 496 => 190, 493 => 189, 490 => 188, 486 => 186, 483 => 185, 480 => 184, 477 => 183, 474 => 182, 472 => 181, 463 => 174, 461 => 173, 455 => 170, 448 => 166, 444 => 165, 435 => 159, 429 => 156, 422 => 151, 419 => 150, 413 => 148, 411 => 147, 407 => 146, 402 => 145, 400 => 144, 394 => 141, 390 => 139, 387 => 138, 384 => 137, 381 => 136, 378 => 135, 376 => 134, 373 => 133, 367 => 130, 364 => 129, 362 => 128, 359 => 127, 355 => 125, 349 => 123, 345 => 121, 343 => 120, 342 => 119, 340 => 118, 338 => 117, 335 => 116, 333 => 115, 324 => 108, 318 => 106, 312 => 104, 310 => 103, 306 => 102, 301 => 101, 298 => 100, 295 => 99, 292 => 98, 286 => 97, 283 => 96, 280 => 95, 277 => 94, 274 => 93, 269 => 92, 266 => 91, 263 => 90, 261 => 89, 257 => 88, 253 => 87, 249 => 86, 245 => 85, 241 => 84, 237 => 83, 233 => 82, 228 => 80, 225 => 79, 223 => 78, 220 => 77, 217 => 76, 214 => 75, 211 => 74, 208 => 73, 205 => 72, 202 => 71, 199 => 70, 196 => 69, 193 => 68, 190 => 67, 187 => 66, 184 => 65, 181 => 64, 178 => 63, 175 => 62, 173 => 61, 169 => 59, 166 => 58, 163 => 57, 160 => 56, 157 => 55, 155 => 54, 152 => 53, 149 => 52, 146 => 51, 143 => 50, 140 => 49, 138 => 48, 134 => 46, 131 => 45, 128 => 44, 125 => 43, 122 => 42, 119 => 41, 116 => 40, 114 => 39, 111 => 38, 108 => 37, 105 => 36, 102 => 35, 99 => 34, 96 => 33, 94 => 32, 91 => 31, 88 => 30, 86 => 29, 83 => 28, 80 => 27, 77 => 26, 74 => 25, 71 => 24, 68 => 23, 66 => 22, 63 => 21, 61 => 20, 58 => 19, 54 => 17, 50 => 15, 48 => 14, 45 => 13,);
}
public function getSourceContext()
{
return new Source("{#
/**
* @var \\\\Pimcore\\\\Templating\\\\GlobalVariables app
* #
* @var productData array
* @var accommodation \\\\Elements\\\\Demi\\\\Model\\\\AccommodationServiceProvider
* @var settlerCode string
* @var bookOnRequest bool
* @var availabilityIsChecked bool
* @var hasSingleRoomRow bool
* @var searchParam \\\\Elements\\\\Demi\\\\Accommodation\\\\Search\\\\Parameter
*/ #}
{% if searchParam is not defined or searchParam.getDateFrom() is empty %}
{% set fromDate = null %}
{% else %}
{% set fromDate = demi_getSearchFrom() %}
{% endif %}
{% if productData is iterable and productData.roomRow[0] is defined and productData.products[0] is defined %}
{% set possibleIndices = productData.roomRow | keys %}
{% set i = possibleIndices | first %}
{% set roomRow = productData.roomRow[i].getRowObject() %}
{% set product = productData.products[i] %}
{% set accommodationProduct = pimcore_object(product.getProductId()) %}
{% if accommodationProduct and accommodationProduct.isPublished() %}
<li>
{% set id = product.getProductId() %}
{% set title = accommodationProduct.getName() %}
{% if product is not null and roomRow is not null %}
{% set priceData = product.getPriceData() %}
{% set price = product.getPrice() %}
{% set showVacancy = true %}
{% set showSelection = true %}
{% set vacancyCount = product.getUnits() %}
{% set promotionText = null %}
{% if product.getCancellationInformation() is not empty %}
{% set cancellationInformation = product.getCancellationInformation() %}
{% set displayInfo = demi_getCancellationDisplayInfo(cancellationInformation,searchParam.getDateFrom()) %}
{% set freeCancelText = displayInfo.getFreeCancellationText() %}
{% set promotionText = freeCancelText == \"\" ? null : freeCancelText %}
{% endif %}
{% elseif product is not null %}
{% set price = product.getBasePrice() %}
{% set showVacancy = false %}
{% set showSelection = false %}
{% set vacancyCount = 0 %}
{% set priceInfo = product.getPriceInfo() %}
{% if priceInfo is not empty %}
{% set priceInfoText = include('@ElementsDemiFrontend/Includes/priceInfoStr.html.twig', {'type': priceInfo['type'], 'nights': priceInfo['nights']}) %}
{% endif %}
{% endif %}
{% if searchParam.getDateFrom() is not null %}
{% if searchParam is instanceof('\\Elements\\Demi\\Lts\\Accommodation\\Search\\Parameter') %}
{% set mealArray = product.getPossibleMealCodes() %}
{% elseif searchParam is instanceof('\\Elements\\Demi\\Package\\Search\\Parameter') %}
{% set mealArray = [] %}
{% else %}
{% set mealArray = accommodationProduct.getValidMeals(searchParam.getPeriod(), searchParam.getDateFrom()) %}
{% endif %}
{% set liveMeal = product.getMealCode() %}
{% set liveMealObj = demi_getClassByStringAndIdentifier(\"\\\\Elements\\\\Demi\\\\Model\\\\MealType\", \"getByFid\", liveMeal) %}
{% if liveMeal not in mealArray|keys %}
{% set mealArray = mealArray|merge([liveMealObj]) %}
{% endif %}
{% else %}
{% set mealArray = accommodationProduct.getValidMeals(0) %}
{% endif %}
{% set images = accommodationProduct is not null ? demi_getRoomPictures(accommodationProduct,fromDate) : [] %}
<div id=\"room-row-collapse-parent-{{ product.getProductId() }}\"
class=\"js-room-selection__room\"
data-availability-reference-id=\"{{ product.getAvailabilityReference() is same as \"Service\" ? product.getServiceId() : product.getProductId() }}\"
data-room-id=\"{{ product.getProductId() }}\"
data-tracking-variant=\"{{ demi_impressionVariant(accommodationProduct ?: product, tvbPackage) }}\"
data-tracking-variant-id=\"{{ product.getProductId() }}\"
data-settler-code=\"{{ settlerCode }}\"
data-booking-type=\"{{ product.getBookable() ? 'bookable' : 'onrequest' }}\">
<div class=\"card box-shadow mt-3 {{ hasSingleRoomRow ? 'js-room-selection__room-row' : 'z-1' }}\"
{% if hasSingleRoomRow %}
{% if productData is iterable and productData['products'] is iterable and productData['roomRow'] is iterable %}
{% set done = false %}
{% for productIndex, product in productData['products'] %}
{% if not done %}
{% set roomRowIndexSingleRoom = productData['roomRow'][productIndex].getIndex() %}
{% set done = true %}
{% endif %}
{% endfor %}
{% else %}
{% set roomRowIndexSingleRoom = 0 %}
{% endif %}
data-room-row-id=\"{{ roomRowIndexSingleRoom is defined ? roomRowIndexSingleRoom : 0 }}\"
data-initial-price=\"{{ price | number_format(2, '.', '') }}\"
{% if priceData is defined and priceData is not null and priceData.getPriceBeforeSpecial() > product.getPrice() %}
data-initial-price-before-special=\"{{ priceData.getPriceBeforeSpecial() | number_format(2, '.', '') }}\"
{% endif %}
data-room-row-title=\"{{ title|escape }}\"
{% endif %}
>
<section class=\"teaser teaser--body-padding\">
<div class=\"row row--gutter-width-10\">
<div class=\"col-4 d-flex flex-column\">
{% if priceData is defined and priceData is not null and priceData.getSpecialPriceType() is same as \"None\" and priceData.getSpecialPriceName() is not empty %}
<div class=\"teaser__label bg-warning text-center p-1 small text-white strong\">
{% if priceData.getSplitPay() and priceData.getSplitStay() and priceData.getSplitPay() != priceData.getSplitStay() %}
{{ demi_fillTranslation({
'[STAY]' : priceData.getSplitStay(),
'[PAY]' : priceData.getSplitPay()
}, 'demi.price-special-type.splitpay') }}
{% else %}
{{ priceData.getSpecialPriceName() }}
{% endif %}
</div>
{% endif %}
{% if priceData is defined and priceData is not null and priceData.getSpecialPriceType() and priceData.getSpecialPriceType()!= priceData.getSpecialPriceName() and priceData.getSpecialPriceType() is not same as \"None\" %}
<div class=\"teaser__label bg-warning text-center p-1 small text-white strong\">
{{ (\"demi.price-special-type.\" ~ priceData.getSpecialPriceType() | lower) | trans }}
</div>
{% endif %}
{% set galUrl = '#' ~ (accommodationProduct is not null ? accommodationProduct.getId() : '') ~ '-imgs-overlay' %}
{% if images|length == 0 %}
{% set images = [demi_core_configuration('getTeaserFallbackImage',[])] %}
{% set galUrl = '' %}
{% endif %}
<button type=\"button\" class=\"teaser__img btn-no-styling js-overlay__toggle figure js-tracking--click-piwik\"
data-target=\"{{ galUrl }}\"
data-tracking-category=\"Gallery\"
data-tracking-action=\"open\"
{% if (images[0]) %}
style=\"background-image:url({{ images[0].getThumbnail('demi-mobile-room-teaser') }});\">
{{ images[0].getThumbnail('demi-mobile-room-teaser').getHTML({ 'imgAttributes': {'class': 'sr-only', 'alt': 'demi.image-alt-prefix'|trans ~ ' '~ (accommodationProduct is not null ? accommodationProduct.getName() : product.getDescription()) }})|raw }}
{% if images|length > 1 %}
<span class=\"figure__overlay p-1\">1/{{ images|length }}</span>
{% endif %}
{% endif %}
</button>
</div>
<div class=\"col-8 teaser__body collapsed js-tracking--click-piwik\"
data-toggle=\"collapse\"
data-target=\"#detail-{{ id }}\"
data-tracking-category=\"Product\"
data-tracking-action=\"click detail\"
data-tracking-label=\"{{ id }}\"
>
<div class=\"teaser__main-body\">
<h3 class=\"mb-1 text-primary\">
<a href=\"#detail-{{ id }}\"
aria-controls=\"detail-{{ id }}\"
aria-expanded=\"false\"
data-toggle=\"collapse\"
class=\"collapsed\"
>{{ title }}</a>
</h3>
{% if hasSingleRoomRow %}
<div class=\"mb-1 small text-muted\">
<div class=\"media\">
<div class=\"demi-icon demi-icon-person mr-1 icon-in-text\"
aria-hidden=\"true\"></div>
<div class=\"media-body\">
{% if roomRow is not null %}
{% set adults = roomRow.getAdults() %}
{% set children = roomRow.getChildAges()|length %}
{% set adultsStr = adults > 1 ? adults ~ \" \" ~ 'demi.detail.room.occupancy.adults'|trans : adults ~ \" \" ~ 'demi.detail.room.occupancy.adult'|trans %}
{% set childrenStr = children > 1 ? children ~ \" \" ~ 'demi.detail.room.occupancy.children'|trans : children ~ \" \" ~ 'demi.detail.room.occupancy.child'|trans %}
{% else %}
{% set adultsStr = accommodationProduct.getBedsMin() ~ \"-\" ~ accommodationProduct.getBedsMax() ~ \" \" ~ 'demi.detail.room.occupancy.persons'|trans %}
{% endif %}
{{ adultsStr }}
{% if children is defined and children|length > 0 %}
, {{ childrenStr }}
{% endif %}
</div>
</div>
</div>
{% endif %}
{% if showVacancy %}
{{ include('@ElementsDemiFrontend/Includes/elements/vacancy-info.html.twig', {'vacancyCount':vacancyCount, 'tvbPackage':tvbPackage}) }}
{% endif %}
</div>
{% if hasSingleRoomRow %}
<hr class=\"my-1\">
<div>
{% if liveMealObj is defined and liveMealObj is not empty %}
<div class=\"mb-1 small text-muted\">
<span class=\"js-room-selection__meal-text\">
{{ liveMealObj.getText() }}
</span>
{% if mealArray|length > 1 %}
<label for=\"meal-selector-{{ product.getProductId() }}\" tabindex=\"0\"
class=\"btn-no-styling increased-click-area js-room-selection__add\">
<span class=\"demi-icon demi-icon-edit icon-in-text\"
title=\"{{ \"demi.detail.change-meal\"|trans }}\"
aria-label=\"{{ \"demi.detail.change-meal\"|trans }}\"></span>
</label>
{% endif %}
</div>
{% endif %}
<div class=\"row align-items-baseline\">
<div class=\"col\">
{% if priceData is defined and priceData is not null and priceData.getPriceBeforeSpecial() > product.getPrice() %}
<span class=\"sr-only\">{{ 'demi.detail.room.old-price'|trans }}</span>
<s class=\"text-muted js-room-selection__price-before-special\">{{ demi_paymentGetPriceObject(priceData.getPriceBeforeSpecial(), accommodation) }}</s>
{% endif %}
{% if priceInfoText is defined %}
<div class=\"small text-muted\">
{{ priceInfoText }}
</div>
{% endif %}
</div>
{% if (price is not null and price > 0) %}
<strong class=\"col col-auto mr-auto\">
<span class=\"price text-success\" aria-live=\"polite\">
<span class=\"js-room-selection__price\">
{% if roomRow is empty %}
{{ 'demi.price-from-short'|trans }}
{% endif %} {{ demi_paymentGetPriceObject(price, accommodation) }}
</span>
<span class=\"js-room-selection__price-loading\" hidden>
<span class=\"circle-spinner circle-spinner--small float-left mr-1\"
aria-label=\"{{ 'demi.content-loading'|trans }}\"
title=\"{{ 'demi.content-loading'|trans }}\"></span>
</span>
</span>
{% if priceData is defined and priceData is not null %}
<button type=\"button\" data-target=\"#price-info-{{ id }}-room-row-0\"
class=\"btn-no-styling increased-click-area js-overlay__toggle text-gray-medium js-tracking--click-piwik\"
data-tracking-category=\"Product\"
data-tracking-action=\"click price\"
data-tracking-label=\"{{ id }}\"
>
<span class=\"demi-icon demi-icon-info-circle icon-in-text\"
title=\"{{ 'demi.detail.room.price-info'|trans }}\"
aria-label=\"{{ 'demi.detail.room.price-info'|trans }}\"></span>
</button>
{% endif %}
</strong>
{% endif %}
</div>
</div>
{% endif %}
<a class=\"teaser__collapse-arrow collapsed demi-icon demi-icon-chevron-down\"
aria-expanded=\"false\"
aria-controls=\"detail-{{ id }}\"
href=\"#detail-{{ id }}\"
data-toggle=\"collapse\"
title=\"{{ 'demi.detail.room.show-details'|trans }}\"
aria-label=\"{{ 'demi.detail.room.show-details'|trans }}\"></a>
</div>
</div>
</section>
{{ include(\"@ElementsDemiFrontend/Includes/teaser/room-details.html.twig\", {
\"accommodationProduct\": accommodationProduct,
\"images\": images,
\"availabilityIsChecked\": availabilityIsChecked,
\"dateFrom\": searchParam.getDateFrom()
}) }}
{% if hasSingleRoomRow %}
<div class=\"card-body\">
{{ include(\"@ElementsDemiFrontend/Includes/teaser/room-buttons.html.twig\", {
'accommodationProduct': accommodationProduct,
'product': product,
'mealArray': mealArray,
'liveMealObj': liveMealObj is defined ? liveMealObj : null,
'availabilityIsChecked': availabilityIsChecked,
'promotionText': promotionText is defined ? promotionText : null
}) }}
</div>
{% if priceData is defined and priceData is not null %}
{{ include('@ElementsDemiFrontend/Includes/overlays/price-info.html.twig', {
'title': 'demi.detail.room.price-info'|trans ,
'id': 'price-info-' ~ id ~ '-room-row-0',
'priceData': priceData,
'accommodationProduct': accommodationProduct,
'roomRow': roomRow,
'roomRowIndex': 0,
'productSet': product,
}) }}
<script>
_config.ajaxOverlay = true;
</script>
{% endif %}
{% endif %}
</div>
{% if not hasSingleRoomRow %}
<div class=\"teaser-detail mx-2\">
<div class=\"card box-shadow\">
{% for productIndex, product in productData['products'] %}
{% set roomRow = productData['roomRow'][productIndex].getRowObject() %}
{% set accommodationProduct = pimcore_object(product.getProductId()) %}
{% set id = accommodationProduct ? accommodationProduct.getId() : product.getProductId() %}
{% set title = accommodationProduct.getName() %}
{% if product is not null and roomRow is not null %}
{% set priceData = product.getPriceData() %}
{% set price = product.getPrice() %}
{% set showVacancy = true %}
{% set showSelection = true %}
{% set vacancyCount = product.getUnits() %}
{% elseif product is not null %}
{% set price = product.getBasePrice() %}
{% set showVacancy = false %}
{% set showSelection = false %}
{% set vacancyCount = 0 %}
{% set priceInfo = product.getPriceInfo() %}
{% set priceInfoText = include('@ElementsDemiFrontend/Includes/priceInfoStr.html.twig', {'type': priceInfo['type'], 'nights': priceInfo['nights']}) %}
{% endif %}
{% if searchParam.getDateFrom() is not null %}
{% if searchParam is instanceof('\\Elements\\Demi\\Package\\Search\\Parameter') %}
{% set mealArray = [] %}
{% else %}
{% set mealArray = accommodationProduct.getValidMeals(searchParam.getPeriod(), fromDate) %}
{% endif %}
{% set liveMeal = product.getMealCode() %}
{% set liveMealObj = demi_getClassByStringAndIdentifier(\"\\\\Elements\\\\Demi\\\\Model\\\\MealType\", \"getByFid\", liveMeal) %}
{% if liveMeal not in mealArray|keys %}
{% set mealArray = mealArray|merge([liveMealObj]) %}
{% endif %}
{% else %}
{% set mealArray = accommodationProduct.getValidMeals(0, fromDate) %}
{% endif %}
{% set serviceImages = accommodationProduct.getService().getImages(null, fromDate) %}
{% set productImages = accommodationProduct.getImages(null, fromDate) %}
{% set images = productImages|merge(serviceImages) %}
<div class=\"js-room-selection__room-row\"
data-room-row-id=\"{{ productIndex }}\"
data-initial-price=\"{{ product.getPrice() | number_format(2, '.', '') }}\"
{% if (priceData and priceData.getPriceBeforeSpecial() > product.getPrice()) %}
data-initial-price-before-special=\"{{ priceData.getPriceBeforeSpecial() | number_format(2, '.', '') }}\"
{% endif %}
data-room-row-title=\"{{ title|escape }}\">
{% if (productIndex) %}
<hr class=\"m-0\">
{% endif %}
<div class=\"card-body p-2\">
{% set translation = 'demi.detail.room.select-headline-'~ (accommodationProduct.getAccommodationType()|lower) %}
<h4 class=\"h3 font-medium\">{{ translation|trans }} {{ productIndex + 1 }}</h4>
<div class=\"mb-1 small text-muted\">
<div class=\"media\">
<div class=\"demi-icon demi-icon-person mr-1 icon-in-text\" aria-hidden=\"true\"></div>
<div class=\"media-body\">
{% if roomRow is not null %}
{% set adults = roomRow.getAdults() %}
{% set children = roomRow.getChildAges()|length %}
{% set adultsStr = adults > 1 ? adults ~ \" \" ~ 'demi.detail.room.occupancy.adults'|trans : adults ~ \" \" ~ 'demi.detail.room.occupancy.adult'|trans %}
{% set childrenStr = children > 1 ? children ~ \" \" ~ 'demi.detail.room.occupancy.children'|trans : children ~ \" \" ~ 'demi.detail.room.occupancy.child'|trans %}
{% else %}
{% set adultsStr = accommodationProduct.getBedsMin() ~ \"-\" ~ accommodationProduct.getBedsMax()~ \" \".translate('demi.detail.room.occupancy.persons') %}
{% endif %}
{{ adultsStr }}
{% if (children > 0) %}
, {{ childrenStr }}
{% endif %}
</div>
</div>
</div>
{% if (liveMealObj) %}
<div class=\"mb-1 small text-muted\">
<span class=\"js-room-selection__meal-text\">
{{ liveMealObj.getText() }}
</span>
{% if mealArray|length > 1 %}
<label for=\"meal-selector-{{ product.getProductId() }}\" tabindex=\"0\"
class=\"btn-no-styling increased-click-area js-room-selection__add\">
<span class=\"demi-icon demi-icon-edit icon-in-text\"
title=\"{{ 'demi.detail.change-meal'|trans }}\"
aria-label=\"{{ 'demi.detail.change-meal'|trans }}\"></span>
</label>
{% endif %}
</div>
{% endif %}
<div class=\"row align-items-baseline\">
<div class=\"col\">
{% if priceData is not null and priceData.getPriceBeforeSpecial() > product.getPrice() %}
<span class=\"sr-only\">{{ 'demi.detail.room.old-price'|trans }}</span>
<s class=\"text-muted js-room-selection__price-before-special\">{{ demi_paymentGetPriceObject(priceData.getPriceBeforeSpecial(), accommodation) }}</s>
{% endif %}
{% if priceInfoText is not empty %}
<div class=\"small text-muted\">
{{ priceInfoText }}
</div>
{% endif %}
</div>
{% if price is defined and price > 0 %}
<strong class=\"col col-auto mr-auto\">
<span class=\"price text-success\" aria-live=\"polite\">
<span class=\"js-room-selection__price\">
{% if roomRow is null %}
{{ 'demi.price-from-short'|trans }}
{% endif %} {{ demi_paymentGetPriceObject(price, accommodation) }}
</span>
<span class=\"js-room-selection__price-loading\" hidden>
<span class=\"circle-spinner circle-spinner--small float-left mr-1\"
aria-label=\"{{ 'demi.content-loading'|trans }}\"
title=\"{{ 'demi.content-loading'|trans }}\"></span>
</span>
</span>
{% if priceData is not null %}
<button type=\"button\" data-target=\"#price-info-{{ id }}-room-row-{{ productIndex }}\"
class=\"btn-no-styling increased-click-area js-overlay__toggle text-gray-medium\">
<span class=\"demi-icon demi-icon-info-circle icon-in-text\"
title=\"{{ 'demi.detail.room.price-info'|trans }}\"
aria-label=\"{{ 'demi.detail.room.price-info'|trans }}\"></span>
</button>
{% endif %}
</strong>
{% endif %}
</div>
<div class=\"mt-2\">
{{ include(\"@ElementsDemiFrontend/Includes/teaser/room-buttons.html.twig\", {
'accommodationProduct': accommodationProduct,
'product': product,
'mealArray': mealArray,
'liveMealObj': liveMealObj,
'availabilityIsChecked': availabilityIsChecked,
'showSelection': showSelection,
'promotionText': promotionText
}) }}
</div>
</div>
{% if priceData is not null %}
{{ include('@ElementsDemiFrontend/Includes/overlays/price-info.html.twig',
{
'title': 'demi.detail.room.price-info'|trans,
'id': 'price-info-' ~ id ~ '-room-row-' ~ productIndex,
'priceData': priceData,
'accommodationProduct': accommodationProduct,
'roomRow': roomRow,
'roomRowIndex': productIndex,
'productSet': product
}) }}
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endif %}
{{ include('@ElementsDemiFrontend/Includes/overlays/img-gallery.html.twig', {
'imagesTypes': ['Service', 'Product'],
'accommodation': accommodation,
'accommodationProduct': accommodationProduct,
'lazyLoadAll': true
}) }}
</div>
</li>
{% endif %}
{% endif %}
", "@ElementsDemiFrontend/Includes/teaser/room-teaser.mobile.html.twig", "/home/steiermark/www/src/Elements/Bundle/DemiFrontendBundle/Resources/views/Includes/teaser/room-teaser.mobile.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 14, "set" => 15, "for" => 92);
static $filters = array("keys" => 22, "first" => 23, "merge" => 72, "escape" => 80, "number_format" => 102, "trans" => 130, "lower" => 130, "length" => 135, "raw" => 146);
static $functions = array("demi_getSearchFrom" => 17, "pimcore_object" => 26, "demi_getCancellationDisplayInfo" => 42, "include" => 56, "demi_getClassByStringAndIdentifier" => 70, "demi_getRoomPictures" => 78, "demi_impressionVariant" => 84, "demi_fillTranslation" => 118, "demi_core_configuration" => 136, "demi_paymentGetPriceObject" => 230);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'for'],
['keys', 'first', 'merge', 'escape', 'number_format', 'trans', 'lower', 'length', 'raw'],
['demi_getSearchFrom', 'pimcore_object', 'demi_getCancellationDisplayInfo', 'include', 'demi_getClassByStringAndIdentifier', 'demi_getRoomPictures', 'demi_impressionVariant', 'demi_fillTranslation', 'demi_core_configuration', 'demi_paymentGetPriceObject']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}