<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @ElementsDemiFrontend/Includes/teaser/room-details.html.twig */
class __TwigTemplate_6767ab2fa140eb5bee8760540d3a69f7 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ElementsDemiFrontend/Includes/teaser/room-details.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ElementsDemiFrontend/Includes/teaser/room-details.html.twig"));
// line 8
echo "
";
// line 9
$context["package"] = ((array_key_exists("package", $context)) ? ((isset($context["package"]) || array_key_exists("package", $context) ? $context["package"] : (function () { throw new RuntimeError('Variable "package" does not exist.', 9, $this->source); })())) : (null));
// line 10
echo "
<div id=\"detail-";
// line 11
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 11, $this->source); })()), 11, $this->source), "html", null, true);
echo "\" class=\"collapse\" aria-expanded=\"false\" data-parent=\"#room-row-collapse-parent-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 11, $this->source); })()), 11, $this->source), "html", null, true);
echo "\">
";
// line 12
if (twig_get_attribute($this->env, $this->source, Pimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method", false, false, true, 12)) {
// line 13
echo " <hr class=\"m-0\">
";
}
// line 15
echo "
<div class=\"";
// line 16
echo ((twig_get_attribute($this->env, $this->source, Pimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method", false, false, true, 16)) ? ("card-body") : ("room-selection-box border-top-0"));
echo "\">
<div class=\"";
// line 18
echo ((twig_get_attribute($this->env, $this->source, Pimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method", false, false, true, 18)) ? ("") : ("row"));
echo "\">
<div class=\"";
// line 19
echo ((twig_get_attribute($this->env, $this->source, Pimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method", false, false, true, 19)) ? ("") : ("col-6"));
echo "\">
";
// line 20
if ( !twig_get_attribute($this->env, $this->source, Pimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method", false, false, true, 20)) {
// line 21
echo " <h4 class=\"text-primary\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room-details"), "html", null, true);
echo "</h4>
";
}
// line 23
echo "
";
// line 24
$context["service"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 24, $this->source); })()), "getService", [], "method", false, false, true, 24);
// line 25
echo " ";
if (((isset($context["availabilityIsChecked"]) || array_key_exists("availabilityIsChecked", $context) ? $context["availabilityIsChecked"] : (function () { throw new RuntimeError('Variable "availabilityIsChecked" does not exist.', 25, $this->source); })()) || (twig_get_attribute($this->env, $this->source, Pimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method", false, false, true, 25) && ( !array_key_exists("moreRoomRows", $context) || (null === (isset($context["moreRoomRows"]) || array_key_exists("moreRoomRows", $context) ? $context["moreRoomRows"] : (function () { throw new RuntimeError('Variable "moreRoomRows" does not exist.', 25, $this->source); })())))))) {
// line 26
echo " ";
echo twig_include($this->env, $context, "@ElementsDemiFrontend/Includes/teaser/room-details-table.html.twig", ["accommodationProduct" => // line 27
(isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 27, $this->source); })()), "service" => // line 28
(isset($context["service"]) || array_key_exists("service", $context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.', 28, $this->source); })())]);
// line 29
echo "
";
}
// line 33
echo "
";
// line 34
$context["productText"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 34, $this->source); })()), "getDescription", [null, 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.', 34, $this->source); })()), "request", [], "any", false, false, true, 34), "getLocale", [], "method", false, false, true, 34), (isset($context["dateFrom"]) || array_key_exists("dateFrom", $context) ? $context["dateFrom"] : (function () { throw new RuntimeError('Variable "dateFrom" does not exist.', 34, $this->source); })())], "method", false, false, true, 34);
// line 35
echo " ";
if (twig_test_empty((isset($context["productText"]) || array_key_exists("productText", $context) ? $context["productText"] : (function () { throw new RuntimeError('Variable "productText" does not exist.', 35, $this->source); })()))) {
// line 36
echo " ";
$context["productText"] = twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 36, $this->source); })()), "getDescription", [null, $this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getFallbackLanguage", []), (isset($context["dateFrom"]) || array_key_exists("dateFrom", $context) ? $context["dateFrom"] : (function () { throw new RuntimeError('Variable "dateFrom" does not exist.', 36, $this->source); })())], "method", false, false, true, 36);
// line 37
echo " ";
}
// line 38
echo " ";
$context["serviceText"] = (((isset($context["service"]) || array_key_exists("service", $context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.', 38, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["service"]) || array_key_exists("service", $context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.', 38, $this->source); })()), "getDescription", [null, 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.', 38, $this->source); })()), "request", [], "any", false, false, true, 38), "getLocale", [], "method", false, false, true, 38), (isset($context["dateFrom"]) || array_key_exists("dateFrom", $context) ? $context["dateFrom"] : (function () { throw new RuntimeError('Variable "dateFrom" does not exist.', 38, $this->source); })())], "method", false, false, true, 38)) : (null));
// line 39
echo " ";
if (twig_test_empty((isset($context["serviceText"]) || array_key_exists("serviceText", $context) ? $context["serviceText"] : (function () { throw new RuntimeError('Variable "serviceText" does not exist.', 39, $this->source); })()))) {
// line 40
echo " ";
$context["serviceText"] = (((isset($context["service"]) || array_key_exists("service", $context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.', 40, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["service"]) || array_key_exists("service", $context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.', 40, $this->source); })()), "getDescription", [null, $this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getFallbackLanguage", []), (isset($context["dateFrom"]) || array_key_exists("dateFrom", $context) ? $context["dateFrom"] : (function () { throw new RuntimeError('Variable "dateFrom" does not exist.', 40, $this->source); })())], "method", false, false, true, 40)) : (null));
// line 41
echo " ";
}
// line 42
echo "
";
// line 44
$context["facilities"] = $this->env->getFunction('demi_prepareFacilityArrayFromService')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["service"]) || array_key_exists("service", $context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.', 44, $this->source); })()), 44, $this->source));
// line 45
echo "
<div class=\"wysiwyg mt-2\">
<p>";
// line 47
echo $this->sandbox->ensureToStringAllowed((isset($context["serviceText"]) || array_key_exists("serviceText", $context) ? $context["serviceText"] : (function () { throw new RuntimeError('Variable "serviceText" does not exist.', 47, $this->source); })()), 47, $this->source);
echo "</p>
<p>";
// line 48
echo $this->sandbox->ensureToStringAllowed((isset($context["productText"]) || array_key_exists("productText", $context) ? $context["productText"] : (function () { throw new RuntimeError('Variable "productText" does not exist.', 48, $this->source); })()), 48, $this->source);
echo "</p>
</div>
";
// line 52
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["facilities"]) || array_key_exists("facilities", $context) ? $context["facilities"] : (function () { throw new RuntimeError('Variable "facilities" does not exist.', 52, $this->source); })()));
foreach ($context['_seq'] as $context["groupname"] => $context["facilitynames"]) {
// line 53
echo "
<div class=\"wysiwyg\">
<h5 class=\"text-primary mt-3\">";
// line 56
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["groupname"], 56, $this->source), "html", null, true);
echo "</h5>
<p>";
// line 57
echo twig_escape_filter($this->env, twig_join_filter($this->sandbox->ensureToStringAllowed($context["facilitynames"], 57, $this->source), ", "), "html", null, true);
echo "</p>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['groupname'], $context['facilitynames'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 60
echo "
</div>
";
// line 64
if ((twig_get_attribute($this->env, $this->source, Pimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method", false, false, true, 64) && (twig_length_filter($this->env, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 64, $this->source); })())) > 1))) {
// line 65
echo " ";
$context["galleryString"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.image-gallery-button");
// line 66
echo " ";
$context["galleryString"] = twig_replace_filter($this->sandbox->ensureToStringAllowed((isset($context["galleryString"]) || array_key_exists("galleryString", $context) ? $context["galleryString"] : (function () { throw new RuntimeError('Variable "galleryString" does not exist.', 66, $this->source); })()), 66, $this->source), ["[AMOUNT_IMAGES]" => twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 66, $this->source); })()), 66, $this->source))]);
// line 67
echo " <div class=\"mt-2\">
<button type=\"button\" class=\"btn btn-primary js-overlay__toggle js-tracking--click-piwik\"
data-target=\"#";
// line 69
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 69, $this->source); })()), 69, $this->source), "html", null, true);
echo "-imgs-overlay\"
data-tracking-category=\"Gallery\"
data-tracking-action=\"open\">
";
// line 72
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["galleryString"]) || array_key_exists("galleryString", $context) ? $context["galleryString"] : (function () { throw new RuntimeError('Variable "galleryString" does not exist.', 72, $this->source); })()), 72, $this->source), "html", null, true);
echo "
</button>
</div>
";
} else {
// line 76
echo " ";
$context["galleryString"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.images-gallery-button");
// line 77
echo " ";
$context["galleryString"] = twig_replace_filter($this->sandbox->ensureToStringAllowed((isset($context["galleryString"]) || array_key_exists("galleryString", $context) ? $context["galleryString"] : (function () { throw new RuntimeError('Variable "galleryString" does not exist.', 77, $this->source); })()), 77, $this->source), ["[AMOUNT_IMAGES]" => ""]);
// line 78
echo " ";
$context["lightboxTopBarUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("demi_lightbox_topbar_content", ["path" => twig_trim_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, // line 79
(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 79, $this->source); })()), "getFullPath", [], "method", false, false, true, 79), 79, $this->source), "/", "left")]);
// line 81
echo " <div class=\"col-6\" ";
echo (((twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 81, $this->source); })()), 81, $this->source)) === 1)) ? ("hidden") : (""));
echo ">
<h4 class=\"text-primary\">";
// line 82
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["galleryString"]) || array_key_exists("galleryString", $context) ? $context["galleryString"] : (function () { throw new RuntimeError('Variable "galleryString" does not exist.', 82, $this->source); })()), 82, $this->source), "html", null, true);
echo "</h4>
<div class=\"row row--gutter-width-1 row--vertical-gutter-1 js-lightbox-group\" id=\"";
// line 83
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 83, $this->source); })()), 83, $this->source), "html", null, true);
echo "-lightbox\"
data-lightbox-topbar-wrapper=\"#lightboxTopBar\"
data-lightbox-topbar-content-url=\"";
// line 85
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["lightboxTopBarUrl"]) || array_key_exists("lightboxTopBarUrl", $context) ? $context["lightboxTopBarUrl"] : (function () { throw new RuntimeError('Variable "lightboxTopBarUrl" does not exist.', 85, $this->source); })()), 85, $this->source), "html", null, true);
echo "?id=";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["accommodation"]) || array_key_exists("accommodation", $context) ? $context["accommodation"] : (function () { throw new RuntimeError('Variable "accommodation" does not exist.', 85, $this->source); })()), "getId", [], "method", false, false, true, 85), 85, $this->source), "html", null, true);
((twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 85, $this->source); })()), "getPackageMaster", [], "method", false, false, true, 85)) ? (print (twig_escape_filter($this->env, ("&pid=" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["accommodationProduct"]) || array_key_exists("accommodationProduct", $context) ? $context["accommodationProduct"] : (function () { throw new RuntimeError('Variable "accommodationProduct" does not exist.', 85, $this->source); })()), "getPackageMaster", [], "method", false, false, true, 85), "getId", [], "method", false, false, true, 85)), "html", null, true))) : (print ("")));
(($this->env->getTest('instanceof')->getCallable()((isset($context["package"]) || array_key_exists("package", $context) ? $context["package"] : (function () { throw new RuntimeError('Variable "package" does not exist.', 85, $this->source); })()), "\\Elements\\Demi\\Model\\Package")) ? (print (twig_escape_filter($this->env, ("&tid=" . twig_get_attribute($this->env, $this->source, (isset($context["package"]) || array_key_exists("package", $context) ? $context["package"] : (function () { throw new RuntimeError('Variable "package" does not exist.', 85, $this->source); })()), "getId", [], "method", false, false, true, 85)), "html", null, true))) : (print ("")));
echo "\">
";
// line 86
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 86, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 87
echo " <div class=\"col-6\">
";
// line 88
if ($context["image"]) {
// line 89
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["image"], "getThumbnail", ["demi-desktop-gallery-overlay"], "method", false, false, true, 89), 89, $this->source), "html", null, true);
echo "\"
aria-label=\"";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.open-gallery"), "html", null, true);
echo "\"
class=\"embed-responsive embed-responsive-3by2 js-lightbox-group__item\"
data-lightbox-thumb=\"";
// line 92
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["image"], "getThumbnail", ["demi-desktop-gallery-small"], "method", false, false, true, 92), 92, $this->source), "html", null, true);
echo "\"
data-sub-html=\"";
// line 93
echo $this->env->getFunction('demi_getNameAndCopyrightForImage')->getCallable()($this->sandbox->ensureToStringAllowed($context["image"], 93, $this->source));
echo "\">
<img class=\"embed-responsive-item js-lazy-img js-lazy-img--img\"
data-src=\"";
// line 95
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["image"], "getThumbnail", ["demi-desktop-room-details"], "method", false, false, true, 95), 95, $this->source), "html", null, true);
echo "\"
alt=\"";
// line 96
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["image"], "getMetadata", ["alt"], "method", false, false, true, 96), 96, $this->source), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["image"], "getMetadata", ["title"], "method", false, false, true, 96), 96, $this->source), "html", null, true);
echo "\">
<div class=\"btn-show-gallery btn-no-styling\"
title=\"";
// line 98
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.open-gallery"), "html", null, true);
echo "\">
<span class=\"demi-icon demi-icon-search btn-show-gallery__icon\"
aria-hidden=\"true\"></span>
</div>
</a>
";
}
// line 104
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 106
echo " </div>
</div>
";
}
// line 109
echo " </div>
</div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@ElementsDemiFrontend/Includes/teaser/room-details.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 300 => 109, 295 => 106, 288 => 104, 279 => 98, 272 => 96, 268 => 95, 263 => 93, 259 => 92, 254 => 90, 249 => 89, 247 => 88, 244 => 87, 240 => 86, 232 => 85, 227 => 83, 223 => 82, 218 => 81, 216 => 79, 214 => 78, 211 => 77, 208 => 76, 201 => 72, 195 => 69, 191 => 67, 188 => 66, 185 => 65, 183 => 64, 177 => 60, 168 => 57, 164 => 56, 159 => 53, 155 => 52, 148 => 48, 144 => 47, 140 => 45, 138 => 44, 134 => 42, 131 => 41, 128 => 40, 125 => 39, 122 => 38, 119 => 37, 116 => 36, 113 => 35, 111 => 34, 108 => 33, 102 => 29, 100 => 28, 99 => 27, 97 => 26, 94 => 25, 92 => 24, 89 => 23, 83 => 21, 81 => 20, 77 => 19, 73 => 18, 68 => 16, 65 => 15, 61 => 13, 59 => 12, 53 => 11, 50 => 10, 48 => 9, 45 => 8,);
}
public function getSourceContext()
{
return new Source("{#
/**
* @var \\Pimcore\\Templating\\PhpEngine this
* @var \\Pimcore\\Templating\\PhpEngine view
* @var \\Pimcore\\Templating\\GlobalVariables app
*/
#}
{% set package = package is defined ? package : null %}
<div id=\"detail-{{ id }}\" class=\"collapse\" aria-expanded=\"false\" data-parent=\"#room-row-collapse-parent-{{ id }}\">
{% if pimcore_device().isPhone() %}
<hr class=\"m-0\">
{% endif %}
<div class=\"{{ pimcore_device().isPhone() ? 'card-body' : 'room-selection-box border-top-0' }}\">
<div class=\"{{ pimcore_device().isPhone() ? '' : 'row' }}\">
<div class=\"{{ pimcore_device().isPhone() ? '' : 'col-6' }}\">
{% if not pimcore_device().isPhone() %}
<h4 class=\"text-primary\">{{ \"demi.detail.room-details\" | trans }}</h4>
{% endif %}
{% set service = accommodationProduct.getService() %}
{% if availabilityIsChecked or pimcore_device().isPhone() and (moreRoomRows is not defined or moreRoomRows is null) %}
{{ include(\"@ElementsDemiFrontend/Includes/teaser/room-details-table.html.twig\", {
\"accommodationProduct\" : accommodationProduct,
'service' : service
}) }}
{% endif %}
{% set productText = accommodationProduct.getDescription(null, app.request.getLocale(), dateFrom) %}
{% if productText is empty %}
{% set productText = accommodationProduct.getDescription(null, demi_core_configuration(\"getFallbackLanguage\", {}), dateFrom) %}
{% endif %}
{% set serviceText = service ? service.getDescription(null, app.request.getLocale(), dateFrom) : null %}
{% if serviceText is empty %}
{% set serviceText = service ? service.getDescription(null, demi_core_configuration(\"getFallbackLanguage\", {}), dateFrom) : null %}
{% endif %}
{% set facilities = demi_prepareFacilityArrayFromService(service) %}
<div class=\"wysiwyg mt-2\">
<p>{{ serviceText|raw }}</p>
<p>{{ productText|raw }}</p>
</div>
{% for groupname, facilitynames in facilities %}
<div class=\"wysiwyg\">
<h5 class=\"text-primary mt-3\">{{ groupname }}</h5>
<p>{{ facilitynames | join(\", \") }}</p>
</div>
{% endfor %}
</div>
{% if pimcore_device().isPhone() and images | length > 1 %}
{% set galleryString = 'demi.detail.room.image-gallery-button' | trans %}
{% set galleryString = galleryString | replace({'[AMOUNT_IMAGES]': images | length}) %}
<div class=\"mt-2\">
<button type=\"button\" class=\"btn btn-primary js-overlay__toggle js-tracking--click-piwik\"
data-target=\"#{{ id }}-imgs-overlay\"
data-tracking-category=\"Gallery\"
data-tracking-action=\"open\">
{{ galleryString }}
</button>
</div>
{% else %}
{% set galleryString = 'demi.detail.images-gallery-button' | trans %}
{% set galleryString = galleryString | replace({'[AMOUNT_IMAGES]': ''}) %}
{% set lightboxTopBarUrl = url('demi_lightbox_topbar_content', {
'path' : document.getFullPath() | trim('/' , 'left')
}) %}
<div class=\"col-6\" {{ images | length is same as 1 ? 'hidden' : '' }}>
<h4 class=\"text-primary\">{{ galleryString }}</h4>
<div class=\"row row--gutter-width-1 row--vertical-gutter-1 js-lightbox-group\" id=\"{{ id }}-lightbox\"
data-lightbox-topbar-wrapper=\"#lightboxTopBar\"
data-lightbox-topbar-content-url=\"{{ lightboxTopBarUrl }}?id={{ accommodation.getId() }}{{ accommodationProduct.getPackageMaster() ? '&pid=' ~ accommodationProduct.getPackageMaster().getId() : '' }}{{ package is instanceof (\"\\\\Elements\\\\Demi\\\\Model\\\\Package\") ? '&tid=' ~ package.getId() : '' }}\">
{% for image in images %}
<div class=\"col-6\">
{% if image %}
<a href=\"{{ image.getThumbnail('demi-desktop-gallery-overlay') }}\"
aria-label=\"{{ \"demi.detail.open-gallery\" | trans }}\"
class=\"embed-responsive embed-responsive-3by2 js-lightbox-group__item\"
data-lightbox-thumb=\"{{ image.getThumbnail('demi-desktop-gallery-small') }}\"
data-sub-html=\"{{ demi_getNameAndCopyrightForImage(image) }}\">
<img class=\"embed-responsive-item js-lazy-img js-lazy-img--img\"
data-src=\"{{ image.getThumbnail('demi-desktop-room-details') }}\"
alt=\"{{ image.getMetadata('alt') }}\" title=\"{{ image.getMetadata('title') }}\">
<div class=\"btn-show-gallery btn-no-styling\"
title=\"{{ \"demi.detail.open-gallery\" | trans }}\">
<span class=\"demi-icon demi-icon-search btn-show-gallery__icon\"
aria-hidden=\"true\"></span>
</div>
</a>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
</div>
", "@ElementsDemiFrontend/Includes/teaser/room-details.html.twig", "/home/steiermark/www/src/Elements/Bundle/DemiFrontendBundle/Resources/views/Includes/teaser/room-details.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 9, "if" => 12, "for" => 52);
static $filters = array("escape" => 11, "trans" => 21, "raw" => 47, "join" => 57, "length" => 64, "replace" => 66, "trim" => 79);
static $functions = array("pimcore_device" => 12, "include" => 26, "demi_core_configuration" => 36, "demi_prepareFacilityArrayFromService" => 44, "url" => 78, "demi_getNameAndCopyrightForImage" => 93);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['escape', 'trans', 'raw', 'join', 'length', 'replace', 'trim'],
['pimcore_device', 'include', 'demi_core_configuration', 'demi_prepareFacilityArrayFromService', 'url', 'demi_getNameAndCopyrightForImage']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}