var/cache/dev/twig/0e/0e5740b50956b0dd07194ef335203f56.php line 138

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. /* @Provider/layouts/layout.html.twig */
  14. class __TwigTemplate_713dfe97b54a60b525bfc0bed9d33757 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.             'toggle' => [$this'block_toggle'],
  25.             'header' => [$this'block_header'],
  26.             'content' => [$this'block_content'],
  27.             'footer' => [$this'block_footer'],
  28.             'footerscripts' => [$this'block_footerscripts'],
  29.         ];
  30.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Provider/layouts/layout.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Provider/layouts/layout.html.twig"));
  40.         // line 1
  41.         $macros["__internal_parse_0"] = $this->macros["__internal_parse_0"] = $this->loadTemplate("@Provider/macros/logo.html.twig""@Provider/layouts/layout.html.twig"1)->unwrap();
  42.         // line 2
  43.         $macros["__internal_parse_1"] = $this->macros["__internal_parse_1"] = $this->loadTemplate("@Provider/macros/include-svg.html.twig""@Provider/layouts/layout.html.twig"2)->unwrap();
  44.         // line 3
  45.         echo "
  46. ";
  47.         // line 4
  48.         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); })()))) {
  49.             // line 5
  50.             echo "    ";
  51.             $context["document"] = Pimcore\Model\Document::getById(1);
  52.         }
  53.         // line 7
  54.         echo "
  55. ";
  56.         // line 8
  57.         $context["isFrontpage"] = ((array_key_exists("isFrontpage"$context)) ? ((isset($context["isFrontpage"]) || array_key_exists("isFrontpage"$context) ? $context["isFrontpage"] : (function () { throw new RuntimeError('Variable "isFrontpage" does not exist.'8$this->source); })())) : (false));
  58.         // line 9
  59.         $context["showBreadcrumbs"] = ((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.'9$this->source); })()), "getProperty", [=> "show_breadcrumbs"], "method"falsefalsetrue9)) ? (true) : (false));
  60.         // line 10
  61.         echo "
  62. <!doctype html>
  63. <html class=\"no-js\" lang=\"";
  64.         // line 12
  65.         echo twig_escape_filter($this->env$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.'12$this->source); })()), "request", [], "any"falsefalsetrue12), "locale", [], "any"falsefalsetrue12), 12$this->source), "html"nulltrue);
  66.         echo "\">
  67.     <head>
  68.         ";
  69.         // line 15
  70.         echo twig_include($this->env$context"@Provider/partials/head.html.twig");
  71.         echo "
  72.     </head>
  73.     <body id=\"page-";
  74.         // line 18
  75.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'18$this->source); })()), "getId", [], "method"falsefalsetrue18), 18$this->source), "html"nulltrue);
  76.         echo "\" class=\"id-";
  77.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'18$this->source); })()), "getId", [], "method"falsefalsetrue18), 18$this->source), "html"nulltrue);
  78.         if ((isset($context["isFrontpage"]) || array_key_exists("isFrontpage"$context) ? $context["isFrontpage"] : (function () { throw new RuntimeError('Variable "isFrontpage" does not exist.'18$this->source); })())) {
  79.             echo " frontpage";
  80.         } else {
  81.             echo " subpage";
  82.         }
  83.         echo "\" data-id=\"";
  84.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'18$this->source); })()), "getId", [], "method"falsefalsetrue18), 18$this->source), "html"nulltrue);
  85.         echo "\"";
  86.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'18$this->source); })())) {
  87.             echo " data-editmode ";
  88.         }
  89.         echo " itemscope itemtype=\"http://schema.org/WebPage\">
  90.         ";
  91.         // line 19
  92.         $this->displayBlock('toggle'$context$blocks);
  93.         // line 22
  94.         echo "
  95.         ";
  96.         // line 23
  97.         echo twig_include($this->env$context"@Provider/partials/misc/schema-org-json.html.twig");
  98.         echo "
  99.         ";
  100.         // line 24
  101.         echo twig_include($this->env$context"@Provider/partials/accessibility-shortcuts.html.twig");
  102.         echo "
  103.         <div class=\"page-wrap\">
  104.             <header class=\"page-header\">
  105.                 ";
  106.         // line 28
  107.         $this->displayBlock('header'$context$blocks);
  108.         // line 36
  109.         echo "            </header>
  110.             ";
  111.         // line 38
  112.         if ((isset($context["showBreadcrumbs"]) || array_key_exists("showBreadcrumbs"$context) ? $context["showBreadcrumbs"] : (function () { throw new RuntimeError('Variable "showBreadcrumbs" does not exist.'38$this->source); })())) {
  113.             // line 39
  114.             echo "                ";
  115.             echo twig_include($this->env$context"@Provider/partials/breadcrumbs.html.twig");
  116.             echo "
  117.             ";
  118.         }
  119.         // line 41
  120.         echo "
  121.             <main class=\"main-content\" id=\"content\">
  122.                 <div class=\"container\">
  123.                     ";
  124.         // line 44
  125.         $this->displayBlock('content'$context$blocks);
  126.         // line 45
  127.         echo "                </div>
  128.             </main>
  129.             ";
  130.         // line 48
  131.         $this->displayBlock('footer'$context$blocks);
  132.         // line 51
  133.         echo "        </div>
  134.         ";
  135.         // line 53
  136.         $this->displayBlock('footerscripts'$context$blocks);
  137.         // line 55
  138.         echo "    </body>
  139. </html>";
  140.         
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  142.         
  143.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  144.     }
  145.     // line 19
  146.     public function block_toggle($context, array $blocks = [])
  147.     {
  148.         $macros $this->macros;
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  150.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toggle"));
  151.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toggle"));
  153.         // line 20
  154.         echo "            <input type=\"checkbox\" name=\"toggleMobileNav\" id=\"toggleMobileNav\" aria-hidden=\"true\" value=\"1\" />
  155.         ";
  156.         
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  158.         
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  160.     }
  161.     // line 28
  162.     public function block_header($context, array $blocks = [])
  163.     {
  164.         $macros $this->macros;
  165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  167.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  168.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  169.         // line 29
  170.         echo "                    <div class=\"page-header--top\">
  171.                         ";
  172.         // line 30
  173.         echo twig_call_macro($macros["__internal_parse_0"], "macro_logo", [], 30$context$this->getSourceContext());
  174.         echo "
  175.                         ";
  176.         // line 31
  177.         echo twig_include($this->env$context"@Provider/partials/header/main-nav.html.twig");
  178.         echo "
  179.                         ";
  180.         // line 32
  181.         echo twig_include($this->env$context"@Provider/partials/header/lang-nav.html.twig");
  182.         echo "
  183.                     </div>
  184.                     ";
  185.         // line 34
  186.         echo twig_include($this->env$context"@Provider/partials/header/media.html.twig");
  187.         echo "
  188.                 ";
  189.         
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  191.         
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  193.     }
  194.     // line 44
  195.     public function block_content($context, array $blocks = [])
  196.     {
  197.         $macros $this->macros;
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  199.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  201.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  202.         echo " ";
  203.         
  204.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  205.         
  206.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  207.     }
  208.     // line 48
  209.     public function block_footer($context, array $blocks = [])
  210.     {
  211.         $macros $this->macros;
  212.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  213.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  214.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  215.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  216.         // line 49
  217.         echo "                ";
  218.         echo twig_include($this->env$context"@Provider/partials/footer.html.twig");
  219.         echo "
  220.             ";
  221.         
  222.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  223.         
  224.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  225.     }
  226.     // line 53
  227.     public function block_footerscripts($context, array $blocks = [])
  228.     {
  229.         $macros $this->macros;
  230.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  231.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footerscripts"));
  232.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  233.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footerscripts"));
  234.         // line 54
  235.         echo "        ";
  236.         
  237.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  238.         
  239.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  240.     }
  241.     public function getTemplateName()
  242.     {
  243.         return "@Provider/layouts/layout.html.twig";
  244.     }
  245.     public function isTraitable()
  246.     {
  247.         return false;
  248.     }
  249.     public function getDebugInfo()
  250.     {
  251.         return array (  275 => 54,  265 => 53,  252 => 49,  242 => 48,  223 => 44,  211 => 34,  206 => 32,  202 => 31,  198 => 30,  195 => 29,  185 => 28,  174 => 20,  164 => 19,  153 => 55,  151 => 53,  147 => 51,  145 => 48,  140 => 45,  138 => 44,  133 => 41,  127 => 39,  125 => 38,  121 => 36,  119 => 28,  112 => 24,  108 => 23,  105 => 22,  103 => 19,  86 => 18,  80 => 15,  74 => 12,  70 => 10,  68 => 9,  66 => 8,  63 => 7,  59 => 5,  57 => 4,  54 => 3,  52 => 2,  50 => 1,);
  252.     }
  253.     public function getSourceContext()
  254.     {
  255.         return new Source("{% from '@Provider/macros/logo.html.twig' import logo %}
  256. {% from '@Provider/macros/include-svg.html.twig' import includeSvg %}
  257. {% if not document is defined or not document %}
  258.     {% set document = pimcore_document(1) %}
  259. {% endif %}
  260. {% set isFrontpage = (isFrontpage is defined ? isFrontpage : false) %}
  261. {% set showBreadcrumbs = document.getProperty('show_breadcrumbs') ? true : false %}
  262. <!doctype html>
  263. <html class=\"no-js\" lang=\"{{ app.request.locale }}\">
  264.     <head>
  265.         {{ include('@Provider/partials/head.html.twig') }}
  266.     </head>
  267.     <body id=\"page-{{ document.getId() }}\" class=\"id-{{ document.getId() }}{% if isFrontpage %} frontpage{% else %} subpage{% endif %}\" data-id=\"{{ document.getId() }}\"{% if editmode %} data-editmode {% endif %} itemscope itemtype=\"http://schema.org/WebPage\">
  268.         {% block toggle %}
  269.             <input type=\"checkbox\" name=\"toggleMobileNav\" id=\"toggleMobileNav\" aria-hidden=\"true\" value=\"1\" />
  270.         {% endblock %}
  271.         {{ include('@Provider/partials/misc/schema-org-json.html.twig') }}
  272.         {{ include('@Provider/partials/accessibility-shortcuts.html.twig') }}
  273.         <div class=\"page-wrap\">
  274.             <header class=\"page-header\">
  275.                 {% block header %}
  276.                     <div class=\"page-header--top\">
  277.                         {{ logo() }}
  278.                         {{ include('@Provider/partials/header/main-nav.html.twig') }}
  279.                         {{ include('@Provider/partials/header/lang-nav.html.twig') }}
  280.                     </div>
  281.                     {{ include('@Provider/partials/header/media.html.twig') }}
  282.                 {% endblock %}
  283.             </header>
  284.             {% if showBreadcrumbs %}
  285.                 {{ include('@Provider/partials/breadcrumbs.html.twig') }}
  286.             {% endif %}
  287.             <main class=\"main-content\" id=\"content\">
  288.                 <div class=\"container\">
  289.                     {% block content %} {% endblock %}
  290.                 </div>
  291.             </main>
  292.             {% block footer %}
  293.                 {{ include('@Provider/partials/footer.html.twig') }}
  294.             {% endblock %}
  295.         </div>
  296.         {% block footerscripts %}
  297.         {% endblock %}
  298.     </body>
  299. </html>""@Provider/layouts/layout.html.twig""/html/pimcore/templates/bundles/ProviderBundle/layouts/layout.html.twig");
  300.     }
  301.     
  302.     public function checkSecurity()
  303.     {
  304.         static $tags = array("from" => 1"if" => 4"set" => 5"block" => 19);
  305.         static $filters = array("escape" => 12);
  306.         static $functions = array("pimcore_document" => 5"include" => 15);
  307.         try {
  308.             $this->sandbox->checkSecurity(
  309.                 ['from''if''set''block'],
  310.                 ['escape'],
  311.                 ['pimcore_document''include']
  312.             );
  313.         } catch (SecurityError $e) {
  314.             $e->setSourceContext($this->source);
  315.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  316.                 $e->setTemplateLine($tags[$e->getTagName()]);
  317.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  318.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  319.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  320.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  321.             }
  322.             throw $e;
  323.         }
  324.     }
  325. }