<?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/Accommodation/detail.desktop.html.twig */
class __TwigTemplate_bdf605d6edc1347816b0435fc413ff60 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 94
return "@ElementsDemiFrontend/Layout/layout.html.twig";
}
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/Accommodation/detail.desktop.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/Accommodation/detail.desktop.html.twig"));
// line 1
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 1, $this->source); })())) {
// line 2
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsHeadTitle(), "setTitle", [$this->env->getFunction('demi_seoTitleForAcco')->getCallable()((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 2, $this->source); })()), (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 2, $this->source); })())), true], "method", false, false, true, 2);
// line 3
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsHeadMeta(), "setDescription", [$this->env->getFunction('demi_seoDescriptionforAcco')->getCallable()((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 3, $this->source); })())), true], "method", false, false, true, 3);
}
// line 9
$context["canonicalUrl"] = twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\LinkGenerator']->getGenerator(), "generate", [(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 9, $this->source); })()), ["canonical" => true, "relative" => false, "reset" => true]], "method", false, false, true, 9);
// line 10
twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsCanonical(), "checkAllParams", [false], "method", false, false, true, 10), "setDomain", [(isset($context["canonicalUrl"]) || array_key_exists("canonicalUrl", $context) ? $context["canonicalUrl"] : (function () { throw new RuntimeError('Variable "canonicalUrl" does not exist.', 10, $this->source); })())], "method", false, false, true, 10);
// line 11
$this->env->getFunction('demi_paymentSetDefaultCurrency')->getCallable()((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 11, $this->source); })()));
// line 13
if ( !((isset($context["canonicalUrl"]) || array_key_exists("canonicalUrl", $context) ? $context["canonicalUrl"] : (function () { throw new RuntimeError('Variable "canonicalUrl" does not exist.', 13, $this->source); })()) === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 13, $this->source); })()), "request", [], "any", false, false, true, 13), "pathInfo", [], "any", false, false, true, 13))) {
// line 14
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsRobots(), "setNoIndex", [true], "method", false, false, true, 14);
}
// line 17
$context["address"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 17, $this->source); })()), "getAddress", [], "method", false, false, true, 17);
// line 18
$context["maxRatingValue"] = (($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getMaxRatingValue", [])) ?: (5));
// line 19
$context["maxRatingNormalized"] = (($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getMaxRatingNormalized", [])) ?: (5));
// line 21
$context["hasRatingWidget"] = $this->env->getFunction('demi_ratingGetHasRatingWidgetTrustYou')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 21, $this->source); })()), 21, $this->source));
// line 23
$context["resultSetPresent"] = false;
// line 25
if ((((array_key_exists("accommodationResultSet", $context) && !(null === (isset($context["accommodationResultSet"]) || array_key_exists("accommodationResultSet", $context) ? $context["accommodationResultSet"] : (function () { throw new RuntimeError('Variable "accommodationResultSet" does not exist.', 25, $this->source); })()))) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["accommodationResultSet"]) || array_key_exists("accommodationResultSet", $context) ? $context["accommodationResultSet"] : (function () { throw new RuntimeError('Variable "accommodationResultSet" does not exist.', 25, $this->source); })()), "getMinPriceProductSets", [], "any", false, false, true, 25))) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["accommodationResultSet"]) || array_key_exists("accommodationResultSet", $context) ? $context["accommodationResultSet"] : (function () { throw new RuntimeError('Variable "accommodationResultSet" does not exist.', 25, $this->source); })()), "getMinPriceProductSets", [], "method", false, false, true, 25)) > 0))) {
// line 26
$context["resultSetPresent"] = true;
}
// line 29
$context["ajaxUrl"] = $this->env->getFunction('demi_demiUrl')->getCallable()(["accommodation" => // line 30
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 30, $this->source); })())], "demi_acco_ajax");
// line 33
if (twig_in_filter("?", (isset($context["ajaxUrl"]) || array_key_exists("ajaxUrl", $context) ? $context["ajaxUrl"] : (function () { throw new RuntimeError('Variable "ajaxUrl" does not exist.', 33, $this->source); })()))) {
// line 34
$context["parts"] = twig_split_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["ajaxUrl"]) || array_key_exists("ajaxUrl", $context) ? $context["ajaxUrl"] : (function () { throw new RuntimeError('Variable "ajaxUrl" does not exist.', 34, $this->source); })()), 34, $this->source), "?");
// line 35
$context["ajaxUrl"] = twig_get_attribute($this->env, $this->source, (isset($context["parts"]) || array_key_exists("parts", $context) ? $context["parts"] : (function () { throw new RuntimeError('Variable "parts" does not exist.', 35, $this->source); })()), 0, [], "array", false, false, true, 35);
}
// line 38
$context["liveDetailProductsUrl"] = ($this->sandbox->ensureToStringAllowed((isset($context["ajaxUrl"]) || array_key_exists("ajaxUrl", $context) ? $context["ajaxUrl"] : (function () { throw new RuntimeError('Variable "ajaxUrl" does not exist.', 38, $this->source); })()), 38, $this->source) . "?ajaxRequestType=getLiveDetailProducts");
// line 39
$context["corridorMatrixUrl"] = ($this->sandbox->ensureToStringAllowed((isset($context["ajaxUrl"]) || array_key_exists("ajaxUrl", $context) ? $context["ajaxUrl"] : (function () { throw new RuntimeError('Variable "ajaxUrl" does not exist.', 39, $this->source); })()), 39, $this->source) . "?ajaxRequestType=getCorridorMatrix");
// line 40
$context["productUrl"] = ($this->sandbox->ensureToStringAllowed((isset($context["ajaxUrl"]) || array_key_exists("ajaxUrl", $context) ? $context["ajaxUrl"] : (function () { throw new RuntimeError('Variable "ajaxUrl" does not exist.', 40, $this->source); })()), 40, $this->source) . "?ajaxRequestType=getProductByIdAndMealcode");
// line 41
$context["paymentInformationUrl"] = ($this->sandbox->ensureToStringAllowed((isset($context["ajaxUrl"]) || array_key_exists("ajaxUrl", $context) ? $context["ajaxUrl"] : (function () { throw new RuntimeError('Variable "ajaxUrl" does not exist.', 41, $this->source); })()), 41, $this->source) . "?ajaxRequestType=getProductByIdAndMealcode");
// line 43
$context["step1Url"] = $this->env->getFunction('demi_demiUrl')->getCallable()(["path" => twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getCheckoutPath", []), "getFullPath", [], "method", false, false, true, 44), "controller" => "cart", "action" => "step1"], "demi_checkout", true);
// line 49
$context["addToCartUrl"] = (isset($context["step1Url"]) || array_key_exists("step1Url", $context) ? $context["step1Url"] : (function () { throw new RuntimeError('Variable "step1Url" does not exist.', 49, $this->source); })());
// line 52
$context["anchors"] = ["detail" => "#details", "picture" => "#pictures", "package" => "#packages", "rooms" => "#rooms", "rating" => "#ratings"];
// line 60
if ((array_key_exists("activeTab", $context) && !twig_in_filter((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 60, $this->source); })()), (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 60, $this->source); })())))) {
// line 61
$context["activeTab"] = "#details";
} else {
// line 63
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\JsConfigBundle\Twig\Extension\JsConfigExtension']->jsConfig("_initialState"), "add", [["activeTab" => (isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 63, $this->source); })())]], "method", false, false, true, 63);
}
// line 66
if ( !(isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 66, $this->source); })())) {
// line 67
$context["fromDate"] = null;
} else {
// line 69
$context["fromDate"] = $this->env->getFunction('demi_getSearchFrom')->getCallable()();
}
// line 72
$context["imagesTypes"] = $this->env->getFunction('demi_getAccoImagesTypesAsArray')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 72, $this->source); })()), 72, $this->source));
// line 73
$context["imageList"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 73, $this->source); })()), "getImages", [(isset($context["imagesTypes"]) || array_key_exists("imagesTypes", $context) ? $context["imagesTypes"] : (function () { throw new RuntimeError('Variable "imagesTypes" does not exist.', 73, $this->source); })()), (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 73, $this->source); })()), true], "method", false, false, true, 73);
// line 74
$context["photoCount"] = twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["imageList"]) || array_key_exists("imageList", $context) ? $context["imageList"] : (function () { throw new RuntimeError('Variable "imageList" does not exist.', 74, $this->source); })()), 74, $this->source));
// line 75
$context["videoCount"] = twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["impressionLinks"]) || array_key_exists("impressionLinks", $context) ? $context["impressionLinks"] : (function () { throw new RuntimeError('Variable "impressionLinks" does not exist.', 75, $this->source); })()), "video", [], "array", false, false, true, 75), 75, $this->source));
// line 76
$context["panoCount"] = twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["impressionLinks"]) || array_key_exists("impressionLinks", $context) ? $context["impressionLinks"] : (function () { throw new RuntimeError('Variable "impressionLinks" does not exist.', 76, $this->source); })()), "pano", [], "array", false, false, true, 76), 76, $this->source));
// line 78
$context["classifications"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 78, $this->source); })()), "getClassifications", [], "method", false, false, true, 78);
// line 79
$context["hasClassificationsWithIcons"] = false;
// line 80
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["classifications"]) || array_key_exists("classifications", $context) ? $context["classifications"] : (function () { throw new RuntimeError('Variable "classifications" does not exist.', 80, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["classification"]) {
// line 81
$context["group"] = twig_get_attribute($this->env, $this->source, $context["classification"], "getClassificationGroup", [], "method", false, false, true, 81);
// line 82
if (( !twig_test_empty((isset($context["group"]) || array_key_exists("group", $context) ? $context["group"] : (function () { throw new RuntimeError('Variable "group" does not exist.', 82, $this->source); })())) && twig_get_attribute($this->env, $this->source, (isset($context["group"]) || array_key_exists("group", $context) ? $context["group"] : (function () { throw new RuntimeError('Variable "group" does not exist.', 82, $this->source); })()), "getIconSmall", [], "method", false, false, true, 82))) {
// line 83
$context["hasClassificationsWithIcons"] = true;
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['classification'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 86
if ( !twig_test_empty((isset($context["imageList"]) || array_key_exists("imageList", $context) ? $context["imageList"] : (function () { throw new RuntimeError('Variable "imageList" does not exist.', 86, $this->source); })()))) {
// line 87
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsOpenGraph(), "addImage", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["imageList"]) || array_key_exists("imageList", $context) ? $context["imageList"] : (function () { throw new RuntimeError('Variable "imageList" does not exist.', 87, $this->source); })()), 0, [], "array", false, false, true, 87), "getThumbnail", ["slider-main"], "method", false, false, true, 87), "getPath", [], "method", false, false, true, 87)], "method", false, false, true, 87);
}
// line 90
$context["jsonLdData"] = $this->env->getFunction('demi_getAccommodationJsonLdData')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 90, $this->source); })()), 90, $this->source), ((array_key_exists("options", $context)) ? ((isset($context["options"]) || array_key_exists("options", $context) ? $context["options"] : (function () { throw new RuntimeError('Variable "options" does not exist.', 90, $this->source); })())) : ([])), ((array_key_exists("packages", $context)) ? ((isset($context["packages"]) || array_key_exists("packages", $context) ? $context["packages"] : (function () { throw new RuntimeError('Variable "packages" does not exist.', 90, $this->source); })())) : (null)));
// line 92
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\JsonLdBundle\Twig\Extension\JsonLdExtension']->jsonLd(), "add", ["accommodation", (isset($context["jsonLdData"]) || array_key_exists("jsonLdData", $context) ? $context["jsonLdData"] : (function () { throw new RuntimeError('Variable "jsonLdData" does not exist.', 92, $this->source); })())], "method", false, false, true, 92);
// line 94
$this->parent = $this->loadTemplate("@ElementsDemiFrontend/Layout/layout.html.twig", "@ElementsDemiFrontend/Accommodation/detail.desktop.html.twig", 94);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 95
public function block_content($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(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 96
echo " ";
// line 104
echo "
<script type=\"text/javascript\" data-cookieconsent=\"ignore\">
_config.viewType = \"acco\";
_config.historyController = true;
_config.roomSelection = true;
_config.searchData = true;
_config.detailResultUrl = '";
// line 111
echo $this->sandbox->ensureToStringAllowed((isset($context["liveDetailProductsUrl"]) || array_key_exists("liveDetailProductsUrl", $context) ? $context["liveDetailProductsUrl"] : (function () { throw new RuntimeError('Variable "liveDetailProductsUrl" does not exist.', 111, $this->source); })()), 111, $this->source);
echo "';
_config.corridorSearchUrl = '";
// line 112
echo $this->sandbox->ensureToStringAllowed((isset($context["corridorMatrixUrl"]) || array_key_exists("corridorMatrixUrl", $context) ? $context["corridorMatrixUrl"] : (function () { throw new RuntimeError('Variable "corridorMatrixUrl" does not exist.', 112, $this->source); })()), 112, $this->source);
echo "';
_config.detailPaymentInfoUrl = '";
// line 113
echo $this->sandbox->ensureToStringAllowed((isset($context["paymentInformationUrl"]) || array_key_exists("paymentInformationUrl", $context) ? $context["paymentInformationUrl"] : (function () { throw new RuntimeError('Variable "paymentInformationUrl" does not exist.', 113, $this->source); })()), 113, $this->source);
echo "';
_config.detailProductUrl = '";
// line 114
echo $this->sandbox->ensureToStringAllowed((isset($context["productUrl"]) || array_key_exists("productUrl", $context) ? $context["productUrl"] : (function () { throw new RuntimeError('Variable "productUrl" does not exist.', 114, $this->source); })()), 114, $this->source);
echo "';
_config.addToCartUrl = '";
// line 115
echo $this->sandbox->ensureToStringAllowed((isset($context["addToCartUrl"]) || array_key_exists("addToCartUrl", $context) ? $context["addToCartUrl"] : (function () { throw new RuntimeError('Variable "addToCartUrl" does not exist.', 115, $this->source); })()), 115, $this->source);
echo "';
_config.cartWarningOnMultipleAccoProducts = ";
// line 116
echo (($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getWarningOnMultipleAccoProducts", [])) ? ("true") : ("false"));
echo ";
_config.cartInfoUrl = '";
// line 117
echo $this->env->getFunction('demi_checkoutUrl')->getCallable()("cart", "hasAccoInCart");
echo "';
_config.roomList = true;
_config.paramTabs = true;
_config.trackingCountingClicksUrl='";
// line 120
echo $this->sandbox->ensureToStringAllowed((isset($context["countingClicksUriJs"]) || array_key_exists("countingClicksUriJs", $context) ? $context["countingClicksUriJs"] : (function () { throw new RuntimeError('Variable "countingClicksUriJs" does not exist.', 120, $this->source); })()), 120, $this->source);
echo "';
_config.productData = {
id: ";
// line 122
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 122, $this->source); })()), "getId", [], "method", false, false, true, 122), 122, $this->source), "html", null, true);
echo ",
name: \"";
// line 123
echo $this->env->getFunction('demi_impressionName')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 123, $this->source); })()), 123, $this->source));
echo "\",
category: \"";
// line 124
echo $this->env->getFunction('demi_impressionCategory')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 124, $this->source); })()), 124, $this->source), null, $this->sandbox->ensureToStringAllowed((isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 124, $this->source); })()), 124, $this->source));
echo "\",
brand: \"";
// line 125
echo $this->env->getFunction('demi_impressionBrand')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 125, $this->source); })()), 125, $this->source));
echo "\"
};
_config.acommodationMapHideBusinesses = ";
// line 127
echo (($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getMapHideBusinesses", [])) ? ("true") : ("false"));
echo ";
";
// line 129
$context["mealtypeId"] = 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.', 129, $this->source); })()), "getMealTypeId", [], "method", false, false, true, 129);
// line 130
echo " ";
if (( !twig_test_empty((isset($context["mealtypeId"]) || array_key_exists("mealtypeId", $context) ? $context["mealtypeId"] : (function () { throw new RuntimeError('Variable "mealtypeId" does not exist.', 130, $this->source); })())) && is_iterable((isset($context["mealtypeId"]) || array_key_exists("mealtypeId", $context) ? $context["mealtypeId"] : (function () { throw new RuntimeError('Variable "mealtypeId" does not exist.', 130, $this->source); })())))) {
// line 131
echo " ";
$context["mealtypeId"] = twig_get_attribute($this->env, $this->source, (isset($context["mealtypeId"]) || array_key_exists("mealtypeId", $context) ? $context["mealtypeId"] : (function () { throw new RuntimeError('Variable "mealtypeId" does not exist.', 131, $this->source); })()), 0, [], "array", false, false, true, 131);
// line 132
echo " ";
}
// line 133
echo " ";
if ( !twig_test_empty((isset($context["mealtypeId"]) || array_key_exists("mealtypeId", $context) ? $context["mealtypeId"] : (function () { throw new RuntimeError('Variable "mealtypeId" does not exist.', 133, $this->source); })()))) {
// line 134
echo " _config.urlParams = _config.urlParams || [];
_config.urlParams.push( { name : \"mealtype\", value : \"";
// line 135
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["mealtypeId"]) || array_key_exists("mealtypeId", $context) ? $context["mealtypeId"] : (function () { throw new RuntimeError('Variable "mealtypeId" does not exist.', 135, $this->source); })()), 135, $this->source), "html", null, true);
echo "\"} );
";
}
// line 137
echo " ";
if (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.', 137, $this->source); })()), "getBookOnly", [], "method", false, false, true, 137)) {
// line 138
echo " _config.urlParams = _config.urlParams || [];
_config.urlParams.push( { name : \"bookonly\", value : \"on\"} );
";
}
// line 141
echo "
</script>
";
// line 144
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/canonicalOverride.html.twig", ["object" => (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 144, $this->source); })())]);
echo "
";
// line 147
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/tags/detail-acco.html.twig", ["isMobile" => false, "acco" => // line 150
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 150, $this->source); })()), "searchParam" => // line 151
(isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 151, $this->source); })()), "accoResultSet" => // line 152
(isset($context["accommodationResultSet"]) || array_key_exists("accommodationResultSet", $context) ? $context["accommodationResultSet"] : (function () { throw new RuntimeError('Variable "accommodationResultSet" does not exist.', 152, $this->source); })()), "productResultSet" => // line 153
(isset($context["productResultSet"]) || array_key_exists("productResultSet", $context) ? $context["productResultSet"] : (function () { throw new RuntimeError('Variable "productResultSet" does not exist.', 153, $this->source); })()), "packages" => (( // line 154
array_key_exists("packages", $context)) ? ((isset($context["packages"]) || array_key_exists("packages", $context) ? $context["packages"] : (function () { throw new RuntimeError('Variable "packages" does not exist.', 154, $this->source); })())) : (null)), "sortedMarketingGroups" => // line 155
(isset($context["sortedMarketingGroups"]) || array_key_exists("sortedMarketingGroups", $context) ? $context["sortedMarketingGroups"] : (function () { throw new RuntimeError('Variable "sortedMarketingGroups" does not exist.', 155, $this->source); })()), "sortedFacilities" => // line 156
(isset($context["sortedFacilities"]) || array_key_exists("sortedFacilities", $context) ? $context["sortedFacilities"] : (function () { throw new RuntimeError('Variable "sortedFacilities" does not exist.', 156, $this->source); })()), "sortedHealthMeasures" => // line 157
(isset($context["sortedHealthMeasures"]) || array_key_exists("sortedHealthMeasures", $context) ? $context["sortedHealthMeasures"] : (function () { throw new RuntimeError('Variable "sortedHealthMeasures" does not exist.', 157, $this->source); })()), "hasHousePackages" => // line 158
(isset($context["hasHousePackages"]) || array_key_exists("hasHousePackages", $context) ? $context["hasHousePackages"] : (function () { throw new RuntimeError('Variable "hasHousePackages" does not exist.', 158, $this->source); })()), "photoCount" => // line 159
(isset($context["photoCount"]) || array_key_exists("photoCount", $context) ? $context["photoCount"] : (function () { throw new RuntimeError('Variable "photoCount" does not exist.', 159, $this->source); })()), "videoCount" => // line 160
(isset($context["videoCount"]) || array_key_exists("videoCount", $context) ? $context["videoCount"] : (function () { throw new RuntimeError('Variable "videoCount" does not exist.', 160, $this->source); })()), "panoCount" => // line 161
(isset($context["panoCount"]) || array_key_exists("panoCount", $context) ? $context["panoCount"] : (function () { throw new RuntimeError('Variable "panoCount" does not exist.', 161, $this->source); })())]);
// line 163
echo "
<main id=\"main\" role=\"main\">
<div hidden>
";
// line 167
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/lightboxTopbar.html.twig");
echo "
</div>
";
// line 170
$context["headerName"] = "full";
// line 171
echo " ";
$context["width"] = 0;
// line 172
echo " ";
$context["forceMultiHeader"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 172, $this->source); })()), "getForceMultiHeader", [], "method", false, false, true, 172);
// line 173
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 173, $this->source); })()), "getFirstImage", [null, (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 173, $this->source); })())], "method", false, false, true, 173))) {
// line 174
echo " ";
$context["width"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 174, $this->source); })()), "getFirstImage", [null, (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 174, $this->source); })())], "method", false, false, true, 174), "getCustomSettings", [], "method", false, false, true, 174), "imageWidth", [], "array", false, false, true, 174);
// line 175
echo " ";
}
// line 176
echo " ";
if ((((isset($context["width"]) || array_key_exists("width", $context) ? $context["width"] : (function () { throw new RuntimeError('Variable "width" does not exist.', 176, $this->source); })()) < $this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getMinWidthForFullHeader", [])) || (isset($context["forceMultiHeader"]) || array_key_exists("forceMultiHeader", $context) ? $context["forceMultiHeader"] : (function () { throw new RuntimeError('Variable "forceMultiHeader" does not exist.', 176, $this->source); })()))) {
// line 177
echo " ";
$context["headerName"] = "multi-image";
// line 178
echo " ";
}
// line 179
echo "
";
// line 180
if (((twig_length_filter($this->env, (isset($context["imageList"]) || array_key_exists("imageList", $context) ? $context["imageList"] : (function () { throw new RuntimeError('Variable "imageList" does not exist.', 180, $this->source); })())) >= 3) || ((isset($context["headerName"]) || array_key_exists("headerName", $context) ? $context["headerName"] : (function () { throw new RuntimeError('Variable "headerName" does not exist.', 180, $this->source); })()) == "full"))) {
// line 181
echo " ";
$context["heroImageAlt"] = ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 181, $this->source); })()), "getName", [], "method", false, false, true, 181), 181, $this->source) . " - Impression #1");
// line 182
echo " ";
echo twig_include($this->env, $context, (("@ElementsDemiFrontend/Accommodation/includes/acco-header-" . $this->sandbox->ensureToStringAllowed((isset($context["headerName"]) || array_key_exists("headerName", $context) ? $context["headerName"] : (function () { throw new RuntimeError('Variable "headerName" does not exist.', 182, $this->source); })()), 182, $this->source)) . ".desktop.html.twig"), ["photoCount" => // line 184
(isset($context["photoCount"]) || array_key_exists("photoCount", $context) ? $context["photoCount"] : (function () { throw new RuntimeError('Variable "photoCount" does not exist.', 184, $this->source); })()), "videoCount" => // line 185
(isset($context["videoCount"]) || array_key_exists("videoCount", $context) ? $context["videoCount"] : (function () { throw new RuntimeError('Variable "videoCount" does not exist.', 185, $this->source); })()), "panoCount" => // line 186
(isset($context["panoCount"]) || array_key_exists("panoCount", $context) ? $context["panoCount"] : (function () { throw new RuntimeError('Variable "panoCount" does not exist.', 186, $this->source); })()), "imageList" => // line 187
(isset($context["imageList"]) || array_key_exists("imageList", $context) ? $context["imageList"] : (function () { throw new RuntimeError('Variable "imageList" does not exist.', 187, $this->source); })()), "alt" => // line 188
(isset($context["heroImageAlt"]) || array_key_exists("heroImageAlt", $context) ? $context["heroImageAlt"] : (function () { throw new RuntimeError('Variable "heroImageAlt" does not exist.', 188, $this->source); })())]);
// line 190
echo "
";
}
// line 193
echo "
";
// line 194
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/elements/search-info.desktop.html.twig", ["searchParam" => (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 194, $this->source); })()), "availabilityIsChecked" => (isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 194, $this->source); })()), "isSearch" => false]);
echo "
<div class=\"container mt-5\">
<div class=\"row\">
<div class=\"col-xl-9 col-12\">
<div class=\"row mb-5\">
<div class=\"col\">
";
// line 201
if (twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 201, $this->source); })()), "getIsTesthotel", [], "method", false, false, true, 201)) {
// line 202
echo " <div class=\"demi-test-acco-notice mb-3 text-danger\"><strong>Testbetrieb</strong> nur für Debug/aktive Pimcore User sichtbar</div>
";
}
// line 204
echo " <h1 class=\"text-primary";
echo (((isset($context["hasClassificationsWithIcons"]) || array_key_exists("hasClassificationsWithIcons", $context) ? $context["hasClassificationsWithIcons"] : (function () { throw new RuntimeError('Variable "hasClassificationsWithIcons" does not exist.', 204, $this->source); })())) ? (" mb-2") : (" mb-4"));
echo "\">";
echo $this->env->getFunction('demi_getAccoNameWithStars')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 204, $this->source); })()), 204, $this->source));
echo "</h1>
";
// line 205
$context["i"] = 0;
// line 206
echo " ";
$context["len"] = twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["classifications"]) || array_key_exists("classifications", $context) ? $context["classifications"] : (function () { throw new RuntimeError('Variable "classifications" does not exist.', 206, $this->source); })()), 206, $this->source));
// line 207
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["classifications"]) || array_key_exists("classifications", $context) ? $context["classifications"] : (function () { throw new RuntimeError('Variable "classifications" does not exist.', 207, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["classification"]) {
// line 208
echo " <div class=\"row";
echo ((((isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 208, $this->source); })()) == ((isset($context["len"]) || array_key_exists("len", $context) ? $context["len"] : (function () { throw new RuntimeError('Variable "len" does not exist.', 208, $this->source); })()) - 1))) ? (" mb-4") : (" mb-2"));
echo "\">
<div class=\"col col-auto\">
";
// line 210
$context["count"] = twig_get_attribute($this->env, $this->source, $context["classification"], "getClassificationGroupAmount", [], "method", false, false, true, 210);
// line 211
echo " ";
if ((( !twig_test_empty((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 211, $this->source); })())) && twig_get_attribute($this->env, $this->source, $context["classification"], "getShowAsIcon", [], "method", false, false, true, 211)) && !(null === twig_get_attribute($this->env, $this->source, $context["classification"], "demiGetIcon", [], "method", false, false, true, 211)))) {
// line 212
echo " <span class=\"classification_holder hidden-xs\" aria-label=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 212, $this->source); })()), 212, $this->source), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["classification"], "getName", [], "method", false, false, true, 212), 212, $this->source), "html", null, true);
echo "\">
";
// line 213
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, (isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 213, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["c"]) {
// line 214
echo "
";
// line 215
$context["thumbnail"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["classification"], "demiGetIcon", [], "method", false, false, true, 215), "getThumbnail", ["demi-classification"], "method", false, false, true, 215);
// line 216
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["thumbnail"]) || array_key_exists("thumbnail", $context) ? $context["thumbnail"] : (function () { throw new RuntimeError('Variable "thumbnail" does not exist.', 216, $this->source); })()), "getHTML", [], "method", false, false, true, 216), 216, $this->source);
echo "
";
// line 218
if (twig_get_attribute($this->env, $this->source, $context["classification"], "getIsSuperior", [], "method", false, false, true, 218)) {
// line 219
echo " <span class=\"classification-superior\">S</span>
";
}
// line 221
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['c'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 222
echo " </span>
";
}
// line 224
echo " </div>
</div>
";
// line 226
$context["i"] = ((isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 226, $this->source); })()) + 1);
// line 227
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['classification'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 228
echo "
<div class=\"row mb-2\">
<div class=\"col col-auto\">
";
// line 231
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 231, $this->source); })()), "getCategoryNames", [2], "method", false, false, true, 231), 231, $this->source), "html", null, true);
echo "
</div>
<div class=\"col col-auto\">
<div class=\"media text-muted\">
<script>
_config.smoothScroll = true;
</script>
<a class=\"media text-muted js-smoothscroll__link\" href=\"#acco-contact\">
";
// line 239
if (( !(null === twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 239, $this->source); })()), "getTown", [], "method", false, false, true, 239)) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 239, $this->source); })()), "getTown", [], "method", false, false, true, 239), "getNameLocalized", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 239, $this->source); })()), "request", [], "any", false, false, true, 239), "locale", [], "any", false, false, true, 239)], "method", false, false, true, 239) || twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 239, $this->source); })()), "getTown", [], "method", false, false, true, 239), "getName", [], "method", false, false, true, 239)))) {
// line 240
echo " <div class=\"demi-icon demi-icon-marker mr-1 icon-in-text\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.list.town"), "html", null, true);
echo "\" aria-label=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.list.town"), "html", null, true);
echo "\"></div>
<div class=\"media-body\">
";
// line 242
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["accommodation"] ?? null), "getTown", [], "method", false, true, true, 242), "getNameLocalized", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 242, $this->source); })()), "request", [], "any", false, false, true, 242), "locale", [], "any", false, false, true, 242)], "method", true, true, true, 242) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["accommodation"] ?? null), "getTown", [], "method", false, true, true, 242), "getNameLocalized", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 242, $this->source); })()), "request", [], "any", false, false, true, 242), "locale", [], "any", false, false, true, 242)], "method", false, false, true, 242)))) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["accommodation"] ?? null), "getTown", [], "method", false, true, true, 242), "getNameLocalized", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 242, $this->source); })()), "request", [], "any", false, false, true, 242), "locale", [], "any", false, false, true, 242)], "method", false, false, true, 242)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 242, $this->source); })()), "getTown", [], "method", false, false, true, 242), "getName", [], "method", false, false, true, 242))), "html", null, true);
echo "
</div>
";
} elseif (( !(null === twig_get_attribute($this->env, $this->source, // line 244
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 244, $this->source); })()), "getDistrict", [], "method", false, false, true, 244)) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 244, $this->source); })()), "getDistrict", [], "method", false, false, true, 244), "getNameLocalized", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 244, $this->source); })()), "request", [], "any", false, false, true, 244), "locale", [], "any", false, false, true, 244)], "method", false, false, true, 244) || twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 244, $this->source); })()), "getDistrict", [], "method", false, false, true, 244), "getName", [], "method", false, false, true, 244)))) {
// line 245
echo " <div class=\"demi-icon demi-icon-marker mr-1 icon-in-text\" title=\"<?= \$this->translate('demi.list.town') ?>\" aria-label=\"<?= \$this->translate('demi.list.town') ?>\"></div>
<div class=\"media-body\">
";
// line 247
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["accommodation"] ?? null), "getDistrict", [], "method", false, true, true, 247), "getNameLocalized", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 247, $this->source); })()), "request", [], "any", false, false, true, 247), "locale", [], "any", false, false, true, 247)], "method", true, true, true, 247) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["accommodation"] ?? null), "getDistrict", [], "method", false, true, true, 247), "getNameLocalized", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 247, $this->source); })()), "request", [], "any", false, false, true, 247), "locale", [], "any", false, false, true, 247)], "method", false, false, true, 247)))) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["accommodation"] ?? null), "getDistrict", [], "method", false, true, true, 247), "getNameLocalized", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 247, $this->source); })()), "request", [], "any", false, false, true, 247), "locale", [], "any", false, false, true, 247)], "method", false, false, true, 247)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 247, $this->source); })()), "getDistrict", [], "method", false, false, true, 247), "getName", [], "method", false, false, true, 247))), "html", null, true);
echo "
</div>
";
} elseif (( // line 249
(isset($context["address"]) || array_key_exists("address", $context) ? $context["address"] : (function () { throw new RuntimeError('Variable "address" does not exist.', 249, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["address"]) || array_key_exists("address", $context) ? $context["address"] : (function () { throw new RuntimeError('Variable "address" does not exist.', 249, $this->source); })()), "getTown", [], "method", false, false, true, 249))) {
// line 250
echo " <div class=\"demi-icon demi-icon-marker mr-1 icon-in-text\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.town"), "html", null, true);
echo " ?>\" aria-label=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.town"), "html", null, true);
echo "\"></div>
<div class=\"media-body\">
";
// line 252
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["address"]) || array_key_exists("address", $context) ? $context["address"] : (function () { throw new RuntimeError('Variable "address" does not exist.', 252, $this->source); })()), "getTown", [], "method", false, false, true, 252), 252, $this->source), "html", null, true);
echo "
</div>
";
}
// line 255
echo " </a>
</div>
</div>
<div class=\"col col-auto\">
";
// line 259
if (array_key_exists("distance", $context)) {
// line 260
echo " <div class=\"media text-muted\">
<span class=\"badge badge-primary mr-1\">";
// line 261
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["distance"]) || array_key_exists("distance", $context) ? $context["distance"] : (function () { throw new RuntimeError('Variable "distance" does not exist.', 261, $this->source); })()), "value", [], "array", false, false, true, 261), 261, $this->source), "html", null, true);
echo "</span>
<div class=\"media-body\">
<span class=\"text-primary\">";
// line 263
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["distance"]) || array_key_exists("distance", $context) ? $context["distance"] : (function () { throw new RuntimeError('Variable "distance" does not exist.', 263, $this->source); })()), "from", [], "array", false, false, true, 263), 263, $this->source), "html", null, true);
echo "</span>
</div>
</div>
";
}
// line 267
echo " </div>
</div>
</div>
<div class=\"col col-auto\">
<div class=\"mb-4\">
";
// line 273
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/serviceprovider-logo.html.twig", ["logo" => twig_first($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, // line 274
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 274, $this->source); })()), "getImages", [[twig_constant("Elements\\Demi\\Deskline\\Constant\\DocumentInterface::DOCUMENT_TYPE_SERVICE_PROVIDER_LOGO")]], "method", false, false, true, 274), 274, $this->source))]);
// line 275
echo "
</div>
<div>
";
// line 278
if ((twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 278, $this->source); })()), "getRatingSystem", [], "method", false, false, true, 278) == "TrustYou")) {
// line 279
echo " ";
$context["normalizedRating"] = $this->env->getFunction('demi_ratingGetNormalized')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 279, $this->source); })()), 279, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["maxRatingValue"]) || array_key_exists("maxRatingValue", $context) ? $context["maxRatingValue"] : (function () { throw new RuntimeError('Variable "maxRatingValue" does not exist.', 279, $this->source); })()), 279, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["maxRatingNormalized"]) || array_key_exists("maxRatingNormalized", $context) ? $context["maxRatingNormalized"] : (function () { throw new RuntimeError('Variable "maxRatingNormalized" does not exist.', 279, $this->source); })()), 279, $this->source));
// line 280
echo " ";
if ( !twig_test_empty((isset($context["normalizedRating"]) || array_key_exists("normalizedRating", $context) ? $context["normalizedRating"] : (function () { throw new RuntimeError('Variable "normalizedRating" does not exist.', 280, $this->source); })()))) {
// line 281
echo " ";
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/rating-md.html.twig", ["score" => // line 282
(isset($context["normalizedRating"]) || array_key_exists("normalizedRating", $context) ? $context["normalizedRating"] : (function () { throw new RuntimeError('Variable "normalizedRating" does not exist.', 282, $this->source); })()), "text" => twig_get_attribute($this->env, $this->source, // line 283
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 283, $this->source); })()), "getRatingScoreDescription", [], "method", false, false, true, 283), "styleModifier" => "mb-1", "showReviewCount" => true, "ratingCount" => twig_get_attribute($this->env, $this->source, // line 286
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 286, $this->source); })()), "getRatingCountDirect", [], "method", false, false, true, 286), "isTextWhite" => false]);
// line 288
echo "
";
}
// line 290
echo " ";
}
// line 291
echo " </div>
</div>
<div class=\"col col-auto\">
<div class=\"row\">
<div class=\"col col-auto d-xl-none d-md-block\">
<div class=\"ml-3\" aria-live=\"polite\">
<div class=\"js-room-list__loading js-corridor__search-info-loading--compact\" hidden>
<div class=\"text-center py-3\">
";
// line 300
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/elements/spinner/loading-spinner.html.twig");
echo "
</div>
</div>
<div class=\"js-room-list__content js-corridor__search-info-content--compact\" data-list=\"searchInfoCompact\">
";
// line 305
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/searchInfoBoxCompact.desktop.html.twig", ["accommodationResultSet" => // line 306
(isset($context["accommodationResultSet"]) || array_key_exists("accommodationResultSet", $context) ? $context["accommodationResultSet"] : (function () { throw new RuntimeError('Variable "accommodationResultSet" does not exist.', 306, $this->source); })()), "productResultSet" => // line 307
(isset($context["productResultSet"]) || array_key_exists("productResultSet", $context) ? $context["productResultSet"] : (function () { throw new RuntimeError('Variable "productResultSet" does not exist.', 307, $this->source); })()), "accommodation" => // line 308
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 308, $this->source); })())]);
// line 309
echo "
</div>
</div>
</div>
</div>
</div>
</div>
<script data-cookieconsent=\"ignore\">
_config.loadAccoImages = true;
</script>
<div class=\"mt-3\">
<ul class=\"nav nav-border-tabs\" role=\"tablist\">
<li class=\"nav-item\">
<a class=\"nav-link js-param-tab";
// line 325
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 325, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 325, $this->source); })()), "detail", [], "array", false, false, true, 325))) ? (" active") : (""));
echo " js-tracking js-tracking--click\"
href=\"";
// line 326
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 326, $this->source); })()), "detail", [], "array", false, false, true, 326), 326, $this->source), "html", null, true);
echo "\"
data-toggle=\"tab\"
role=\"tab\"
aria-expanded=\"";
// line 329
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 329, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 329, $this->source); })()), "detail", [], "array", false, false, true, 329))) ? ("true") : ("false"));
echo "\"
data-tracking-category=\"button\"
data-tracking-action=\"detail\"
data-tracking-label=\"";
// line 332
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 332, $this->source); })()), "getName", [], "method", false, false, true, 332), 332, $this->source));
echo "\">
";
// line 333
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.tab.overview"), "html", null, true);
echo "
</a>
</li>
";
// line 336
if ((isset($context["hasRatingWidget"]) || array_key_exists("hasRatingWidget", $context) ? $context["hasRatingWidget"] : (function () { throw new RuntimeError('Variable "hasRatingWidget" does not exist.', 336, $this->source); })())) {
// line 337
echo " <li class=\"nav-item\">
<a class=\"nav-link js-param-tab";
// line 338
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 338, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 338, $this->source); })()), "rating", [], "array", false, false, true, 338))) ? (" active") : (""));
echo " js-tracking js-tracking--click\"
href=\"";
// line 339
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 339, $this->source); })()), "rating", [], "array", false, false, true, 339), 339, $this->source), "html", null, true);
echo "\"
data-toggle=\"tab\"
role=\"tab\"
aria-expanded=\"";
// line 342
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 342, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 342, $this->source); })()), "rating", [], "array", false, false, true, 342))) ? ("true") : ("false"));
echo "\"
data-tracking-category=\"button\"
data-tracking-action=\"rating\"
data-tracking-label=\"";
// line 345
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 345, $this->source); })()), "getName", [], "method", false, false, true, 345), 345, $this->source));
echo "\">
";
// line 346
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.tab.ratings"), "html", null, true);
echo "
</a>
</li>
";
}
// line 350
echo " <li class=\"nav-item\">
<a class=\"nav-link js-param-tab js-acco-images__tab";
// line 351
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 351, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 351, $this->source); })()), "picture", [], "array", false, false, true, 351))) ? (" active") : (""));
echo " js-tracking js-tracking--click\"
href=\"";
// line 352
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 352, $this->source); })()), "picture", [], "array", false, false, true, 352), 352, $this->source), "html", null, true);
echo "\"
data-toggle=\"tab\"
role=\"tab\"
aria-expanded=\"";
// line 355
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 355, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 355, $this->source); })()), "picture", [], "array", false, false, true, 355))) ? ("true") : ("false"));
echo "\"
data-tracking-category=\"button\"
data-tracking-action=\"picture\"
data-tracking-label=\"";
// line 358
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 358, $this->source); })()), "getName", [], "method", false, false, true, 358), 358, $this->source));
echo "\">
";
// line 359
if (((isset($context["videoCount"]) || array_key_exists("videoCount", $context) ? $context["videoCount"] : (function () { throw new RuntimeError('Variable "videoCount" does not exist.', 359, $this->source); })()) == 0)) {
// line 360
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.tab.photos"), "html", null, true);
echo "
";
} else {
// line 362
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.tab.photos-videos"), "html", null, true);
echo "
";
}
// line 364
echo " </a>
</li>
";
// line 366
if (( !twig_test_empty((isset($context["hasHousePackages"]) || array_key_exists("hasHousePackages", $context) ? $context["hasHousePackages"] : (function () { throw new RuntimeError('Variable "hasHousePackages" does not exist.', 366, $this->source); })())) || (( !twig_test_empty((isset($context["destinationPackages"]) || array_key_exists("destinationPackages", $context) ? $context["destinationPackages"] : (function () { throw new RuntimeError('Variable "destinationPackages" does not exist.', 366, $this->source); })())) && (twig_length_filter($this->env, (isset($context["destinationPackages"]) || array_key_exists("destinationPackages", $context) ? $context["destinationPackages"] : (function () { throw new RuntimeError('Variable "destinationPackages" does not exist.', 366, $this->source); })())) > 0)) && $this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getShowDestinationPackagesOnAccoDetail", [])))) {
// line 367
echo " <li class=\"nav-item\">
<a class=\"nav-link js-param-tab";
// line 368
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 368, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 368, $this->source); })()), "package", [], "array", false, false, true, 368))) ? (" active") : (""));
echo " js-tracking js-tracking--click\"
href=\"";
// line 369
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 369, $this->source); })()), "package", [], "array", false, false, true, 369), 369, $this->source), "html", null, true);
echo "\"
data-toggle=\"tab\"
role=\"tab\" aria-expanded=\"";
// line 371
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 371, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 371, $this->source); })()), "package", [], "array", false, false, true, 371))) ? ("true") : ("false"));
echo "\"
data-tracking-category=\"button\"
data-tracking-action=\"package\"
data-tracking-label=\"";
// line 374
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 374, $this->source); })()), "getName", [], "method", false, false, true, 374), 374, $this->source));
echo "\">
";
// line 375
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.tab.packages"), "html", null, true);
echo "
</a>
</li>
";
}
// line 379
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 379, $this->source); })()), "getAccommodations", [false], "method", false, false, true, 379)) > 0)) {
// line 380
echo " <li class=\"nav-item\">
<a class=\"nav-link js-param-tab";
// line 381
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 381, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 381, $this->source); })()), "rooms", [], "array", false, false, true, 381))) ? (" active") : (""));
echo " js-tracking js-tracking--click\"
href=\"";
// line 382
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 382, $this->source); })()), "rooms", [], "array", false, false, true, 382), 382, $this->source), "html", null, true);
echo "\"
data-toggle=\"tab\"
role=\"tab\"
aria-expanded=\"";
// line 385
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 385, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 385, $this->source); })()), "rooms", [], "array", false, false, true, 385))) ? ("true") : ("false"));
echo "\"
data-tracking-category=\"button\"
data-tracking-action=\"";
// line 387
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->env->getFunction('demi_getRoomsTabTranslationKey')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 387, $this->source); })()), 387, $this->source))), "html", null, true);
echo " & ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.tab.prices"), "html", null, true);
echo "\"
data-tracking-label=\"rooms\">
";
// line 389
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->env->getFunction('demi_getRoomsTabTranslationKey')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 389, $this->source); })()), 389, $this->source))), "html", null, true);
echo " & ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.tab.prices"), "html", null, true);
echo "
</a>
</li>
";
}
// line 393
echo " </ul>
</div>
<div class=\"pb-4 pt-2\">
<div class=\"tab-content\">
<div class=\"tab-pane pt-2";
// line 398
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 398, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 398, $this->source); })()), "detail", [], "array", false, false, true, 398))) ? (" active") : (""));
echo "\" id=\"details\" role=\"tabpanel\">
";
// line 400
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/acco-details.desktop.html.twig", ["package" => false, "address" => // line 402
(isset($context["address"]) || array_key_exists("address", $context) ? $context["address"] : (function () { throw new RuntimeError('Variable "address" does not exist.', 402, $this->source); })()), "photoCount" => // line 403
(isset($context["photoCount"]) || array_key_exists("photoCount", $context) ? $context["photoCount"] : (function () { throw new RuntimeError('Variable "photoCount" does not exist.', 403, $this->source); })()), "availabilityIsChecked" => // line 404
(isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 404, $this->source); })()), "fromDate" => // line 405
(isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 405, $this->source); })()), "accommdationResultSet" => // line 406
(isset($context["accommodationResultSet"]) || array_key_exists("accommodationResultSet", $context) ? $context["accommodationResultSet"] : (function () { throw new RuntimeError('Variable "accommodationResultSet" does not exist.', 406, $this->source); })())]);
// line 407
echo "
</div>
";
// line 411
if ((isset($context["hasRatingWidget"]) || array_key_exists("hasRatingWidget", $context) ? $context["hasRatingWidget"] : (function () { throw new RuntimeError('Variable "hasRatingWidget" does not exist.', 411, $this->source); })())) {
// line 412
echo " <div class=\"tab-pane pt-2";
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 412, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 412, $this->source); })()), "rating", [], "array", false, false, true, 412))) ? (" active") : (""));
echo "\" id=\"ratings\" role=\"tabpanel\">
";
// line 413
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/acco-ratings.desktop.html.twig", ["hasRatingWidget" => (isset($context["hasRatingWidget"]) || array_key_exists("hasRatingWidget", $context) ? $context["hasRatingWidget"] : (function () { throw new RuntimeError('Variable "hasRatingWidget" does not exist.', 413, $this->source); })()), "package" => false]);
echo "
</div>
";
}
// line 416
echo "
<div class=\"tab-pane pt-2";
// line 417
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 417, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 417, $this->source); })()), "picture", [], "array", false, false, true, 417))) ? (" active") : (""));
echo "\" id=\"pictures\" role=\"tabpanel\">
";
// line 419
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/acco-pictures.desktop.html.twig", ["photoCount" => // line 420
(isset($context["photoCount"]) || array_key_exists("photoCount", $context) ? $context["photoCount"] : (function () { throw new RuntimeError('Variable "photoCount" does not exist.', 420, $this->source); })()), "videoCount" => // line 421
(isset($context["videoCount"]) || array_key_exists("videoCount", $context) ? $context["videoCount"] : (function () { throw new RuntimeError('Variable "videoCount" does not exist.', 421, $this->source); })()), "panoCount" => // line 422
(isset($context["panoCount"]) || array_key_exists("panoCount", $context) ? $context["panoCount"] : (function () { throw new RuntimeError('Variable "panoCount" does not exist.', 422, $this->source); })()), "impressionsLinks" => // line 423
(isset($context["impressionLinks"]) || array_key_exists("impressionLinks", $context) ? $context["impressionLinks"] : (function () { throw new RuntimeError('Variable "impressionLinks" does not exist.', 423, $this->source); })()), "fromDate" => // line 424
(isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 424, $this->source); })()), "imageList" => // line 425
(isset($context["imageList"]) || array_key_exists("imageList", $context) ? $context["imageList"] : (function () { throw new RuntimeError('Variable "imageList" does not exist.', 425, $this->source); })()), "accoId" => twig_get_attribute($this->env, $this->source, // line 426
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 426, $this->source); })()), "getId", [], "method", false, false, true, 426), "package" => false]);
// line 428
echo "
</div>
";
// line 432
if (((isset($context["hasHousePackages"]) || array_key_exists("hasHousePackages", $context) ? $context["hasHousePackages"] : (function () { throw new RuntimeError('Variable "hasHousePackages" does not exist.', 432, $this->source); })()) || (( !twig_test_empty((isset($context["destinationPackages"]) || array_key_exists("destinationPackages", $context) ? $context["destinationPackages"] : (function () { throw new RuntimeError('Variable "destinationPackages" does not exist.', 432, $this->source); })())) && (twig_length_filter($this->env, (isset($context["destinationPackages"]) || array_key_exists("destinationPackages", $context) ? $context["destinationPackages"] : (function () { throw new RuntimeError('Variable "destinationPackages" does not exist.', 432, $this->source); })())) > 0)) && $this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getShowDestinationPackagesOnAccoDetail", [])))) {
// line 433
echo " <div class=\"tab-pane pt-2";
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 433, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 433, $this->source); })()), "package", [], "array", false, false, true, 433))) ? (" active") : (""));
echo "\" id=\"packages\" role=\"tabpanel\">
";
// line 435
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/acco-packages.desktop.html.twig");
echo "
</div>
";
}
// line 439
echo "
";
// line 440
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 440, $this->source); })()), "getAccommodations", [false], "method", false, false, true, 440)) > 0)) {
// line 441
echo " <div class=\"tab-pane pt-2";
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 441, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 441, $this->source); })()), "rooms", [], "array", false, false, true, 441))) ? (" active") : (""));
echo "\" id=\"rooms\" role=\"tabpanel\">
";
// line 443
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig", ["availabilityIsChecked" => // line 444
(isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 444, $this->source); })()), "resultSetPresent" => // line 445
(isset($context["resultSetPresent"]) || array_key_exists("resultSetPresent", $context) ? $context["resultSetPresent"] : (function () { throw new RuntimeError('Variable "resultSetPresent" does not exist.', 445, $this->source); })()), "package" => null, "tvbPackage" => null, "housePackageMaster" => null]);
// line 449
echo "
</div>
";
}
// line 453
echo " </div>
</div>
</div>
";
// line 458
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/acco-sidebar.desktop.html.twig", ["accommodationResultSet" => // line 459
(isset($context["accommodationResultSet"]) || array_key_exists("accommodationResultSet", $context) ? $context["accommodationResultSet"] : (function () { throw new RuntimeError('Variable "accommodationResultSet" does not exist.', 459, $this->source); })()), "isPackage" => false]);
// line 461
echo "
</div>
</div>
</main>
";
// line 466
if (((($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getDisableEnquiry", []) != true) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 466, $this->source); })()), "getAddress", [], "method", false, false, true, 466))) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 466, $this->source); })()), "getAddress", [], "method", false, false, true, 466), "getEmail", [], "method", false, false, true, 466)))) {
// line 467
echo "
";
// line 468
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/overlays/inquiry-overlay.html.twig", ["accommodation" => // line 469
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 469, $this->source); })()), "searchParams" => // line 470
(isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 470, $this->source); })()), "user" => // line 471
(isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 471, $this->source); })())]);
// line 472
echo "
";
}
// line 474
echo "
";
// line 475
if ($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getWarningOnMultipleAccoProducts", [])) {
// line 476
echo " ";
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/modals/warningOnMultipleAccoProductsModal.html.twig", ["cartUrl" => (isset($context["step1Url"]) || array_key_exists("step1Url", $context) ? $context["step1Url"] : (function () { throw new RuntimeError('Variable "step1Url" does not exist.', 476, $this->source); })())]);
echo "
";
}
// line 478
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@ElementsDemiFrontend/Accommodation/detail.desktop.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 927 => 478, 921 => 476, 919 => 475, 916 => 474, 912 => 472, 910 => 471, 909 => 470, 908 => 469, 907 => 468, 904 => 467, 902 => 466, 895 => 461, 893 => 459, 892 => 458, 885 => 453, 879 => 449, 877 => 445, 876 => 444, 875 => 443, 869 => 441, 867 => 440, 864 => 439, 857 => 435, 851 => 433, 849 => 432, 843 => 428, 841 => 426, 840 => 425, 839 => 424, 838 => 423, 837 => 422, 836 => 421, 835 => 420, 834 => 419, 829 => 417, 826 => 416, 820 => 413, 815 => 412, 813 => 411, 807 => 407, 805 => 406, 804 => 405, 803 => 404, 802 => 403, 801 => 402, 800 => 400, 795 => 398, 788 => 393, 779 => 389, 772 => 387, 767 => 385, 761 => 382, 757 => 381, 754 => 380, 751 => 379, 744 => 375, 740 => 374, 734 => 371, 729 => 369, 725 => 368, 722 => 367, 720 => 366, 716 => 364, 710 => 362, 704 => 360, 702 => 359, 698 => 358, 692 => 355, 686 => 352, 682 => 351, 679 => 350, 672 => 346, 668 => 345, 662 => 342, 656 => 339, 652 => 338, 649 => 337, 647 => 336, 641 => 333, 637 => 332, 631 => 329, 625 => 326, 621 => 325, 603 => 309, 601 => 308, 600 => 307, 599 => 306, 598 => 305, 590 => 300, 579 => 291, 576 => 290, 572 => 288, 570 => 286, 569 => 283, 568 => 282, 566 => 281, 563 => 280, 560 => 279, 558 => 278, 553 => 275, 551 => 274, 550 => 273, 542 => 267, 535 => 263, 530 => 261, 527 => 260, 525 => 259, 519 => 255, 513 => 252, 505 => 250, 503 => 249, 498 => 247, 494 => 245, 492 => 244, 487 => 242, 479 => 240, 477 => 239, 466 => 231, 461 => 228, 455 => 227, 453 => 226, 449 => 224, 445 => 222, 439 => 221, 435 => 219, 433 => 218, 427 => 216, 425 => 215, 422 => 214, 418 => 213, 411 => 212, 408 => 211, 406 => 210, 400 => 208, 395 => 207, 392 => 206, 390 => 205, 383 => 204, 379 => 202, 377 => 201, 367 => 194, 364 => 193, 359 => 190, 357 => 188, 356 => 187, 355 => 186, 354 => 185, 353 => 184, 351 => 182, 348 => 181, 346 => 180, 343 => 179, 340 => 178, 337 => 177, 334 => 176, 331 => 175, 328 => 174, 325 => 173, 322 => 172, 319 => 171, 317 => 170, 311 => 167, 305 => 163, 303 => 161, 302 => 160, 301 => 159, 300 => 158, 299 => 157, 298 => 156, 297 => 155, 296 => 154, 295 => 153, 294 => 152, 293 => 151, 292 => 150, 291 => 147, 285 => 144, 280 => 141, 275 => 138, 272 => 137, 267 => 135, 264 => 134, 261 => 133, 258 => 132, 255 => 131, 252 => 130, 250 => 129, 245 => 127, 240 => 125, 236 => 124, 232 => 123, 228 => 122, 223 => 120, 217 => 117, 213 => 116, 209 => 115, 205 => 114, 201 => 113, 197 => 112, 193 => 111, 184 => 104, 182 => 96, 172 => 95, 161 => 94, 159 => 92, 157 => 90, 154 => 87, 152 => 86, 145 => 83, 143 => 82, 141 => 81, 137 => 80, 135 => 79, 133 => 78, 131 => 76, 129 => 75, 127 => 74, 125 => 73, 123 => 72, 120 => 69, 117 => 67, 115 => 66, 112 => 63, 109 => 61, 107 => 60, 105 => 52, 103 => 49, 101 => 43, 99 => 41, 97 => 40, 95 => 39, 93 => 38, 90 => 35, 88 => 34, 86 => 33, 84 => 30, 83 => 29, 80 => 26, 78 => 25, 76 => 23, 74 => 21, 72 => 19, 70 => 18, 68 => 17, 65 => 14, 63 => 13, 61 => 11, 59 => 10, 57 => 9, 54 => 3, 52 => 2, 50 => 1, 37 => 94,);
}
public function getSourceContext()
{
return new Source("{% if not editmode %}
{% do elements_head_title().setTitle( demi_seoTitleForAcco(accommodation,document), true ) %}
{% do elements_head_meta().setDescription( demi_seoDescriptionforAcco(accommodation), true ) %}
{% endif %}
{#{% set canonicalUrl = demi_demiUrl({#}
{# 'accommodation': accommodation#}
{#},'demi_acco_detail_page',true) %}#}
{% set canonicalUrl = linkGenerator().generate(accommodation, {canonical: true, relative: false, reset: true}) %}
{% do elements_canonical().checkAllParams(false).setDomain(canonicalUrl)|raw %}
{% do demi_paymentSetDefaultCurrency(accommodation) %}
{% if not canonicalUrl is same as(app.request.pathInfo) %}
{% do elements_robots().setNoIndex(true) %}
{% endif %}
{% set address = accommodation.getAddress() %}
{% set maxRatingValue = demi_core_configuration('getMaxRatingValue',[]) ?: 5 %}
{% set maxRatingNormalized = demi_core_configuration('getMaxRatingNormalized',[]) ?: 5 %}
{% set hasRatingWidget = demi_ratingGetHasRatingWidgetTrustYou(accommodation) %}
{% set resultSetPresent = false %}
{% if accommodationResultSet is defined and accommodationResultSet is not null and accommodationResultSet.getMinPriceProductSets is not empty and accommodationResultSet.getMinPriceProductSets()|length > 0 %}
{% set resultSetPresent = true %}
{% endif %}
{% set ajaxUrl = demi_demiUrl({
'accommodation': accommodation
},'demi_acco_ajax') %}
{% if '?' in ajaxUrl %}
{% set parts = ajaxUrl|split('?') %}
{% set ajaxUrl = parts[0] %}
{% endif %}
{% set liveDetailProductsUrl = ajaxUrl ~ \"?ajaxRequestType=getLiveDetailProducts\" %}
{% set corridorMatrixUrl = ajaxUrl ~ \"?ajaxRequestType=getCorridorMatrix\" %}
{% set productUrl = ajaxUrl ~ \"?ajaxRequestType=getProductByIdAndMealcode\" %}
{% set paymentInformationUrl = ajaxUrl ~ \"?ajaxRequestType=getProductByIdAndMealcode\" %}
{% set step1Url = demi_demiUrl({
'path': demi_core_configuration('getCheckoutPath',[]).getFullPath(),
'controller': 'cart',
'action': 'step1'
},'demi_checkout',true) %}
{% set addToCartUrl = step1Url %}
{% set anchors = {
'detail': '#details',
'picture': '#pictures',
'package': '#packages',
'rooms': '#rooms',
'rating': '#ratings'
} %}
{% if activeTab is defined and activeTab not in anchors %}
{% set activeTab = '#details' %}
{% else %}
{% do jsConfig('_initialState').add({'activeTab': activeTab}) %}
{% endif %}
{% if not availabilityIsChecked %}
{% set fromDate = null %}
{% else %}
{% set fromDate = demi_getSearchFrom() %}
{% endif %}
{% set imagesTypes = demi_getAccoImagesTypesAsArray(accommodation) %}
{% set imageList = accommodation.getImages(imagesTypes, fromDate, true) %}
{% set photoCount = imageList|length %}
{% set videoCount = impressionLinks[\"video\"]|length %}
{% set panoCount = impressionLinks[\"pano\"]|length %}
{% set classifications = accommodation.getClassifications() %}
{% set hasClassificationsWithIcons = false %}
{% for classification in classifications %}
{% set group = classification.getClassificationGroup() %}
{% if group is not empty and group.getIconSmall() %}
{% set hasClassificationsWithIcons = true %}
{% endif %}
{% endfor %}
{% if imageList is not empty %}
{% do elements_opengraph().addImage(imageList[0].getThumbnail('slider-main').getPath()) %}
{% endif %}
{% set jsonLdData = demi_getAccommodationJsonLdData(accommodation, options is defined ? options : [], packages is defined ? packages : null) %}
{% do jsonLd().add(\"accommodation\", jsonLdData) %}
{% extends '@ElementsDemiFrontend/Layout/layout.html.twig' %}
{% block content %}
{# TODO @msteyrer breadcrumb helper bundle not in use atm
{% do breadcrumbHelper().set({
'parentId': document.getId(),
'url': accoUrlPlain,
'label': accommodation.getName()
}) %}
{{ include('@ElementsDemiFrontend/Navigation/breadcrumb.html.twig') }} #}
<script type=\"text/javascript\" data-cookieconsent=\"ignore\">
_config.viewType = \"acco\";
_config.historyController = true;
_config.roomSelection = true;
_config.searchData = true;
_config.detailResultUrl = '{{ liveDetailProductsUrl|raw }}';
_config.corridorSearchUrl = '{{ corridorMatrixUrl|raw }}';
_config.detailPaymentInfoUrl = '{{ paymentInformationUrl|raw }}';
_config.detailProductUrl = '{{ productUrl|raw }}';
_config.addToCartUrl = '{{ addToCartUrl|raw }}';
_config.cartWarningOnMultipleAccoProducts = {{ demi_core_configuration('getWarningOnMultipleAccoProducts',[]) ? 'true': 'false' }};
_config.cartInfoUrl = '{{ demi_checkoutUrl('cart','hasAccoInCart')|raw }}';
_config.roomList = true;
_config.paramTabs = true;
_config.trackingCountingClicksUrl='{{ countingClicksUriJs|raw }}';
_config.productData = {
id: {{ accommodation.getId() }},
name: \"{{ demi_impressionName(accommodation) }}\",
category: \"{{ demi_impressionCategory(accommodation, null, searchParam) }}\",
brand: \"{{ demi_impressionBrand(accommodation) }}\"
};
_config.acommodationMapHideBusinesses = {{ demi_core_configuration('getMapHideBusinesses',[]) ? 'true' : 'false' }};
{% set mealtypeId = searchParam.getMealTypeId() %}
{% if mealtypeId is not empty and mealtypeId is iterable %}
{% set mealtypeId = mealtypeId[0] %}
{% endif %}
{% if mealtypeId is not empty %}
_config.urlParams = _config.urlParams || [];
_config.urlParams.push( { name : \"mealtype\", value : \"{{ mealtypeId }}\"} );
{% endif %}
{% if searchParam.getBookOnly() %}
_config.urlParams = _config.urlParams || [];
_config.urlParams.push( { name : \"bookonly\", value : \"on\"} );
{% endif %}
</script>
{{ include('@ElementsDemiFrontend/Includes/canonicalOverride.html.twig', {'object' : accommodation }) }}
{{ include('@ElementsDemiFrontend/Includes/tags/detail-acco.html.twig',
{
'isMobile': false,
'acco': accommodation,
'searchParam': searchParam,
'accoResultSet': accommodationResultSet,
'productResultSet': productResultSet,
'packages': packages is defined ? packages : null,
'sortedMarketingGroups': sortedMarketingGroups,
'sortedFacilities': sortedFacilities,
'sortedHealthMeasures':sortedHealthMeasures,
'hasHousePackages': hasHousePackages,
'photoCount': photoCount,
'videoCount': videoCount,
'panoCount': panoCount
}
) }}
<main id=\"main\" role=\"main\">
<div hidden>
{{ include('@ElementsDemiFrontend/Accommodation/lightboxTopbar.html.twig') }}
</div>
{% set headerName = \"full\" %}
{% set width = 0 %}
{% set forceMultiHeader = accommodation.getForceMultiHeader() %}
{% if accommodation.getFirstImage(null,fromDate) is not empty %}
{% set width = accommodation.getFirstImage(null, fromDate).getCustomSettings()[\"imageWidth\"] %}
{% endif %}
{% if width < demi_core_configuration(\"getMinWidthForFullHeader\",[]) or forceMultiHeader %}
{% set headerName = \"multi-image\" %}
{% endif %}
{% if imageList|length >= 3 or headerName==\"full\" %}
{% set heroImageAlt = accommodation.getName() ~ ' - Impression #1' %}
{{ include('@ElementsDemiFrontend/Accommodation/includes/acco-header-' ~ headerName ~'.desktop.html.twig',
{
'photoCount': photoCount,
'videoCount': videoCount,
'panoCount': panoCount,
'imageList': imageList,
'alt': heroImageAlt
}
) }}
{% endif %}
{{ include('@ElementsDemiFrontend/Includes/elements/search-info.desktop.html.twig', { \"searchParam\": searchParam, \"availabilityIsChecked\": availabilityIsChecked, \"isSearch\": false}) }}
<div class=\"container mt-5\">
<div class=\"row\">
<div class=\"col-xl-9 col-12\">
<div class=\"row mb-5\">
<div class=\"col\">
{% if accommodation.getIsTesthotel() %}
<div class=\"demi-test-acco-notice mb-3 text-danger\"><strong>Testbetrieb</strong> nur für Debug/aktive Pimcore User sichtbar</div>
{% endif %}
<h1 class=\"text-primary{{ hasClassificationsWithIcons ? ' mb-2' : ' mb-4' }}\">{{ demi_getAccoNameWithStars(accommodation) }}</h1>
{% set i = 0 %}
{% set len = classifications|length %}
{% for classification in classifications %}
<div class=\"row{{ i == (len - 1) ? ' mb-4' : ' mb-2' }}\">
<div class=\"col col-auto\">
{% set count = classification.getClassificationGroupAmount() %}
{% if count is not empty and classification.getShowAsIcon() and classification.demiGetIcon() is not null %}
<span class=\"classification_holder hidden-xs\" aria-label=\"{{ count }} {{ classification.getName() }}\">
{% for c in 1..count %}
{% set thumbnail = classification.demiGetIcon().getThumbnail('demi-classification') %}
{{ thumbnail.getHTML()|raw }}
{% if classification.getIsSuperior() %}
<span class=\"classification-superior\">S</span>
{% endif %}
{% endfor %}
</span>
{% endif %}
</div>
</div>
{% set i = i+1 %}
{% endfor %}
<div class=\"row mb-2\">
<div class=\"col col-auto\">
{{ accommodation.getCategoryNames(2) }}
</div>
<div class=\"col col-auto\">
<div class=\"media text-muted\">
<script>
_config.smoothScroll = true;
</script>
<a class=\"media text-muted js-smoothscroll__link\" href=\"#acco-contact\">
{% if accommodation.getTown() is not null and (accommodation.getTown().getNameLocalized(app.request.locale) or accommodation.getTown().getName()) %}
<div class=\"demi-icon demi-icon-marker mr-1 icon-in-text\" title=\"{{ 'demi.list.town'|trans }}\" aria-label=\"{{ 'demi.list.town'|trans }}\"></div>
<div class=\"media-body\">
{{ accommodation.getTown().getNameLocalized(app.request.locale) ?? accommodation.getTown().getName() }}
</div>
{% elseif accommodation.getDistrict() is not null and (accommodation.getDistrict().getNameLocalized(app.request.locale) or accommodation.getDistrict().getName())%}
<div class=\"demi-icon demi-icon-marker mr-1 icon-in-text\" title=\"<?= \$this->translate('demi.list.town') ?>\" aria-label=\"<?= \$this->translate('demi.list.town') ?>\"></div>
<div class=\"media-body\">
{{ accommodation.getDistrict().getNameLocalized(app.request.locale) ?? accommodation.getDistrict().getName() }}
</div>
{% elseif address and address.getTown() %}
<div class=\"demi-icon demi-icon-marker mr-1 icon-in-text\" title=\"{{ 'demi.detail.town'|trans }} ?>\" aria-label=\"{{ 'demi.detail.town'|trans }}\"></div>
<div class=\"media-body\">
{{ address.getTown() }}
</div>
{% endif %}
</a>
</div>
</div>
<div class=\"col col-auto\">
{% if distance is defined %}
<div class=\"media text-muted\">
<span class=\"badge badge-primary mr-1\">{{ distance['value'] }}</span>
<div class=\"media-body\">
<span class=\"text-primary\">{{ distance['from'] }}</span>
</div>
</div>
{% endif %}
</div>
</div>
</div>
<div class=\"col col-auto\">
<div class=\"mb-4\">
{{ include('@ElementsDemiFrontend/Accommodation/includes/serviceprovider-logo.html.twig', {
\"logo\": accommodation.getImages([constant('Elements\\\\Demi\\\\Deskline\\\\Constant\\\\DocumentInterface::DOCUMENT_TYPE_SERVICE_PROVIDER_LOGO')])|first
}) }}
</div>
<div>
{% if accommodation.getRatingSystem()==\"TrustYou\" %}
{% set normalizedRating = demi_ratingGetNormalized(accommodation, maxRatingValue, maxRatingNormalized) %}
{% if normalizedRating is not empty %}
{{ include('@ElementsDemiFrontend/Accommodation/includes/rating-md.html.twig', {
\"score\": normalizedRating,
\"text\": accommodation.getRatingScoreDescription(),
\"styleModifier\": \"mb-1\",
\"showReviewCount\": true,
\"ratingCount\": accommodation.getRatingCountDirect(),
\"isTextWhite\" : false
}) }}
{% endif %}
{% endif %}
</div>
</div>
<div class=\"col col-auto\">
<div class=\"row\">
<div class=\"col col-auto d-xl-none d-md-block\">
<div class=\"ml-3\" aria-live=\"polite\">
<div class=\"js-room-list__loading js-corridor__search-info-loading--compact\" hidden>
<div class=\"text-center py-3\">
{{ include('@ElementsDemiFrontend/Includes/elements/spinner/loading-spinner.html.twig') }}
</div>
</div>
<div class=\"js-room-list__content js-corridor__search-info-content--compact\" data-list=\"searchInfoCompact\">
{{ include('@ElementsDemiFrontend/Accommodation/searchInfoBoxCompact.desktop.html.twig', {
\"accommodationResultSet\": accommodationResultSet,
\"productResultSet\": productResultSet,
\"accommodation\": accommodation,
}) }}
</div>
</div>
</div>
</div>
</div>
</div>
<script data-cookieconsent=\"ignore\">
_config.loadAccoImages = true;
</script>
<div class=\"mt-3\">
<ul class=\"nav nav-border-tabs\" role=\"tablist\">
<li class=\"nav-item\">
<a class=\"nav-link js-param-tab{{ activeTab == anchors['detail'] ? ' active' : '' }} js-tracking js-tracking--click\"
href=\"{{ anchors['detail'] }}\"
data-toggle=\"tab\"
role=\"tab\"
aria-expanded=\"{{ activeTab == anchors['detail'] ? 'true' : 'false' }}\"
data-tracking-category=\"button\"
data-tracking-action=\"detail\"
data-tracking-label=\"{{ accommodation.getName()|escape }}\">
{{ \"demi.detail.tab.overview\"|trans }}
</a>
</li>
{% if(hasRatingWidget) %}
<li class=\"nav-item\">
<a class=\"nav-link js-param-tab{{ activeTab == anchors['rating'] ? ' active' : '' }} js-tracking js-tracking--click\"
href=\"{{ anchors['rating'] }}\"
data-toggle=\"tab\"
role=\"tab\"
aria-expanded=\"{{ activeTab == anchors['rating'] ? 'true' : 'false' }}\"
data-tracking-category=\"button\"
data-tracking-action=\"rating\"
data-tracking-label=\"{{ accommodation.getName()|escape }}\">
{{ \"demi.detail.tab.ratings\"|trans }}
</a>
</li>
{% endif %}
<li class=\"nav-item\">
<a class=\"nav-link js-param-tab js-acco-images__tab{{ activeTab == anchors['picture'] ? ' active' : '' }} js-tracking js-tracking--click\"
href=\"{{ anchors['picture'] }}\"
data-toggle=\"tab\"
role=\"tab\"
aria-expanded=\"{{ activeTab == anchors['picture'] ? 'true' : 'false' }}\"
data-tracking-category=\"button\"
data-tracking-action=\"picture\"
data-tracking-label=\"{{ accommodation.getName()|escape }}\">
{% if videoCount == 0 %}
{{ \"demi.detail.tab.photos\"|trans }}
{% else %}
{{ \"demi.detail.tab.photos-videos\"|trans }}
{% endif %}
</a>
</li>
{% if hasHousePackages is not empty or (destinationPackages is not empty and destinationPackages|length>0 and demi_core_configuration('getShowDestinationPackagesOnAccoDetail',[])) %}
<li class=\"nav-item\">
<a class=\"nav-link js-param-tab{{ activeTab == anchors['package'] ? ' active' : '' }} js-tracking js-tracking--click\"
href=\"{{ anchors['package'] }}\"
data-toggle=\"tab\"
role=\"tab\" aria-expanded=\"{{ activeTab == anchors['package'] ? 'true' : 'false' }}\"
data-tracking-category=\"button\"
data-tracking-action=\"package\"
data-tracking-label=\"{{ accommodation.getName()|escape }}\">
{{ \"demi.detail.tab.packages\"|trans }}
</a>
</li>
{% endif %}
{% if (accommodation.getAccommodations(false)|length)>0 %}
<li class=\"nav-item\">
<a class=\"nav-link js-param-tab{{ activeTab == anchors['rooms'] ? ' active' : '' }} js-tracking js-tracking--click\"
href=\"{{ anchors['rooms'] }}\"
data-toggle=\"tab\"
role=\"tab\"
aria-expanded=\"{{ activeTab == anchors['rooms'] ? 'true' : 'false' }}\"
data-tracking-category=\"button\"
data-tracking-action=\"{{ demi_getRoomsTabTranslationKey(accommodation)|trans }} & {{ \"demi.detail.tab.prices\"|trans }}\"
data-tracking-label=\"rooms\">
{{ demi_getRoomsTabTranslationKey(accommodation)|trans }} & {{ \"demi.detail.tab.prices\"|trans }}
</a>
</li>
{% endif %}
</ul>
</div>
<div class=\"pb-4 pt-2\">
<div class=\"tab-content\">
<div class=\"tab-pane pt-2{{ activeTab == anchors['detail'] ? ' active' : '' }}\" id=\"details\" role=\"tabpanel\">
{{ include(\"@ElementsDemiFrontend/Accommodation/includes/acco-details.desktop.html.twig\" ,{
'package': false,
'address': address,
'photoCount': photoCount,
'availabilityIsChecked': availabilityIsChecked,
'fromDate': fromDate,
'accommdationResultSet': accommodationResultSet
}) }}
</div>
{% if hasRatingWidget %}
<div class=\"tab-pane pt-2{{ activeTab == anchors['rating'] ? ' active' : '' }}\" id=\"ratings\" role=\"tabpanel\">
{{ include(\"@ElementsDemiFrontend/Accommodation/includes/acco-ratings.desktop.html.twig\", {'hasRatingWidget': hasRatingWidget, 'package' : false}) }}
</div>
{% endif %}
<div class=\"tab-pane pt-2{{ activeTab == anchors['picture'] ? ' active' : '' }}\" id=\"pictures\" role=\"tabpanel\">
{{ include(\"@ElementsDemiFrontend/Accommodation/includes/acco-pictures.desktop.html.twig\", {
'photoCount': photoCount,
'videoCount': videoCount,
'panoCount': panoCount,
'impressionsLinks': impressionLinks,
'fromDate': fromDate,
'imageList': imageList,
'accoId': accommodation.getId(),
'package' : false
}) }}
</div>
{% if hasHousePackages or (destinationPackages is not empty and (destinationPackages|length)>0 and demi_core_configuration(\"getShowDestinationPackagesOnAccoDetail\",[])) %}
<div class=\"tab-pane pt-2{{ activeTab == anchors['package'] ? ' active' : '' }}\" id=\"packages\" role=\"tabpanel\">
{{ include('@ElementsDemiFrontend/Accommodation/includes/acco-packages.desktop.html.twig') }}
</div>
{% endif %}
{% if (accommodation.getAccommodations(false)|length)>0 %}
<div class=\"tab-pane pt-2{{ activeTab == anchors['rooms'] ? ' active' : '' }}\" id=\"rooms\" role=\"tabpanel\">
{{ include('@ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig', {
'availabilityIsChecked': availabilityIsChecked,
'resultSetPresent': resultSetPresent,
'package' : null,
'tvbPackage' : null,
'housePackageMaster' : null
}) }}
</div>
{% endif %}
</div>
</div>
</div>
{{ include(\"@ElementsDemiFrontend/Accommodation/includes/acco-sidebar.desktop.html.twig\",{
'accommodationResultSet': accommodationResultSet,
'isPackage': false,
}) }}
</div>
</div>
</main>
{% if demi_core_configuration(\"getDisableEnquiry\",[])!=true and accommodation.getAddress() is not empty and accommodation.getAddress().getEmail() is not empty %}
{{ include('@ElementsDemiFrontend/Includes/overlays/inquiry-overlay.html.twig', {
'accommodation': accommodation,
'searchParams': searchParam,
'user': user
}) }}
{% endif %}
{% if demi_core_configuration('getWarningOnMultipleAccoProducts',[]) %}
{{ include('@ElementsDemiFrontend/Includes/modals/warningOnMultipleAccoProductsModal.html.twig', {'cartUrl': step1Url}) }}
{% endif %}
{% endblock %}
", "@ElementsDemiFrontend/Accommodation/detail.desktop.html.twig", "/home/steiermark/www/src/Elements/Bundle/DemiFrontendBundle/Resources/views/Accommodation/detail.desktop.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 1, "do" => 2, "set" => 9, "for" => 80);
static $filters = array("raw" => 10, "length" => 25, "split" => 34, "escape" => 122, "trans" => 240, "first" => 274);
static $functions = array("elements_head_title" => 2, "demi_seoTitleForAcco" => 2, "elements_head_meta" => 3, "demi_seoDescriptionforAcco" => 3, "linkGenerator" => 9, "elements_canonical" => 10, "demi_paymentSetDefaultCurrency" => 11, "elements_robots" => 14, "demi_core_configuration" => 18, "demi_ratingGetHasRatingWidgetTrustYou" => 21, "demi_demiUrl" => 29, "jsConfig" => 63, "demi_getSearchFrom" => 69, "demi_getAccoImagesTypesAsArray" => 72, "elements_opengraph" => 87, "demi_getAccommodationJsonLdData" => 90, "jsonLd" => 92, "demi_checkoutUrl" => 117, "demi_impressionName" => 123, "demi_impressionCategory" => 124, "demi_impressionBrand" => 125, "include" => 144, "demi_getAccoNameWithStars" => 204, "range" => 213, "constant" => 274, "demi_ratingGetNormalized" => 279, "demi_getRoomsTabTranslationKey" => 387);
try {
$this->sandbox->checkSecurity(
['if', 'do', 'set', 'for'],
['raw', 'length', 'split', 'escape', 'trans', 'first'],
['elements_head_title', 'demi_seoTitleForAcco', 'elements_head_meta', 'demi_seoDescriptionforAcco', 'linkGenerator', 'elements_canonical', 'demi_paymentSetDefaultCurrency', 'elements_robots', 'demi_core_configuration', 'demi_ratingGetHasRatingWidgetTrustYou', 'demi_demiUrl', 'jsConfig', 'demi_getSearchFrom', 'demi_getAccoImagesTypesAsArray', 'elements_opengraph', 'demi_getAccommodationJsonLdData', 'jsonLd', 'demi_checkoutUrl', 'demi_impressionName', 'demi_impressionCategory', 'demi_impressionBrand', 'include', 'demi_getAccoNameWithStars', 'range', 'constant', 'demi_ratingGetNormalized', 'demi_getRoomsTabTranslationKey']
);
} 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;
}
}
}