<?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/includes/acco-pictures.desktop.html.twig */
class __TwigTemplate_6c0412028bbc0fc0a0b69a2741866a56 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/Accommodation/includes/acco-pictures.desktop.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ElementsDemiFrontend/Accommodation/includes/acco-pictures.desktop.html.twig"));
// line 1
$context["videoCount"] = ((array_key_exists("videoCount", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["videoCount"]) || array_key_exists("videoCount", $context) ? $context["videoCount"] : (function () { throw new RuntimeError('Variable "videoCount" does not exist.', 1, $this->source); })()), 1, $this->source), 0)) : (0));
// line 2
$context["panoCount"] = ((array_key_exists("panoCount", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["panoCount"]) || array_key_exists("panoCount", $context) ? $context["panoCount"] : (function () { throw new RuntimeError('Variable "panoCount" does not exist.', 2, $this->source); })()), 2, $this->source), 0)) : (0));
// line 3
$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.', 3, $this->source); })())) : (null));
// line 4
echo "<section class=\"mt-4\">
";
// line 5
if ((((isset($context["videoCount"]) || array_key_exists("videoCount", $context) ? $context["videoCount"] : (function () { throw new RuntimeError('Variable "videoCount" does not exist.', 5, $this->source); })()) > 0) || ((isset($context["panoCount"]) || array_key_exists("panoCount", $context) ? $context["panoCount"] : (function () { throw new RuntimeError('Variable "panoCount" does not exist.', 5, $this->source); })()) > 0))) {
// line 6
echo " <div data-track-content data-content-name=\"";
echo (((isset($context["package"]) || array_key_exists("package", $context) ? $context["package"] : (function () { throw new RuntimeError('Variable "package" does not exist.', 6, $this->source); })())) ? ("package-") : ("accommodation-"));
echo "media-links\">
<div class=\"row\">
";
// line 8
if (((isset($context["videoCount"]) || array_key_exists("videoCount", $context) ? $context["videoCount"] : (function () { throw new RuntimeError('Variable "videoCount" does not exist.', 8, $this->source); })()) > 0)) {
// line 9
echo " ";
$context["s"] = ((((isset($context["videoCount"]) || array_key_exists("videoCount", $context) ? $context["videoCount"] : (function () { throw new RuntimeError('Variable "videoCount" does not exist.', 9, $this->source); })()) == 1)) ? ("") : ("s"));
// line 10
echo " ";
$context["headline"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("demi.detail.video" . $this->sandbox->ensureToStringAllowed((isset($context["s"]) || array_key_exists("s", $context) ? $context["s"] : (function () { throw new RuntimeError('Variable "s" does not exist.', 10, $this->source); })()), 10, $this->source)) . "-gallery-button"));
// line 11
echo " ";
$context["headline"] = twig_replace_filter($this->sandbox->ensureToStringAllowed((isset($context["headline"]) || array_key_exists("headline", $context) ? $context["headline"] : (function () { throw new RuntimeError('Variable "headline" does not exist.', 11, $this->source); })()), 11, $this->source), ["[AMOUNT_IMAGES]" => ""]);
// line 12
echo "
<div class=\"col-6\">
<h2 class=\"mb-4 text-primary\">";
// line 14
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["headline"]) || array_key_exists("headline", $context) ? $context["headline"] : (function () { throw new RuntimeError('Variable "headline" does not exist.', 14, $this->source); })()), 14, $this->source), "html", null, true);
echo "</h2>
";
// line 15
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["impressionLinks"]) || array_key_exists("impressionLinks", $context) ? $context["impressionLinks"] : (function () { throw new RuntimeError('Variable "impressionLinks" does not exist.', 15, $this->source); })()), "video", [], "array", false, false, true, 15));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 16
echo " ";
$context["url"] = $this->env->getFunction('demi_parseUrl')->getCallable()(twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["item"], "getUrl", [], "method", false, false, true, 16), 16, $this->source), "html"));
// line 17
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["url"]) || array_key_exists("url", $context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.', 17, $this->source); })()), "host", [], "array", false, false, true, 17))) {
// line 18
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["item"], "getUrl", [], "method", false, false, true, 18), 18, $this->source), "html");
echo "\" class=\"btn btn-primary mr-2 mb-2\" target=\"_blank\">
<span class=\"btn__icon demi-icon demi-icon-play-circle mr-2\" aria-hidden=\"true\"></span>";
// line 19
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["item"], "getName", [], "method", false, false, true, 19), 19, $this->source), "html", null, true);
echo "
</a>
";
}
// line 22
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 23
echo " </div>
";
}
// line 26
echo " ";
if (((isset($context["panoCount"]) || array_key_exists("panoCount", $context) ? $context["panoCount"] : (function () { throw new RuntimeError('Variable "panoCount" does not exist.', 26, $this->source); })()) > 0)) {
// line 27
echo " ";
$context["s"] = ((((isset($context["panoCount"]) || array_key_exists("panoCount", $context) ? $context["panoCount"] : (function () { throw new RuntimeError('Variable "panoCount" does not exist.', 27, $this->source); })()) == 1)) ? ("") : ("s"));
// line 28
echo " ";
$context["headline"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("demi.detail.panorama" . $this->sandbox->ensureToStringAllowed((isset($context["s"]) || array_key_exists("s", $context) ? $context["s"] : (function () { throw new RuntimeError('Variable "s" does not exist.', 28, $this->source); })()), 28, $this->source)) . "-gallery-button"));
// line 29
echo " ";
$context["headline"] = twig_replace_filter($this->sandbox->ensureToStringAllowed((isset($context["headline"]) || array_key_exists("headline", $context) ? $context["headline"] : (function () { throw new RuntimeError('Variable "headline" does not exist.', 29, $this->source); })()), 29, $this->source), ["[AMOUNT_IMAGES]" => ""]);
// line 30
echo "
<div class=\"col-6\">
<h2 class=\"mb-4 text-primary\">360° ";
// line 32
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["headline"]) || array_key_exists("headline", $context) ? $context["headline"] : (function () { throw new RuntimeError('Variable "headline" does not exist.', 32, $this->source); })()), 32, $this->source), "html", null, true);
echo "</h2>
";
// line 33
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["impressionLinks"]) || array_key_exists("impressionLinks", $context) ? $context["impressionLinks"] : (function () { throw new RuntimeError('Variable "impressionLinks" does not exist.', 33, $this->source); })()), "pano", [], "array", false, false, true, 33));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 34
echo " ";
$context["url"] = $this->env->getFunction('demi_parseUrl')->getCallable()($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["item"], "getUrl", [], "method", false, false, true, 34), 34, $this->source));
// line 35
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["url"]) || array_key_exists("url", $context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.', 35, $this->source); })()), "host", [], "array", false, false, true, 35))) {
// line 36
echo " <a target=\"_blank\" href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["item"], "getUrl", [], "method", false, false, true, 36), 36, $this->source), "html", null, true);
echo "\" class=\"btn btn-primary mr-2 mb-2\">
<span class=\"btn__icon demi-icon demi-icon-play-circle mr-2\" aria-hidden=\"true\"></span>";
// line 37
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["item"], "getName", [], "method", false, false, true, 37), 37, $this->source), "html", null, true);
echo "
</a>
";
}
// line 40
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo " </div>
";
}
// line 43
echo " </div>
</div>
<hr class=\"hr--border-gray my-5\">
";
}
// line 47
echo "
<div data-track-content data-content-name=\"";
// line 48
echo (((isset($context["package"]) || array_key_exists("package", $context) ? $context["package"] : (function () { throw new RuntimeError('Variable "package" does not exist.', 48, $this->source); })())) ? ("package-") : ("accommodation-"));
echo "gallery\">
";
// line 49
if (((isset($context["photoCount"]) || array_key_exists("photoCount", $context) ? $context["photoCount"] : (function () { throw new RuntimeError('Variable "photoCount" does not exist.', 49, $this->source); })()) > 0)) {
// line 50
echo " ";
$context["s"] = ((((isset($context["photoCount"]) || array_key_exists("photoCount", $context) ? $context["photoCount"] : (function () { throw new RuntimeError('Variable "photoCount" does not exist.', 50, $this->source); })()) == 1)) ? ("") : ("s"));
// line 51
echo " ";
$context["headline"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("demi.detail.image" . $this->sandbox->ensureToStringAllowed((isset($context["s"]) || array_key_exists("s", $context) ? $context["s"] : (function () { throw new RuntimeError('Variable "s" does not exist.', 51, $this->source); })()), 51, $this->source)) . "-gallery-button"));
// line 52
echo " ";
$context["headline"] = twig_replace_filter($this->sandbox->ensureToStringAllowed((isset($context["headline"]) || array_key_exists("headline", $context) ? $context["headline"] : (function () { throw new RuntimeError('Variable "headline" does not exist.', 52, $this->source); })()), 52, $this->source), ["[AMOUNT_IMAGES]" => ""]);
// line 53
echo " ";
$context["fullPathLighbox"] = twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 53, $this->source); })()), "getFullPath", [], "method", false, false, true, 53);
// line 54
echo "
";
// line 55
if (((isset($context["fullPathLighbox"]) || array_key_exists("fullPathLighbox", $context) ? $context["fullPathLighbox"] : (function () { throw new RuntimeError('Variable "fullPathLighbox" does not exist.', 55, $this->source); })()) != "")) {
// line 56
echo " ";
$context["lightboxTopBarUrl"] = $this->env->getFunction('pimcore_url')->getCallable()(["path" => twig_trim_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 56, $this->source); })()), "getFullPath", [], "method", false, false, true, 56), 56, $this->source), "/", "right")], "demi_lightbox_topbar_content");
// line 57
echo " ";
if (twig_matches("@^//.*@", (isset($context["lightboxTopBarUrl"]) || array_key_exists("lightboxTopBarUrl", $context) ? $context["lightboxTopBarUrl"] : (function () { throw new RuntimeError('Variable "lightboxTopBarUrl" does not exist.', 57, $this->source); })()))) {
// line 58
echo " ";
$context["lightboxTopBarUrl"] = twig_replace_filter($this->sandbox->ensureToStringAllowed((isset($context["lightboxTopBarUrl"]) || array_key_exists("lightboxTopBarUrl", $context) ? $context["lightboxTopBarUrl"] : (function () { throw new RuntimeError('Variable "lightboxTopBarUrl" does not exist.', 58, $this->source); })()), 58, $this->source), ["//" => "/"]);
// line 59
echo " ";
}
// line 60
echo " ";
}
// line 61
echo "
<h2 class=\"mb-4 text-primary\">";
// line 62
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["headline"]) || array_key_exists("headline", $context) ? $context["headline"] : (function () { throw new RuntimeError('Variable "headline" does not exist.', 62, $this->source); })()), 62, $this->source), "html", null, true);
echo "</h2>
<div class=\"js-lightbox-group js-object-images__container\" ";
// line 63
if ( !array_key_exists("additionalService", $context)) {
echo "data-lightbox-topbar-content-url=\"";
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.', 63, $this->source); })()), 63, $this->source), "html", null, true);
echo ((twig_in_filter("?", (isset($context["lightboxTopBarUrl"]) || array_key_exists("lightboxTopBarUrl", $context) ? $context["lightboxTopBarUrl"] : (function () { throw new RuntimeError('Variable "lightboxTopBarUrl" does not exist.', 63, $this->source); })()))) ? ("&") : ("?"));
echo "id=";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["accoId"]) || array_key_exists("accoId", $context) ? $context["accoId"] : (function () { throw new RuntimeError('Variable "accoId" does not exist.', 63, $this->source); })()), 63, $this->source), "html", null, true);
((array_key_exists("housePackageMasterId", $context)) ? (print (twig_escape_filter($this->env, ("&pid=" . (isset($context["housePackageMasterId"]) || array_key_exists("housePackageMasterId", $context) ? $context["housePackageMasterId"] : (function () { throw new RuntimeError('Variable "housePackageMasterId" does not exist.', 63, $this->source); })())), "html", null, true))) : (print ("")));
echo "\" data-lightbox-topbar-wrapper=\"#lightboxTopBar\"";
}
echo ">
";
// line 64
$context["imageArray"] = [];
// line 65
echo " ";
$context["countGaId"] = 1;
// line 66
echo " ";
$context["countImages"] = 1;
// line 67
echo " ";
$context["imageAmount"] = [3, 4, 4];
// line 68
echo " ";
$context["ogimagecount"] = 0;
// line 69
echo " ";
$context["images"] = [];
// line 70
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["imageList"]) || array_key_exists("imageList", $context) ? $context["imageList"] : (function () { throw new RuntimeError('Variable "imageList" does not exist.', 70, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 71
echo " ";
if (((isset($context["ogimagecount"]) || array_key_exists("ogimagecount", $context) ? $context["ogimagecount"] : (function () { throw new RuntimeError('Variable "ogimagecount" does not exist.', 71, $this->source); })()) < 5)) {
// line 72
echo " ";
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsOpenGraph(), "setImages", [twig_array_merge(twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsOpenGraph(), "getImages", [], "any", false, false, true, 72), [(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.', 72, $this->source); })()), "request", [], "any", false, false, true, 72), "getHost", [], "method", false, false, true, 72) . $context["image"])])], "method", false, false, true, 72);
// line 73
echo " ";
$context["ogimagecount"] = ((isset($context["ogimagecount"]) || array_key_exists("ogimagecount", $context) ? $context["ogimagecount"] : (function () { throw new RuntimeError('Variable "ogimagecount" does not exist.', 73, $this->source); })()) + 1);
// line 74
echo " ";
}
// line 75
echo " ";
$context["images"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 75, $this->source); })()), 75, $this->source), [((isset($context["countImages"]) || array_key_exists("countImages", $context) ? $context["countImages"] : (function () { throw new RuntimeError('Variable "countImages" does not exist.', 75, $this->source); })()) - 1) => $context["image"]]);
// line 76
echo " ";
if (((isset($context["countImages"]) || array_key_exists("countImages", $context) ? $context["countImages"] : (function () { throw new RuntimeError('Variable "countImages" does not exist.', 76, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["imageAmount"]) || array_key_exists("imageAmount", $context) ? $context["imageAmount"] : (function () { throw new RuntimeError('Variable "imageAmount" does not exist.', 76, $this->source); })()), ((isset($context["countGaId"]) || array_key_exists("countGaId", $context) ? $context["countGaId"] : (function () { throw new RuntimeError('Variable "countGaId" does not exist.', 76, $this->source); })()) - 1), [], "array", false, false, true, 76))) {
// line 77
echo " ";
$context["galId"] = ((isset($context["countGaId"]) || array_key_exists("countGaId", $context) ? $context["countGaId"] : (function () { throw new RuntimeError('Variable "countGaId" does not exist.', 77, $this->source); })()) % 4);
// line 78
echo " ";
echo twig_include($this->env, $context, (("@ElementsDemiFrontend/Accommodation/includes/acco-gallery-row-type" . $this->sandbox->ensureToStringAllowed((isset($context["galId"]) || array_key_exists("galId", $context) ? $context["galId"] : (function () { throw new RuntimeError('Variable "galId" does not exist.', 78, $this->source); })()), 78, $this->source)) . ".html.twig"), ["images" => // line 79
(isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 79, $this->source); })())]);
// line 80
echo "
";
// line 81
$context["countImages"] = 0;
// line 82
echo " ";
$context["images"] = [];
// line 83
echo " ";
$context["countGaId"] = ((((isset($context["countGaId"]) || array_key_exists("countGaId", $context) ? $context["countGaId"] : (function () { throw new RuntimeError('Variable "countGaId" does not exist.', 83, $this->source); })()) == 3)) ? (1) : (((isset($context["countGaId"]) || array_key_exists("countGaId", $context) ? $context["countGaId"] : (function () { throw new RuntimeError('Variable "countGaId" does not exist.', 83, $this->source); })()) + 1)));
// line 84
echo " ";
}
// line 85
echo "
";
// line 86
$context["countImages"] = ((isset($context["countImages"]) || array_key_exists("countImages", $context) ? $context["countImages"] : (function () { throw new RuntimeError('Variable "countImages" does not exist.', 86, $this->source); })()) + 1);
// line 87
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo " ";
if ((array_key_exists("images", $context) && !twig_test_empty((isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 88, $this->source); })())))) {
// line 89
echo " ";
if (((twig_length_filter($this->env, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 89, $this->source); })())) == 3) || (twig_length_filter($this->env, (isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 89, $this->source); })())) == 1))) {
// line 90
echo " ";
$context["galId"] = 1;
// line 91
echo " ";
} else {
// line 92
echo " ";
$context["galId"] = 3;
// line 93
echo " ";
}
// line 94
echo " ";
echo twig_include($this->env, $context, (("@ElementsDemiFrontend/Accommodation/includes/acco-gallery-row-type" . $this->sandbox->ensureToStringAllowed((isset($context["galId"]) || array_key_exists("galId", $context) ? $context["galId"] : (function () { throw new RuntimeError('Variable "galId" does not exist.', 94, $this->source); })()), 94, $this->source)) . ".html.twig"), ["images" => // line 95
(isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 95, $this->source); })())]);
// line 96
echo "
";
}
// line 98
echo "
</div>
";
}
// line 101
echo " </div>
</section>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@ElementsDemiFrontend/Accommodation/includes/acco-pictures.desktop.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 354 => 101, 349 => 98, 345 => 96, 343 => 95, 341 => 94, 338 => 93, 335 => 92, 332 => 91, 329 => 90, 326 => 89, 323 => 88, 309 => 87, 307 => 86, 304 => 85, 301 => 84, 298 => 83, 295 => 82, 293 => 81, 290 => 80, 288 => 79, 286 => 78, 283 => 77, 280 => 76, 277 => 75, 274 => 74, 271 => 73, 268 => 72, 265 => 71, 247 => 70, 244 => 69, 241 => 68, 238 => 67, 235 => 66, 232 => 65, 230 => 64, 218 => 63, 214 => 62, 211 => 61, 208 => 60, 205 => 59, 202 => 58, 199 => 57, 196 => 56, 194 => 55, 191 => 54, 188 => 53, 185 => 52, 182 => 51, 179 => 50, 177 => 49, 173 => 48, 170 => 47, 164 => 43, 160 => 41, 154 => 40, 148 => 37, 143 => 36, 140 => 35, 137 => 34, 133 => 33, 129 => 32, 125 => 30, 122 => 29, 119 => 28, 116 => 27, 113 => 26, 108 => 23, 102 => 22, 96 => 19, 91 => 18, 88 => 17, 85 => 16, 81 => 15, 77 => 14, 73 => 12, 70 => 11, 67 => 10, 64 => 9, 62 => 8, 56 => 6, 54 => 5, 51 => 4, 49 => 3, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% set videoCount = videoCount|default(0) %}
{% set panoCount = panoCount|default(0) %}
{% set package = package is defined ? package : null %}
<section class=\"mt-4\">
{% if videoCount > 0 or panoCount > 0 %}
<div data-track-content data-content-name=\"{{ package ? 'package-' : 'accommodation-' }}media-links\">
<div class=\"row\">
{% if videoCount > 0 %}
{% set s = videoCount == 1 ? \"\" : \"s\" %}
{% set headline = ('demi.detail.video' ~ s ~ '-gallery-button')|trans %}
{% set headline = headline|replace({'[AMOUNT_IMAGES]': ''}) %}
<div class=\"col-6\">
<h2 class=\"mb-4 text-primary\">{{ headline }}</h2>
{% for item in impressionLinks[\"video\"] %}
{% set url = demi_parseUrl( item.getUrl()|escape('html') ) %}
{% if url['host'] is not empty %}
<a href=\"{{ item.getUrl()|escape('html') }}\" class=\"btn btn-primary mr-2 mb-2\" target=\"_blank\">
<span class=\"btn__icon demi-icon demi-icon-play-circle mr-2\" aria-hidden=\"true\"></span>{{ item.getName() }}
</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if panoCount > 0 %}
{% set s = panoCount == 1 ? \"\" : \"s\" %}
{% set headline = ('demi.detail.panorama' ~ s ~ '-gallery-button')|trans %}
{% set headline = headline|replace({'[AMOUNT_IMAGES]': ''}) %}
<div class=\"col-6\">
<h2 class=\"mb-4 text-primary\">360° {{ headline }}</h2>
{% for item in impressionLinks[\"pano\"] %}
{% set url = demi_parseUrl( item.getUrl() ) %}
{% if url['host'] is not empty %}
<a target=\"_blank\" href=\"{{ item.getUrl() }}\" class=\"btn btn-primary mr-2 mb-2\">
<span class=\"btn__icon demi-icon demi-icon-play-circle mr-2\" aria-hidden=\"true\"></span>{{ item.getName() }}
</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
</div>
<hr class=\"hr--border-gray my-5\">
{% endif %}
<div data-track-content data-content-name=\"{{ package ? 'package-' : 'accommodation-' }}gallery\">
{% if photoCount > 0 %}
{% set s = photoCount == 1 ? \"\" : \"s\" %}
{% set headline = ('demi.detail.image' ~ s ~ '-gallery-button')|trans %}
{% set headline = headline|replace({'[AMOUNT_IMAGES]': ''}) %}
{% set fullPathLighbox = document.getFullPath() %}
{% if fullPathLighbox != '' %}
{% set lightboxTopBarUrl = pimcore_url({'path': document.getFullPath()|trim('/','right') },'demi_lightbox_topbar_content') %}
{% if lightboxTopBarUrl matches '@^//.*@' %}
{% set lightboxTopBarUrl = lightboxTopBarUrl|replace({\"//\": \"/\"})%}
{% endif %}
{% endif %}
<h2 class=\"mb-4 text-primary\">{{ headline }}</h2>
<div class=\"js-lightbox-group js-object-images__container\" {% if additionalService is not defined %}data-lightbox-topbar-content-url=\"{{ lightboxTopBarUrl }}{{ '?' in lightboxTopBarUrl ? '&' : '?' }}id={{ accoId }}{{ housePackageMasterId is defined ? '&pid=' ~ housePackageMasterId : '' }}\" data-lightbox-topbar-wrapper=\"#lightboxTopBar\"{% endif %}>
{% set imageArray = [] %}
{% set countGaId = 1 %}
{% set countImages = 1 %}
{% set imageAmount = [3,4,4] %}
{% set ogimagecount = 0 %}
{% set images = [] %}
{% for image in imageList %}
{% if ogimagecount < 5 %}
{% do elements_opengraph().setImages(elements_opengraph().getImages|merge( [app.request.getHost() ~ image])) %}
{% set ogimagecount = ogimagecount+1 %}
{% endif %}
{% set images = images|merge({(countImages-1): image}) %}
{% if countImages == imageAmount[countGaId-1] %}
{% set galId = countGaId%4 %}
{{ include(\"@ElementsDemiFrontend/Accommodation/includes/acco-gallery-row-type\" ~ galId ~ \".html.twig\",{
'images': images
}) }}
{% set countImages=0 %}
{% set images = [] %}
{% set countGaId = countGaId == 3 ? 1 : countGaId+1 %}
{% endif %}
{% set countImages = countImages + 1 %}
{% endfor %}
{% if images is defined and images is not empty %}
{% if images|length == 3 or images|length == 1 %}
{% set galId = 1 %}
{% else %}
{% set galId = 3 %}
{% endif %}
{{ include(\"@ElementsDemiFrontend/Accommodation/includes/acco-gallery-row-type\" ~ galId ~ \".html.twig\",{
'images': images
}) }}
{% endif %}
</div>
{% endif %}
</div>
</section>
", "@ElementsDemiFrontend/Accommodation/includes/acco-pictures.desktop.html.twig", "/home/steiermark/www/src/Elements/Bundle/DemiFrontendBundle/Resources/views/Accommodation/includes/acco-pictures.desktop.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "if" => 5, "for" => 15, "do" => 72);
static $filters = array("default" => 1, "trans" => 10, "replace" => 11, "escape" => 14, "trim" => 56, "merge" => 72, "length" => 89);
static $functions = array("demi_parseUrl" => 16, "pimcore_url" => 56, "elements_opengraph" => 72, "include" => 78);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for', 'do'],
['default', 'trans', 'replace', 'escape', 'trim', 'merge', 'length'],
['demi_parseUrl', 'pimcore_url', 'elements_opengraph', 'include']
);
} 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;
}
}
}