var/cache/dev/twig/c7/c77bc9374b487675afa54e84c88bb1e7.php line 329

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. /* homepage.html.twig */
  14. class __TwigTemplate_ad48e5d885bdc960db3b5add6eb1ce5a extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homepage.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homepage.html.twig"));
  33.         // line 1
  34.         echo "
  35. ";
  36.         // line 3
  37.         echo "
  38. ";
  39.         // line 4
  40.         if (( !array_key_exists("document"$context) ||  !(isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'4$this->source); })()))) {
  41.             // line 5
  42.             echo "    ";
  43.             $context["document"] = Pimcore\Model\Document::getById(1);
  44.         }
  45.         // line 7
  46.         echo "
  47. ";
  48.         // line 9
  49.         echo "
  50. ";
  51.         // line 10
  52.         if (((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'10$this->source); })()) == "de")) {
  53.             // line 11
  54.             echo "    ";
  55.             $context["navStartNode"] = Pimcore\Model\Document::getById(twig_constant("SITE_ROOT_ID_DE"));
  56.         } elseif ((        // line 12
  57. (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'12$this->source); })()) == "en")) {
  58.             // line 13
  59.             echo "    ";
  60.             $context["navStartNode"] = Pimcore\Model\Document::getById(twig_constant("SITE_ROOT_ID_EN"));
  61.         } else {
  62.             // line 15
  63.             echo "    ";
  64.             $context["navStartNode"] = twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'15$this->source); })()), "getProperty", [=> "navigationRoot"], "method"falsefalsefalse15);
  65.         }
  66.         // line 17
  67.         echo "
  68. ";
  69.         // line 23
  70.         echo "
  71. ";
  72.         // line 24
  73.         $context["mainNavigation"] = call_user_func_array($this->env->getFunction('pimcore_build_nav')->getCallable(), [["active" =>         // line 25
  74. (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'25$this->source); })()), "root" =>         // line 26
  75. (isset($context["navStartNode"]) || array_key_exists("navStartNode"$context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.'26$this->source); })())]]);
  76.         // line 28
  77.         echo "
  78. ";
  79.         // line 29
  80.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'29$this->source); })()), "getDescription", [], "any"falsefalsefalse29))) {
  81.             // line 30
  82.             echo "      ";
  83.             twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []), "setDescription", [=> twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'30$this->source); })()), "getDescription", [], "any"falsefalsefalse30)], "method"falsefalsefalse30);
  84.         }
  85.         // line 32
  86.         echo "
  87. ";
  88.         // line 33
  89.         twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []), "setProperty", [=> "og:locale"=> (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'33$this->source); })())], "method"falsefalsefalse33);
  90.         // line 34
  91.         twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []), "setProperty", [=> "og:url"=> 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.'34$this->source); })()), "request", [], "any"falsefalsefalse34), "uri", [], "any"falsefalsefalse34)], "method"falsefalsefalse34);
  92.         // line 35
  93.         twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []), "setProperty", [=> "og:site_name"=> twig_constant("SITE_NAME")], "method"falsefalsefalse35);
  94.         // line 36
  95.         if (array_key_exists("newsarticle"$context)) {
  96.             // line 37
  97.             echo "    ";
  98.             if (call_user_func_array($this->env->getTest('instanceof')->getCallable(), [(isset($context["newsarticle"]) || array_key_exists("newsarticle"$context) ? $context["newsarticle"] : (function () { throw new RuntimeError('Variable "newsarticle" does not exist.'37$this->source); })()), "\\PimcoreModelDataObjectNewsblog"])) {
  99.                 // line 38
  100.                 echo "        ";
  101.                 twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []), "setProperty", [=> "og:type"=> "article"], "method"falsefalsefalse38);
  102.                 // line 39
  103.                 echo "        ";
  104.                 twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []), "setProperty", [=> "og:title"=> twig_get_attribute($this->env$this->source, (isset($context["newsarticle"]) || array_key_exists("newsarticle"$context) ? $context["newsarticle"] : (function () { throw new RuntimeError('Variable "newsarticle" does not exist.'39$this->source); })()), "headline", [], "any"falsefalsefalse39)], "method"falsefalsefalse39);
  105.                 // line 40
  106.                 echo "        ";
  107.                 twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []), "setProperty", [=> "og:description"=> twig_get_attribute($this->env$this->source, (isset($context["newsarticle"]) || array_key_exists("newsarticle"$context) ? $context["newsarticle"] : (function () { throw new RuntimeError('Variable "newsarticle" does not exist.'40$this->source); })()), "teaser", [], "any"falsefalsefalse40)], "method"falsefalsefalse40);
  108.                 // line 41
  109.                 echo "        ";
  110.                 twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []), "setProperty", [=> "article:modified_time"=> twig_get_attribute($this->env$this->sourcetwig_date_converter($this->env, (isset($context["timestamp"]) || array_key_exists("timestamp"$context) ? $context["timestamp"] : (function () { throw new RuntimeError('Variable "timestamp" does not exist.'41$this->source); })())), "format", [=> "c"], "method"falsefalsefalse41)], "method"falsefalsefalse41);
  111.                 // line 42
  112.                 echo "    ";
  113.             }
  114.         }
  115.         // line 44
  116.         echo "
  117. ";
  118.         // line 45
  119.         $context["user"] = 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.'45$this->source); })()), "user", [], "any"falsefalsefalse45);
  120.         // line 46
  121.         echo "
  122. <!DOCTYPE html>
  123. <html lang=\"";
  124.         // line 48
  125.         echo twig_escape_filter($this->env, (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'48$this->source); })()), "html"nulltrue);
  126.         echo "\"> 
  127.   <head>
  128.     <meta charset=\"utf-8\">
  129.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  130.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">    
  131.     <title>";
  132.         // line 53
  133.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'53$this->source); })()), "getTitle", [], "method"falsefalsefalse53))) {
  134.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'53$this->source); })()), "getTitle", [], "method"falsefalsefalse53), "html"nulltrue);
  135.         }
  136.         echo "</title>   
  137.     ";
  138.         // line 54
  139.         echo call_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []);
  140.         echo "
  141.     <link rel=\"canonical\" href=\"";
  142.         // line 55
  143.         echo twig_escape_filter($this->envtwig_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.'55$this->source); })()), "request", [], "any"falsefalsefalse55), "uri", [], "any"falsefalsefalse55), "html"nulltrue);
  144.         echo "\" />
  145.     <meta name=\"author\" content=\"";
  146.         // line 56
  147.         echo twig_escape_filter($this->envtwig_constant("SITE_NAME"), "html"nulltrue);
  148.         echo "\">
  149.     <meta name=\"generator\" content=\"78media solutions\">    
  150.     <link rel=\"icon\" href=\"";
  151.         // line 58
  152.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  153.         echo "/img/favicons/favicon-192x192.png\" sizes=\"192x192\" type=\"image/png\">
  154.     <link rel=\"apple-touch-icon\" href=\"";
  155.         // line 59
  156.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  157.         echo "/img/favicons/apple-touch-icon.png\" sizes=\"180x180\">
  158.     <link rel=\"icon\" href=\"";
  159.         // line 60
  160.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  161.         echo "/img/favicons/favicon-32x32.png\" sizes=\"32x32\" type=\"image/png\">
  162.     <link rel=\"icon\" href=\"";
  163.         // line 61
  164.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  165.         echo "/img/favicons/favicon-16x16.png\" sizes=\"16x16\" type=\"image/png\">
  166.     <link rel=\"manifest\" href=\"";
  167.         // line 62
  168.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  169.         echo "/img/favicons/manifest.json\">
  170.     <link rel=\"mask-icon\" href=\"";
  171.         // line 63
  172.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  173.         echo "/img/favicons/safari-pinned-tab.svg\" color=\"#563d7c\">
  174.     <link rel=\"icon\" href=\"";
  175.         // line 64
  176.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  177.         echo "/img/favicons/favicon.ico\">    
  178.     <!-- base -->
  179.     <link href=\"";
  180.         // line 66
  181.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  182.         echo "/css/bootstrap.min.css\" rel=\"stylesheet\">
  183.     <link href=\"";
  184.         // line 67
  185.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  186.         echo "/css/animate.min.css\" rel=\"stylesheet\" />
  187.     <link href=\"";
  188.         // line 68
  189.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  190.         echo "/css/jquery.fancybox.min.css\" rel=\"stylesheet\">
  191.     <link href=\"";
  192.         // line 69
  193.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  194.         echo "/plugins/slick/slick.css\" rel=\"stylesheet\">
  195.     <link href=\"";
  196.         // line 70
  197.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  198.         echo "/plugins/slick/slick-theme.css\" rel=\"stylesheet\">
  199.     <!-- theme -->
  200.     <link href=\"";
  201.         // line 72
  202.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  203.         echo "/css/screen.less?v=";
  204.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env"now""U"), "html"nulltrue);
  205.         echo "\" rel=\"stylesheet/less\" type=\"text/css\">   
  206.     <script src=\"";
  207.         // line 73
  208.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  209.         echo "/js/less.min.js\" language=\"javascript\"></script> 
  210.     ";
  211.         // line 74
  212.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'74$this->source); })())) {
  213.             // line 75
  214.             echo "    <link href=\"";
  215.             echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  216.             echo "/css/editmode.css?v=";
  217.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env"now""U"), "html"nulltrue);
  218.             echo "\" rel=\"stylesheet\">
  219.     ";
  220.         }
  221.         // line 77
  222.         echo "    
  223.     <!-- Google tag (gtag.js) -->
  224.     <script async src=\"https://www.googletagmanager.com/gtag/js?id=AW-927743781\">
  225.     </script>
  226.     <script>
  227.       window.dataLayer = window.dataLayer || [];
  228.       function gtag(){dataLayer.push(arguments);}
  229.       gtag('js', new Date());
  230.       gtag('config', 'AW-927743781');
  231.     </script>
  232.   </head>
  233.   <body id=\"body\">
  234.     <header>
  235.       <!-- div wrapper needed !!! -->
  236.       <div class=\"header-options\">       
  237.         <a class=\"navbar-toggler d-block\" data-toggle=\"navbar-header\">
  238.           <div id=\"nav-icon\">
  239.             <span></span>
  240.             <span></span>
  241.             <span></span>
  242.             <span></span>
  243.           </div>
  244.         </a>        
  245.         <a class=\"language-switch\" data-toggle=\"language-selection\" href=\"/";
  246.         // line 103
  247.         echo ((((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'103$this->source); })()) == "en")) ? ("de") : ("en"));
  248.         echo "/\">
  249.           <img class=\"language ";
  250.         // line 104
  251.         echo ((((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'104$this->source); })()) == "en")) ? ("active-en") : ("active-de"));
  252.         echo "\" src=\"";
  253.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  254.         echo "/img/flags/de-en.png\" />
  255.         </a>
  256.         <a href=\"https://www.deutschertourismusverband.de/\">
  257.           <img class=\"dtv-link\" src=\"";
  258.         // line 107
  259.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  260.         echo "/img/dtv_4_sterneferien.png\" />
  261.         </a>       
  262.       </div>
  263.       <!-- end div wrapper !!! -->
  264.       <div class=\"header-logo\">
  265.         <a href=\"/";
  266.         // line 112
  267.         echo twig_escape_filter($this->env, (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'112$this->source); })()), "html"nulltrue);
  268.         echo "\">
  269.           <img src=\"";
  270.         // line 113
  271.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  272.         echo "/img/logo_7schwaben.png\" alt=\"7SCHWABEN\" title=\"7SCHWABEN Ferienwohnungen Apartments in Bad Urach\" />
  273.         </a>
  274.       </div>      
  275.     </header>
  276.     
  277.     ";
  278.         // line 119
  279.         echo "    ";
  280.         $context["menuRenderer"] = call_user_func_array($this->env->getFunction('pimcore_nav_renderer')->getCallable(), ["menu"]);
  281.         // line 120
  282.         echo "    ";
  283.         echo twig_get_attribute($this->env$this->source, (isset($context["menuRenderer"]) || array_key_exists("menuRenderer"$context) ? $context["menuRenderer"] : (function () { throw new RuntimeError('Variable "menuRenderer" does not exist.'120$this->source); })()), "renderPartial", [=> (isset($context["mainNavigation"]) || array_key_exists("mainNavigation"$context) ? $context["mainNavigation"] : (function () { throw new RuntimeError('Variable "mainNavigation" does not exist.'120$this->source); })()), => "_includes/7schwaben_navigation.html.twig"], "method"falsefalsefalse120);
  284.         echo "
  285.     
  286.     <main>
  287.       <!-- page banner -->
  288.       <div class=\"page-banner\">
  289.         ";
  290.         // line 126
  291.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""home_main_image");
  292.         echo "           
  293.         <div class=\"container\">
  294.           <div class=\"row\">
  295.             <div class=\"col-12\">
  296.               <div class=\"page-header main-header\">
  297.                 <h3><span class=\"d-block d-sm-inline\">";
  298.         // line 131
  299.         echo twig_replace_filter($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""home_main_header3"), ["7SCHWABEN" => "<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>"]);
  300.         echo "</h3> 
  301.                 <h1>";
  302.         // line 132
  303.         echo twig_replace_filter($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""home_main_header1"), ["7SCHWABEN" => "<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>"]);
  304.         echo "</h1> 
  305.               </div>  
  306.             </div>
  307.           </div>
  308.         </div>
  309.       </div>
  310.       <!-- slider gallery -->
  311.       <!--
  312.       <section>           
  313.         ";
  314.         // line 142
  315.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"renderlet""slidergallery", ["controller" => "App\\Controller\\DocumentController::sliderGalleryAction""title" => "Assets-Ordner mit Bildern per Drag+Drop zuweisen""height" => 400]);
  316.         // line 147
  317.         echo "        
  318.         <div class=\"container mt-5\">
  319.           <div class=\"row\">
  320.             <div class=\"col-12\">
  321.               ";
  322.         // line 151
  323.         echo twig_replace_filter($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""home_main_welcome"), ["7SCHWABEN" => "<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>"]);
  324.         echo "  
  325.             </div>
  326.           </div>
  327.         </div>       
  328.       </section>
  329.       -->
  330.       
  331.       <!-- apartments section -->     
  332.       <section class=\"bg-grey\" style=\"overflow:hidden;\">        
  333.         <!-- apartments slider -->       
  334.         <div class=\"appartments-slider\">  \t\t\t\t
  335.           ";
  336.         // line 162
  337.         if ((array_key_exists("apartments"$context) && (twig_length_filter($this->env, (isset($context["apartments"]) || array_key_exists("apartments"$context) ? $context["apartments"] : (function () { throw new RuntimeError('Variable "apartments" does not exist.'162$this->source); })())) > 0))) {
  338.             // line 163
  339.             echo "          ";
  340.             $context['_parent'] = $context;
  341.             $context['_seq'] = twig_ensure_traversable((isset($context["apartments"]) || array_key_exists("apartments"$context) ? $context["apartments"] : (function () { throw new RuntimeError('Variable "apartments" does not exist.'163$this->source); })()));
  342.             foreach ($context['_seq'] as $context["_key"] => $context["apartment"]) {
  343.                 echo "              
  344.           <div class=\"appartment-preview\">
  345.   \t\t\t\t\t<img class=\"appartment-preview-image\" src=\"";
  346.                 // line 165
  347.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "mainImage", [], "any"falsefalsefalse165), "html"nulltrue);
  348.                 echo "\" />
  349.             <div class=\"appartment-preview-box\">
  350.               <h3 class=\"appartment-name red\">
  351.                 ";
  352.                 // line 168
  353.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "name", [], "any"falsefalsefalse168), "html"nulltrue);
  354.                 echo "
  355.               </h3>
  356.               <div class=\"appartment-description\">
  357.                 ";
  358.                 // line 171
  359.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "shortDescription", [], "any"falsefalsefalse171), "html"nulltrue);
  360.                 echo "
  361.               </div>
  362.               <div class=\"appartment-options\">
  363.                 <a class=\"btn btn-default\" href=\"/";
  364.                 // line 174
  365.                 echo twig_escape_filter($this->env, (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'174$this->source); })()), "html"nulltrue);
  366.                 echo "/buchen.php\">";
  367.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("booking"), "html"nulltrue);
  368.                 echo "</a><a class=\"btn btn-default\" href=\"/";
  369.                 echo twig_escape_filter($this->env, (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'174$this->source); })()), "html"nulltrue);
  370.                 echo "/apartments/";
  371.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "key", [], "any"falsefalsefalse174), "html"nulltrue);
  372.                 echo "\">";
  373.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("details"), "html"nulltrue);
  374.                 echo "</a>
  375.               </div>
  376.             </div>
  377.   \t\t\t\t</div>          
  378.           ";
  379.             }
  380.             $_parent $context['_parent'];
  381.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['apartment'], $context['_parent'], $context['loop']);
  382.             $context array_intersect_key($context$_parent) + $_parent;
  383.             // line 179
  384.             echo "          ";
  385.         }
  386.         // line 180
  387.         echo "        </div>
  388.         <!-- end apartments slider -->      
  389.       </section>
  390.       
  391.       <section>
  392.         <div class=\"container mt-2\">
  393.           <div class=\"row\">
  394.             <div class=\"col-12\">
  395.               ";
  396.         // line 188
  397.         echo twig_replace_filter($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""home_main_welcome"), ["7SCHWABEN" => "<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>"]);
  398.         echo "  
  399.             </div>
  400.           </div>
  401.         </div>       
  402.       </section>
  403.       
  404.       <!-- apartments section -->
  405.       <section>
  406.         <div class=\"container\">
  407.           <div class=\"page-header scroll-animated\" data-animation=\"slideInUp\">
  408.             <h3>";
  409.         // line 198
  410.         echo twig_replace_filter($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""home_section1_header3"), ["7SCHWABEN" => "<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>"]);
  411.         echo "</h3> 
  412.             <p class=\"grey\">";
  413.         // line 199
  414.         echo twig_replace_filter($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""home_section1_text1"), ["7SCHWABEN" => "<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>"]);
  415.         echo "</p>
  416.           </div>          
  417.           
  418.           <!-- slider gallery -->
  419.           <div class=\"document-gallery-wrapper\">           
  420.             ";
  421.         // line 204
  422.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"renderlet""slidergallery2", ["controller" => "App\\Controller\\DocumentController::sliderGalleryAction""title" => "Assets-Ordner mit Bildern per Drag+Drop zuweisen""height" => 400]);
  423.         // line 209
  424.         echo "
  425.           </div>
  426.           
  427.           <div class=\"page-introduction scroll-animated\" data-animation=\"slideInUp\">
  428.             ";
  429.         // line 213
  430.         echo twig_replace_filter($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""home_section1_text2"), ["7SCHWABEN" => "<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>"]);
  431.         echo "
  432.           </div>
  433.                   
  434.           ";
  435.         // line 216
  436.         if ((array_key_exists("apartments"$context) && (twig_length_filter($this->env, (isset($context["apartments"]) || array_key_exists("apartments"$context) ? $context["apartments"] : (function () { throw new RuntimeError('Variable "apartments" does not exist.'216$this->source); })())) > 0))) {
  437.             // line 217
  438.             echo "          ";
  439.             $context['_parent'] = $context;
  440.             $context['_seq'] = twig_ensure_traversable((isset($context["apartments"]) || array_key_exists("apartments"$context) ? $context["apartments"] : (function () { throw new RuntimeError('Variable "apartments" does not exist.'217$this->source); })()));
  441.             foreach ($context['_seq'] as $context["_key"] => $context["apartment"]) {
  442.                 echo "            
  443.           <div class=\"apmt-preview-box\">
  444.             <div class=\"row\">
  445.               <div class=\"col-12 col-lg-3\">
  446.                 <div class=\"apmt-preview-image\">
  447.                   <img class=\"apmt-image\" src=\"";
  448.                 // line 222
  449.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "logo", [], "any"falsefalsefalse222), "html"nulltrue);
  450.                 echo "\" />
  451.                 </div>
  452.               </div>
  453.               <div class=\"col-12 col-lg-9\">
  454.                 <div class=\"apmt-preview-description\">
  455.                   <h3 class=\"apmt-description-header\">";
  456.                 // line 227
  457.                 if ((twig_get_attribute($this->env$this->source$context["apartment"], "stars", [], "any"falsefalsefalse227) > 0)) {
  458.                     echo "<img class=\"apmt-stars-rating\" alt=\"";
  459.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "stars", [], "any"falsefalsefalse227), "html"nulltrue);
  460.                     echo " Sterne\" src=\"/themes/7schwaben/img/";
  461.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "stars", [], "any"falsefalsefalse227), "html"nulltrue);
  462.                     echo "_Sterne.png\" />";
  463.                 }
  464.                 echo twig_get_attribute($this->env$this->source$context["apartment"], "shortDescription", [], "any"falsefalsefalse227);
  465.                 echo "</h3>
  466.                   <div class=\"apmt-preview-icons\">
  467.                     ";
  468.                 // line 229
  469.                 if (twig_get_attribute($this->env$this->source$context["apartment"], "icon1", [], "any"falsefalsefalse229)) {
  470.                     echo "<span class=\"icon-apmt icon-apmt-double\"></span>";
  471.                 }
  472.                 // line 230
  473.                 echo "                    ";
  474.                 if (twig_get_attribute($this->env$this->source$context["apartment"], "icon2", [], "any"falsefalsefalse230)) {
  475.                     echo "<span class=\"icon-apmt icon-apmt-single\"></span>";
  476.                 }
  477.                 // line 231
  478.                 echo "                    ";
  479.                 if (twig_get_attribute($this->env$this->source$context["apartment"], "icon3", [], "any"falsefalsefalse231)) {
  480.                     echo "<span class=\"icon-apmt icon-apmt-bunk\"></span>";
  481.                 }
  482.                 echo "                   
  483.                     ";
  484.                 // line 232
  485.                 if (twig_get_attribute($this->env$this->source$context["apartment"], "icon4", [], "any"falsefalsefalse232)) {
  486.                     echo "<span class=\"icon-apmt icon-apmt-terrace\"></span>";
  487.                 }
  488.                 // line 233
  489.                 echo "                    ";
  490.                 if (twig_get_attribute($this->env$this->source$context["apartment"], "icon5", [], "any"falsefalsefalse233)) {
  491.                     echo "<span class=\"icon-apmt icon-apmt-disabled\"></span></span>";
  492.                 }
  493.                 // line 234
  494.                 echo "                    ";
  495.                 if (twig_get_attribute($this->env$this->source$context["apartment"], "icon6", [], "any"falsefalsefalse234)) {
  496.                     echo "<span class=\"icon-apmt icon-apmt-balcony\"></span>";
  497.                 }
  498.                 // line 235
  499.                 echo "                    ";
  500.                 if (twig_get_attribute($this->env$this->source$context["apartment"], "icon7", [], "any"falsefalsefalse235)) {
  501.                     echo "<span class=\"icon-apmt icon-apmt-view\"></span>";
  502.                 }
  503.                 // line 236
  504.                 echo "                  </div>
  505.                   <div>
  506.                     ";
  507.                 // line 238
  508.                 echo twig_get_attribute($this->env$this->source$context["apartment"], "description", [], "any"falsefalsefalse238);
  509.                 echo "
  510.                   </div>
  511.                   <div class=\"apmt-price-tag\">
  512.                     ";
  513.                 // line 241
  514.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("from"), "html"nulltrue);
  515.                 echo " ";
  516.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "price", [], "any"falsefalsefalse241), "html"nulltrue);
  517.                 echo " &euro;
  518.                   </div>
  519.                 </div> 
  520.                 <div class=\"apmt-preview-actions\"> 
  521.                   <a class=\"btn btn-default\" href=\"/";
  522.                 // line 245
  523.                 echo twig_escape_filter($this->env, (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'245$this->source); })()), "html"nulltrue);
  524.                 echo "/apartments/";
  525.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "key", [], "any"falsefalsefalse245), "html"nulltrue);
  526.                 echo "\">";
  527.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("details"), "html"nulltrue);
  528.                 echo "</a> &nbsp; <a class=\"btn btn-default\" href=\"/";
  529.                 echo twig_escape_filter($this->env, (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'245$this->source); })()), "html"nulltrue);
  530.                 echo "/buchen.php\">";
  531.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("booking"), "html"nulltrue);
  532.                 echo "</a>
  533.                 </div>
  534.               </div>
  535.             </div>
  536.           </div>            
  537.           ";
  538.             }
  539.             $_parent $context['_parent'];
  540.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['apartment'], $context['_parent'], $context['loop']);
  541.             $context array_intersect_key($context$_parent) + $_parent;
  542.             // line 251
  543.             echo "          ";
  544.         }
  545.         // line 252
  546.         echo "
  547.         </div>
  548.       </section>
  549.       
  550.       <section>
  551.         <div class=\"container\">                   
  552.           <div class=\"page-header scroll-animated\" data-animation=\"slideInUp\">
  553.             <h3>";
  554.         // line 259
  555.         echo twig_replace_filter($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""home_section2_header3"), ["7SCHWABEN" => "<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>"]);
  556.         echo "</h3> 
  557.             <p class=\"grey\">";
  558.         // line 260
  559.         echo twig_replace_filter($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""home_section2_text1"), ["7SCHWABEN" => "<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>"]);
  560.         echo "</p>
  561.           </div>
  562.           <div class=\"page-introduction scroll-animated\" data-animation=\"slideInUp\">
  563.             <div class=\"row\">
  564.               <div class=\"col-12 col-lg-6\">
  565.                 ";
  566.         // line 265
  567.         echo twig_replace_filter($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""home_section2_image1"), ["7SCHWABEN" => "<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>"]);
  568.         echo "
  569.               </div>
  570.               <div class=\"col-12 col-lg-6\">
  571.                 ";
  572.         // line 268
  573.         echo twig_replace_filter($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""home_section2_text2"), ["7SCHWABEN" => "<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>"]);
  574.         echo "          
  575.               </div>
  576.           </div>
  577.         </div>
  578.       </section>
  579.       
  580.       <!-- apartments section -->     
  581.       <section class=\"bg-grey\" style=\"overflow:hidden;\">        
  582.         <!-- apartments slider -->       
  583.         <div class=\"appartments-slider\">  \t\t\t\t
  584.           ";
  585.         // line 278
  586.         if ((array_key_exists("apartments"$context) && (twig_length_filter($this->env, (isset($context["apartments"]) || array_key_exists("apartments"$context) ? $context["apartments"] : (function () { throw new RuntimeError('Variable "apartments" does not exist.'278$this->source); })())) > 0))) {
  587.             // line 279
  588.             echo "          ";
  589.             $context['_parent'] = $context;
  590.             $context['_seq'] = twig_ensure_traversable((isset($context["apartments"]) || array_key_exists("apartments"$context) ? $context["apartments"] : (function () { throw new RuntimeError('Variable "apartments" does not exist.'279$this->source); })()));
  591.             foreach ($context['_seq'] as $context["_key"] => $context["apartment"]) {
  592.                 echo "              
  593.           <div class=\"appartment-preview\">
  594.   \t\t\t\t\t<img class=\"appartment-preview-image\" src=\"";
  595.                 // line 281
  596.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "mainImage", [], "any"falsefalsefalse281), "html"nulltrue);
  597.                 echo "\" />
  598.             <div class=\"appartment-preview-box\">
  599.               <h3 class=\"appartment-name red\">
  600.                 ";
  601.                 // line 284
  602.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "name", [], "any"falsefalsefalse284), "html"nulltrue);
  603.                 echo "
  604.               </h3>
  605.               <div class=\"appartment-description\">
  606.                 ";
  607.                 // line 287
  608.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "shortDescription", [], "any"falsefalsefalse287), "html"nulltrue);
  609.                 echo "
  610.               </div>
  611.               <div class=\"appartment-options\">
  612.                 <a class=\"btn btn-default\" href=\"/";
  613.                 // line 290
  614.                 echo twig_escape_filter($this->env, (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'290$this->source); })()), "html"nulltrue);
  615.                 echo "/buchen.php\">";
  616.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("booking"), "html"nulltrue);
  617.                 echo "</a><a class=\"btn btn-default\" href=\"/";
  618.                 echo twig_escape_filter($this->env, (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'290$this->source); })()), "html"nulltrue);
  619.                 echo "/apartments/";
  620.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["apartment"], "key", [], "any"falsefalsefalse290), "html"nulltrue);
  621.                 echo "\">";
  622.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("details"), "html"nulltrue);
  623.                 echo "</a>
  624.               </div>
  625.             </div>
  626.   \t\t\t\t</div>          
  627.           ";
  628.             }
  629.             $_parent $context['_parent'];
  630.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['apartment'], $context['_parent'], $context['loop']);
  631.             $context array_intersect_key($context$_parent) + $_parent;
  632.             // line 295
  633.             echo "          ";
  634.         }
  635.         // line 296
  636.         echo "        </div>
  637.         <!-- end apartments slider -->      
  638.       </section>
  639.       <div id=\"footer-switch\" style=\"height:1px; background:transparent;\">
  640.       </div>
  641.   
  642.       ";
  643.         // line 303
  644.         echo twig_include($this->env$context"_includes/contactForm.html.twig");
  645.         echo "
  646.       
  647.       ";
  648.         // line 305
  649.         if ((array_key_exists("articles"$context) && (twig_length_filter($this->env, (isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'305$this->source); })())) > 0))) {
  650.             // line 306
  651.             echo "      <div class=\"widget news-widget animate__animated animate__bounceInUp\" id=\"news-widget\">
  652.         <a class=\"widget-toggler\" data-toggle=\"news-widget\"><span class=\"lsf\">plus</span></a>
  653.         <div class=\"widget-content\">
  654.           <h4 class=\"widget-header\">News</h4>
  655.           <div class=\"widget-body\">
  656.             <ul class=\"news-list\">
  657.               ";
  658.             // line 312
  659.             $context['_parent'] = $context;
  660.             $context['_seq'] = twig_ensure_traversable((isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'312$this->source); })()));
  661.             foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  662.                 // line 313
  663.                 echo "              <li class=\"news-list-item\">
  664.                 <h3 class=\"news-item-header\">";
  665.                 // line 314
  666.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "headline", [], "any"falsefalsefalse314), "html"nulltrue);
  667.                 echo "</h3>
  668.                 <a href=\"/";
  669.                 // line 315
  670.                 echo twig_escape_filter($this->env, ((isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'315$this->source); })()) . twig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'315$this->source); })()), "blogPathPrefix", [], "any"falsefalsefalse315)), "html"nulltrue);
  671.                 echo "/";
  672.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "getKey", [], "any"falsefalsefalse315), "html"nulltrue);
  673.                 echo "\" class=\"news-item-link\"><span class=\"lsf\">right</span> ";
  674.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("news-learn-more"), "html"nulltrue);
  675.                 echo "</a>
  676.               </li>
  677.               ";
  678.             }
  679.             $_parent $context['_parent'];
  680.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  681.             $context array_intersect_key($context$_parent) + $_parent;
  682.             // line 318
  683.             echo "            </ul>
  684.           </div>
  685.         </div>
  686.       </div>
  687.       ";
  688.         }
  689.         // line 323
  690.         echo "  
  691.       <!-- document block content -->  
  692.       ";
  693.         // line 325
  694.         $this->displayBlock("main_content"$context$blocks);
  695.         echo "
  696.     </main>
  697.     ";
  698.         // line 329
  699.         echo twig_include($this->env$context"_includes/footer.html.twig");
  700.         echo "
  701.   </body>
  702. </html>
  703. ";
  704.         
  705.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  706.         
  707.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  708.     }
  709.     public function getTemplateName()
  710.     {
  711.         return "homepage.html.twig";
  712.     }
  713.     public function isTraitable()
  714.     {
  715.         return false;
  716.     }
  717.     public function getDebugInfo()
  718.     {
  719.         return array (  716 => 329,  709 => 325,  705 => 323,  698 => 318,  685 => 315,  681 => 314,  678 => 313,  674 => 312,  666 => 306,  664 => 305,  659 => 303,  650 => 296,  647 => 295,  628 => 290,  622 => 287,  616 => 284,  610 => 281,  602 => 279,  600 => 278,  587 => 268,  581 => 265,  573 => 260,  569 => 259,  560 => 252,  557 => 251,  537 => 245,  528 => 241,  522 => 238,  518 => 236,  513 => 235,  508 => 234,  503 => 233,  499 => 232,  492 => 231,  487 => 230,  483 => 229,  471 => 227,  463 => 222,  452 => 217,  450 => 216,  444 => 213,  438 => 209,  436 => 204,  428 => 199,  424 => 198,  411 => 188,  401 => 180,  398 => 179,  379 => 174,  373 => 171,  367 => 168,  361 => 165,  353 => 163,  351 => 162,  337 => 151,  331 => 147,  329 => 142,  316 => 132,  312 => 131,  304 => 126,  294 => 120,  291 => 119,  283 => 113,  279 => 112,  271 => 107,  263 => 104,  259 => 103,  231 => 77,  223 => 75,  221 => 74,  217 => 73,  211 => 72,  206 => 70,  202 => 69,  198 => 68,  194 => 67,  190 => 66,  185 => 64,  181 => 63,  177 => 62,  173 => 61,  169 => 60,  165 => 59,  161 => 58,  156 => 56,  152 => 55,  148 => 54,  142 => 53,  134 => 48,  130 => 46,  128 => 45,  125 => 44,  121 => 42,  118 => 41,  115 => 40,  112 => 39,  109 => 38,  106 => 37,  104 => 36,  102 => 35,  100 => 34,  98 => 33,  95 => 32,  91 => 30,  89 => 29,  86 => 28,  84 => 26,  83 => 25,  82 => 24,  79 => 23,  76 => 17,  72 => 15,  68 => 13,  66 => 12,  63 => 11,  61 => 10,  58 => 9,  55 => 7,  51 => 5,  49 => 4,  46 => 3,  43 => 1,);
  720.     }
  721.     public function getSourceContext()
  722.     {
  723.         return new Source("
  724. {# get root node if there is no document defined (for pages which are routed directly through static route) #}
  725. {% if not document is defined or not document %}
  726.     {% set document = pimcore_document(1) %}
  727. {% endif %}
  728. {# get the document which should be used to start in navigation | default home #}
  729. {% if locale == 'de' %}
  730.     {% set navStartNode = pimcore_document( constant('SITE_ROOT_ID_DE') ) %}
  731. {% elseif locale == 'en' %}
  732.     {% set navStartNode = pimcore_document( constant('SITE_ROOT_ID_EN') ) %}
  733. {% else %}
  734.     {% set navStartNode = document.getProperty('navigationRoot') %}
  735. {% endif %}
  736. {# Pimcore default -> deactivated
  737. {% if not navStartNode is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Page') %}
  738.     {% set navStartNode = pimcore_document(1) %}
  739. {% endif %}
  740. #}
  741. {% set mainNavigation = pimcore_build_nav({
  742.     active: document,
  743.     root: navStartNode
  744. }) %}
  745. {% if document.getDescription is not empty %}
  746.       {% do pimcore_head_meta().setDescription(document.getDescription) %}
  747. {% endif %}
  748. {% do pimcore_head_meta().setProperty('og:locale', locale) %}
  749. {% do pimcore_head_meta().setProperty('og:url', app.request.uri ) %}
  750. {% do pimcore_head_meta().setProperty('og:site_name', constant('SITE_NAME') ) %}
  751. {% if newsarticle is defined %}
  752.     {% if newsarticle is instanceof('\\\\Pimcore\\Model\\DataObject\\Newsblog') %}
  753.         {% do pimcore_head_meta().setProperty('og:type', 'article') %}
  754.         {% do pimcore_head_meta().setProperty('og:title', newsarticle.headline ) %}
  755.         {% do pimcore_head_meta().setProperty('og:description', newsarticle.teaser | raw ) %}
  756.         {% do pimcore_head_meta().setProperty('article:modified_time', date( timestamp ).format('c') ) %}
  757.     {% endif %}
  758. {% endif %}
  759. {% set user = app.user %}
  760. <!DOCTYPE html>
  761. <html lang=\"{{ locale }}\"> 
  762.   <head>
  763.     <meta charset=\"utf-8\">
  764.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  765.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">    
  766.     <title>{% if document.getTitle() is not empty %}{{ document.getTitle() }}{% endif %}</title>   
  767.     {{ pimcore_head_meta() }}
  768.     <link rel=\"canonical\" href=\"{{ app.request.uri }}\" />
  769.     <meta name=\"author\" content=\"{{ constant('SITE_NAME') }}\">
  770.     <meta name=\"generator\" content=\"78media solutions\">    
  771.     <link rel=\"icon\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/favicon-192x192.png\" sizes=\"192x192\" type=\"image/png\">
  772.     <link rel=\"apple-touch-icon\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/apple-touch-icon.png\" sizes=\"180x180\">
  773.     <link rel=\"icon\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/favicon-32x32.png\" sizes=\"32x32\" type=\"image/png\">
  774.     <link rel=\"icon\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/favicon-16x16.png\" sizes=\"16x16\" type=\"image/png\">
  775.     <link rel=\"manifest\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/manifest.json\">
  776.     <link rel=\"mask-icon\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/safari-pinned-tab.svg\" color=\"#563d7c\">
  777.     <link rel=\"icon\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/favicon.ico\">    
  778.     <!-- base -->
  779.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/css/bootstrap.min.css\" rel=\"stylesheet\">
  780.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/css/animate.min.css\" rel=\"stylesheet\" />
  781.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/css/jquery.fancybox.min.css\" rel=\"stylesheet\">
  782.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/plugins/slick/slick.css\" rel=\"stylesheet\">
  783.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/plugins/slick/slick-theme.css\" rel=\"stylesheet\">
  784.     <!-- theme -->
  785.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/css/screen.less?v={{ 'now'|date('U') }}\" rel=\"stylesheet/less\" type=\"text/css\">   
  786.     <script src=\"{{ constant('SITE_TEMPLATE_PATH') }}/js/less.min.js\" language=\"javascript\"></script> 
  787.     {% if editmode %}
  788.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/css/editmode.css?v={{ 'now'|date('U') }}\" rel=\"stylesheet\">
  789.     {% endif %}
  790.     
  791.     <!-- Google tag (gtag.js) -->
  792.     <script async src=\"https://www.googletagmanager.com/gtag/js?id=AW-927743781\">
  793.     </script>
  794.     <script>
  795.       window.dataLayer = window.dataLayer || [];
  796.       function gtag(){dataLayer.push(arguments);}
  797.       gtag('js', new Date());
  798.       gtag('config', 'AW-927743781');
  799.     </script>
  800.   </head>
  801.   <body id=\"body\">
  802.     <header>
  803.       <!-- div wrapper needed !!! -->
  804.       <div class=\"header-options\">       
  805.         <a class=\"navbar-toggler d-block\" data-toggle=\"navbar-header\">
  806.           <div id=\"nav-icon\">
  807.             <span></span>
  808.             <span></span>
  809.             <span></span>
  810.             <span></span>
  811.           </div>
  812.         </a>        
  813.         <a class=\"language-switch\" data-toggle=\"language-selection\" href=\"/{{ (locale=='en' ? 'de' : 'en') }}/\">
  814.           <img class=\"language {{ (locale=='en') ? 'active-en' : 'active-de' }}\" src=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/flags/de-en.png\" />
  815.         </a>
  816.         <a href=\"https://www.deutschertourismusverband.de/\">
  817.           <img class=\"dtv-link\" src=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/dtv_4_sterneferien.png\" />
  818.         </a>       
  819.       </div>
  820.       <!-- end div wrapper !!! -->
  821.       <div class=\"header-logo\">
  822.         <a href=\"/{{ locale }}\">
  823.           <img src=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/logo_7schwaben.png\" alt=\"7SCHWABEN\" title=\"7SCHWABEN Ferienwohnungen Apartments in Bad Urach\" />
  824.         </a>
  825.       </div>      
  826.     </header>
  827.     
  828.     {# \\Pimcore\\Navigation\\Renderer\\Menu #}
  829.     {% set menuRenderer = pimcore_nav_renderer('menu') %}
  830.     {{ menuRenderer.renderPartial( mainNavigation, '_includes/7schwaben_navigation.html.twig' ) | raw }}
  831.     
  832.     <main>
  833.       <!-- page banner -->
  834.       <div class=\"page-banner\">
  835.         {{ pimcore_image('home_main_image') }}           
  836.         <div class=\"container\">
  837.           <div class=\"row\">
  838.             <div class=\"col-12\">
  839.               <div class=\"page-header main-header\">
  840.                 <h3><span class=\"d-block d-sm-inline\">{{ pimcore_input('home_main_header3') | replace({'7SCHWABEN': '<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>'}) | raw }}</h3> 
  841.                 <h1>{{ pimcore_input('home_main_header1') | replace({'7SCHWABEN': '<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>'}) | raw }}</h1> 
  842.               </div>  
  843.             </div>
  844.           </div>
  845.         </div>
  846.       </div>
  847.       <!-- slider gallery -->
  848.       <!--
  849.       <section>           
  850.         {{ pimcore_renderlet('slidergallery', {
  851.             \"controller\" : \"App\\\\Controller\\\\DocumentController::sliderGalleryAction\",
  852.             \"title\" : \"Assets-Ordner mit Bildern per Drag+Drop zuweisen\",
  853.             \"height\" : 400
  854.           })
  855.         }}        
  856.         <div class=\"container mt-5\">
  857.           <div class=\"row\">
  858.             <div class=\"col-12\">
  859.               {{ pimcore_wysiwyg('home_main_welcome') | replace({'7SCHWABEN': '<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>'}) | raw }}  
  860.             </div>
  861.           </div>
  862.         </div>       
  863.       </section>
  864.       -->
  865.       
  866.       <!-- apartments section -->     
  867.       <section class=\"bg-grey\" style=\"overflow:hidden;\">        
  868.         <!-- apartments slider -->       
  869.         <div class=\"appartments-slider\">  \t\t\t\t
  870.           {% if (apartments is defined and apartments | length > 0) %}
  871.           {% for apartment in apartments %}              
  872.           <div class=\"appartment-preview\">
  873.   \t\t\t\t\t<img class=\"appartment-preview-image\" src=\"{{ apartment.mainImage }}\" />
  874.             <div class=\"appartment-preview-box\">
  875.               <h3 class=\"appartment-name red\">
  876.                 {{ apartment.name }}
  877.               </h3>
  878.               <div class=\"appartment-description\">
  879.                 {{ apartment.shortDescription }}
  880.               </div>
  881.               <div class=\"appartment-options\">
  882.                 <a class=\"btn btn-default\" href=\"/{{ locale }}/buchen.php\">{{ 'booking' | trans }}</a><a class=\"btn btn-default\" href=\"/{{ locale }}/apartments/{{ apartment.key }}\">{{ 'details' | trans }}</a>
  883.               </div>
  884.             </div>
  885.   \t\t\t\t</div>          
  886.           {% endfor %}
  887.           {% endif %}
  888.         </div>
  889.         <!-- end apartments slider -->      
  890.       </section>
  891.       
  892.       <section>
  893.         <div class=\"container mt-2\">
  894.           <div class=\"row\">
  895.             <div class=\"col-12\">
  896.               {{ pimcore_wysiwyg('home_main_welcome') | replace({'7SCHWABEN': '<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>'}) | raw }}  
  897.             </div>
  898.           </div>
  899.         </div>       
  900.       </section>
  901.       
  902.       <!-- apartments section -->
  903.       <section>
  904.         <div class=\"container\">
  905.           <div class=\"page-header scroll-animated\" data-animation=\"slideInUp\">
  906.             <h3>{{ pimcore_input('home_section1_header3') | replace({'7SCHWABEN': '<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>'}) | raw }}</h3> 
  907.             <p class=\"grey\">{{ pimcore_input('home_section1_text1') | replace({'7SCHWABEN': '<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>'}) | raw }}</p>
  908.           </div>          
  909.           
  910.           <!-- slider gallery -->
  911.           <div class=\"document-gallery-wrapper\">           
  912.             {{ pimcore_renderlet('slidergallery2', {
  913.                 \"controller\" : \"App\\\\Controller\\\\DocumentController::sliderGalleryAction\",
  914.                 \"title\" : \"Assets-Ordner mit Bildern per Drag+Drop zuweisen\",
  915.                 \"height\" : 400
  916.               })
  917.             }}
  918.           </div>
  919.           
  920.           <div class=\"page-introduction scroll-animated\" data-animation=\"slideInUp\">
  921.             {{ pimcore_wysiwyg('home_section1_text2') | replace({'7SCHWABEN': '<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>'}) | raw }}
  922.           </div>
  923.                   
  924.           {% if (apartments is defined and apartments | length > 0) %}
  925.           {% for apartment in apartments %}            
  926.           <div class=\"apmt-preview-box\">
  927.             <div class=\"row\">
  928.               <div class=\"col-12 col-lg-3\">
  929.                 <div class=\"apmt-preview-image\">
  930.                   <img class=\"apmt-image\" src=\"{{ apartment.logo }}\" />
  931.                 </div>
  932.               </div>
  933.               <div class=\"col-12 col-lg-9\">
  934.                 <div class=\"apmt-preview-description\">
  935.                   <h3 class=\"apmt-description-header\">{% if apartment.stars > 0 %}<img class=\"apmt-stars-rating\" alt=\"{{ apartment.stars }} Sterne\" src=\"/themes/7schwaben/img/{{ apartment.stars }}_Sterne.png\" />{% endif %}{{ apartment.shortDescription | raw }}</h3>
  936.                   <div class=\"apmt-preview-icons\">
  937.                     {% if apartment.icon1 %}<span class=\"icon-apmt icon-apmt-double\"></span>{% endif %}
  938.                     {% if apartment.icon2 %}<span class=\"icon-apmt icon-apmt-single\"></span>{% endif %}
  939.                     {% if apartment.icon3 %}<span class=\"icon-apmt icon-apmt-bunk\"></span>{% endif %}                   
  940.                     {% if apartment.icon4 %}<span class=\"icon-apmt icon-apmt-terrace\"></span>{% endif %}
  941.                     {% if apartment.icon5 %}<span class=\"icon-apmt icon-apmt-disabled\"></span></span>{% endif %}
  942.                     {% if apartment.icon6 %}<span class=\"icon-apmt icon-apmt-balcony\"></span>{% endif %}
  943.                     {% if apartment.icon7 %}<span class=\"icon-apmt icon-apmt-view\"></span>{% endif %}
  944.                   </div>
  945.                   <div>
  946.                     {{ apartment.description | raw }}
  947.                   </div>
  948.                   <div class=\"apmt-price-tag\">
  949.                     {{ 'from' | trans }} {{ apartment.price }} &euro;
  950.                   </div>
  951.                 </div> 
  952.                 <div class=\"apmt-preview-actions\"> 
  953.                   <a class=\"btn btn-default\" href=\"/{{ locale }}/apartments/{{ apartment.key }}\">{{ 'details' | trans }}</a> &nbsp; <a class=\"btn btn-default\" href=\"/{{ locale }}/buchen.php\">{{ 'booking' | trans }}</a>
  954.                 </div>
  955.               </div>
  956.             </div>
  957.           </div>            
  958.           {% endfor %}
  959.           {% endif %}
  960.         </div>
  961.       </section>
  962.       
  963.       <section>
  964.         <div class=\"container\">                   
  965.           <div class=\"page-header scroll-animated\" data-animation=\"slideInUp\">
  966.             <h3>{{ pimcore_input('home_section2_header3') | replace({'7SCHWABEN': '<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>'}) | raw }}</h3> 
  967.             <p class=\"grey\">{{ pimcore_input('home_section2_text1') | replace({'7SCHWABEN': '<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>'}) | raw }}</p>
  968.           </div>
  969.           <div class=\"page-introduction scroll-animated\" data-animation=\"slideInUp\">
  970.             <div class=\"row\">
  971.               <div class=\"col-12 col-lg-6\">
  972.                 {{ pimcore_image('home_section2_image1') | replace({'7SCHWABEN': '<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>'}) | raw }}
  973.               </div>
  974.               <div class=\"col-12 col-lg-6\">
  975.                 {{ pimcore_wysiwyg('home_section2_text2') | replace({'7SCHWABEN': '<strong class=\"condensed\"><span class=\"red\">7</span>SCHWABEN</strong>'}) | raw }}          
  976.               </div>
  977.           </div>
  978.         </div>
  979.       </section>
  980.       
  981.       <!-- apartments section -->     
  982.       <section class=\"bg-grey\" style=\"overflow:hidden;\">        
  983.         <!-- apartments slider -->       
  984.         <div class=\"appartments-slider\">  \t\t\t\t
  985.           {% if (apartments is defined and apartments | length > 0) %}
  986.           {% for apartment in apartments %}              
  987.           <div class=\"appartment-preview\">
  988.   \t\t\t\t\t<img class=\"appartment-preview-image\" src=\"{{ apartment.mainImage }}\" />
  989.             <div class=\"appartment-preview-box\">
  990.               <h3 class=\"appartment-name red\">
  991.                 {{ apartment.name }}
  992.               </h3>
  993.               <div class=\"appartment-description\">
  994.                 {{ apartment.shortDescription }}
  995.               </div>
  996.               <div class=\"appartment-options\">
  997.                 <a class=\"btn btn-default\" href=\"/{{ locale }}/buchen.php\">{{ 'booking' | trans }}</a><a class=\"btn btn-default\" href=\"/{{ locale }}/apartments/{{ apartment.key }}\">{{ 'details' | trans }}</a>
  998.               </div>
  999.             </div>
  1000.   \t\t\t\t</div>          
  1001.           {% endfor %}
  1002.           {% endif %}
  1003.         </div>
  1004.         <!-- end apartments slider -->      
  1005.       </section>
  1006.       <div id=\"footer-switch\" style=\"height:1px; background:transparent;\">
  1007.       </div>
  1008.   
  1009.       {{ include('_includes/contactForm.html.twig') }}
  1010.       
  1011.       {% if articles is defined and articles | length > 0 %}
  1012.       <div class=\"widget news-widget animate__animated animate__bounceInUp\" id=\"news-widget\">
  1013.         <a class=\"widget-toggler\" data-toggle=\"news-widget\"><span class=\"lsf\">plus</span></a>
  1014.         <div class=\"widget-content\">
  1015.           <h4 class=\"widget-header\">News</h4>
  1016.           <div class=\"widget-body\">
  1017.             <ul class=\"news-list\">
  1018.               {% for article in articles %}
  1019.               <li class=\"news-list-item\">
  1020.                 <h3 class=\"news-item-header\">{{ article.headline }}</h3>
  1021.                 <a href=\"/{{ locale ~ blog.blogPathPrefix }}/{{ article.getKey }}\" class=\"news-item-link\"><span class=\"lsf\">right</span> {{ 'news-learn-more' | trans }}</a>
  1022.               </li>
  1023.               {% endfor %}
  1024.             </ul>
  1025.           </div>
  1026.         </div>
  1027.       </div>
  1028.       {% endif %}
  1029.   
  1030.       <!-- document block content -->  
  1031.       {{ block('main_content') }}
  1032.     </main>
  1033.     {{ include('_includes/footer.html.twig') }}
  1034.   </body>
  1035. </html>
  1036. ""homepage.html.twig""/var/www/vhosts/das7schwaben.de/httpdocs/pimcore_x/templates/homepage.html.twig");
  1037.     }
  1038. }