var/cache/dev/twig/7b/7bb7b1bee442e0408b04b4dae8d73071.php line 91

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/default.html.twig */
  14. class __TwigTemplate_08e02a252ffc4529e4842771cab087e9 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.             'headscripts' => [$this'block_headscripts'],
  26.             'inlinescripts' => [$this'block_inlinescripts'],
  27.         ];
  28.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  29.         $this->checkSecurity();
  30.         $this->deferred $this->env->getExtension('Twig\DeferredExtension\DeferredExtension');
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layouts/default.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layouts/default.html.twig"));
  39.         // line 6
  40.         echo "
  41. <!DOCTYPE html>
  42. <html lang=\"";
  43.         // line 8
  44.         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.'8$this->source); })()), "request", [], "any"falsefalsetrue8), "locale", [], "any"falsefalsetrue8), 8$this->source), "html"nulltrue);
  45.         echo "\">
  46. \t";
  47.         // line 9
  48.         $this->loadTemplate("includes/head.html.twig""layouts/default.html.twig"9)->display($context);
  49.         // line 10
  50.         echo "\t<body class=\"layout--";
  51.         echo (((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'10$this->source); })())) ? ("editmode") : ("livemode"));
  52.         echo " ";
  53.         echo twig_escape_filter($this->env, ((array_key_exists("layoutClass"$context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["layoutClass"]) || array_key_exists("layoutClass"$context) ? $context["layoutClass"] : (function () { throw new RuntimeError('Variable "layoutClass" does not exist.'10$this->source); })()), 10$this->source), "")) : ("")), "html"nulltrue);
  54.         echo "\">
  55. \t\t";
  56.         // line 12
  57.         echo "\t\t";
  58.         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.'12$this->source); })()))) {
  59.             // line 13
  60.             echo "\t\t\t";
  61.             $context["document"] = Pimcore\Model\Document::getById(1);
  62.             // line 14
  63.             echo "\t\t";
  64.         }
  65.         // line 15
  66.         echo "
  67. \t\t<main role=\"main\" class=\"wrapper\">
  68. \t\t\t";
  69.         // line 17
  70.         $this->loadTemplate("includes/header.html.twig""layouts/default.html.twig"17)->display($context);
  71.         // line 18
  72.         echo "
  73. \t\t\t<div class=\"content-container\">
  74. \t\t\t\t";
  75.         // line 20
  76.         $this->displayBlock('content'$context$blocks);
  77.         // line 23
  78.         echo "\t\t\t</div>
  79. \t\t</main>
  80. \t\t";
  81.         // line 25
  82.         $this->loadTemplate("includes/footer.html.twig""layouts/default.html.twig"25)->display($context);
  83.         // line 26
  84.         echo "\t\t
  85. \t\t";
  86.         // line 30
  87.         echo "\t\t
  88. \t\t";
  89.         // line 32
  90.         echo "\t";
  91.         $this->displayBlock('headscripts'$context$blocks);
  92.         // line 35
  93.         echo "
  94. \t";
  95.         // line 36
  96.         $this->displayBlock('inlinescripts'$context$blocks);
  97.         // line 39
  98.         echo "
  99. \t</body>
  100. </html>";
  101.         
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  103.         
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  105.         $this->deferred->resolve($this$context$blocks);
  106.     }
  107.     // line 20
  108.     public function block_content($context, array $blocks = [])
  109.     {
  110.         $macros $this->macros;
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  115.         // line 21
  116.         echo "
  117. \t\t\t\t";
  118.         
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  120.         
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  122.     }
  123.     public function block_headscripts($context, array $blocks = [])
  124.     {
  125.         $this->deferred->defer($this'headscripts');
  126.     }
  127.     // line 32
  128.     public function block_headscripts_deferred($context, array $blocks = [])
  129.     {
  130.         $macros $this->macros;
  131.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headscripts"));
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  134.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headscripts"));
  135.         // line 33
  136.         echo "\t\t";
  137.         echo $this->env->getFunction('pimcore_head_script')->getCallable()();
  138.         echo "
  139. \t";
  140.         
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  142.         
  143.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  144.         $this->deferred->resolve($this$context$blocks);
  145.     }
  146.     public function block_inlinescripts($context, array $blocks = [])
  147.     {
  148.         $this->deferred->defer($this'inlinescripts');
  149.     }
  150.     // line 36
  151.     public function block_inlinescripts_deferred($context, array $blocks = [])
  152.     {
  153.         $macros $this->macros;
  154.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  156.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  158.         // line 37
  159.         echo "\t\t";
  160.         echo $this->env->getFunction('pimcore_inline_script')->getCallable()();
  161.         echo "
  162. \t";
  163.         
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  165.         
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  167.         $this->deferred->resolve($this$context$blocks);
  168.     }
  169.     public function getTemplateName()
  170.     {
  171.         return "layouts/default.html.twig";
  172.     }
  173.     public function isTraitable()
  174.     {
  175.         return false;
  176.     }
  177.     public function getDebugInfo()
  178.     {
  179.         return array (  185 => 37,  175 => 36,  156 => 33,  146 => 32,  130 => 21,  120 => 20,  107 => 39,  105 => 36,  102 => 35,  99 => 32,  96 => 30,  93 => 26,  91 => 25,  87 => 23,  85 => 20,  81 => 18,  79 => 17,  75 => 15,  72 => 14,  69 => 13,  66 => 12,  59 => 10,  57 => 9,  53 => 8,  49 => 6,);
  180.     }
  181.     public function getSourceContext()
  182.     {
  183.         return new Source("{#
  184. project: Pimcore
  185. User: EBiermann
  186. Year: 2022
  187. #}
  188. <!DOCTYPE html>
  189. <html lang=\"{{ app.request.locale }}\">
  190. \t{% include 'includes/head.html.twig' %}
  191. \t<body class=\"layout--{{ editmode ? 'editmode' : 'livemode' }} {{ layoutClass|default('') }}\">
  192. \t\t{# get root node if there is no document defined (for pages which are routed directly through static route) #}
  193. \t\t{% if not document is defined or not document %}
  194. \t\t\t{% set document = pimcore_document(1) %}
  195. \t\t{% endif %}
  196. \t\t<main role=\"main\" class=\"wrapper\">
  197. \t\t\t{% include 'includes/header.html.twig' %}
  198. \t\t\t<div class=\"content-container\">
  199. \t\t\t\t{% block content %}
  200. \t\t\t\t{% endblock %}
  201. \t\t\t</div>
  202. \t\t</main>
  203. \t\t{% include 'includes/footer.html.twig' %}
  204. \t\t
  205. \t\t{#
  206. \t\t<div id=\"TA_excellent251\" class=\"TA_excellent\"><ul id=\"m4YrSu9r\" class=\"TA_links b01SLghdbM\"><li id=\"Yz9kl2IDPl\" class=\"RrRJyCc\"><a target=\"_blank\" href=\"https://www.tripadvisor.de/Attraction_Review-g187310-d24800300-Reviews-Nurnberger_Bratwurstmuseum-Nuremberg_Middle_Franconia_Franconia_Bavaria.html\"><img src=\"https://static.tacdn.com/img2/brand_refresh/Tripadvisor_lockup_horizontal_secondary_registered.svg\" alt=\"TripAdvisor\" class=\"widEXCIMG\" id=\"CDSWIDEXCLOGO\"/></a></li></ul></div><script async src=\"https://www.jscache.com/wejs?wtype=excellent&amp;uniq=251&amp;locationId=24800300&amp;lang=de&amp;display_version=2\" data-loadtrk onload=\"this.loadtrk=true\"></script>
  207. \t\t#}
  208. \t\t
  209. \t\t{# output scripts added before #}
  210. \t{% block headscripts deferred %}
  211. \t\t{{ pimcore_head_script() }}
  212. \t{% endblock %}
  213. \t{% block inlinescripts deferred %}
  214. \t\t{{ pimcore_inline_script() }}
  215. \t{% endblock %}
  216. \t</body>
  217. </html>""layouts/default.html.twig""/var/www/snr/staging.nuernberger-bratwuerste.de/templates/layouts/default.html.twig");
  218.     }
  219.     
  220.     public function checkSecurity()
  221.     {
  222.         static $tags = array("include" => 9"if" => 12"set" => 13"block" => 20);
  223.         static $filters = array("escape" => 8"default" => 10);
  224.         static $functions = array("pimcore_document" => 13"pimcore_head_script" => 33"pimcore_inline_script" => 37);
  225.         try {
  226.             $this->sandbox->checkSecurity(
  227.                 ['include''if''set''block'],
  228.                 ['escape''default'],
  229.                 ['pimcore_document''pimcore_head_script''pimcore_inline_script']
  230.             );
  231.         } catch (SecurityError $e) {
  232.             $e->setSourceContext($this->source);
  233.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  234.                 $e->setTemplateLine($tags[$e->getTagName()]);
  235.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  236.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  237.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  238.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  239.             }
  240.             throw $e;
  241.         }
  242.     }
  243.     private $deferred;
  244. }