var/cache/dev/twig/67/67b29c219239f5ee00d303eb898dc21f.php line 69

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. /* layouts/layout.html.twig */
  14. class __TwigTemplate_147ef7da4d9a881950ef94498bd234d1 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.             'content' => [$this'block_content'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doDisplay(array $context, array $blocks = [])
  30.     {
  31.         $macros $this->macros;
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layouts/layout.html.twig"));
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layouts/layout.html.twig"));
  36.         // line 1
  37.         echo "<!doctype html>
  38. <html lang=\"";
  39.         // line 2
  40.         echo twig_escape_filter($this->envtwig_replace_filter($this->sandbox->ensureToStringAllowed(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.'2$this->source); })()), "request", [], "any"falsefalsetrue2), "locale", [], "any"falsefalsetrue2), 2$this->source), ["_" => "-"]), "html"nulltrue);
  41.         echo "\">
  42. <head>
  43.     ";
  44.         // line 4
  45.         $this->loadTemplate("layouts/layout/html-head.html.twig""layouts/layout.html.twig"4)->display($context);
  46.         // line 5
  47.         echo "</head>
  48. <body>
  49. ";
  50.         // line 8
  51.         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.'8$this->source); })()))) {
  52.             // line 9
  53.             echo "    ";
  54.             $context["document"] = Pimcore\Model\Document::getById(1);
  55.         }
  56.         // line 11
  57.         echo "
  58. ";
  59.         // line 12
  60.         $this->loadTemplate("layouts/navigation/navbar.html.twig""layouts/layout.html.twig"12)->display($context);
  61.         // line 13
  62.         echo "
  63. ";
  64.         // line 14
  65.         if (((twig_first($this->env$this->extensions['App\Twig\Extension\WebsiteExtension']->loadJsForAction()) == "content") && (twig_last($this->env$this->extensions['App\Twig\Extension\WebsiteExtension']->loadJsForAction()) == "homepage"))) {
  66.             // line 15
  67.             echo "    ";
  68.             $this->loadTemplate("layouts/layout/slideshow/home-slideshow.html.twig""layouts/layout.html.twig"15)->display($context);
  69.         } else {
  70.             // line 17
  71.             echo "    ";
  72.             $this->loadTemplate("layouts/layout/slideshow/fluid.html.twig""layouts/layout.html.twig"17)->display($context);
  73.         }
  74.         // line 19
  75.         echo "
  76. ";
  77.         // line 23
  78.         echo "
  79. <main>
  80.     ";
  81.         // line 25
  82.         $this->loadTemplate("layouts/layout/flash-messages.html.twig""layouts/layout.html.twig"25)->display($context);
  83.         // line 27
  84.         echo "
  85.     ";
  86.         // line 28
  87.         $this->displayBlock('content'$context$blocks);
  88.         // line 30
  89.         echo "</main>
  90. ";
  91.         // line 32
  92.         $this->loadTemplate("layouts/layout/footer.html.twig""layouts/layout.html.twig"32)->display($context);
  93.         // line 33
  94.         echo "
  95. ";
  96.         // line 34
  97.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'34$this->source); })())) {
  98.             // line 35
  99.             echo "    ";
  100.             // line 36
  101.             echo "    ";
  102.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("DataprivacyBundle\\Controller\\DefaultController::defaultAction", []));
  103.             echo "
  104. ";
  105.         }
  106.         // line 38
  107.         echo "</body>
  108. </html>";
  109.         
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  111.         
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113.     }
  114.     // line 28
  115.     public function block_content($context, array $blocks = [])
  116.     {
  117.         $macros $this->macros;
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  122.         // line 29
  123.         echo "    ";
  124.         
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  126.         
  127.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  128.     }
  129.     public function getTemplateName()
  130.     {
  131.         return "layouts/layout.html.twig";
  132.     }
  133.     public function isTraitable()
  134.     {
  135.         return false;
  136.     }
  137.     public function getDebugInfo()
  138.     {
  139.         return array (  140 => 29,  130 => 28,  119 => 38,  113 => 36,  111 => 35,  109 => 34,  106 => 33,  104 => 32,  100 => 30,  98 => 28,  95 => 27,  93 => 25,  89 => 23,  84 => 19,  80 => 17,  76 => 15,  74 => 14,  71 => 13,  69 => 12,  66 => 11,  62 => 9,  60 => 8,  56 => 5,  54 => 4,  49 => 2,  46 => 1,);
  140.     }
  141.     public function getSourceContext()
  142.     {
  143.         return new Source("<!doctype html>
  144. <html lang=\"{{ app.request.locale|replace({ '_': '-' }) }}\">
  145. <head>
  146.     {% include 'layouts/layout/html-head.html.twig' %}
  147. </head>
  148. <body>
  149. {# get root node if there is no document defined (for pages which are routed directly through static route) #}
  150. {% if not document is defined or not document %}
  151.     {% set document = pimcore_document(1) %}
  152. {% endif %}
  153. {% include 'layouts/navigation/navbar.html.twig' %}
  154. {% if loadJsForAction()|first == 'content' and loadJsForAction()|last == 'homepage' %}
  155.     {% include 'layouts/layout/slideshow/home-slideshow.html.twig' %}
  156. {% else %}
  157.     {% include 'layouts/layout/slideshow/fluid.html.twig' %}
  158. {% endif %}
  159. {#{% include 'layouts/layout/slideshow/fluid-video.html.twig' %}#}
  160. <main>
  161.     {% include 'layouts/layout/flash-messages.html.twig' %}
  162. {#    {% include 'layouts/layout/breadcrumbs.html.twig' %}#}
  163.     {% block content %}
  164.     {% endblock %}
  165. </main>
  166. {% include 'layouts/layout/footer.html.twig' %}
  167. {% if not editmode %}
  168.     {## Init Cookiebar #}
  169.     {{ render(controller('DataprivacyBundle\\\\Controller\\\\DefaultController::defaultAction', {} )) }}
  170. {% endif %}
  171. </body>
  172. </html>""layouts/layout.html.twig""/var/www/clients/client2/web42/web/pc/templates/layouts/layout.html.twig");
  173.     }
  174.     
  175.     public function checkSecurity()
  176.     {
  177.         static $tags = array("include" => 4"if" => 8"set" => 9"block" => 28);
  178.         static $filters = array("escape" => 2"replace" => 2"first" => 14"last" => 14);
  179.         static $functions = array("pimcore_document" => 9"loadJsForAction" => 14"render" => 36"controller" => 36);
  180.         try {
  181.             $this->sandbox->checkSecurity(
  182.                 ['include''if''set''block'],
  183.                 ['escape''replace''first''last'],
  184.                 ['pimcore_document''loadJsForAction''render''controller']
  185.             );
  186.         } catch (SecurityError $e) {
  187.             $e->setSourceContext($this->source);
  188.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  189.                 $e->setTemplateLine($tags[$e->getTagName()]);
  190.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  191.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  192.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  193.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  194.             }
  195.             throw $e;
  196.         }
  197.     }
  198. }