var/cache/dev/twig/a6/a6a603df447cb46b50a9a0a6064e17f9.php line 216

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @ElementsDemiFrontend/Includes/teaser/room-details.html.twig */
  14. class __TwigTemplate_6767ab2fa140eb5bee8760540d3a69f7 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ElementsDemiFrontend/Includes/teaser/room-details.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ElementsDemiFrontend/Includes/teaser/room-details.html.twig"));
  35.         // line 8
  36.         echo "
  37. ";
  38.         // line 9
  39.         $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));
  40.         // line 10
  41.         echo "
  42. <div id=\"detail-";
  43.         // line 11
  44.         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"nulltrue);
  45.         echo "\" class=\"collapse\" aria-expanded=\"false\" data-parent=\"#room-row-collapse-parent-";
  46.         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"nulltrue);
  47.         echo "\">
  48.     ";
  49.         // line 12
  50.         if (twig_get_attribute($this->env$this->sourcePimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method"falsefalsetrue12)) {
  51.             // line 13
  52.             echo "        <hr class=\"m-0\">
  53.     ";
  54.         }
  55.         // line 15
  56.         echo "
  57.     <div class=\"";
  58.         // line 16
  59.         echo ((twig_get_attribute($this->env$this->sourcePimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method"falsefalsetrue16)) ? ("card-body") : ("room-selection-box border-top-0"));
  60.         echo "\">
  61.         <div class=\"";
  62.         // line 18
  63.         echo ((twig_get_attribute($this->env$this->sourcePimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method"falsefalsetrue18)) ? ("") : ("row"));
  64.         echo "\">
  65.             <div class=\"";
  66.         // line 19
  67.         echo ((twig_get_attribute($this->env$this->sourcePimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method"falsefalsetrue19)) ? ("") : ("col-6"));
  68.         echo "\">
  69.                 ";
  70.         // line 20
  71.         if ( !twig_get_attribute($this->env$this->sourcePimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method"falsefalsetrue20)) {
  72.             // line 21
  73.             echo "                    <h4 class=\"text-primary\">";
  74.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room-details"), "html"nulltrue);
  75.             echo "</h4>
  76.                 ";
  77.         }
  78.         // line 23
  79.         echo "
  80.                 ";
  81.         // line 24
  82.         $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"falsefalsetrue24);
  83.         // line 25
  84.         echo "                ";
  85.         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->sourcePimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method"falsefalsetrue25) && ( !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); })())))))) {
  86.             // line 26
  87.             echo "                    ";
  88.             echo twig_include($this->env$context"@ElementsDemiFrontend/Includes/teaser/room-details-table.html.twig", ["accommodationProduct" =>             // line 27
  89. (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
  90. (isset($context["service"]) || array_key_exists("service"$context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.'28$this->source); })())]);
  91.             // line 29
  92.             echo "
  93.                 ";
  94.         }
  95.         // line 33
  96.         echo "
  97.                 ";
  98.         // line 34
  99.         $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", [nulltwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue34), "getLocale", [], "method"falsefalsetrue34), (isset($context["dateFrom"]) || array_key_exists("dateFrom"$context) ? $context["dateFrom"] : (function () { throw new RuntimeError('Variable "dateFrom" does not exist.'34$this->source); })())], "method"falsefalsetrue34);
  100.         // line 35
  101.         echo "                ";
  102.         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); })()))) {
  103.             // line 36
  104.             echo "                    ";
  105.             $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"falsefalsetrue36);
  106.             // line 37
  107.             echo "                ";
  108.         }
  109.         // line 38
  110.         echo "                ";
  111.         $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", [nulltwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue38), "getLocale", [], "method"falsefalsetrue38), (isset($context["dateFrom"]) || array_key_exists("dateFrom"$context) ? $context["dateFrom"] : (function () { throw new RuntimeError('Variable "dateFrom" does not exist.'38$this->source); })())], "method"falsefalsetrue38)) : (null));
  112.         // line 39
  113.         echo "                ";
  114.         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); })()))) {
  115.             // line 40
  116.             echo "                    ";
  117.             $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"falsefalsetrue40)) : (null));
  118.             // line 41
  119.             echo "                ";
  120.         }
  121.         // line 42
  122.         echo "
  123.                 ";
  124.         // line 44
  125.         $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));
  126.         // line 45
  127.         echo "
  128.                 <div class=\"wysiwyg mt-2\">
  129.                     <p>";
  130.         // line 47
  131.         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);
  132.         echo "</p>
  133.                     <p>";
  134.         // line 48
  135.         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);
  136.         echo "</p>
  137.                 </div>
  138.                 ";
  139.         // line 52
  140.         $context['_parent'] = $context;
  141.         $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); })()));
  142.         foreach ($context['_seq'] as $context["groupname"] => $context["facilitynames"]) {
  143.             // line 53
  144.             echo "
  145.                     <div class=\"wysiwyg\">
  146.                         <h5 class=\"text-primary mt-3\">";
  147.             // line 56
  148.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["groupname"], 56$this->source), "html"nulltrue);
  149.             echo "</h5>
  150.                         <p>";
  151.             // line 57
  152.             echo twig_escape_filter($this->envtwig_join_filter($this->sandbox->ensureToStringAllowed($context["facilitynames"], 57$this->source), ", "), "html"nulltrue);
  153.             echo "</p>
  154.                     </div>
  155.                 ";
  156.         }
  157.         $_parent $context['_parent'];
  158.         unset($context['_seq'], $context['_iterated'], $context['groupname'], $context['facilitynames'], $context['_parent'], $context['loop']);
  159.         $context array_intersect_key($context$_parent) + $_parent;
  160.         // line 60
  161.         echo "
  162.             </div>
  163.             ";
  164.         // line 64
  165.         if ((twig_get_attribute($this->env$this->sourcePimcore\Tool\DeviceDetector::getInstance(), "isPhone", [], "method"falsefalsetrue64) && (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))) {
  166.             // line 65
  167.             echo "                ";
  168.             $context["galleryString"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.room.image-gallery-button");
  169.             // line 66
  170.             echo "                ";
  171.             $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))]);
  172.             // line 67
  173.             echo "                <div class=\"mt-2\">
  174.                     <button type=\"button\" class=\"btn btn-primary js-overlay__toggle js-tracking--click-piwik\"
  175.                             data-target=\"#";
  176.             // line 69
  177.             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"nulltrue);
  178.             echo "-imgs-overlay\"
  179.                             data-tracking-category=\"Gallery\"
  180.                             data-tracking-action=\"open\">
  181.                         ";
  182.             // line 72
  183.             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"nulltrue);
  184.             echo "
  185.                     </button>
  186.                 </div>
  187.             ";
  188.         } else {
  189.             // line 76
  190.             echo "                ";
  191.             $context["galleryString"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.images-gallery-button");
  192.             // line 77
  193.             echo "                ";
  194.             $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]" => ""]);
  195.             // line 78
  196.             echo "                ";
  197.             $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
  198. (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'79$this->source); })()), "getFullPath", [], "method"falsefalsetrue79), 79$this->source), "/""left")]);
  199.             // line 81
  200.             echo "                <div class=\"col-6\" ";
  201.             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") : (""));
  202.             echo ">
  203.                     <h4 class=\"text-primary\">";
  204.             // line 82
  205.             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"nulltrue);
  206.             echo "</h4>
  207.                     <div class=\"row row--gutter-width-1 row--vertical-gutter-1 js-lightbox-group\" id=\"";
  208.             // line 83
  209.             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"nulltrue);
  210.             echo "-lightbox\"
  211.                          data-lightbox-topbar-wrapper=\"#lightboxTopBar\"
  212.                          data-lightbox-topbar-content-url=\"";
  213.             // line 85
  214.             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"nulltrue);
  215.             echo "?id=";
  216.             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"falsefalsetrue85), 85$this->source), "html"nulltrue);
  217.             ((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"falsefalsetrue85)) ? (print (twig_escape_filter($this->env, ("&pid=" twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue85), "getId", [], "method"falsefalsetrue85)), "html"nulltrue))) : (print ("")));
  218.             (($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"falsefalsetrue85)), "html"nulltrue))) : (print ("")));
  219.             echo "\">
  220.                         ";
  221.             // line 86
  222.             $context['_parent'] = $context;
  223.             $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); })()));
  224.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  225.                 // line 87
  226.                 echo "                            <div class=\"col-6\">
  227.                             ";
  228.                 // line 88
  229.                 if ($context["image"]) {
  230.                     // line 89
  231.                     echo "                                <a href=\"";
  232.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["image"], "getThumbnail", ["demi-desktop-gallery-overlay"], "method"falsefalsetrue89), 89$this->source), "html"nulltrue);
  233.                     echo "\"
  234.                                    aria-label=\"";
  235.                     // line 90
  236.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.open-gallery"), "html"nulltrue);
  237.                     echo "\"
  238.                                    class=\"embed-responsive embed-responsive-3by2 js-lightbox-group__item\"
  239.                                    data-lightbox-thumb=\"";
  240.                     // line 92
  241.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["image"], "getThumbnail", ["demi-desktop-gallery-small"], "method"falsefalsetrue92), 92$this->source), "html"nulltrue);
  242.                     echo "\"
  243.                                    data-sub-html=\"";
  244.                     // line 93
  245.                     echo $this->env->getFunction('demi_getNameAndCopyrightForImage')->getCallable()($this->sandbox->ensureToStringAllowed($context["image"], 93$this->source));
  246.                     echo "\">
  247.                                     <img class=\"embed-responsive-item js-lazy-img js-lazy-img--img\"
  248.                                          data-src=\"";
  249.                     // line 95
  250.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["image"], "getThumbnail", ["demi-desktop-room-details"], "method"falsefalsetrue95), 95$this->source), "html"nulltrue);
  251.                     echo "\"
  252.                                          alt=\"";
  253.                     // line 96
  254.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["image"], "getMetadata", ["alt"], "method"falsefalsetrue96), 96$this->source), "html"nulltrue);
  255.                     echo "\" title=\"";
  256.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["image"], "getMetadata", ["title"], "method"falsefalsetrue96), 96$this->source), "html"nulltrue);
  257.                     echo "\">
  258.                                     <div class=\"btn-show-gallery btn-no-styling\"
  259.                                          title=\"";
  260.                     // line 98
  261.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("demi.detail.open-gallery"), "html"nulltrue);
  262.                     echo "\">
  263.                                         <span class=\"demi-icon demi-icon-search btn-show-gallery__icon\"
  264.                                               aria-hidden=\"true\"></span>
  265.                                     </div>
  266.                                 </a>
  267.                             ";
  268.                 }
  269.                 // line 104
  270.                 echo "                            </div>
  271.                         ";
  272.             }
  273.             $_parent $context['_parent'];
  274.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  275.             $context array_intersect_key($context$_parent) + $_parent;
  276.             // line 106
  277.             echo "                    </div>
  278.                 </div>
  279.             ";
  280.         }
  281.         // line 109
  282.         echo "        </div>
  283.     </div>
  284. </div>
  285. ";
  286.         
  287.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  288.         
  289.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  290.     }
  291.     /**
  292.      * @codeCoverageIgnore
  293.      */
  294.     public function getTemplateName()
  295.     {
  296.         return "@ElementsDemiFrontend/Includes/teaser/room-details.html.twig";
  297.     }
  298.     /**
  299.      * @codeCoverageIgnore
  300.      */
  301.     public function isTraitable()
  302.     {
  303.         return false;
  304.     }
  305.     /**
  306.      * @codeCoverageIgnore
  307.      */
  308.     public function getDebugInfo()
  309.     {
  310.         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,);
  311.     }
  312.     public function getSourceContext()
  313.     {
  314.         return new Source("{#
  315. /**
  316.  * @var \\Pimcore\\Templating\\PhpEngine this
  317.  * @var \\Pimcore\\Templating\\PhpEngine view
  318.  * @var \\Pimcore\\Templating\\GlobalVariables app
  319.  */
  320. #}
  321. {% set package = package is defined ? package : null %}
  322. <div id=\"detail-{{ id }}\" class=\"collapse\" aria-expanded=\"false\" data-parent=\"#room-row-collapse-parent-{{ id }}\">
  323.     {% if pimcore_device().isPhone() %}
  324.         <hr class=\"m-0\">
  325.     {% endif %}
  326.     <div class=\"{{ pimcore_device().isPhone() ? 'card-body' : 'room-selection-box border-top-0' }}\">
  327.         <div class=\"{{ pimcore_device().isPhone() ? '' : 'row' }}\">
  328.             <div class=\"{{ pimcore_device().isPhone() ? '' : 'col-6' }}\">
  329.                 {% if not pimcore_device().isPhone() %}
  330.                     <h4 class=\"text-primary\">{{ \"demi.detail.room-details\" | trans }}</h4>
  331.                 {% endif %}
  332.                 {% set service = accommodationProduct.getService() %}
  333.                 {% if availabilityIsChecked or pimcore_device().isPhone() and (moreRoomRows is not defined or moreRoomRows is null) %}
  334.                     {{ include(\"@ElementsDemiFrontend/Includes/teaser/room-details-table.html.twig\", {
  335.                         \"accommodationProduct\" : accommodationProduct,
  336.                         'service' : service
  337.                     }) }}
  338.                 {% endif %}
  339.                 {% set productText = accommodationProduct.getDescription(null, app.request.getLocale(), dateFrom) %}
  340.                 {% if productText is empty %}
  341.                     {% set productText = accommodationProduct.getDescription(null, demi_core_configuration(\"getFallbackLanguage\", {}), dateFrom) %}
  342.                 {% endif %}
  343.                 {% set serviceText = service ? service.getDescription(null, app.request.getLocale(), dateFrom) : null %}
  344.                 {% if serviceText is empty %}
  345.                     {% set serviceText = service ? service.getDescription(null, demi_core_configuration(\"getFallbackLanguage\", {}), dateFrom) : null %}
  346.                 {% endif %}
  347.                 {% set facilities = demi_prepareFacilityArrayFromService(service) %}
  348.                 <div class=\"wysiwyg mt-2\">
  349.                     <p>{{ serviceText|raw }}</p>
  350.                     <p>{{ productText|raw }}</p>
  351.                 </div>
  352.                 {% for groupname, facilitynames in facilities %}
  353.                     <div class=\"wysiwyg\">
  354.                         <h5 class=\"text-primary mt-3\">{{ groupname }}</h5>
  355.                         <p>{{ facilitynames | join(\", \") }}</p>
  356.                     </div>
  357.                 {% endfor %}
  358.             </div>
  359.             {% if pimcore_device().isPhone() and images | length > 1 %}
  360.                 {% set galleryString = 'demi.detail.room.image-gallery-button' | trans %}
  361.                 {% set galleryString =  galleryString | replace({'[AMOUNT_IMAGES]': images | length}) %}
  362.                 <div class=\"mt-2\">
  363.                     <button type=\"button\" class=\"btn btn-primary js-overlay__toggle js-tracking--click-piwik\"
  364.                             data-target=\"#{{ id }}-imgs-overlay\"
  365.                             data-tracking-category=\"Gallery\"
  366.                             data-tracking-action=\"open\">
  367.                         {{ galleryString }}
  368.                     </button>
  369.                 </div>
  370.             {% else %}
  371.                 {% set galleryString = 'demi.detail.images-gallery-button' | trans %}
  372.                 {% set galleryString = galleryString | replace({'[AMOUNT_IMAGES]': ''}) %}
  373.                 {% set lightboxTopBarUrl = url('demi_lightbox_topbar_content', {
  374.                     'path' : document.getFullPath() | trim('/' , 'left')
  375.                 }) %}
  376.                 <div class=\"col-6\" {{ images | length is same as 1 ? 'hidden' : '' }}>
  377.                     <h4 class=\"text-primary\">{{ galleryString }}</h4>
  378.                     <div class=\"row row--gutter-width-1 row--vertical-gutter-1 js-lightbox-group\" id=\"{{ id }}-lightbox\"
  379.                          data-lightbox-topbar-wrapper=\"#lightboxTopBar\"
  380.                          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() : '' }}\">
  381.                         {% for image in images %}
  382.                             <div class=\"col-6\">
  383.                             {% if image %}
  384.                                 <a href=\"{{ image.getThumbnail('demi-desktop-gallery-overlay') }}\"
  385.                                    aria-label=\"{{ \"demi.detail.open-gallery\" | trans }}\"
  386.                                    class=\"embed-responsive embed-responsive-3by2 js-lightbox-group__item\"
  387.                                    data-lightbox-thumb=\"{{ image.getThumbnail('demi-desktop-gallery-small') }}\"
  388.                                    data-sub-html=\"{{ demi_getNameAndCopyrightForImage(image) }}\">
  389.                                     <img class=\"embed-responsive-item js-lazy-img js-lazy-img--img\"
  390.                                          data-src=\"{{ image.getThumbnail('demi-desktop-room-details') }}\"
  391.                                          alt=\"{{ image.getMetadata('alt') }}\" title=\"{{ image.getMetadata('title') }}\">
  392.                                     <div class=\"btn-show-gallery btn-no-styling\"
  393.                                          title=\"{{ \"demi.detail.open-gallery\" | trans }}\">
  394.                                         <span class=\"demi-icon demi-icon-search btn-show-gallery__icon\"
  395.                                               aria-hidden=\"true\"></span>
  396.                                     </div>
  397.                                 </a>
  398.                             {% endif %}
  399.                             </div>
  400.                         {% endfor %}
  401.                     </div>
  402.                 </div>
  403.             {% endif %}
  404.         </div>
  405.     </div>
  406. </div>
  407. ""@ElementsDemiFrontend/Includes/teaser/room-details.html.twig""/home/steiermark/www/src/Elements/Bundle/DemiFrontendBundle/Resources/views/Includes/teaser/room-details.html.twig");
  408.     }
  409.     
  410.     public function checkSecurity()
  411.     {
  412.         static $tags = array("set" => 9"if" => 12"for" => 52);
  413.         static $filters = array("escape" => 11"trans" => 21"raw" => 47"join" => 57"length" => 64"replace" => 66"trim" => 79);
  414.         static $functions = array("pimcore_device" => 12"include" => 26"demi_core_configuration" => 36"demi_prepareFacilityArrayFromService" => 44"url" => 78"demi_getNameAndCopyrightForImage" => 93);
  415.         try {
  416.             $this->sandbox->checkSecurity(
  417.                 ['set''if''for'],
  418.                 ['escape''trans''raw''join''length''replace''trim'],
  419.                 ['pimcore_device''include''demi_core_configuration''demi_prepareFacilityArrayFromService''url''demi_getNameAndCopyrightForImage']
  420.             );
  421.         } catch (SecurityError $e) {
  422.             $e->setSourceContext($this->source);
  423.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  424.                 $e->setTemplateLine($tags[$e->getTagName()]);
  425.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  426.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  427.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  428.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  429.             }
  430.             throw $e;
  431.         }
  432.     }
  433. }