<?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;
/* Tour/detail.html.twig */
class __TwigTemplate_315a764628000d96bc5872f17623eb01 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "Layout/default.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Tour/detail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Tour/detail.html.twig"));
// line 4
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_placeholder')->getCallable()("disableWeatherSlide"), "set", [0 => true], "method", false, false, false, 4);
// line 6
$context["detailUrl"] = twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\LinkGenerator']->getGenerator(), "generate", [0 => (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 6, $this->source); })())], "method", false, false, false, 6);
// line 8
if ( !((isset($context["detailUrl"]) || array_key_exists("detailUrl", $context) ? $context["detailUrl"] : (function () { throw new RuntimeError('Variable "detailUrl" does not exist.', 8, $this->source); })()) === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 8, $this->source); })()), "request", [], "any", false, false, false, 8), "pathInfo", [], "any", false, false, false, 8))) {
// line 9
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsRobots(), "setNoIndex", [0 => true], "method", false, false, false, 9);
}
// line 12
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_placeholder')->getCallable()("addBreadcrumb"), "set", [0 => ["parentId" => twig_get_attribute($this->env, $this->source, // line 13
(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 13, $this->source); })()), "id", [], "any", false, false, false, 13), "url" => // line 14
(isset($context["detailUrl"]) || array_key_exists("detailUrl", $context) ? $context["detailUrl"] : (function () { throw new RuntimeError('Variable "detailUrl" does not exist.', 14, $this->source); })()), "label" => twig_get_attribute($this->env, $this->source, // line 15
(isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 15, $this->source); })()), "name", [], "any", false, false, false, 15)]], "method", false, false, false, 12);
// line 18
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsHeadTitle(), "setTitle", [0 => ((twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 18, $this->source); })()), "metaTitle", [], "any", false, false, false, 18)) ? (twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 18, $this->source); })()), "metaTitle", [], "any", false, false, false, 18)) : (twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 18, $this->source); })()), "name", [], "any", false, false, false, 18))), 1 => true], "method", false, false, false, 18);
// line 19
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsOpenGraph(), "setDescription", [0 => ((twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 19, $this->source); })()), "metaDescription", [], "any", false, false, false, 19)) ? (twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 19, $this->source); })()), "metaDescription", [], "any", false, false, false, 19)) : (twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 19, $this->source); })()), "shortText", [], "any", false, false, false, 19)))], "method", false, false, false, 19);
// line 20
$this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsCanonical((isset($context["detailUrl"]) || array_key_exists("detailUrl", $context) ? $context["detailUrl"] : (function () { throw new RuntimeError('Variable "detailUrl" does not exist.', 20, $this->source); })()));
// line 21
$this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsHeadTitle(((twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 21, $this->source); })()), "metaTitle", [], "any", false, false, false, 21)) ? (twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 21, $this->source); })()), "metaTitle", [], "any", false, false, false, 21)) : (twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 21, $this->source); })()), "name", [], "any", false, false, false, 21))), true);
// line 22
$this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsHeadMeta(((twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 22, $this->source); })()), "metaDescription", [], "any", false, false, false, 22)) ? (twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 22, $this->source); })()), "metaDescription", [], "any", false, false, false, 22)) : ($this->extensions['App\Twig\LayoutExtension']->chooseDescription(twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 22, $this->source); })()), "shortText", [], "any", false, false, false, 22), twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 22, $this->source); })()), "longText", [], "any", false, false, false, 22)))), true);
// line 23
if (twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 23, $this->source); })()), "primaryImage", [], "any", false, false, false, 23)) {
// line 24
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsOpenGraph(), "addImage", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 24, $this->source); })()), "primaryImage", [], "any", false, false, false, 24), "thumbnail", [0 => "hero"], "method", false, false, false, 24), "getPath", [], "method", false, false, false, 24)], "method", false, false, false, 24);
}
// line 2
$this->parent = $this->loadTemplate("Layout/default.html.twig", "Tour/detail.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 26
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 27
echo " ";
echo $this->extensions['Elements\Bundle\JsonLdReloadedBundle\Twig\JsonLdExtension']->jsonLdReloadedRoot((isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 27, $this->source); })()), true, true);
echo "
";
// line 29
$context["heroImage"] = null;
// line 30
echo " ";
$context["heroImageAlt"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 30, $this->source); })()), "category", [], "any", false, false, false, 30), 0, [], "array", false, false, false, 30), "name", [], "any", false, false, false, 30) . " ") . twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 30, $this->source); })()), "name", [], "any", false, false, false, 30)) . " - Touren-Impression #1");
// line 31
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 31, $this->source); })()), "primaryImage", [], "any", false, false, false, 31)) {
// line 32
echo " ";
$context["heroImage"] = twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 32, $this->source); })()), "primaryImage", [], "any", false, false, false, 32);
// line 33
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 33, $this->source); })()), "images", [], "any", false, false, false, 33) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 33, $this->source); })()), "images", [], "any", false, false, false, 33), 0, [], "array", false, false, false, 33))) {
// line 34
echo " ";
$context["heroImage"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 34, $this->source); })()), "images", [], "any", false, false, false, 34), 0, [], "array", false, false, false, 34);
// line 35
echo " ";
}
// line 36
echo "
";
// line 37
if (((isset($context["heroImage"]) || array_key_exists("heroImage", $context) ? $context["heroImage"] : (function () { throw new RuntimeError('Variable "heroImage" does not exist.', 37, $this->source); })()) && twig_test_iterable(twig_get_attribute($this->env, $this->source, (isset($context["heroImage"]) || array_key_exists("heroImage", $context) ? $context["heroImage"] : (function () { throw new RuntimeError('Variable "heroImage" does not exist.', 37, $this->source); })()), "metadata", [], "any", false, false, false, 37)))) {
// line 38
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["heroImage"]) || array_key_exists("heroImage", $context) ? $context["heroImage"] : (function () { throw new RuntimeError('Variable "heroImage" does not exist.', 38, $this->source); })()), "metadata", [], "any", false, false, false, 38));
foreach ($context['_seq'] as $context["_key"] => $context["metadata"]) {
// line 39
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["metadata"], "name", [], "array", false, false, false, 39) == "alt")) {
// line 40
echo " ";
$context["heroImageAlt"] = twig_get_attribute($this->env, $this->source, $context["metadata"], "data", [], "array", false, false, false, 40);
// line 41
echo " ";
}
// line 42
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['metadata'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 43
echo " ";
}
// line 44
echo "
";
// line 45
echo twig_include($this->env, $context, "Includes/hero.html.twig", ["image" => (isset($context["heroImage"]) || array_key_exists("heroImage", $context) ? $context["heroImage"] : (function () { throw new RuntimeError('Variable "heroImage" does not exist.', 45, $this->source); })()), "alt" => (isset($context["heroImageAlt"]) || array_key_exists("heroImageAlt", $context) ? $context["heroImageAlt"] : (function () { throw new RuntimeError('Variable "heroImageAlt" does not exist.', 45, $this->source); })())]);
echo "
";
// line 47
echo twig_include($this->env, $context, "Navigation/breadcrumb.html.twig");
echo "
";
// line 54
echo " ";
$context["badge"] = [];
// line 55
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 55, $this->source); })()), "openedState", [], "any", false, false, false, 55)) {
// line 56
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 56, $this->source); })()), "openedState", [], "any", false, false, false, 56) == "open")) {
// line 57
echo " ";
$context["badge"] = ["color" => "success", "text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tour.Geöffnet")];
// line 61
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 61, $this->source); })()), "openedState", [], "any", false, false, false, 61) == "partially-open")) {
// line 62
echo " ";
$context["badge"] = ["color" => "info", "text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tour.Teilweise geöffnet")];
// line 66
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 66, $this->source); })()), "openedState", [], "any", false, false, false, 66) == "closed")) {
// line 67
echo " ";
$context["badge"] = ["color" => "danger", "text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tour.Geschlossen")];
// line 71
echo " ";
}
// line 72
echo " ";
}
// line 73
echo "
";
// line 74
echo twig_include($this->env, $context, "Includes/main-title-block-splitted.html.twig", ["headline" => twig_get_attribute($this->env, $this->source, // line 75
(isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 75, $this->source); })()), "name", [], "any", false, false, false, 75), "badge" => // line 76
(isset($context["badge"]) || array_key_exists("badge", $context) ? $context["badge"] : (function () { throw new RuntimeError('Variable "badge" does not exist.', 76, $this->source); })()), "badgeAddon" => ((twig_get_attribute($this->env, $this->source, // line 77
(isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 77, $this->source); })()), "publicTransportFriendly", [], "any", false, false, false, 77)) ? ((("<span class=\"icon icon-traffic mr-2\" aria-label=\"mit Bus erreichbar\" data-toggle=\"tooltip\" data-original-title=\"" . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tour.mit Bus erreichbar")) . "\"></span>")) : ("")), "description" => twig_get_attribute($this->env, $this->source, // line 78
(isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 78, $this->source); })()), "shortText", [], "any", false, false, false, 78), "expand" => twig_get_attribute($this->env, $this->source, // line 79
(isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 79, $this->source); })()), "longText", [], "any", false, false, false, 79)]);
// line 80
echo "
<section class=\"container container-sm content-block\">
";
// line 83
echo twig_include($this->env, $context, "Tour/detail/tourProperties.html.twig");
echo "
";
// line 85
echo twig_include($this->env, $context, "Tour/detail/tourSeasons.html.twig");
echo "
";
// line 87
echo twig_include($this->env, $context, "Tour/detail/tourDetails.html.twig");
echo "
</section>
";
// line 90
echo twig_include($this->env, $context, "Tour/detail/map.html.twig");
echo "
";
// line 92
echo twig_include($this->env, $context, "Tour/detail/tourTabbing.html.twig");
echo "
";
// line 94
echo twig_include($this->env, $context, "Tour/detail/tourGallery.html.twig");
echo "
";
// line 96
$context["weatherStation"] = $this->extensions['App\Twig\LayoutExtension']->getWeatherStationByAlpsteinTour((isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 96, $this->source); })()));
// line 97
echo " ";
if ((isset($context["weatherStation"]) || array_key_exists("weatherStation", $context) ? $context["weatherStation"] : (function () { throw new RuntimeError('Variable "weatherStation" does not exist.', 97, $this->source); })())) {
// line 98
echo " ";
echo twig_include($this->env, $context, "Includes/weather-slide.html.twig", ["weatherStation" => (isset($context["weatherStation"]) || array_key_exists("weatherStation", $context) ? $context["weatherStation"] : (function () { throw new RuntimeError('Variable "weatherStation" does not exist.', 98, $this->source); })())]);
echo "
";
}
// line 100
echo "
";
// line 101
echo twig_include($this->env, $context, "Includes/demiNearbySlide.html.twig", ["image" => ((twig_get_attribute($this->env, $this->source, // line 102
(isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 102, $this->source); })()), "imageTeaserOverrideAccomodation", [], "any", false, false, false, 102)) ? (twig_get_attribute($this->env, $this->source, (isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 102, $this->source); })()), "imageTeaserOverrideAccomodation", [], "any", false, false, false, 102)) : (twig_get_attribute($this->env, $this->source, (isset($context["siteConfig"]) || array_key_exists("siteConfig", $context) ? $context["siteConfig"] : (function () { throw new RuntimeError('Variable "siteConfig" does not exist.', 102, $this->source); })()), "textSlideImageDefault", [], "any", false, false, false, 102))), "headline" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tour-detail.Unterkünfte in der Nähe"), "id" => twig_get_attribute($this->env, $this->source, // line 104
(isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 104, $this->source); })()), "id", [], "any", false, false, false, 104), "lat" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 105
(isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 105, $this->source); })()), "startingPoint", [], "any", false, false, false, 105), "latitude", [], "any", false, false, false, 105), "lng" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 106
(isset($context["tour"]) || array_key_exists("tour", $context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.', 106, $this->source); })()), "startingPoint", [], "any", false, false, false, 106), "longitude", [], "any", false, false, false, 106), "btnText" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tour.detail.Weiter zur Suche")]);
// line 108
echo "
";
// line 110
if ((array_key_exists("recommendations", $context) && !twig_test_empty((isset($context["recommendations"]) || array_key_exists("recommendations", $context) ? $context["recommendations"] : (function () { throw new RuntimeError('Variable "recommendations" does not exist.', 110, $this->source); })())))) {
// line 111
echo " ";
echo twig_include($this->env, $context, "Tour/detail/recommendations.html.twig", ["tours" => (isset($context["recommendations"]) || array_key_exists("recommendations", $context) ? $context["recommendations"] : (function () { throw new RuntimeError('Variable "recommendations" does not exist.', 111, $this->source); })())]);
echo "
";
}
// line 113
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 115
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 116
echo " ";
if ( !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.', 116, $this->source); })()), "request", [], "any", false, false, false, 116), "get", [0 => "onlyInlineCss"], "method", false, false, false, 116)) {
// line 117
echo " ";
echo twig_include($this->env, $context, "Layout/includes/encore.html.twig", ["staticDebugMode" => // line 118
(isset($context["staticDebugMode"]) || array_key_exists("staticDebugMode", $context) ? $context["staticDebugMode"] : (function () { throw new RuntimeError('Variable "staticDebugMode" does not exist.', 118, $this->source); })()), "file" => "js/tour"]);
// line 120
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Tour/detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 302 => 120, 300 => 118, 298 => 117, 295 => 116, 285 => 115, 274 => 113, 268 => 111, 266 => 110, 262 => 108, 260 => 106, 259 => 105, 258 => 104, 257 => 102, 256 => 101, 253 => 100, 247 => 98, 244 => 97, 242 => 96, 237 => 94, 232 => 92, 227 => 90, 221 => 87, 216 => 85, 211 => 83, 206 => 80, 204 => 79, 203 => 78, 202 => 77, 201 => 76, 200 => 75, 199 => 74, 196 => 73, 193 => 72, 190 => 71, 187 => 67, 184 => 66, 181 => 62, 178 => 61, 175 => 57, 172 => 56, 169 => 55, 166 => 54, 161 => 47, 156 => 45, 153 => 44, 150 => 43, 144 => 42, 141 => 41, 138 => 40, 135 => 39, 130 => 38, 128 => 37, 125 => 36, 122 => 35, 119 => 34, 116 => 33, 113 => 32, 110 => 31, 107 => 30, 105 => 29, 99 => 27, 89 => 26, 78 => 2, 75 => 24, 73 => 23, 71 => 22, 69 => 21, 67 => 20, 65 => 19, 63 => 18, 61 => 15, 60 => 14, 59 => 13, 58 => 12, 55 => 9, 53 => 8, 51 => 6, 49 => 4, 36 => 2,);
}
public function getSourceContext()
{
return new Source("{# @var tour \\Pimcore\\Model\\DataObject\\AlpsteinTour #}
{% extends \"Layout/default.html.twig\" %}
{% do pimcore_placeholder('disableWeatherSlide').set(true) %}
{% set detailUrl = linkGenerator().generate(tour) %}
{% if not detailUrl is same as(app.request.pathInfo) %}
{% do elements_robots().setNoIndex(true) %}
{% endif %}
{% do pimcore_placeholder( 'addBreadcrumb' ).set({
'parentId': document.id,
'url': detailUrl,
'label': tour.name
}) %}
{% do elements_head_title().setTitle(tour.metaTitle ?: tour.name, true) %}
{% do elements_opengraph().setDescription(tour.metaDescription ?: tour.shortText) %}
{% do elements_canonical(detailUrl) %}
{% do elements_head_title(tour.metaTitle ?: tour.name, true) %}
{% do elements_head_meta(tour.metaDescription ?: chooseDescription(tour.shortText, tour.longText), true) %}
{% if tour.primaryImage %}
{% do elements_opengraph().addImage(tour.primaryImage.thumbnail('hero').getPath()) %}
{% endif %}
{% block content %}
{{ jld_root(tour, true, true) }}
{% set heroImage = null %}
{% set heroImageAlt = tour.category[0].name ~ ' ' ~ tour.name ~ ' - Touren-Impression #1' %}
{% if tour.primaryImage %}
{% set heroImage = tour.primaryImage %}
{% elseif tour.images and tour.images[0] %}
{% set heroImage = tour.images[0] %}
{% endif %}
{% if heroImage and heroImage.metadata is iterable %}
{% for metadata in heroImage.metadata %}
{% if metadata['name'] == 'alt' %}
{% set heroImageAlt = metadata['data'] %}
{% endif %}
{% endfor %}
{% endif %}
{{ include('Includes/hero.html.twig', {'image': heroImage, 'alt': heroImageAlt}) }}
{{ include('Navigation/breadcrumb.html.twig') }}
{#
open: badge-success
partially-open: badge-info
closed: badge-danger
#}
{% set badge = [] %}
{% if tour.openedState %}
{% if tour.openedState == 'open' %}
{% set badge = {
'color': 'success',
'text': 'tour.Geöffnet'|trans
} %}
{% elseif tour.openedState == 'partially-open' %}
{% set badge = {
'color': 'info',
'text': 'tour.Teilweise geöffnet'|trans
} %}
{% elseif tour.openedState == 'closed' %}
{% set badge = {
'color': 'danger',
'text': 'tour.Geschlossen'|trans
} %}
{% endif %}
{% endif %}
{{ include('Includes/main-title-block-splitted.html.twig', {
headline: tour.name,
badge: badge,
badgeAddon: tour.publicTransportFriendly ? ('<span class=\"icon icon-traffic mr-2\" aria-label=\"mit Bus erreichbar\" data-toggle=\"tooltip\" data-original-title=\"' ~ 'tour.mit Bus erreichbar'|trans ~ '\"></span>') : '',
description: tour.shortText,
expand: tour.longText
}) }}
<section class=\"container container-sm content-block\">
{{ include('Tour/detail/tourProperties.html.twig') }}
{{ include('Tour/detail/tourSeasons.html.twig') }}
{{ include('Tour/detail/tourDetails.html.twig') }}
</section>
{{ include('Tour/detail/map.html.twig') }}
{{ include('Tour/detail/tourTabbing.html.twig') }}
{{ include('Tour/detail/tourGallery.html.twig') }}
{% set weatherStation = getWeatherStationByAlpsteinTour(tour) %}
{% if weatherStation %}
{{ include('Includes/weather-slide.html.twig', {'weatherStation': weatherStation}) }}
{% endif %}
{{ include('Includes/demiNearbySlide.html.twig', {
image: tour.imageTeaserOverrideAccomodation ?: siteConfig.textSlideImageDefault,
headline: 'tour-detail.Unterkünfte in der Nähe'|trans,
id: tour.id,
lat: tour.startingPoint.latitude,
lng: tour.startingPoint.longitude,
btnText: 'tour.detail.Weiter zur Suche'|trans
}) }}
{% if recommendations is defined and recommendations is not empty %}
{{ include('Tour/detail/recommendations.html.twig', {'tours': recommendations}) }}
{% endif %}
{% endblock %}
{% block javascripts %}
{% if not app.request.get('onlyInlineCss') %}
{{ include('Layout/includes/encore.html.twig', {
'staticDebugMode': staticDebugMode,
'file': 'js/tour'
}) }}
{% endif %}
{% endblock %}
", "Tour/detail.html.twig", "/home/steiermark/www/templates/Tour/detail.html.twig");
}
}