var/cache/dev/twig/99/99efef87021eecb461eb8265ab99cd3b520e906eebfba3e3b1387faeb865417f.php line 80

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* app/print-layout.html.twig */
  16. class __TwigTemplate_b41da883c26789b229c06c91dd15d5da2340a7357c62fac97722b7267b5be962 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = []): iterable
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""app/print-layout.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""app/print-layout.html.twig"));
  40.         // line 1
  41.         yield "<!DOCTYPE html>
  42. <html lang=\"";
  43.         // line 2
  44.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($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);
  45.         yield "\">
  46.     <head>
  47.         <title>";
  48.         // line 4
  49.         yield (((CoreExtension::getAttribute($this->env$this->source, ($context["page"] ?? null), "title", [], "any"truetruetrue4) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["page"] ?? null), "title", [], "any"falsefalsetrue4)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, ($context["page"] ?? null), "title", [], "any"falsefalsetrue4), 4$this->source), "html"nulltrue)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("sitename"""), "html"nulltrue)));
  50.         yield " </title>
  51.         <meta charset=\"UTF-8\">
  52.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
  53.         <meta name=\"description\" content=\"Coolworld offers rental of temporary cold storage rooms and freezers in all imaginable formats, full service. Contact us for customized advice.\">
  54.         ";
  55.         // line 11
  56.         yield "        ";
  57.         yield $this->extensions['App\Twig\ViteExtension']->vite("print.js"true);
  58.         yield "
  59.         ";
  60.         // line 13
  61.         yield from         $this->unwrap()->yieldBlock("style"$context$blocks);
  62.         yield "
  63.     </head>
  64.     <body>
  65.         ";
  66.         // line 17
  67.         yield from         $this->unwrap()->yieldBlock("content"$context$blocks);
  68.         yield "
  69.     </body>
  70. </html>
  71. ";
  72.         
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  74.         
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  76.         yield from [];
  77.     }
  78.     /**
  79.      * @codeCoverageIgnore
  80.      */
  81.     public function getTemplateName(): string
  82.     {
  83.         return "app/print-layout.html.twig";
  84.     }
  85.     /**
  86.      * @codeCoverageIgnore
  87.      */
  88.     public function isTraitable(): bool
  89.     {
  90.         return false;
  91.     }
  92.     /**
  93.      * @codeCoverageIgnore
  94.      */
  95.     public function getDebugInfo(): array
  96.     {
  97.         return array (  80 => 17,  73 => 13,  67 => 11,  58 => 4,  53 => 2,  50 => 1,);
  98.     }
  99.     public function getSourceContext(): Source
  100.     {
  101.         return new Source("<!DOCTYPE html>
  102. <html lang=\"{{ app.request.locale }}\">
  103.     <head>
  104.         <title>{{ page.title ?? pimcore_website_config('sitename', \"\") }} </title>
  105.         <meta charset=\"UTF-8\">
  106.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
  107.         <meta name=\"description\" content=\"Coolworld offers rental of temporary cold storage rooms and freezers in all imaginable formats, full service. Contact us for customized advice.\">
  108.         {# css file parsing might not work like expected in PDF #}
  109.         {{ vite('print.js', true)|raw }}
  110.         {{ block('style') }}
  111.     </head>
  112.     <body>
  113.         {{ block('content') }}
  114.     </body>
  115. </html>
  116. ""app/print-layout.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/app/print-layout.html.twig");
  117.     }
  118.     
  119.     public function checkSecurity()
  120.     {
  121.         static $tags = [];
  122.         static $filters = ["escape" => 2"raw" => 11];
  123.         static $functions = ["pimcore_website_config" => 4"vite" => 11];
  124.         try {
  125.             $this->sandbox->checkSecurity(
  126.                 [],
  127.                 ['escape''raw'],
  128.                 ['pimcore_website_config''vite'],
  129.                 $this->source
  130.             );
  131.         } catch (SecurityError $e) {
  132.             $e->setSourceContext($this->source);
  133.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  134.                 $e->setTemplateLine($tags[$e->getTagName()]);
  135.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  136.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  137.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  138.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  139.             }
  140.             throw $e;
  141.         }
  142.     }
  143. }