var/cache/dev/twig/12/12d78f3934af418eeccf59e9063a303a.php line 51

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. /* Tour/detail.html.twig */
  14. class __TwigTemplate_315a764628000d96bc5872f17623eb01 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->blocks = [
  23.             'content' => [$this'block_content'],
  24.             'javascripts' => [$this'block_javascripts'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 2
  30.         return "Layout/default.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Tour/detail.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Tour/detail.html.twig"));
  39.         // line 4
  40.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_placeholder')->getCallable()("disableWeatherSlide"), "set", [=> true], "method"falsefalsefalse4);
  41.         // line 6
  42.         $context["detailUrl"] = twig_get_attribute($this->env$this->source$this->extensions['App\Twig\LinkGenerator']->getGenerator(), "generate", [=> (isset($context["tour"]) || array_key_exists("tour"$context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.'6$this->source); })())], "method"falsefalsefalse6);
  43.         // line 8
  44.         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->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.'8$this->source); })()), "request", [], "any"falsefalsefalse8), "pathInfo", [], "any"falsefalsefalse8))) {
  45.             // line 9
  46.             twig_get_attribute($this->env$this->source$this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsRobots(), "setNoIndex", [=> true], "method"falsefalsefalse9);
  47.         }
  48.         // line 12
  49.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_placeholder')->getCallable()("addBreadcrumb"), "set", [=> ["parentId" => twig_get_attribute($this->env$this->source,         // line 13
  50. (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'13$this->source); })()), "id", [], "any"falsefalsefalse13), "url" =>         // line 14
  51. (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
  52. (isset($context["tour"]) || array_key_exists("tour"$context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.'15$this->source); })()), "name", [], "any"falsefalsefalse15)]], "method"falsefalsefalse12);
  53.         // line 18
  54.         twig_get_attribute($this->env$this->source$this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsHeadTitle(), "setTitle", [=> ((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"falsefalsefalse18)) ? (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"falsefalsefalse18)) : (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"falsefalsefalse18))), => true], "method"falsefalsefalse18);
  55.         // line 19
  56.         twig_get_attribute($this->env$this->source$this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsOpenGraph(), "setDescription", [=> ((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"falsefalsefalse19)) ? (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"falsefalsefalse19)) : (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"falsefalsefalse19)))], "method"falsefalsefalse19);
  57.         // line 20
  58.         $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); })()));
  59.         // line 21
  60.         $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"falsefalsefalse21)) ? (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"falsefalsefalse21)) : (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"falsefalsefalse21))), true);
  61.         // line 22
  62.         $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"falsefalsefalse22)) ? (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"falsefalsefalse22)) : ($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"falsefalsefalse22), 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"falsefalsefalse22)))), true);
  63.         // line 23
  64.         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"falsefalsefalse23)) {
  65.             // line 24
  66.             twig_get_attribute($this->env$this->source$this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsOpenGraph(), "addImage", [=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse24), "thumbnail", [=> "hero"], "method"falsefalsefalse24), "getPath", [], "method"falsefalsefalse24)], "method"falsefalsefalse24);
  67.         }
  68.         // line 2
  69.         $this->parent $this->loadTemplate("Layout/default.html.twig""Tour/detail.html.twig"2);
  70.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  71.         
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  73.         
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  75.     }
  76.     // line 26
  77.     public function block_content($context, array $blocks = [])
  78.     {
  79.         $macros $this->macros;
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  84.         // line 27
  85.         echo "    ";
  86.         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); })()), truetrue);
  87.         echo "
  88.     ";
  89.         // line 29
  90.         $context["heroImage"] = null;
  91.         // line 30
  92.         echo "    ";
  93.         $context["heroImageAlt"] = (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse30), 0, [], "array"falsefalsefalse30), "name", [], "any"falsefalsefalse30) . " ") . 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"falsefalsefalse30)) . " - Touren-Impression #1");
  94.         // line 31
  95.         echo "    ";
  96.         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"falsefalsefalse31)) {
  97.             // line 32
  98.             echo "        ";
  99.             $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"falsefalsefalse32);
  100.             // line 33
  101.             echo "    ";
  102.         } 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"falsefalsefalse33) && twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse33), 0, [], "array"falsefalsefalse33))) {
  103.             // line 34
  104.             echo "        ";
  105.             $context["heroImage"] = twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse34), 0, [], "array"falsefalsefalse34);
  106.             // line 35
  107.             echo "    ";
  108.         }
  109.         // line 36
  110.         echo "
  111.     ";
  112.         // line 37
  113.         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"falsefalsefalse37)))) {
  114.             // line 38
  115.             echo "        ";
  116.             $context['_parent'] = $context;
  117.             $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"falsefalsefalse38));
  118.             foreach ($context['_seq'] as $context["_key"] => $context["metadata"]) {
  119.                 // line 39
  120.                 echo "            ";
  121.                 if ((twig_get_attribute($this->env$this->source$context["metadata"], "name", [], "array"falsefalsefalse39) == "alt")) {
  122.                     // line 40
  123.                     echo "                ";
  124.                     $context["heroImageAlt"] = twig_get_attribute($this->env$this->source$context["metadata"], "data", [], "array"falsefalsefalse40);
  125.                     // line 41
  126.                     echo "            ";
  127.                 }
  128.                 // line 42
  129.                 echo "        ";
  130.             }
  131.             $_parent $context['_parent'];
  132.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['metadata'], $context['_parent'], $context['loop']);
  133.             $context array_intersect_key($context$_parent) + $_parent;
  134.             // line 43
  135.             echo "    ";
  136.         }
  137.         // line 44
  138.         echo "
  139.     ";
  140.         // line 45
  141.         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); })())]);
  142.         echo "
  143.     ";
  144.         // line 47
  145.         echo twig_include($this->env$context"Navigation/breadcrumb.html.twig");
  146.         echo "
  147.     ";
  148.         // line 54
  149.         echo "    ";
  150.         $context["badge"] = [];
  151.         // line 55
  152.         echo "    ";
  153.         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"falsefalsefalse55)) {
  154.             // line 56
  155.             echo "        ";
  156.             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"falsefalsefalse56) == "open")) {
  157.                 // line 57
  158.                 echo "            ";
  159.                 $context["badge"] = ["color" => "success""text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tour.Geöffnet")];
  160.                 // line 61
  161.                 echo "        ";
  162.             } 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"falsefalsefalse61) == "partially-open")) {
  163.                 // line 62
  164.                 echo "            ";
  165.                 $context["badge"] = ["color" => "info""text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tour.Teilweise geöffnet")];
  166.                 // line 66
  167.                 echo "        ";
  168.             } 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"falsefalsefalse66) == "closed")) {
  169.                 // line 67
  170.                 echo "            ";
  171.                 $context["badge"] = ["color" => "danger""text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tour.Geschlossen")];
  172.                 // line 71
  173.                 echo "        ";
  174.             }
  175.             // line 72
  176.             echo "    ";
  177.         }
  178.         // line 73
  179.         echo "
  180.     ";
  181.         // line 74
  182.         echo twig_include($this->env$context"Includes/main-title-block-splitted.html.twig", ["headline" => twig_get_attribute($this->env$this->source,         // line 75
  183. (isset($context["tour"]) || array_key_exists("tour"$context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.'75$this->source); })()), "name", [], "any"falsefalsefalse75), "badge" =>         // line 76
  184. (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
  185. (isset($context["tour"]) || array_key_exists("tour"$context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.'77$this->source); })()), "publicTransportFriendly", [], "any"falsefalsefalse77)) ? ((("<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
  186. (isset($context["tour"]) || array_key_exists("tour"$context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.'78$this->source); })()), "shortText", [], "any"falsefalsefalse78), "expand" => twig_get_attribute($this->env$this->source,         // line 79
  187. (isset($context["tour"]) || array_key_exists("tour"$context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.'79$this->source); })()), "longText", [], "any"falsefalsefalse79)]);
  188.         // line 80
  189.         echo "
  190.     <section class=\"container container-sm content-block\">
  191.         ";
  192.         // line 83
  193.         echo twig_include($this->env$context"Tour/detail/tourProperties.html.twig");
  194.         echo "
  195.         ";
  196.         // line 85
  197.         echo twig_include($this->env$context"Tour/detail/tourSeasons.html.twig");
  198.         echo "
  199.         ";
  200.         // line 87
  201.         echo twig_include($this->env$context"Tour/detail/tourDetails.html.twig");
  202.         echo "
  203.     </section>
  204.     ";
  205.         // line 90
  206.         echo twig_include($this->env$context"Tour/detail/map.html.twig");
  207.         echo "
  208.     ";
  209.         // line 92
  210.         echo twig_include($this->env$context"Tour/detail/tourTabbing.html.twig");
  211.         echo "
  212.     ";
  213.         // line 94
  214.         echo twig_include($this->env$context"Tour/detail/tourGallery.html.twig");
  215.         echo "
  216.     ";
  217.         // line 96
  218.         $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); })()));
  219.         // line 97
  220.         echo "    ";
  221.         if ((isset($context["weatherStation"]) || array_key_exists("weatherStation"$context) ? $context["weatherStation"] : (function () { throw new RuntimeError('Variable "weatherStation" does not exist.'97$this->source); })())) {
  222.             // line 98
  223.             echo "        ";
  224.             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); })())]);
  225.             echo "
  226.     ";
  227.         }
  228.         // line 100
  229.         echo "
  230.     ";
  231.         // line 101
  232.         echo twig_include($this->env$context"Includes/demiNearbySlide.html.twig", ["image" => ((twig_get_attribute($this->env$this->source,         // line 102
  233. (isset($context["tour"]) || array_key_exists("tour"$context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.'102$this->source); })()), "imageTeaserOverrideAccomodation", [], "any"falsefalsefalse102)) ? (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"falsefalsefalse102)) : (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"falsefalsefalse102))), "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
  234. (isset($context["tour"]) || array_key_exists("tour"$context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.'104$this->source); })()), "id", [], "any"falsefalsefalse104), "lat" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 105
  235. (isset($context["tour"]) || array_key_exists("tour"$context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.'105$this->source); })()), "startingPoint", [], "any"falsefalsefalse105), "latitude", [], "any"falsefalsefalse105), "lng" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 106
  236. (isset($context["tour"]) || array_key_exists("tour"$context) ? $context["tour"] : (function () { throw new RuntimeError('Variable "tour" does not exist.'106$this->source); })()), "startingPoint", [], "any"falsefalsefalse106), "longitude", [], "any"falsefalsefalse106), "btnText" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tour.detail.Weiter zur Suche")]);
  237.         // line 108
  238.         echo "
  239.     ";
  240.         // line 110
  241.         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); })())))) {
  242.             // line 111
  243.             echo "        ";
  244.             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); })())]);
  245.             echo "
  246.     ";
  247.         }
  248.         // line 113
  249.         echo "
  250. ";
  251.         
  252.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  253.         
  254.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  255.     }
  256.     // line 115
  257.     public function block_javascripts($context, array $blocks = [])
  258.     {
  259.         $macros $this->macros;
  260.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  261.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  262.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  263.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  264.         // line 116
  265.         echo "    ";
  266.         if ( !twig_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.'116$this->source); })()), "request", [], "any"falsefalsefalse116), "get", [=> "onlyInlineCss"], "method"falsefalsefalse116)) {
  267.             // line 117
  268.             echo "        ";
  269.             echo twig_include($this->env$context"Layout/includes/encore.html.twig", ["staticDebugMode" =>             // line 118
  270. (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"]);
  271.             // line 120
  272.             echo "
  273.     ";
  274.         }
  275.         
  276.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  277.         
  278.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  279.     }
  280.     public function getTemplateName()
  281.     {
  282.         return "Tour/detail.html.twig";
  283.     }
  284.     public function isTraitable()
  285.     {
  286.         return false;
  287.     }
  288.     public function getDebugInfo()
  289.     {
  290.         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,);
  291.     }
  292.     public function getSourceContext()
  293.     {
  294.         return new Source("{# @var tour \\Pimcore\\Model\\DataObject\\AlpsteinTour #}
  295. {% extends \"Layout/default.html.twig\" %}
  296. {% do pimcore_placeholder('disableWeatherSlide').set(true) %}
  297. {% set detailUrl = linkGenerator().generate(tour) %}
  298. {% if not detailUrl is same as(app.request.pathInfo) %}
  299.     {% do elements_robots().setNoIndex(true) %}
  300. {% endif %}
  301. {% do pimcore_placeholder( 'addBreadcrumb' ).set({
  302.     'parentId': document.id,
  303.     'url': detailUrl,
  304.     'label': tour.name
  305. }) %}
  306. {% do elements_head_title().setTitle(tour.metaTitle ?: tour.name, true) %}
  307. {% do elements_opengraph().setDescription(tour.metaDescription ?: tour.shortText) %}
  308. {% do elements_canonical(detailUrl) %}
  309. {% do elements_head_title(tour.metaTitle ?: tour.name, true) %}
  310. {% do elements_head_meta(tour.metaDescription ?: chooseDescription(tour.shortText, tour.longText), true) %}
  311. {% if tour.primaryImage %}
  312.     {% do elements_opengraph().addImage(tour.primaryImage.thumbnail('hero').getPath()) %}
  313. {% endif %}
  314. {% block content %}
  315.     {{ jld_root(tour, true, true) }}
  316.     {% set heroImage = null %}
  317.     {% set heroImageAlt = tour.category[0].name ~ ' ' ~ tour.name ~ ' - Touren-Impression #1' %}
  318.     {% if tour.primaryImage %}
  319.         {% set heroImage = tour.primaryImage %}
  320.     {% elseif tour.images and tour.images[0] %}
  321.         {% set heroImage = tour.images[0] %}
  322.     {% endif %}
  323.     {% if heroImage and heroImage.metadata is iterable %}
  324.         {% for metadata in heroImage.metadata %}
  325.             {% if metadata['name'] == 'alt' %}
  326.                 {% set heroImageAlt = metadata['data'] %}
  327.             {% endif %}
  328.         {% endfor %}
  329.     {% endif %}
  330.     {{ include('Includes/hero.html.twig', {'image': heroImage, 'alt': heroImageAlt}) }}
  331.     {{ include('Navigation/breadcrumb.html.twig') }}
  332.     {#
  333.     open: badge-success
  334.     partially-open: badge-info
  335.     closed: badge-danger
  336.     #}
  337.     {% set badge = [] %}
  338.     {% if tour.openedState %}
  339.         {% if tour.openedState == 'open' %}
  340.             {% set badge = {
  341.                 'color': 'success',
  342.                 'text': 'tour.Geöffnet'|trans
  343.             } %}
  344.         {% elseif tour.openedState == 'partially-open' %}
  345.             {% set badge = {
  346.                 'color': 'info',
  347.                 'text': 'tour.Teilweise geöffnet'|trans
  348.             } %}
  349.         {% elseif tour.openedState == 'closed' %}
  350.             {% set badge = {
  351.                 'color': 'danger',
  352.                 'text': 'tour.Geschlossen'|trans
  353.             } %}
  354.         {% endif %}
  355.     {% endif %}
  356.     {{ include('Includes/main-title-block-splitted.html.twig', {
  357.         headline: tour.name,
  358.         badge: badge,
  359.         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>') : '',
  360.         description: tour.shortText,
  361.         expand: tour.longText
  362.     }) }}
  363.     <section class=\"container container-sm content-block\">
  364.         {{ include('Tour/detail/tourProperties.html.twig') }}
  365.         {{ include('Tour/detail/tourSeasons.html.twig') }}
  366.         {{ include('Tour/detail/tourDetails.html.twig') }}
  367.     </section>
  368.     {{ include('Tour/detail/map.html.twig') }}
  369.     {{ include('Tour/detail/tourTabbing.html.twig') }}
  370.     {{ include('Tour/detail/tourGallery.html.twig') }}
  371.     {% set weatherStation = getWeatherStationByAlpsteinTour(tour) %}
  372.     {% if weatherStation %}
  373.         {{ include('Includes/weather-slide.html.twig', {'weatherStation': weatherStation}) }}
  374.     {% endif %}
  375.     {{ include('Includes/demiNearbySlide.html.twig', {
  376.         image: tour.imageTeaserOverrideAccomodation ?: siteConfig.textSlideImageDefault,
  377.         headline: 'tour-detail.Unterkünfte in der Nähe'|trans,
  378.         id: tour.id,
  379.         lat: tour.startingPoint.latitude,
  380.         lng: tour.startingPoint.longitude,
  381.         btnText: 'tour.detail.Weiter zur Suche'|trans
  382.     }) }}
  383.     {% if recommendations is defined and recommendations is not empty %}
  384.         {{ include('Tour/detail/recommendations.html.twig', {'tours': recommendations}) }}
  385.     {% endif %}
  386. {% endblock %}
  387. {% block javascripts %}
  388.     {% if not app.request.get('onlyInlineCss') %}
  389.         {{ include('Layout/includes/encore.html.twig', {
  390.             'staticDebugMode': staticDebugMode,
  391.             'file': 'js/tour'
  392.         }) }}
  393.     {% endif %}
  394. {% endblock %}
  395. ""Tour/detail.html.twig""/home/steiermark/www/templates/Tour/detail.html.twig");
  396.     }
  397. }