<?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;
/* Bus/detail.html.twig */
class __TwigTemplate_060032f4d524ac9c4658b7eeaf18b123 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
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", "Bus/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", "Bus/detail.html.twig"));
$this->parent = $this->loadTemplate("Layout/default.html.twig", "Bus/detail.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
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 5
echo " ";
$context["detailUrl"] = twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\LinkGenerator']->getGenerator(), "generate", [0 => (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 5, $this->source); })())], "method", false, false, false, 5);
// line 6
echo " ";
$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.', 6, $this->source); })()));
// line 7
echo " ";
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["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 7, $this->source); })()), "shortDescription", [], "any", false, false, false, 7)) ? (twig_get_attribute($this->env, $this->source, (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 7, $this->source); })()), "shortDescription", [], "any", false, false, false, 7)) : (twig_get_attribute($this->env, $this->source, (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 7, $this->source); })()), "description", [], "any", false, false, false, 7)))], "method", false, false, false, 7);
// line 8
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 8, $this->source); })()), "teaserimage", [], "any", false, false, false, 8)) {
// line 9
echo " ";
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsOpenGraph(), "addImage", [0 => twig_get_attribute($this->env, $this->source, (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 9, $this->source); })()), "teaserimage", [], "any", false, false, false, 9)], "method", false, false, false, 9);
// line 10
echo " ";
}
// line 11
echo " ";
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["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 11, $this->source); })()), "title", [], "any", false, false, false, 11), 1 => true], "method", false, false, false, 11);
// line 12
echo " ";
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsHeadMeta(), "setDescription", [0 => $this->extensions['App\Twig\LayoutExtension']->chooseDescription(twig_get_attribute($this->env, $this->source, (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 12, $this->source); })()), "shortDescription", [], "any", false, false, false, 12), twig_get_attribute($this->env, $this->source, (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 12, $this->source); })()), "longDescription", [], "any", false, false, false, 12)), 1 => true], "method", false, false, false, 12);
// line 13
echo " ";
if ( !((isset($context["detailUrl"]) || array_key_exists("detailUrl", $context) ? $context["detailUrl"] : (function () { throw new RuntimeError('Variable "detailUrl" does not exist.', 13, $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.', 13, $this->source); })()), "request", [], "any", false, false, false, 13), "pathInfo", [], "any", false, false, false, 13))) {
// line 14
echo " ";
twig_get_attribute($this->env, $this->source, $this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsRobots(), "setNoIndex", [0 => true], "method", false, false, false, 14);
// line 15
echo " ";
}
// line 16
echo "
";
// line 17
echo twig_include($this->env, $context, "Includes/hero.html.twig", ["image" => twig_get_attribute($this->env, $this->source, (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 17, $this->source); })()), "headerImage", [], "any", false, false, false, 17)]);
echo "
";
// line 18
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 19
(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 19, $this->source); })()), "getId", [], "method", false, false, false, 19), "url" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 20
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 20, $this->source); })()), "request", [], "any", false, false, false, 20), "pathInfo", [], "any", false, false, false, 20), "label" => twig_get_attribute($this->env, $this->source, // line 21
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 21, $this->source); })()), "title", [], "any", false, false, false, 21)]], "method", false, false, false, 18);
// line 23
echo " ";
echo twig_include($this->env, $context, "Navigation/breadcrumb.html.twig");
echo "
";
// line 25
echo twig_include($this->env, $context, "Includes/main-title-block-with-contact.html.twig", ["title" => twig_get_attribute($this->env, $this->source, // line 26
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 26, $this->source); })()), "title", [], "any", false, false, false, 26), "subtitle" => twig_get_attribute($this->env, $this->source, // line 27
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 27, $this->source); })()), "shortdescription", [], "any", false, false, false, 27), "contactBox" => null, "useContactBoxVariables" => true, "contactBoxImage" => twig_get_attribute($this->env, $this->source, // line 30
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 30, $this->source); })()), "logo", [], "any", false, false, false, 30), "contactBoxName" => twig_get_attribute($this->env, $this->source, // line 31
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 31, $this->source); })()), "contactName", [], "any", false, false, false, 31), "contactBoxFirstname" => twig_get_attribute($this->env, $this->source, // line 32
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 32, $this->source); })()), "firstname", [], "any", false, false, false, 32), "contactBoxLastname" => twig_get_attribute($this->env, $this->source, // line 33
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 33, $this->source); })()), "lastname", [], "any", false, false, false, 33), "contactBoxStreet" => twig_get_attribute($this->env, $this->source, // line 34
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 34, $this->source); })()), "street", [], "any", false, false, false, 34), "contactBoxZip" => twig_get_attribute($this->env, $this->source, // line 35
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 35, $this->source); })()), "zip", [], "any", false, false, false, 35), "contactBoxCity" => twig_get_attribute($this->env, $this->source, // line 36
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 36, $this->source); })()), "city", [], "any", false, false, false, 36), "contactBoxPhone" => twig_get_attribute($this->env, $this->source, // line 37
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 37, $this->source); })()), "telefone", [], "any", false, false, false, 37), "contactBoxFax" => twig_get_attribute($this->env, $this->source, // line 38
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 38, $this->source); })()), "fax", [], "any", false, false, false, 38), "contactBoxEmail" => twig_get_attribute($this->env, $this->source, // line 39
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 39, $this->source); })()), "email", [], "any", false, false, false, 39), "contactBoxWebsite" => twig_get_attribute($this->env, $this->source, // line 40
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 40, $this->source); })()), "website", [], "any", false, false, false, 40)]);
// line 41
echo "
";
// line 43
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 43, $this->source); })()), "longDescription", [], "any", false, false, false, 43))) {
// line 44
echo " ";
echo twig_include($this->env, $context, "Includes/wysiwyg-area.html.twig", ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("bustravel-detail-" . twig_get_attribute($this->env, $this->source, // line 45
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 45, $this->source); })()), "busType", [], "any", false, false, false, 45)) . ".wysiwyg area title")), "subtitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("bustravel-detail-" . twig_get_attribute($this->env, $this->source, // line 46
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 46, $this->source); })()), "busType", [], "any", false, false, false, 46)) . ".wysiwyg area subtitle")), "isTitleCentered" => true, "hasContactForm" => false, "styleModifier" => "content-block js-fade-in", "content" => (twig_get_attribute($this->env, $this->source, // line 50
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 50, $this->source); })()), "longDescription", [], "any", false, false, false, 50) . ((twig_get_attribute($this->env, $this->source, (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 50, $this->source); })()), "additionalDescription", [], "any", false, false, false, 50)) ? (twig_get_attribute($this->env, $this->source, (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 50, $this->source); })()), "additionalDescription", [], "any", false, false, false, 50)) : ("")))]);
// line 51
echo "
";
}
// line 53
echo "
";
// line 54
echo twig_include($this->env, $context, "Includes/gallery-area.html.twig", ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("bustravel-detail-" . twig_get_attribute($this->env, $this->source, // line 55
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 55, $this->source); })()), "busType", [], "any", false, false, false, 55)) . ".gallery title")), "subtitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("bustravel-detail-" . twig_get_attribute($this->env, $this->source, // line 56
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 56, $this->source); })()), "busType", [], "any", false, false, false, 56)) . ".gallery subtitle")), "wysiwyg" => "", "styleModifier" => "content-block js-fade-in", "images" => twig_get_attribute($this->env, $this->source, // line 59
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 59, $this->source); })()), "gallery", [], "any", false, false, false, 59)]);
// line 60
echo "
";
// line 62
echo twig_include($this->env, $context, "Includes/simple-map.html.twig", ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("bustravel-detail-" . twig_get_attribute($this->env, $this->source, // line 63
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 63, $this->source); })()), "busType", [], "any", false, false, false, 63)) . ".map title")), "subtitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("bustravel-detail-" . twig_get_attribute($this->env, $this->source, // line 64
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 64, $this->source); })()), "busType", [], "any", false, false, false, 64)) . ".map subtitle")), "street" => twig_get_attribute($this->env, $this->source, // line 65
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 65, $this->source); })()), "street", [], "any", false, false, false, 65), "zip" => twig_get_attribute($this->env, $this->source, // line 66
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 66, $this->source); })()), "zip", [], "any", false, false, false, 66), "city" => twig_get_attribute($this->env, $this->source, // line 67
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 67, $this->source); })()), "city", [], "any", false, false, false, 67), "geoposition" => twig_get_attribute($this->env, $this->source, // line 68
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 68, $this->source); })()), "map", [], "any", false, false, false, 68)]);
// line 69
echo "
";
// line 70
if ((twig_get_attribute($this->env, $this->source, (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 70, $this->source); })()), "busType", [], "any", false, false, false, 70) == "accommodation")) {
// line 71
echo " ";
// line 72
echo " ";
echo twig_include($this->env, $context, "Includes/mixed-flatrate-and-text-teaser-area.html.twig", ["styleModifier" => "content-block container", "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Ausflugsziele in der Nähe"), "subtitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Ausflugsziele in der Nähe subtitle"), "wysiwyg" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Ausflugsziele in der Nähe text"), "items" => $this->extensions['App\Twig\ObjectExtension']->getBusTravelRecommendation( // line 77
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 77, $this->source); })())), "textSnippet" => ["text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Weitere Ausflugsziele in der Nähe entdecken"), "button" => ["href" => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 81
($context["document"] ?? null), "property", [0 => "siteConfig"], "method", false, true, false, 81), "busTravelOverviewExcursionDestination", [], "method", false, true, false, 81), "fullPath", [], "any", true, true, false, 81)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["document"] ?? null), "property", [0 => "siteConfig"], "method", false, true, false, 81), "busTravelOverviewExcursionDestination", [], "method", false, true, false, 81), "fullPath", [], "any", false, false, false, 81), "")) : ("")), "text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Mehr anzeigen")]]]);
// line 85
echo "
";
} else {
// line 87
echo " ";
// line 88
echo " ";
echo twig_include($this->env, $context, "Includes/mixed-flatrate-and-text-teaser-area.html.twig", ["styleModifier" => "content-block container", "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Unterkünfte in der Nähe"), "subtitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Unterkünfte in der Nähe subtitle"), "wysiwyg" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Unterkünfte in der Nähe text"), "items" => $this->extensions['App\Twig\ObjectExtension']->getBusTravelRecommendation( // line 93
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 93, $this->source); })())), "textSnippet" => ["text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Weitere Unterkünfte in der Nähe entdecken"), "button" => ["href" => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 97
($context["document"] ?? null), "property", [0 => "siteConfig"], "method", false, true, false, 97), "getBusTravelOverviewAccommodations", [], "method", false, true, false, 97), "fullPath", [], "any", true, true, false, 97)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["document"] ?? null), "property", [0 => "siteConfig"], "method", false, true, false, 97), "getBusTravelOverviewAccommodations", [], "method", false, true, false, 97), "fullPath", [], "any", false, false, false, 97), "")) : ("")), "text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Mehr anzeigen")]]]);
// line 101
echo "
";
}
// line 103
echo "
";
// line 104
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 104, $this->source); })()), "downloads", [], "any", false, false, false, 104))) {
// line 105
echo " ";
echo twig_include($this->env, $context, "Includes/download.html.twig", ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.download title"), "subtitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.download subtitle"), "wysiwyg" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.download wysiwyg"), "downloads" => ((twig_get_attribute($this->env, $this->source, // line 109
($context["busTravel"] ?? null), "downloads", [], "any", true, true, false, 109)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["busTravel"] ?? null), "downloads", [], "any", false, false, false, 109), [])) : ([])), "styleModifier" => "content-block"]);
// line 111
echo "
";
}
// line 113
echo "
";
// line 114
if (((array_key_exists("weatherStation", $context)) ? (_twig_default_filter((isset($context["weatherStation"]) || array_key_exists("weatherStation", $context) ? $context["weatherStation"] : (function () { throw new RuntimeError('Variable "weatherStation" does not exist.', 114, $this->source); })()), null)) : (null))) {
// line 115
echo " ";
echo twig_include($this->env, $context, "Includes/weather-slide.html.twig", ["weatherStation" => // line 116
(isset($context["weatherStation"]) || array_key_exists("weatherStation", $context) ? $context["weatherStation"] : (function () { throw new RuntimeError('Variable "weatherStation" does not exist.', 116, $this->source); })())]);
// line 117
echo "
";
}
// line 119
echo "
";
// line 120
if (twig_get_attribute($this->env, $this->source, (isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 120, $this->source); })()), "video1", [], "any", false, false, false, 120)) {
// line 121
echo " ";
echo twig_include($this->env, $context, "Includes/video-area.html.twig", ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.video area title"), "subtitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.video area subtitle"), "video" => twig_get_attribute($this->env, $this->source, // line 124
(isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 124, $this->source); })()), "video1", [], "any", false, false, false, 124)]);
// line 125
echo "
";
}
// line 127
echo " ";
if (((array_key_exists("videos", $context)) ? (_twig_default_filter((isset($context["videos"]) || array_key_exists("videos", $context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.', 127, $this->source); })()), [])) : ([]))) {
// line 128
echo " ";
echo twig_include($this->env, $context, "Includes/video-teaser-area.html.twig", ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.video area row title"), "subtitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.video area row subtitle"), "wysiwyg" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.video area row wysiwyg"), "videos" => (( // line 132
array_key_exists("videos", $context)) ? (_twig_default_filter((isset($context["videos"]) || array_key_exists("videos", $context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.', 132, $this->source); })()), [])) : ([]))]);
// line 133
echo "
";
}
// line 135
echo "
";
// line 136
$context["busLinks"] = $this->extensions['App\Twig\ObjectExtension']->getBusLinks((isset($context["busTravel"]) || array_key_exists("busTravel", $context) ? $context["busTravel"] : (function () { throw new RuntimeError('Variable "busTravel" does not exist.', 136, $this->source); })()));
// line 137
echo " ";
if ( !twig_test_empty((isset($context["busLinks"]) || array_key_exists("busLinks", $context) ? $context["busLinks"] : (function () { throw new RuntimeError('Variable "busLinks" does not exist.', 137, $this->source); })()))) {
// line 138
echo " ";
echo twig_include($this->env, $context, "Includes/link-list.html.twig", ["links" => // line 139
(isset($context["busLinks"]) || array_key_exists("busLinks", $context) ? $context["busLinks"] : (function () { throw new RuntimeError('Variable "busLinks" does not exist.', 139, $this->source); })())]);
// line 140
echo "
";
}
// line 142
echo "
";
// line 143
if ( !twig_test_empty(((array_key_exists("packages", $context)) ? (_twig_default_filter((isset($context["packages"]) || array_key_exists("packages", $context) ? $context["packages"] : (function () { throw new RuntimeError('Variable "packages" does not exist.', 143, $this->source); })()), [])) : ([])))) {
// line 144
echo " ";
echo twig_include($this->env, $context, "Includes/mixed-img-and-text-teaser-area.html.twig", ["styleModifier" => "content-block container", "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Packages in der Nähe"), "subtitle" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Packages in der Nähe subtitle"), "wysiwyg" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Packages in der Nähe text"), "items" => // line 149
(isset($context["packages"]) || array_key_exists("packages", $context) ? $context["packages"] : (function () { throw new RuntimeError('Variable "packages" does not exist.', 149, $this->source); })()), "textSnippet" => ["isSmall" => true, "hasImage" => false, "text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Weitere Packages"), "button" => ["href" => "", "text" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bustravel-detail.Mehr anzeigen")], "color" => "default"]]);
// line 160
echo "
";
}
// line 162
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Bus/detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 276 => 162, 272 => 160, 270 => 149, 268 => 144, 266 => 143, 263 => 142, 259 => 140, 257 => 139, 255 => 138, 252 => 137, 250 => 136, 247 => 135, 243 => 133, 241 => 132, 239 => 128, 236 => 127, 232 => 125, 230 => 124, 228 => 121, 226 => 120, 223 => 119, 219 => 117, 217 => 116, 215 => 115, 213 => 114, 210 => 113, 206 => 111, 204 => 109, 202 => 105, 200 => 104, 197 => 103, 193 => 101, 191 => 97, 190 => 93, 188 => 88, 186 => 87, 182 => 85, 180 => 81, 179 => 77, 177 => 72, 175 => 71, 173 => 70, 170 => 69, 168 => 68, 167 => 67, 166 => 66, 165 => 65, 164 => 64, 163 => 63, 162 => 62, 158 => 60, 156 => 59, 155 => 56, 154 => 55, 153 => 54, 150 => 53, 146 => 51, 144 => 50, 143 => 46, 142 => 45, 140 => 44, 138 => 43, 134 => 41, 132 => 40, 131 => 39, 130 => 38, 129 => 37, 128 => 36, 127 => 35, 126 => 34, 125 => 33, 124 => 32, 123 => 31, 122 => 30, 121 => 27, 120 => 26, 119 => 25, 113 => 23, 111 => 21, 110 => 20, 109 => 19, 108 => 18, 104 => 17, 101 => 16, 98 => 15, 95 => 14, 92 => 13, 89 => 12, 86 => 11, 83 => 10, 80 => 9, 77 => 8, 74 => 7, 71 => 6, 68 => 5, 58 => 4, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"Layout/default.html.twig\" %}
{% block content %}
{% set detailUrl = linkGenerator().generate(busTravel) %}
{% do elements_canonical(detailUrl) %}
{% do elements_opengraph().setDescription(busTravel.shortDescription ?: busTravel.description) %}
{% if busTravel.teaserimage %}
{% do elements_opengraph().addImage(busTravel.teaserimage) %}
{% endif %}
{% do elements_head_title().setTitle(busTravel.title, true) %}
{% do elements_head_meta().setDescription(chooseDescription(busTravel.shortDescription, busTravel.longDescription), true) %}
{% if not detailUrl is same as(app.request.pathInfo) %}
{% do elements_robots().setNoIndex(true) %}
{% endif %}
{{ include('Includes/hero.html.twig', {'image': busTravel.headerImage}) }}
{% do pimcore_placeholder('addBreadcrumb').set({
'parentId' : document.getId(),
'url' : app.request.pathInfo,
'label' : busTravel.title
}) %}
{{ include('Navigation/breadcrumb.html.twig') }}
{{ include('Includes/main-title-block-with-contact.html.twig', {
title : busTravel.title,
subtitle: busTravel.shortdescription,
contactBox: null,
useContactBoxVariables: true,
contactBoxImage: busTravel.logo,
contactBoxName: busTravel.contactName,
contactBoxFirstname: busTravel.firstname,
contactBoxLastname: busTravel.lastname,
contactBoxStreet: busTravel.street,
contactBoxZip: busTravel.zip,
contactBoxCity: busTravel.city,
contactBoxPhone: busTravel.telefone,
contactBoxFax: busTravel.fax,
contactBoxEmail: busTravel.email,
contactBoxWebsite: busTravel.website,
}) }}
{% if not busTravel.longDescription is empty %}
{{ include('Includes/wysiwyg-area.html.twig', {
title: ('bustravel-detail-' ~ busTravel.busType ~ '.wysiwyg area title')|trans,
subtitle: ('bustravel-detail-' ~ busTravel.busType ~ '.wysiwyg area subtitle')|trans,
isTitleCentered: true,
hasContactForm: false,
styleModifier: 'content-block js-fade-in',
content: busTravel.longDescription ~ (busTravel.additionalDescription ? busTravel.additionalDescription : ''),
}) }}
{% endif %}
{{ include('Includes/gallery-area.html.twig', {
title: ('bustravel-detail-' ~ busTravel.busType ~ '.gallery title')|trans,
subtitle: ('bustravel-detail-' ~ busTravel.busType ~ '.gallery subtitle')|trans,
wysiwyg: '',
styleModifier: 'content-block js-fade-in',
images: busTravel.gallery,
}) }}
{{ include('Includes/simple-map.html.twig', {
title: ('bustravel-detail-' ~ busTravel.busType ~ '.map title')|trans,
subtitle: ('bustravel-detail-' ~ busTravel.busType ~ '.map subtitle')|trans,
street: busTravel.street,
zip: busTravel.zip,
city: busTravel.city,
geoposition: busTravel.map
}) }}
{% if busTravel.busType == 'accommodation' %}
{# show excursion destinations #}
{{ include('Includes/mixed-flatrate-and-text-teaser-area.html.twig', {
'styleModifier': 'content-block container',
title: 'bustravel-detail.Ausflugsziele in der Nähe'|trans,
subtitle: 'bustravel-detail.Ausflugsziele in der Nähe subtitle'|trans,
wysiwyg: 'bustravel-detail.Ausflugsziele in der Nähe text'|trans,
items: getBusTravelRecommendation(busTravel),
textSnippet: {
text: 'bustravel-detail.Weitere Ausflugsziele in der Nähe entdecken'|trans,
button: {
\"href\": document.property('siteConfig').busTravelOverviewExcursionDestination().fullPath|default(''),
\"text\": \"bustravel-detail.Mehr anzeigen\"|trans
},
}
}) }}
{% else %}
{# show accommodations #}
{{ include('Includes/mixed-flatrate-and-text-teaser-area.html.twig', {
'styleModifier': 'content-block container',
title: 'bustravel-detail.Unterkünfte in der Nähe'|trans,
subtitle: 'bustravel-detail.Unterkünfte in der Nähe subtitle'|trans,
wysiwyg: 'bustravel-detail.Unterkünfte in der Nähe text'|trans,
items: getBusTravelRecommendation(busTravel),
textSnippet: {
text: 'bustravel-detail.Weitere Unterkünfte in der Nähe entdecken'|trans,
button: {
\"href\": document.property('siteConfig').getBusTravelOverviewAccommodations().fullPath|default(''),
\"text\": \"bustravel-detail.Mehr anzeigen\"|trans
},
}
}) }}
{% endif %}
{% if not busTravel.downloads is empty %}
{{ include('Includes/download.html.twig', {
title: 'bustravel-detail.download title'|trans,
subtitle: 'bustravel-detail.download subtitle'|trans,
wysiwyg:'bustravel-detail.download wysiwyg'|trans,
downloads: busTravel.downloads|default([]),
styleModifier: 'content-block',
}) }}
{% endif %}
{% if weatherStation|default(null) %}
{{ include('Includes/weather-slide.html.twig', {
weatherStation: weatherStation
}) }}
{% endif %}
{% if busTravel.video1 %}
{{ include('Includes/video-area.html.twig', {
title: 'bustravel-detail.video area title'|trans,
subtitle: 'bustravel-detail.video area subtitle'|trans,
video: busTravel.video1,
}) }}
{% endif %}
{% if videos|default([]) %}
{{ include('Includes/video-teaser-area.html.twig', {
title: 'bustravel-detail.video area row title'|trans,
subtitle: 'bustravel-detail.video area row subtitle'|trans,
wysiwyg: 'bustravel-detail.video area row wysiwyg'|trans,
videos: videos|default([]),
}) }}
{% endif %}
{% set busLinks = getBusLinks(busTravel) %}
{% if not busLinks is empty %}
{{ include('Includes/link-list.html.twig', {
links: busLinks,
}) }}
{% endif %}
{% if not packages|default([]) is empty %}
{{ include('Includes/mixed-img-and-text-teaser-area.html.twig', {
styleModifier: 'content-block container',
title: 'bustravel-detail.Packages in der Nähe'|trans,
subtitle: 'bustravel-detail.Packages in der Nähe subtitle'|trans,
wysiwyg: 'bustravel-detail.Packages in der Nähe text'|trans,
items: packages,
textSnippet: {
isSmall: true,
hasImage: false,
text: 'bustravel-detail.Weitere Packages'|trans,
button: {
href: '',
text: \"bustravel-detail.Mehr anzeigen\"|trans
},
color: \"default\"
}
}) }}
{% endif %}
{% endblock %}
", "Bus/detail.html.twig", "/home/steiermark/www/templates/Bus/detail.html.twig");
}
}