var/cache/dev/twig/05/0523fe0c1d21b0932164477f8ac0d268.php line 297

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. /* document.html.twig */
  14. class __TwigTemplate_661bbe93458e906d28f081e210a2aeba 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""document.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""document.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 ((array_key_exists("document"$context) && (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); })()), "type", [], "any"falsefalsefalse29) == "page"))) {
  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_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); })()), "type", [], "any"falsefalsefalse53) == "page") &&  !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.     
  235.     <header>
  236.       <!-- div wrapper needed !!! -->
  237.       <div class=\"header-options\">       
  238.         <a class=\"navbar-toggler d-block\" data-toggle=\"navbar-header\">
  239.           <div id=\"nav-icon\">
  240.             <span></span>
  241.             <span></span>
  242.             <span></span>
  243.             <span></span>
  244.           </div>
  245.         </a>        
  246.         <a class=\"language-switch\" data-toggle=\"language-selection\" href=\"/";
  247.         // line 103
  248.         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"));
  249.         echo "/\">
  250.           <img class=\"language ";
  251.         // line 104
  252.         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"));
  253.         echo "\" src=\"";
  254.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  255.         echo "/img/flags/de-en.png\" />
  256.         </a>   
  257.       </div>
  258.       <!-- end div wrapper !!! -->
  259.       <div class=\"header-logo\">
  260.         <a href=\"/";
  261.         // line 109
  262.         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.'109$this->source); })()), "html"nulltrue);
  263.         echo "\">
  264.           <img src=\"";
  265.         // line 110
  266.         echo twig_escape_filter($this->envtwig_constant("SITE_TEMPLATE_PATH"), "html"nulltrue);
  267.         echo "/img/logo_7schwaben.png\" alt=\"7SCHWABEN\" title=\"7SCHWABEN Ferienwohnungen Apartments in Bad Urach\" />
  268.         </a>
  269.       </div>      
  270.     </header>
  271.     
  272.     ";
  273.         // line 116
  274.         echo "    ";
  275.         $context["menuRenderer"] = call_user_func_array($this->env->getFunction('pimcore_nav_renderer')->getCallable(), ["menu"]);
  276.         // line 117
  277.         echo "    ";
  278.         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.'117$this->source); })()), "renderPartial", [=> (isset($context["mainNavigation"]) || array_key_exists("mainNavigation"$context) ? $context["mainNavigation"] : (function () { throw new RuntimeError('Variable "mainNavigation" does not exist.'117$this->source); })()), => "_includes/7schwaben_navigation.html.twig"], "method"falsefalsefalse117);
  279.         echo "
  280.     
  281.     <main style=\"padding-top:3rem;\">
  282.       <!-- document block content -->  
  283.       ";
  284.         // line 122
  285.         $this->displayBlock("main_content"$context$blocks);
  286.         echo "
  287.       <div id=\"footer-switch\" style=\"height:1px; background:transparent;\">
  288.       </div>
  289.   
  290.       ";
  291.         // line 127
  292.         echo twig_include($this->env$context"_includes/contactForm.html.twig");
  293.         echo "
  294.     </main>
  295.     ";
  296.         // line 131
  297.         echo twig_include($this->env$context"_includes/footer.html.twig");
  298.         echo "
  299.   </body>
  300. </html>
  301. ";
  302.         
  303.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  304.         
  305.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  306.     }
  307.     public function getTemplateName()
  308.     {
  309.         return "document.html.twig";
  310.     }
  311.     public function isTraitable()
  312.     {
  313.         return false;
  314.     }
  315.     public function getDebugInfo()
  316.     {
  317.         return array (  312 => 131,  305 => 127,  297 => 122,  288 => 117,  285 => 116,  277 => 110,  273 => 109,  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,);
  318.     }
  319.     public function getSourceContext()
  320.     {
  321.         return new Source("
  322. {# get root node if there is no document defined (for pages which are routed directly through static route) #}
  323. {% if not document is defined or not document %}
  324.     {% set document = pimcore_document(1) %}
  325. {% endif %}
  326. {# get the document which should be used to start in navigation | default home #}
  327. {% if locale == 'de' %}
  328.     {% set navStartNode = pimcore_document( constant('SITE_ROOT_ID_DE') ) %}
  329. {% elseif locale == 'en' %}
  330.     {% set navStartNode = pimcore_document( constant('SITE_ROOT_ID_EN') ) %}
  331. {% else %}
  332.     {% set navStartNode = document.getProperty('navigationRoot') %}
  333. {% endif %}
  334. {# Pimcore default -> deactivated
  335. {% if not navStartNode is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Page') %}
  336.     {% set navStartNode = pimcore_document(1) %}
  337. {% endif %}
  338. #}
  339. {% set mainNavigation = pimcore_build_nav({
  340.     active: document,
  341.     root: navStartNode
  342. }) %}
  343. {% if document is defined and document.type == 'page' %}
  344.       {% do pimcore_head_meta().setDescription(document.getDescription) %}
  345. {% endif %}
  346. {% do pimcore_head_meta().setProperty('og:locale', locale) %}
  347. {% do pimcore_head_meta().setProperty('og:url', app.request.uri ) %}
  348. {% do pimcore_head_meta().setProperty('og:site_name', constant('SITE_NAME') ) %}
  349. {% if newsarticle is defined %}
  350.     {% if newsarticle is instanceof('\\\\Pimcore\\Model\\DataObject\\Newsblog') %}
  351.         {% do pimcore_head_meta().setProperty('og:type', 'article') %}
  352.         {% do pimcore_head_meta().setProperty('og:title', newsarticle.headline ) %}
  353.         {% do pimcore_head_meta().setProperty('og:description', newsarticle.teaser | raw ) %}
  354.         {% do pimcore_head_meta().setProperty('article:modified_time', date( timestamp ).format('c') ) %}
  355.     {% endif %}
  356. {% endif %}
  357. {% set user = app.user %}
  358. <!DOCTYPE html>
  359. <html lang=\"{{ locale }}\"> 
  360.   <head>
  361.     <meta charset=\"utf-8\">
  362.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  363.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">    
  364.     <title>{% if document.type == 'page' and document.getTitle() is not empty %}{{ document.getTitle() }}{% endif %}</title>   
  365.     {{ pimcore_head_meta() }}
  366.     <link rel=\"canonical\" href=\"{{ app.request.uri }}\" />
  367.     <meta name=\"author\" content=\"{{ constant('SITE_NAME') }}\">
  368.     <meta name=\"generator\" content=\"78media solutions\">    
  369.     <link rel=\"icon\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/favicon-192x192.png\" sizes=\"192x192\" type=\"image/png\">
  370.     <link rel=\"apple-touch-icon\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/apple-touch-icon.png\" sizes=\"180x180\">
  371.     <link rel=\"icon\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/favicon-32x32.png\" sizes=\"32x32\" type=\"image/png\">
  372.     <link rel=\"icon\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/favicon-16x16.png\" sizes=\"16x16\" type=\"image/png\">
  373.     <link rel=\"manifest\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/manifest.json\">
  374.     <link rel=\"mask-icon\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/safari-pinned-tab.svg\" color=\"#563d7c\">
  375.     <link rel=\"icon\" href=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/favicons/favicon.ico\">    
  376.     <!-- base -->
  377.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/css/bootstrap.min.css\" rel=\"stylesheet\">
  378.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/css/animate.min.css\" rel=\"stylesheet\" />
  379.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/css/jquery.fancybox.min.css\" rel=\"stylesheet\">
  380.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/plugins/slick/slick.css\" rel=\"stylesheet\">
  381.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/plugins/slick/slick-theme.css\" rel=\"stylesheet\">
  382.     <!-- theme -->
  383.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/css/screen.less?v={{ 'now'|date('U') }}\" rel=\"stylesheet/less\" type=\"text/css\">   
  384.     <script src=\"{{ constant('SITE_TEMPLATE_PATH') }}/js/less.min.js\" language=\"javascript\"></script> 
  385.     {% if editmode %}
  386.     <link href=\"{{ constant('SITE_TEMPLATE_PATH') }}/css/editmode.css?v={{ 'now'|date('U') }}\" rel=\"stylesheet\">
  387.     {% endif %}
  388.     
  389.     <!-- Google tag (gtag.js) -->
  390.     <script async src=\"https://www.googletagmanager.com/gtag/js?id=AW-927743781\">
  391.     </script>
  392.     <script>
  393.       window.dataLayer = window.dataLayer || [];
  394.       function gtag(){dataLayer.push(arguments);}
  395.       gtag('js', new Date());
  396.       gtag('config', 'AW-927743781');
  397.     </script>
  398.   </head>
  399.   <body id=\"body\">
  400.     
  401.     <header>
  402.       <!-- div wrapper needed !!! -->
  403.       <div class=\"header-options\">       
  404.         <a class=\"navbar-toggler d-block\" data-toggle=\"navbar-header\">
  405.           <div id=\"nav-icon\">
  406.             <span></span>
  407.             <span></span>
  408.             <span></span>
  409.             <span></span>
  410.           </div>
  411.         </a>        
  412.         <a class=\"language-switch\" data-toggle=\"language-selection\" href=\"/{{ (locale=='en' ? 'de' : 'en') }}/\">
  413.           <img class=\"language {{ (locale=='en') ? 'active-en' : 'active-de' }}\" src=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/flags/de-en.png\" />
  414.         </a>   
  415.       </div>
  416.       <!-- end div wrapper !!! -->
  417.       <div class=\"header-logo\">
  418.         <a href=\"/{{ locale }}\">
  419.           <img src=\"{{ constant('SITE_TEMPLATE_PATH') }}/img/logo_7schwaben.png\" alt=\"7SCHWABEN\" title=\"7SCHWABEN Ferienwohnungen Apartments in Bad Urach\" />
  420.         </a>
  421.       </div>      
  422.     </header>
  423.     
  424.     {# \\Pimcore\\Navigation\\Renderer\\Menu #}
  425.     {% set menuRenderer = pimcore_nav_renderer('menu') %}
  426.     {{ menuRenderer.renderPartial( mainNavigation, '_includes/7schwaben_navigation.html.twig' ) | raw }}
  427.     
  428.     <main style=\"padding-top:3rem;\">
  429.       <!-- document block content -->  
  430.       {{ block('main_content') }}
  431.       <div id=\"footer-switch\" style=\"height:1px; background:transparent;\">
  432.       </div>
  433.   
  434.       {{ include('_includes/contactForm.html.twig') }}
  435.     </main>
  436.     {{ include('_includes/footer.html.twig') }}
  437.   </body>
  438. </html>
  439. ""document.html.twig""/var/www/vhosts/das7schwaben.de/httpdocs/pimcore_x/templates/document.html.twig");
  440.     }
  441. }