<?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.mobile.html.twig */
class __TwigTemplate_6f5f498b0d268a590cc66df99622efd7 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 18
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.mobile.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ElementsDemiFrontend/Accommodation/detail.mobile.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", [0 => $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); })())), 1 => true], "method", false, false, false, 2);
// line 3
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsHeadMeta(), "setDescription", [0 => $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); })()))], "method", false, false, false, 3);
}
// line 6
$context["destinationPackages"] = ((array_key_exists("destinationPackages", $context)) ? ((isset($context["destinationPackages"]) || array_key_exists("destinationPackages", $context) ? $context["destinationPackages"] : (function () { throw new RuntimeError('Variable "destinationPackages" does not exist.', 6, $this->source); })())) : (null));
// line 11
$context["canonicalUrl"] = twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\LinkGenerator']->getGenerator(), "generate", [0 => (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 11, $this->source); })()), 1 => ["canonical" => true, "relative" => false, "reset" => true]], "method", false, false, false, 11);
// line 12
twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsCanonical(), "checkAllParams", [0 => false], "method", false, false, false, 12), "setDomain", [0 => (isset($context["canonicalUrl"]) || array_key_exists("canonicalUrl", $context) ? $context["canonicalUrl"] : (function () { throw new RuntimeError('Variable "canonicalUrl" does not exist.', 12, $this->source); })())], "method", false, false, false, 12);
// line 14
if ( !((isset($context["canonicalUrl"]) || array_key_exists("canonicalUrl", $context) ? $context["canonicalUrl"] : (function () { throw new RuntimeError('Variable "canonicalUrl" does not exist.', 14, $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.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "pathInfo", [], "any", false, false, false, 14))) {
// line 15
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsRobots(), "setNoIndex", [0 => true], "method", false, false, false, 15);
}
// line 18
$this->parent = $this->loadTemplate("@ElementsDemiFrontend/Layout/layout.html.twig", "@ElementsDemiFrontend/Accommodation/detail.mobile.html.twig", 18);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 19
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 20
echo " ";
$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.', 20, $this->source); })()));
// line 21
echo "
";
// line 22
if ( !(isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 22, $this->source); })())) {
// line 23
echo " ";
$context["fromDate"] = null;
// line 24
echo " ";
} else {
// line 25
echo " ";
$context["fromDate"] = $this->env->getFunction('demi_getSearchFrom')->getCallable()();
// line 26
echo " ";
}
// line 27
echo "
";
// line 28
$context["resultSetPresent"] = false;
// line 29
echo "
";
// line 30
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.', 30, $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.', 30, $this->source); })()), "getMinPriceProductSets", [], "any", false, false, false, 30))) && (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.', 30, $this->source); })()), "getMinPriceProductSets", [], "method", false, false, false, 30)) > 0))) {
// line 31
echo " ";
$context["resultSetPresent"] = true;
// line 32
echo " ";
}
// line 33
echo "
";
// line 34
$context["ajaxUrl"] = $this->env->getFunction('demi_demiUrl')->getCallable()(["accommodation" => // line 35
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 35, $this->source); })())], "demi_acco_ajax");
// line 37
echo "
";
// line 38
if (twig_in_filter("?", (isset($context["ajaxUrl"]) || array_key_exists("ajaxUrl", $context) ? $context["ajaxUrl"] : (function () { throw new RuntimeError('Variable "ajaxUrl" does not exist.', 38, $this->source); })()))) {
// line 39
echo " ";
$context["parts"] = twig_split_filter($this->env, (isset($context["ajaxUrl"]) || array_key_exists("ajaxUrl", $context) ? $context["ajaxUrl"] : (function () { throw new RuntimeError('Variable "ajaxUrl" does not exist.', 39, $this->source); })()), "?");
// line 40
echo " ";
$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.', 40, $this->source); })()), 0, [], "array", false, false, false, 40);
// line 41
echo " ";
}
// line 42
echo "
";
// line 43
$context["liveDetailProductsUrl"] = ((isset($context["ajaxUrl"]) || array_key_exists("ajaxUrl", $context) ? $context["ajaxUrl"] : (function () { throw new RuntimeError('Variable "ajaxUrl" does not exist.', 43, $this->source); })()) . "?ajaxRequestType=getLiveDetailProducts");
// line 44
echo " ";
$context["corridorMatrixUrl"] = ((isset($context["ajaxUrl"]) || array_key_exists("ajaxUrl", $context) ? $context["ajaxUrl"] : (function () { throw new RuntimeError('Variable "ajaxUrl" does not exist.', 44, $this->source); })()) . "?ajaxRequestType=getCorridorMatrix");
// line 45
echo " ";
$context["productUrl"] = ((isset($context["ajaxUrl"]) || array_key_exists("ajaxUrl", $context) ? $context["ajaxUrl"] : (function () { throw new RuntimeError('Variable "ajaxUrl" does not exist.', 45, $this->source); })()) . "?ajaxRequestType=getProductByIdAndMealcode");
// line 46
echo " ";
$context["paymentInformationUrl"] = ((isset($context["ajaxUrl"]) || array_key_exists("ajaxUrl", $context) ? $context["ajaxUrl"] : (function () { throw new RuntimeError('Variable "ajaxUrl" does not exist.', 46, $this->source); })()) . "?ajaxRequestType=getProductByIdAndMealcode");
// line 47
echo "
";
// line 48
$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.', 48, $this->source); })()), "getAddress", [], "method", false, false, false, 48);
// line 49
echo " ";
$context["maxRatingValue"] = (($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getMaxRatingValue", [])) ? ($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getMaxRatingValue", [])) : (5));
// line 50
echo " ";
$context["maxRatingNormalized"] = (($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getMaxRatingNormalized", [])) ? ($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getMaxRatingNormalized", [])) : (5));
// line 51
echo "
";
// line 52
$context["anchors"] = ["detail" => "#details", "package" => "#packages", "rooms" => "#rooms"];
// line 57
echo "
";
// line 58
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.', 58, $this->source); })()), (isset($context["anchors"]) || array_key_exists("anchors", $context) ? $context["anchors"] : (function () { throw new RuntimeError('Variable "anchors" does not exist.', 58, $this->source); })())))) {
// line 59
echo " ";
$context["activeTab"] = "#details";
// line 60
echo " ";
} else {
// line 61
echo " ";
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\JsConfigBundle\Twig\Extension\JsConfigExtension']->jsConfig("_initialState"), "add", [0 => ["activeTab" => (isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 61, $this->source); })())]], "method", false, false, false, 61);
// line 62
echo " ";
}
// line 63
echo "
";
// line 65
$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, false, 66), "controller" => "cart", "action" => "step1"], "demi_checkout", true);
// line 70
echo "
";
// line 71
$context["addToCartUrl"] = (isset($context["step1Url"]) || array_key_exists("step1Url", $context) ? $context["step1Url"] : (function () { throw new RuntimeError('Variable "step1Url" does not exist.', 71, $this->source); })());
// line 72
echo "
";
// line 74
$context["imagesTypes"] = $this->env->getFunction('demi_getAccoImagesTypesAsArray')->getCallable()((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 74, $this->source); })()));
// line 75
echo "
";
// line 76
$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.', 76, $this->source); })()), "getClassifications", [], "method", false, false, false, 76);
// line 77
echo " ";
$context["hasClassificationsWithIcons"] = false;
// line 78
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.', 78, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["classification"]) {
// line 79
echo " ";
$context["group"] = twig_get_attribute($this->env, $this->source, $context["classification"], "getClassificationGroup", [], "method", false, false, false, 79);
// line 80
echo " ";
if (( !twig_test_empty((isset($context["group"]) || array_key_exists("group", $context) ? $context["group"] : (function () { throw new RuntimeError('Variable "group" does not exist.', 80, $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.', 80, $this->source); })()), "getIconSmall", [], "method", false, false, false, 80))) {
// line 81
echo " ";
$context["hasClassificationsWithIcons"] = true;
// line 82
echo " ";
}
// line 83
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 84
echo "
";
// line 86
$context["jsonLdData"] = $this->env->getFunction('demi_getAccommodationJsonLdData')->getCallable()((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 86, $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.', 86, $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.', 86, $this->source); })())) : (null)));
// line 87
echo "
";
// line 88
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\JsonLdBundle\Twig\Extension\JsonLdExtension']->jsonLd(), "add", [0 => "accommodation", 1 => (isset($context["jsonLdData"]) || array_key_exists("jsonLdData", $context) ? $context["jsonLdData"] : (function () { throw new RuntimeError('Variable "jsonLdData" does not exist.', 88, $this->source); })())], "method", false, false, false, 88);
// line 89
echo " ";
// line 97
echo "
<script data-cookieconsent=\"ignore\">
_config.viewType = \"object\";
_config.historyController = true;
_config.roomSelection = true;
_config.searchData = true;
_config.detailResultUrl = '";
// line 105
echo twig_escape_filter($this->env, (isset($context["liveDetailProductsUrl"]) || array_key_exists("liveDetailProductsUrl", $context) ? $context["liveDetailProductsUrl"] : (function () { throw new RuntimeError('Variable "liveDetailProductsUrl" does not exist.', 105, $this->source); })()), "html", null, true);
echo "';
_config.corridorSearchUrl = '";
// line 106
echo twig_escape_filter($this->env, (isset($context["corridorMatrixUrl"]) || array_key_exists("corridorMatrixUrl", $context) ? $context["corridorMatrixUrl"] : (function () { throw new RuntimeError('Variable "corridorMatrixUrl" does not exist.', 106, $this->source); })()), "html", null, true);
echo "';
_config.detailPaymentInfoUrl = '";
// line 107
echo twig_escape_filter($this->env, (isset($context["paymentInformationUrl"]) || array_key_exists("paymentInformationUrl", $context) ? $context["paymentInformationUrl"] : (function () { throw new RuntimeError('Variable "paymentInformationUrl" does not exist.', 107, $this->source); })()), "html", null, true);
echo "';
_config.detailProductUrl = '";
// line 108
echo twig_escape_filter($this->env, (isset($context["productUrl"]) || array_key_exists("productUrl", $context) ? $context["productUrl"] : (function () { throw new RuntimeError('Variable "productUrl" does not exist.', 108, $this->source); })()), "html", null, true);
echo "';
_config.addToCartUrl = '";
// line 109
echo twig_escape_filter($this->env, (isset($context["addToCartUrl"]) || array_key_exists("addToCartUrl", $context) ? $context["addToCartUrl"] : (function () { throw new RuntimeError('Variable "addToCartUrl" does not exist.', 109, $this->source); })()), "html", null, true);
echo "';
_config.addToCartUrl = '";
// line 110
echo (isset($context["addToCartUrl"]) || array_key_exists("addToCartUrl", $context) ? $context["addToCartUrl"] : (function () { throw new RuntimeError('Variable "addToCartUrl" does not exist.', 110, $this->source); })());
echo "';
_config.cartWarningOnMultipleAccoProducts = ";
// line 111
echo (($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getWarningOnMultipleAccoProducts", [])) ? ("true") : ("false"));
echo ";
_config.cartInfoUrl = '";
// line 112
echo $this->env->getFunction('demi_checkoutUrl')->getCallable()("cart", "hasAccoInCart");
echo "';
_config.roomList = true;
_config.paramTabs = true;
_config.isWhitelabel = ";
// line 115
echo (($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getIsWhitelabel", [])) ? ("true") : ("false"));
echo ";
_config.trackingCountingClicksUrl = '";
// line 116
echo (isset($context["countingClicksUriJs"]) || array_key_exists("countingClicksUriJs", $context) ? $context["countingClicksUriJs"] : (function () { throw new RuntimeError('Variable "countingClicksUriJs" does not exist.', 116, $this->source); })());
echo "';
_config.productData = {
id: ";
// line 118
echo twig_escape_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.', 118, $this->source); })()), "getId", [], "method", false, false, false, 118), "html", null, true);
echo ",
name: \"";
// line 119
echo $this->env->getFunction('demi_impressionName')->getCallable()((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 119, $this->source); })()));
echo "\",
category: \"";
// line 120
echo $this->env->getFunction('demi_impressionCategory')->getCallable()((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 120, $this->source); })()), null, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 120, $this->source); })()));
echo "\",
brand: \"";
// line 121
echo $this->env->getFunction('demi_impressionBrand')->getCallable()((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 121, $this->source); })()));
echo "\"
};
_config.acommodationMapHideBusinesses = ";
// line 123
echo (($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getMapHideBusinesses", [])) ? ("true") : ("false"));
echo ";
";
// line 125
$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.', 125, $this->source); })()), "getMealTypeId", [], "method", false, false, false, 125);
// line 126
echo " ";
if (( !twig_test_empty((isset($context["mealtypeId"]) || array_key_exists("mealtypeId", $context) ? $context["mealtypeId"] : (function () { throw new RuntimeError('Variable "mealtypeId" does not exist.', 126, $this->source); })())) && !twig_test_empty(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.', 126, $this->source); })()), 0, [], "array", false, false, false, 126)))) {
// line 127
echo " _config.urlParams = _config.urlParams || [];
_config.urlParams.push({name: \"mealtype\", value: \"";
// line 128
echo twig_escape_filter($this->env, 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.', 128, $this->source); })()), 0, [], "array", false, false, false, 128), "html", null, true);
echo "\"});
";
}
// line 130
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.', 130, $this->source); })()), "getBookOnly", [], "method", false, false, false, 130)) {
// line 131
echo " _config.urlParams = _config.urlParams || [];
_config.urlParams.push({name: \"bookonly\", value: \"on\"});
";
}
// line 134
echo "
</script>
";
// line 137
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.', 137, $this->source); })())]);
echo "
";
// line 140
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/tags/detail-acco.html.twig", ["isMobile" => false, "acco" => // line 143
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 143, $this->source); })()), "searchParam" => // line 144
(isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 144, $this->source); })()), "accoResultSet" => // line 145
(isset($context["accommodationResultSet"]) || array_key_exists("accommodationResultSet", $context) ? $context["accommodationResultSet"] : (function () { throw new RuntimeError('Variable "accommodationResultSet" does not exist.', 145, $this->source); })()), "productResultSet" => // line 146
(isset($context["productResultSet"]) || array_key_exists("productResultSet", $context) ? $context["productResultSet"] : (function () { throw new RuntimeError('Variable "productResultSet" does not exist.', 146, $this->source); })()), "packages" => (( // line 147
array_key_exists("packages", $context)) ? ((isset($context["packages"]) || array_key_exists("packages", $context) ? $context["packages"] : (function () { throw new RuntimeError('Variable "packages" does not exist.', 147, $this->source); })())) : (null)), "sortedMarketingGroups" => // line 148
(isset($context["sortedMarketingGroups"]) || array_key_exists("sortedMarketingGroups", $context) ? $context["sortedMarketingGroups"] : (function () { throw new RuntimeError('Variable "sortedMarketingGroups" does not exist.', 148, $this->source); })()), "sortedFacilities" => // line 149
(isset($context["sortedFacilities"]) || array_key_exists("sortedFacilities", $context) ? $context["sortedFacilities"] : (function () { throw new RuntimeError('Variable "sortedFacilities" does not exist.', 149, $this->source); })()), "sortedHealthMeasures" => // line 150
(isset($context["sortedHealthMeasures"]) || array_key_exists("sortedHealthMeasures", $context) ? $context["sortedHealthMeasures"] : (function () { throw new RuntimeError('Variable "sortedHealthMeasures" does not exist.', 150, $this->source); })()), "hasHousePackages" => // line 151
(isset($context["hasHousePackages"]) || array_key_exists("hasHousePackages", $context) ? $context["hasHousePackages"] : (function () { throw new RuntimeError('Variable "hasHousePackages" does not exist.', 151, $this->source); })())]);
// line 153
echo "
<main id=\"main\" role=\"main\">
<div>
<div class=\"js-search-data__show-if-submitted\" ";
// line 160
echo (((isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 160, $this->source); })())) ? ("") : ("hidden"));
echo ">
";
// line 161
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/ribbon.html.twig", ["searchParam" => (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 161, $this->source); })()), "showBackButton" => true, "withFlag" => false]);
echo "
</div>
<div class=\"js-search-data__hide-if-submitted\" ";
// line 163
echo (((isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 163, $this->source); })())) ? ("hidden") : (""));
echo ">
";
// line 164
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/ribbon-price.html.twig", ["resultSet" => (((isset($context["accommodationResultSet"]) || array_key_exists("accommodationResultSet", $context) ? $context["accommodationResultSet"] : (function () { throw new RuntimeError('Variable "accommodationResultSet" does not exist.', 164, $this->source); })())) ? (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.', 164, $this->source); })()), "getMinPriceBase", [0 => true], "method", false, false, false, 164)) : (null)), "accommodation" => (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 164, $this->source); })())]);
echo "
</div>
</div>
<div class=\"container\">
";
// line 169
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.', 169, $this->source); })()), "getIsTesthotel", [], "method", false, false, false, 169)) {
// line 170
echo " <div class=\"demi-test-acco-notice mb-3 text-danger\"><strong>Testbetrieb</strong> nur für Debug/aktive
Pimcore User sichtbar
</div>";
}
// line 173
echo " <h1 class=\"h2 text-primary";
echo (((isset($context["hasClassificationsWithIcons"]) || array_key_exists("hasClassificationsWithIcons", $context) ? $context["hasClassificationsWithIcons"] : (function () { throw new RuntimeError('Variable "hasClassificationsWithIcons" does not exist.', 173, $this->source); })())) ? (" mb-1") : (""));
echo "\">";
echo $this->env->getFunction('demi_getAccoNameWithStars')->getCallable()((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 173, $this->source); })()));
echo "</h1>
";
// line 175
$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.', 175, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["classification"]) {
// line 176
echo " <div class=\"row row--gutter-width-20 mb-2\">
<div class=\"col col-auto\">
";
// line 178
$context["count"] = twig_get_attribute($this->env, $this->source, $context["classification"], "getClassificationGroupAmount", [], "method", false, false, false, 178);
// line 179
echo " ";
$context["group"] = twig_get_attribute($this->env, $this->source, $context["classification"], "getClassificationGroup", [], "method", false, false, false, 179);
// line 180
echo " ";
if ((( !twig_test_empty((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 180, $this->source); })())) && twig_get_attribute($this->env, $this->source, $context["classification"], "getShowAsIcon", [], "method", false, false, false, 180)) && !(null === twig_get_attribute($this->env, $this->source, $context["classification"], "demiGetIcon", [], "method", false, false, false, 180)))) {
// line 181
echo " <span class=\"classification_holder hidden-xs\"
aria-label=\"";
// line 182
echo twig_escape_filter($this->env, (isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 182, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, 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.', 182, $this->source); })()), "getName", [], "method", false, false, false, 182), "html", null, true);
echo "\">
";
// line 183
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, (isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 183, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["c"]) {
// line 184
echo " ";
$context["thumbnail"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["classification"], "demiGetIcon", [], "method", false, false, false, 184), "getThumbnail", [0 => "demi-classification"], "method", false, false, false, 184);
// line 185
echo " ";
echo 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.', 185, $this->source); })()), "getHTML", [], "method", false, false, false, 185);
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 187
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["classification"], "getIsSuperior", [], "method", false, false, false, 187)) {
// line 188
echo " <span class=\"classification-superior\">S</span>
";
}
// line 190
echo " </span>
";
}
// line 192
echo " </div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['classification'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 195
echo "
<div class=\"row row--gutter-width-20 mb-2\">
<div class=\"col col-auto\">
";
// line 198
echo twig_escape_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.', 198, $this->source); })()), "getCategoryNames", [0 => 2], "method", false, false, false, 198), "html", null, true);
echo "
</div>
<div class=\"col\">
<div class=\"media text-muted\">
";
// line 202
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.', 202, $this->source); })()), "getTown", [], "method", false, false, false, 202)) && ( !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.', 202, $this->source); })()), "getTown", [], "method", false, false, false, 202), "getNameLocalized", [0 => 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.', 202, $this->source); })()), "request", [], "any", false, false, false, 202), "locale", [], "any", false, false, false, 202)], "method", false, false, false, 202)) || !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.', 202, $this->source); })()), "getTown", [], "method", false, false, false, 202), "getName", [], "method", false, false, false, 202))))) {
// line 203
echo " <div class=\"demi-icon demi-icon-marker mr-1 icon-in-text\"
title=\"";
// line 204
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 206
echo twig_escape_filter($this->env, (( !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.', 206, $this->source); })()), "getTown", [], "method", false, false, false, 206), "getNameLocalized", [0 => 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.', 206, $this->source); })()), "request", [], "any", false, false, false, 206), "locale", [], "any", false, false, false, 206)], "method", false, false, false, 206))) ? (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.', 206, $this->source); })()), "getTown", [], "method", false, false, false, 206), "getNameLocalized", [0 => 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.', 206, $this->source); })()), "request", [], "any", false, false, false, 206), "locale", [], "any", false, false, false, 206)], "method", false, false, false, 206)) : (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.', 206, $this->source); })()), "getTown", [], "method", false, false, false, 206), "getName", [], "method", false, false, false, 206))), "html", null, true);
echo "
</div>
";
} elseif (( !(null === twig_get_attribute($this->env, $this->source, // line 208
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 208, $this->source); })()), "getDistrict", [], "method", false, false, false, 208)) && (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.', 208, $this->source); })()), "getDistrict", [], "method", false, false, false, 208), "getNameLocalized", [0 => 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.', 208, $this->source); })()), "request", [], "any", false, false, false, 208), "locale", [], "any", false, false, false, 208)], "method", false, false, false, 208) || !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.', 208, $this->source); })()), "getDistrict", [], "method", false, false, false, 208), "getName", [], "method", false, false, false, 208))))) {
// line 209
echo " <div class=\"demi-icon demi-icon-marker mr-1 icon-in-text\"
title=\"";
// line 210
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 212
echo twig_escape_filter($this->env, (( !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.', 212, $this->source); })()), "getDistrict", [], "method", false, false, false, 212), "getNameLocalized", [0 => 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.', 212, $this->source); })()), "request", [], "any", false, false, false, 212), "locale", [], "any", false, false, false, 212)], "method", false, false, false, 212))) ? (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.', 212, $this->source); })()), "getDistrict", [], "method", false, false, false, 212), "getNameLocalized", [0 => 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.', 212, $this->source); })()), "request", [], "any", false, false, false, 212), "locale", [], "any", false, false, false, 212)], "method", false, false, false, 212)) : (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.', 212, $this->source); })()), "getDistrict", [], "method", false, false, false, 212), "getName", [], "method", false, false, false, 212))), "html", null, true);
echo "
</div>
";
} elseif (( !(null === // line 214
(isset($context["address"]) || array_key_exists("address", $context) ? $context["address"] : (function () { throw new RuntimeError('Variable "address" does not exist.', 214, $this->source); })())) && !(null === 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.', 214, $this->source); })()), "getTown", [], "any", false, false, false, 214)))) {
// line 215
echo " <div class=\"demi-icon demi-icon-marker mr-1 icon-in-text\"
title=\"";
// line 216
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.town"), "html", null, true);
echo "\"
aria-label=\"";
// line 217
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 219
echo twig_escape_filter($this->env, 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.', 219, $this->source); })()), "getTown", [], "method", false, false, false, 219), "html", null, true);
echo "
</div>
";
}
// line 222
echo " </div>
</div>
</div>
<div class=\"row row--gutter-width-20 mb-2\">
<div class=\"col\">
";
// line 228
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.', 228, $this->source); })()), "getRatingSystem", [], "method", false, false, false, 228) == "TrustYou")) {
// line 229
echo " ";
$context["normalizedRating"] = $this->env->getFunction('demi_ratingGetNormalized')->getCallable()((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 229, $this->source); })()), (isset($context["maxRatingValue"]) || array_key_exists("maxRatingValue", $context) ? $context["maxRatingValue"] : (function () { throw new RuntimeError('Variable "maxRatingValue" does not exist.', 229, $this->source); })()), (isset($context["maxRatingNormalized"]) || array_key_exists("maxRatingNormalized", $context) ? $context["maxRatingNormalized"] : (function () { throw new RuntimeError('Variable "maxRatingNormalized" does not exist.', 229, $this->source); })()));
// line 230
echo " ";
if ( !twig_test_empty((isset($context["normalizedRating"]) || array_key_exists("normalizedRating", $context) ? $context["normalizedRating"] : (function () { throw new RuntimeError('Variable "normalizedRating" does not exist.', 230, $this->source); })()))) {
// line 231
echo " <img src=\"/static/demi/debug/img/trustyou-logo.png\" alt=\"Logo Trustyou\" class=\"mb-1\">
";
// line 232
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/rating.html.twig", ["score" => // line 233
(isset($context["normalizedRating"]) || array_key_exists("normalizedRating", $context) ? $context["normalizedRating"] : (function () { throw new RuntimeError('Variable "normalizedRating" does not exist.', 233, $this->source); })()), "text" => twig_get_attribute($this->env, $this->source, // line 234
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 234, $this->source); })()), "getRatingScoreDescription", [], "method", false, false, false, 234), "styleModifier" => "mb-1", "showReviewCount" => true, "ratingCount" => twig_get_attribute($this->env, $this->source, // line 237
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 237, $this->source); })()), "getRatingCountDirect", [], "method", false, false, false, 237)]);
// line 238
echo "
";
}
// line 240
echo " ";
}
// line 241
echo "
</div>
<div class=\"col col-auto\">
";
// line 244
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/serviceprovider-logo.html.twig", ["logo" => twig_first($this->env, twig_get_attribute($this->env, $this->source, // line 245
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 245, $this->source); })()), "getImages", [0 => [0 => twig_constant("Elements\\Demi\\Deskline\\Constant\\DocumentInterface::DOCUMENT_TYPE_SERVICE_PROVIDER_LOGO")]], "method", false, false, false, 245))]);
// line 246
echo "
</div>
</div>
</div>
<figure class=\"figure my-3\">
";
// line 252
$context["firstImage"] = 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.', 252, $this->source); })()), "getFirstImage", [0 => (isset($context["imagesTypes"]) || array_key_exists("imagesTypes", $context) ? $context["imagesTypes"] : (function () { throw new RuntimeError('Variable "imagesTypes" does not exist.', 252, $this->source); })()), 1 => (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 252, $this->source); })())], "method", false, false, false, 252);
// line 253
echo " ";
if ( !(null === (isset($context["firstImage"]) || array_key_exists("firstImage", $context) ? $context["firstImage"] : (function () { throw new RuntimeError('Variable "firstImage" does not exist.', 253, $this->source); })()))) {
// line 254
echo " ";
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["firstImage"]) || array_key_exists("firstImage", $context) ? $context["firstImage"] : (function () { throw new RuntimeError('Variable "firstImage" does not exist.', 254, $this->source); })()), "getThumbnail", [0 => "demi-mobile-header-img"], "method", false, false, false, 254), "getHTML", [0 => ["imgAttributes" => ["class" => "img-full-width"]]], "method", false, false, false, 254);
echo "
";
}
// line 256
echo "
";
// line 257
$context["images"] = 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.', 257, $this->source); })()), "getImages", [0 => (isset($context["imagesTypes"]) || array_key_exists("imagesTypes", $context) ? $context["imagesTypes"] : (function () { throw new RuntimeError('Variable "imagesTypes" does not exist.', 257, $this->source); })()), 1 => (isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 257, $this->source); })()), 2 => true], "method", false, false, false, 257);
// line 258
echo " ";
$context["photoCount"] = twig_length_filter($this->env, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 258, $this->source); })()));
// line 259
echo " ";
if (((isset($context["photoCount"]) || array_key_exists("photoCount", $context) ? $context["photoCount"] : (function () { throw new RuntimeError('Variable "photoCount" does not exist.', 259, $this->source); })()) > 1)) {
// line 260
echo "
<div class=\"figure__item figure__item--right figure__item--bottom m-3\">
<button class=\"btn btn-primary js-overlay__toggle js-tracking--click-piwik\"
data-target=\"#";
// line 263
echo twig_escape_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.', 263, $this->source); })()), "getId", [], "method", false, false, false, 263), "html", null, true);
echo "-imgs-overlay\"
data-tracking-category=\"Gallery\"
data-tracking-action=\"open\">
";
// line 266
$context["galleryString"] = ((((isset($context["photoCount"]) || array_key_exists("photoCount", $context) ? $context["photoCount"] : (function () { throw new RuntimeError('Variable "photoCount" does not exist.', 266, $this->source); })()) > 1)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.images-gallery-button")) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.image-gallery-button")));
// line 267
echo " ";
$context["galleryString"] = twig_replace_filter((isset($context["galleryString"]) || array_key_exists("galleryString", $context) ? $context["galleryString"] : (function () { throw new RuntimeError('Variable "galleryString" does not exist.', 267, $this->source); })()), ["[AMOUNT_IMAGES]" => (isset($context["photoCount"]) || array_key_exists("photoCount", $context) ? $context["photoCount"] : (function () { throw new RuntimeError('Variable "photoCount" does not exist.', 267, $this->source); })())]);
// line 268
echo " ";
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsOpenGraph(), "setImages", [0 => twig_array_merge(twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsOpenGraph(), "getImages", [], "any", false, false, false, 268), [0 => (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.', 268, $this->source); })()), "request", [], "any", false, false, false, 268), "getHost", [], "method", false, false, false, 268) . twig_get_attribute($this->env, $this->source, twig_first($this->env, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 268, $this->source); })())), "getThumbnail", [0 => "ogimages"], "method", false, false, false, 268))])], "method", false, false, false, 268);
// line 269
echo " ";
echo twig_escape_filter($this->env, (isset($context["galleryString"]) || array_key_exists("galleryString", $context) ? $context["galleryString"] : (function () { throw new RuntimeError('Variable "galleryString" does not exist.', 269, $this->source); })()), "html", null, true);
echo "
</button>
</div>
</div>
";
}
// line 274
echo " </figure>
<div class=\"container\" aria-live=\"polite\">
<div class=\"js-room-list__loading js-corridor__search-info-loading\" hidden>
<div class=\"text-center py-3\">
";
// line 279
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\" id=\"searchInfo\" data-list=\"searchInfo\">
";
// line 284
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/searchInfoBox.mobile.html.twig", ["accommodationResultSet" => // line 285
(isset($context["accommodationResultSet"]) || array_key_exists("accommodationResultSet", $context) ? $context["accommodationResultSet"] : (function () { throw new RuntimeError('Variable "accommodationResultSet" does not exist.', 285, $this->source); })()), "isPackage" => false]);
// line 287
echo "
</div>
</div>
<div class=\"mt-3\">
<ul class=\"nav nav-border-tabs justify-content-center\" role=\"tablist\">
<li class=\"nav-item\">
<a class=\"nav-link js-param-tab";
// line 294
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 294, $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.', 294, $this->source); })()), "detail", [], "array", false, false, false, 294))) ? (" active") : (""));
echo " js-tracking js-tracking--click\"
href=\"";
// line 295
echo twig_escape_filter($this->env, 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.', 295, $this->source); })()), "detail", [], "array", false, false, false, 295), "html", null, true);
echo "\"
data-toggle=\"tab\"
role=\"tab\"
aria-expanded=\"";
// line 298
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 298, $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.', 298, $this->source); })()), "detail", [], "array", false, false, false, 298))) ? ("true") : ("false"));
echo "\"
data-tracking-category=\"button\"
data-tracking-action=\"detail\"
data-tracking-label=\"";
// line 301
echo twig_escape_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.', 301, $this->source); })()), "getName", [], "method", false, false, false, 301));
echo "\">
";
// line 302
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.tab.accommodation-details"), "html", null, true);
echo "
</a>
</li>
<li class=\"nav-item\" ";
// line 305
echo ((((isset($context["hasHousePackages"]) || array_key_exists("hasHousePackages", $context) ? $context["hasHousePackages"] : (function () { throw new RuntimeError('Variable "hasHousePackages" does not exist.', 305, $this->source); })()) || (( !(null === (isset($context["destinationPackages"]) || array_key_exists("destinationPackages", $context) ? $context["destinationPackages"] : (function () { throw new RuntimeError('Variable "destinationPackages" does not exist.', 305, $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.', 305, $this->source); })())) > 0)) && $this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getShowDestinationPackagesOnAccoDetail", [])))) ? ("") : ("hidden"));
echo ">
<a class=\"nav-link js-param-tab";
// line 306
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 306, $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.', 306, $this->source); })()), "package", [], "array", false, false, false, 306))) ? (" active") : (""));
echo " js-tracking js-tracking--click\"
href=\"";
// line 307
echo twig_escape_filter($this->env, 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.', 307, $this->source); })()), "package", [], "array", false, false, false, 307), "html", null, true);
echo "\"
data-toggle=\"tab\"
role=\"tab\"
aria-expanded=\"";
// line 310
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 310, $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.', 310, $this->source); })()), "package", [], "array", false, false, false, 310))) ? ("true") : ("false"));
echo "\"
data-tracking-category=\"button\"
data-tracking-action=\"package\"
data-tracking-label=\"";
// line 313
echo twig_escape_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.', 313, $this->source); })()), "getName", [], "method", false, false, false, 313));
echo "\">
";
// line 314
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.tab.packages"), "html", null, true);
echo "
</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link js-param-tab ";
// line 318
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 318, $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.', 318, $this->source); })()), "rooms", [], "array", false, false, false, 318))) ? (" active") : (""));
echo " js-tracking js-tracking--click\"
href=\"";
// line 319
echo twig_escape_filter($this->env, 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.', 319, $this->source); })()), "rooms", [], "array", false, false, false, 319), "html", null, true);
echo "\"
data-toggle=\"tab\"
role=\"tab\"
aria-expanded=\"";
// line 322
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 322, $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.', 322, $this->source); })()), "rooms", [], "array", false, false, false, 322))) ? ("true") : ("false"));
echo "\"
data-tracking-category=\"button\"
data-tracking-action=\"rooms\"
data-tracking-label=\"";
// line 325
echo twig_escape_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.', 325, $this->source); })()), "getName", [], "method", false, false, false, 325));
echo "\">
";
// line 326
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->env->getFunction('demi_getRoomsTabTranslationKey')->getCallable()((isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 326, $this->source); })()))), "html", null, true);
echo "
</a>
</li>
</ul>
</div>
<div class=\"bg-light-gray pb-4 pt-2\">
<div class=\"tab-content\">
<div class=\"tab-pane";
// line 334
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 334, $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.', 334, $this->source); })()), "detail", [], "array", false, false, false, 334))) ? (" active ") : (""));
echo " pt-2\" id=\"details\"
role=\"tabpanel\">
";
// line 336
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/acco-details.mobile.html.twig", ["package" => false, "address" => // line 338
(isset($context["address"]) || array_key_exists("address", $context) ? $context["address"] : (function () { throw new RuntimeError('Variable "address" does not exist.', 338, $this->source); })()), "photoCount" => (( // line 339
array_key_exists("photoCount", $context)) ? ((isset($context["photoCount"]) || array_key_exists("photoCount", $context) ? $context["photoCount"] : (function () { throw new RuntimeError('Variable "photoCount" does not exist.', 339, $this->source); })())) : (0)), "availabilityIsChecked" => // line 340
(isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 340, $this->source); })()), "fromDate" => // line 341
(isset($context["fromDate"]) || array_key_exists("fromDate", $context) ? $context["fromDate"] : (function () { throw new RuntimeError('Variable "fromDate" does not exist.', 341, $this->source); })())]);
// line 342
echo "
</div>
<div class=\"tab-pane";
// line 345
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 345, $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.', 345, $this->source); })()), "package", [], "array", false, false, false, 345))) ? (" active ") : (""));
echo " pt-2\" id=\"packages\"
role=\"tabpanel\">
";
// line 347
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/acco-packages.mobile.html.twig", ["packages" => (( // line 348
array_key_exists("packages", $context)) ? ((isset($context["packages"]) || array_key_exists("packages", $context) ? $context["packages"] : (function () { throw new RuntimeError('Variable "packages" does not exist.', 348, $this->source); })())) : (null)), "destinationPackages" => (( // line 349
array_key_exists("destinationPackages", $context)) ? ((isset($context["destinationPackages"]) || array_key_exists("destinationPackages", $context) ? $context["destinationPackages"] : (function () { throw new RuntimeError('Variable "destinationPackages" does not exist.', 349, $this->source); })())) : (null)), "accommodation" => // line 350
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 350, $this->source); })())]);
// line 351
echo "
</div>
<div class=\"tab-pane";
// line 354
echo ((((isset($context["activeTab"]) || array_key_exists("activeTab", $context) ? $context["activeTab"] : (function () { throw new RuntimeError('Variable "activeTab" does not exist.', 354, $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.', 354, $this->source); })()), "rooms", [], "array", false, false, false, 354))) ? (" active ") : (""));
echo " pt-2\" id=\"rooms\"
role=\"tabpanel\">
";
// line 356
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig", ["package" => false, "availabilityIsChecked" => // line 358
(isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 358, $this->source); })()), "accommodation" => // line 359
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 359, $this->source); })()), "housePackageMaster" => null, "resultSetPresent" => // line 361
(isset($context["resultSetPresent"]) || array_key_exists("resultSetPresent", $context) ? $context["resultSetPresent"] : (function () { throw new RuntimeError('Variable "resultSetPresent" does not exist.', 361, $this->source); })()), "tvbPackage" => null]);
// line 363
echo "
</div>
</div>
<div class=\"mt-4 text-center\">
";
// line 368
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Accommodation/includes/enquiry-button.html.twig", ["text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.enquiry-button"), "trackingCategory" => "Accommodation detail", "trackingAction" => "click enquiry"]);
// line 372
echo "
</div>
</div>
</main>
";
// line 377
$context["contactSnippet"] = $this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getContactSnippet", []);
// line 378
echo " ";
if ( !twig_test_empty((isset($context["contactSnippet"]) || array_key_exists("contactSnippet", $context) ? $context["contactSnippet"] : (function () { throw new RuntimeError('Variable "contactSnippet" does not exist.', 378, $this->source); })()))) {
// line 379
echo " ";
echo $this->env->getFunction('pimcore_inc')->getCallable()((isset($context["contactSnippet"]) || array_key_exists("contactSnippet", $context) ? $context["contactSnippet"] : (function () { throw new RuntimeError('Variable "contactSnippet" does not exist.', 379, $this->source); })()));
echo "
";
}
// line 381
echo "
";
// line 382
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/overlays/search.html.twig", ["filterSnippet" => twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relation", "filterSnippet"), "getData", [], "method", false, false, false, 383), "searchParam" => // line 384
(isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 384, $this->source); })()), "noDate" => (( // line 385
array_key_exists("noDate", $context)) ? ((isset($context["noDate"]) || array_key_exists("noDate", $context) ? $context["noDate"] : (function () { throw new RuntimeError('Variable "noDate" does not exist.', 385, $this->source); })())) : ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 385, $this->source); })()), "getDateFrom", [], "method", false, false, false, 385)))), "isSearch" => true]);
// line 387
echo "
";
// line 389
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/overlays/img-gallery.html.twig", ["accommodation" => // line 390
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 390, $this->source); })()), "imagesTypes" => // line 391
(isset($context["imagesTypes"]) || array_key_exists("imagesTypes", $context) ? $context["imagesTypes"] : (function () { throw new RuntimeError('Variable "imagesTypes" does not exist.', 391, $this->source); })())]);
// line 392
echo "
";
// line 395
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.', 395, $this->source); })()), "getAddress", [], "method", false, false, false, 395))) && !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.', 395, $this->source); })()), "getAddress", [], "method", false, false, false, 395), "getEmail", [], "method", false, false, false, 395)))) {
// line 396
echo "
";
// line 397
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/overlays/inquiry-overlay.html.twig", ["accommodation" => // line 398
(isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 398, $this->source); })()), "searchParams" => // line 399
(isset($context["searchParam"]) || array_key_exists("searchParam", $context) ? $context["searchParam"] : (function () { throw new RuntimeError('Variable "searchParam" does not exist.', 399, $this->source); })()), "user" => // line 400
(isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 400, $this->source); })())]);
// line 401
echo "
";
}
// line 403
echo "
";
// line 405
if ($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getWarningOnMultipleAccoProducts", [])) {
// line 406
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.', 406, $this->source); })())]);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@ElementsDemiFrontend/Accommodation/detail.mobile.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 860 => 406, 858 => 405, 854 => 403, 850 => 401, 848 => 400, 847 => 399, 846 => 398, 845 => 397, 842 => 396, 840 => 395, 835 => 392, 833 => 391, 832 => 390, 831 => 389, 827 => 387, 825 => 385, 824 => 384, 823 => 382, 820 => 381, 814 => 379, 811 => 378, 809 => 377, 802 => 372, 800 => 368, 793 => 363, 791 => 361, 790 => 359, 789 => 358, 788 => 356, 783 => 354, 778 => 351, 776 => 350, 775 => 349, 774 => 348, 773 => 347, 768 => 345, 763 => 342, 761 => 341, 760 => 340, 759 => 339, 758 => 338, 757 => 336, 752 => 334, 741 => 326, 737 => 325, 731 => 322, 725 => 319, 721 => 318, 714 => 314, 710 => 313, 704 => 310, 698 => 307, 694 => 306, 690 => 305, 684 => 302, 680 => 301, 674 => 298, 668 => 295, 664 => 294, 655 => 287, 653 => 285, 652 => 284, 644 => 279, 637 => 274, 628 => 269, 625 => 268, 622 => 267, 620 => 266, 614 => 263, 609 => 260, 606 => 259, 603 => 258, 601 => 257, 598 => 256, 592 => 254, 589 => 253, 587 => 252, 579 => 246, 577 => 245, 576 => 244, 571 => 241, 568 => 240, 564 => 238, 562 => 237, 561 => 234, 560 => 233, 559 => 232, 556 => 231, 553 => 230, 550 => 229, 548 => 228, 540 => 222, 534 => 219, 529 => 217, 525 => 216, 522 => 215, 520 => 214, 515 => 212, 508 => 210, 505 => 209, 503 => 208, 498 => 206, 491 => 204, 488 => 203, 486 => 202, 479 => 198, 474 => 195, 466 => 192, 462 => 190, 458 => 188, 455 => 187, 446 => 185, 443 => 184, 439 => 183, 433 => 182, 430 => 181, 427 => 180, 424 => 179, 422 => 178, 418 => 176, 414 => 175, 406 => 173, 401 => 170, 399 => 169, 391 => 164, 387 => 163, 382 => 161, 378 => 160, 369 => 153, 367 => 151, 366 => 150, 365 => 149, 364 => 148, 363 => 147, 362 => 146, 361 => 145, 360 => 144, 359 => 143, 358 => 140, 352 => 137, 347 => 134, 342 => 131, 339 => 130, 334 => 128, 331 => 127, 328 => 126, 326 => 125, 321 => 123, 316 => 121, 312 => 120, 308 => 119, 304 => 118, 299 => 116, 295 => 115, 289 => 112, 285 => 111, 281 => 110, 277 => 109, 273 => 108, 269 => 107, 265 => 106, 261 => 105, 251 => 97, 249 => 89, 247 => 88, 244 => 87, 242 => 86, 238 => 84, 232 => 83, 229 => 82, 226 => 81, 223 => 80, 220 => 79, 215 => 78, 212 => 77, 210 => 76, 207 => 75, 205 => 74, 201 => 72, 199 => 71, 196 => 70, 194 => 65, 190 => 63, 187 => 62, 184 => 61, 181 => 60, 178 => 59, 176 => 58, 173 => 57, 171 => 52, 168 => 51, 165 => 50, 162 => 49, 160 => 48, 157 => 47, 154 => 46, 151 => 45, 148 => 44, 146 => 43, 143 => 42, 140 => 41, 137 => 40, 134 => 39, 132 => 38, 129 => 37, 127 => 35, 126 => 34, 123 => 33, 120 => 32, 117 => 31, 115 => 30, 112 => 29, 110 => 28, 107 => 27, 104 => 26, 101 => 25, 98 => 24, 95 => 23, 93 => 22, 90 => 21, 87 => 20, 77 => 19, 66 => 18, 63 => 15, 61 => 14, 59 => 12, 57 => 11, 55 => 6, 52 => 3, 50 => 2, 48 => 1, 35 => 18,);
}
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) ) %}
{% endif %}
{% set destinationPackages = destinationPackages is defined ? destinationPackages : null %}
{#{% 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 %}
{% if not canonicalUrl is same as(app.request.pathInfo) %}
{% do elements_robots().setNoIndex(true) %}
{% endif %}
{% extends '@ElementsDemiFrontend/Layout/layout.html.twig' %}
{% block content %}
{% do demi_paymentSetDefaultCurrency(accommodation) %}
{% if not availabilityIsChecked %}
{% set fromDate = null %}
{% else %}
{% set fromDate = demi_getSearchFrom() %}
{% endif %}
{% 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 address = accommodation.getAddress() %}
{% set maxRatingValue = demi_core_configuration('getMaxRatingValue',[]) ?: 5 %}
{% set maxRatingNormalized = demi_core_configuration('getMaxRatingNormalized',[]) ?: 5 %}
{% set anchors = {
'detail': '#details',
'package': '#packages',
'rooms': '#rooms'
} %}
{% if activeTab is defined and activeTab not in anchors %}
{% set activeTab = '#details' %}
{% else %}
{% do jsConfig('_initialState').add({'activeTab': activeTab}) %}
{% endif %}
{% set step1Url = demi_demiUrl({
'path': demi_core_configuration('getCheckoutPath',[]).getFullPath(),
'controller': 'cart',
'action': 'step1'
},'demi_checkout',true) %}
{% set addToCartUrl = step1Url %}
{% set imagesTypes = demi_getAccoImagesTypesAsArray(accommodation) %}
{% 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 %}
{% set jsonLdData = demi_getAccommodationJsonLdData(accommodation, options is defined ? options : [], packages is defined ? packages : null) %}
{% do jsonLd().add(\"accommodation\", jsonLdData) %}
{# 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 data-cookieconsent=\"ignore\">
_config.viewType = \"object\";
_config.historyController = true;
_config.roomSelection = true;
_config.searchData = true;
_config.detailResultUrl = '{{ liveDetailProductsUrl }}';
_config.corridorSearchUrl = '{{ corridorMatrixUrl }}';
_config.detailPaymentInfoUrl = '{{ paymentInformationUrl }}';
_config.detailProductUrl = '{{ productUrl }}';
_config.addToCartUrl = '{{ addToCartUrl }}';
_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.isWhitelabel = {{ demi_core_configuration(\"getIsWhitelabel\",[]) ? 'true' : 'false' }};
_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[0] is not empty %}
_config.urlParams = _config.urlParams || [];
_config.urlParams.push({name: \"mealtype\", value: \"{{ mealtypeId[0] }}\"});
{% 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
}
) }}
<main id=\"main\" role=\"main\">
<div>
<div class=\"js-search-data__show-if-submitted\" {{ availabilityIsChecked ? '' : 'hidden' }}>
{{ include('@ElementsDemiFrontend/Includes/ribbon.html.twig',{'searchParam': searchParam,'showBackButton': true, 'withFlag': false}) }}
</div>
<div class=\"js-search-data__hide-if-submitted\" {{ availabilityIsChecked ? 'hidden' : '' }}>
{{ include('@ElementsDemiFrontend/Includes/ribbon-price.html.twig',{'resultSet': accommodationResultSet ? accommodationResultSet.getMinPriceBase(true): null, 'accommodation': accommodation}) }}
</div>
</div>
<div class=\"container\">
{% 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=\"h2 text-primary{{ hasClassificationsWithIcons ? ' mb-1' : '' }}\">{{ demi_getAccoNameWithStars(accommodation) }}</h1>
{% for classification in classifications %}
<div class=\"row row--gutter-width-20 mb-2\">
<div class=\"col col-auto\">
{% set count = classification.getClassificationGroupAmount() %}
{% set group = classification.getClassificationGroup() %}
{% if count is not empty and classification.getShowAsIcon() and classification.demiGetIcon() is not null %}
<span class=\"classification_holder hidden-xs\"
aria-label=\"{{ count }} {{ group.getName() }}\">
{% for c in 0..count %}
{% set thumbnail = classification.demiGetIcon().getThumbnail('demi-classification') %}
{{ thumbnail.getHTML()|raw }}
{% endfor %}
{% if classification.getIsSuperior() %}
<span class=\"classification-superior\">S</span>
{% endif %}
</span>
{% endif %}
</div>
</div>
{% endfor %}
<div class=\"row row--gutter-width-20 mb-2\">
<div class=\"col col-auto\">
{{ accommodation.getCategoryNames(2) }}
</div>
<div class=\"col\">
<div class=\"media text-muted\">
{% if accommodation.getTown() is not null and (accommodation.getTown().getNameLocalized(app.request.locale) is not empty or accommodation.getTown().getName() is not empty) %}
<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) is not empty ? 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() is not empty) %}
<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.getDistrict().getNameLocalized(app.request.locale) is not empty ? accommodation.getDistrict().getNameLocalized(app.request.locale) : accommodation.getDistrict().getName() }}
</div>
{% elseif address is not null and address.getTown is not null %}
<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 %}
</div>
</div>
</div>
<div class=\"row row--gutter-width-20 mb-2\">
<div class=\"col\">
{% if accommodation.getRatingSystem()==\"TrustYou\" %}
{% set normalizedRating = demi_ratingGetNormalized(accommodation, maxRatingValue, maxRatingNormalized) %}
{% if normalizedRating is not empty %}
<img src=\"/static/demi/debug/img/trustyou-logo.png\" alt=\"Logo Trustyou\" class=\"mb-1\">
{{ include('@ElementsDemiFrontend/Includes/rating.html.twig', {
\"score\": normalizedRating,
\"text\": accommodation.getRatingScoreDescription(),
\"styleModifier\": \"mb-1\",
\"showReviewCount\": true,
\"ratingCount\": accommodation.getRatingCountDirect()
}) }}
{% endif %}
{% endif %}
</div>
<div class=\"col col-auto\">
{{ 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>
</div>
<figure class=\"figure my-3\">
{% set firstImage = accommodation.getFirstImage(imagesTypes,fromDate) %}
{% if firstImage is not null %}
{{ firstImage.getThumbnail('demi-mobile-header-img').getHTML({ 'imgAttributes': {'class': 'img-full-width' }})|raw }}
{% endif %}
{% set images = accommodation.getImages(imagesTypes, fromDate, true) %}
{% set photoCount = images|length %}
{% if photoCount > 1 %}
<div class=\"figure__item figure__item--right figure__item--bottom m-3\">
<button class=\"btn btn-primary js-overlay__toggle js-tracking--click-piwik\"
data-target=\"#{{ accommodation.getId() }}-imgs-overlay\"
data-tracking-category=\"Gallery\"
data-tracking-action=\"open\">
{% set galleryString = photoCount > 1 ? 'demi.detail.images-gallery-button'|trans : 'demi.detail.image-gallery-button'|trans %}
{% set galleryString = galleryString|replace({'[AMOUNT_IMAGES]': photoCount}) %}
{% do elements_opengraph().setImages(elements_opengraph().getImages|merge( [app.request.getHost() ~ (images|first).getThumbnail('ogimages')])) %}
{{ galleryString }}
</button>
</div>
</div>
{% endif %}
</figure>
<div class=\"container\" aria-live=\"polite\">
<div class=\"js-room-list__loading js-corridor__search-info-loading\" 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\" id=\"searchInfo\" data-list=\"searchInfo\">
{{ include('@ElementsDemiFrontend/Accommodation/searchInfoBox.mobile.html.twig', {
\"accommodationResultSet\": accommodationResultSet,
\"isPackage\": false,
}) }}
</div>
</div>
<div class=\"mt-3\">
<ul class=\"nav nav-border-tabs justify-content-center\" 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.accommodation-details'|trans }}
</a>
</li>
<li class=\"nav-item\" {{ hasHousePackages or (destinationPackages is not null and destinationPackages|length > 0 and demi_core_configuration(\"getShowDestinationPackagesOnAccoDetail\",[])) ? \"\" : \"hidden\" }}>
<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>
<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=\"rooms\"
data-tracking-label=\"{{ accommodation.getName()|escape }}\">
{{ demi_getRoomsTabTranslationKey(accommodation)|trans }}
</a>
</li>
</ul>
</div>
<div class=\"bg-light-gray pb-4 pt-2\">
<div class=\"tab-content\">
<div class=\"tab-pane{{ activeTab == anchors['detail'] ? ' active ' : '' }} pt-2\" id=\"details\"
role=\"tabpanel\">
{{ include(\"@ElementsDemiFrontend/Accommodation/includes/acco-details.mobile.html.twig\" ,{
'package': false,
'address': address,
'photoCount': photoCount is defined ? photoCount : 0,
'availabilityIsChecked': availabilityIsChecked,
'fromDate': fromDate
}) }}
</div>
<div class=\"tab-pane{{ activeTab == anchors['package'] ? ' active ' : '' }} pt-2\" id=\"packages\"
role=\"tabpanel\">
{{ include(\"@ElementsDemiFrontend/Accommodation/includes/acco-packages.mobile.html.twig\" ,{
'packages': packages is defined ? packages : null,
'destinationPackages': destinationPackages is defined ? destinationPackages : null,
'accommodation': accommodation
}) }}
</div>
<div class=\"tab-pane{{ activeTab == anchors['rooms'] ? ' active ' : '' }} pt-2\" id=\"rooms\"
role=\"tabpanel\">
{{ include(\"@ElementsDemiFrontend/Accommodation/includes/acco-rooms.html.twig\" ,{
'package': false,
'availabilityIsChecked': availabilityIsChecked,
'accommodation': accommodation,
'housePackageMaster': null,
'resultSetPresent': resultSetPresent,
'tvbPackage': null,
}) }}
</div>
</div>
<div class=\"mt-4 text-center\">
{{ include(\"@ElementsDemiFrontend/Accommodation/includes/enquiry-button.html.twig\", {
\"text\": \"demi.detail.enquiry-button\"|trans,
\"trackingCategory\": \"Accommodation detail\",
\"trackingAction\": \"click enquiry\"
}) }}
</div>
</div>
</main>
{% set contactSnippet = demi_core_configuration('getContactSnippet',[]) %}
{% if(contactSnippet is not empty) %}
{{ pimcore_inc(contactSnippet) }}
{% endif %}
{{ include('@ElementsDemiFrontend/Includes/overlays/search.html.twig',{
'filterSnippet': pimcore_relation('filterSnippet').getData(),
'searchParam': searchParam,
'noDate': noDate is defined ? noDate : searchParam.getDateFrom() is not null,
'isSearch': true
}) }}
{{ include('@ElementsDemiFrontend/Includes/overlays/img-gallery.html.twig',{
'accommodation': accommodation,
'imagesTypes': imagesTypes
}) }}
{% 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.mobile.html.twig", "/home/steiermark/www/src/Elements/Bundle/DemiFrontendBundle/Resources/views/Accommodation/detail.mobile.html.twig");
}
}