var/cache/dev/twig/f3/f35846740569ea33b3cb825975db82b5.php line 36

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. /* @PimcorePortalEngine/error_page/base_error_page.html.twig */
  14. class __TwigTemplate_90b5f689348650168c6d87405ee3f6dc 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.             'navbar' => [$this'block_navbar'],
  25.             'error_page_content' => [$this'block_error_page_content'],
  26.             'error_page_content_details' => [$this'block_error_page_content_details'],
  27.         ];
  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""@PimcorePortalEngine/error_page/base_error_page.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""@PimcorePortalEngine/error_page/base_error_page.html.twig"));
  36.         // line 1
  37.         echo "<!DOCTYPE html>
  38. <html lang=\"";
  39.         // line 2
  40.         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.'2$this->source); })()), "request", [], "any"falsefalsefalse2), "locale", [], "any"falsefalsefalse2), "html"nulltrue);
  41.         echo "\">
  42. <head>
  43.     ";
  44.         // line 4
  45.         echo twig_include($this->env$context"@PimcorePortalEngine/shared/layout/head.html.twig");
  46.         echo "
  47. </head>
  48. <body class=\"full-height-layout\">
  49. ";
  50.         // line 8
  51.         $context["homeLink"] = (((twig_get_attribute($this->env$this->source, ($context["document"] ?? null), "property", [=> twig_constant("Pimcore\\Bundle\\PortalEngineBundle\\Enum\\Routing::NAVIGATION_ROOT_PROPERTY")], "method"truetruefalse8) &&  !(null === twig_get_attribute($this->env$this->source, ($context["document"] ?? null), "property", [=> twig_constant("Pimcore\\Bundle\\PortalEngineBundle\\Enum\\Routing::NAVIGATION_ROOT_PROPERTY")], "method"falsefalsefalse8)))) ? (twig_get_attribute($this->env$this->source, ($context["document"] ?? null), "property", [=> twig_constant("Pimcore\\Bundle\\PortalEngineBundle\\Enum\\Routing::NAVIGATION_ROOT_PROPERTY")], "method"falsefalsefalse8)) : (twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Bundle\PortalEngineBundle\Twig\ConfigExtension']->getPortalConfig(), "portalDocument", [], "any"falsefalsefalse8)));
  52.         // line 9
  53.         if (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.'9$this->source); })()), "request", [], "any"falsefalsefalse9), "get", [=> "publicShareHash"], "method"falsefalsefalse9)) {
  54.             // line 10
  55.             echo "    ";
  56.             $context["homeLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pimcore_portalengine_public_share_public_list", ["publicShareHash" => 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.'10$this->source); })()), "request", [], "any"falsefalsefalse10), "get", [=> "publicShareHash"], "method"falsefalsefalse10)]);
  57.         }
  58.         // line 12
  59.         echo "
  60. ";
  61.         // line 13
  62.         $this->displayBlock('navbar'$context$blocks);
  63.         // line 31
  64.         echo "
  65. <div class=\"container\">
  66.     ";
  67.         // line 33
  68.         $this->displayBlock('error_page_content'$context$blocks);
  69.         // line 46
  70.         echo "
  71.     ";
  72.         // line 47
  73.         echo twig_include($this->env$context"@PimcorePortalEngine/error_page/shared/debug_info.html.twig");
  74.         echo "
  75. </div>
  76. </body>";
  77.         
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  79.         
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  81.     }
  82.     // line 13
  83.     public function block_navbar($context, array $blocks = [])
  84.     {
  85.         $macros $this->macros;
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  90.         // line 14
  91.         echo "    <header class=\"full-height-layout__fit\">
  92.         <nav class=\"main-navbar js-main-nav\">
  93.             <div class=\"main-navbar__top\">
  94.                 <div class=\"container\">
  95.                     <div class=\"row no-gutters flex-nowrap align-items-center\">
  96.                         <div class=\"col-3 col-md-2\">
  97.                             <a href=\"";
  98.         // line 21
  99.         echo twig_escape_filter($this->env, (isset($context["homeLink"]) || array_key_exists("homeLink"$context) ? $context["homeLink"] : (function () { throw new RuntimeError('Variable "homeLink" does not exist.'21$this->source); })()), "html"nulltrue);
  100.         echo "\">
  101.                                 <img class=\"img-fluid main-navbar__logo\" src=\"";
  102.         // line 22
  103.         echo twig_escape_filter($this->env$this->extensions['Pimcore\Bundle\PortalEngineBundle\Twig\PortalImagesExtension']->getLogoImagePath(twig_constant("Pimcore\\Bundle\\PortalEngineBundle\\Enum\\ImageThumbnails::LOGO")), "html"nulltrue);
  104.         echo "\">
  105.                             </a>
  106.                         </div>
  107.                     </div>
  108.                 </div>
  109.             </div>
  110.         </nav>
  111.     </header>
  112. ";
  113.         
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  115.         
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117.     }
  118.     // line 33
  119.     public function block_error_page_content($context, array $blocks = [])
  120.     {
  121.         $macros $this->macros;
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""error_page_content"));
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""error_page_content"));
  126.         // line 34
  127.         echo "        <div class=\"page-wrap d-flex flex-row align-items-center mt-5 mb-5\">
  128.             <div class=\"container\">
  129.                 <div class=\"row justify-content-center\">
  130.                     <div class=\"col-md-12 text-center\">
  131.                         ";
  132.         // line 38
  133.         $this->displayBlock('error_page_content_details'$context$blocks);
  134.         // line 40
  135.         echo "                        <a href=\"";
  136.         echo twig_escape_filter($this->env, (isset($context["homeLink"]) || array_key_exists("homeLink"$context) ? $context["homeLink"] : (function () { throw new RuntimeError('Variable "homeLink" does not exist.'40$this->source); })()), "html"nulltrue);
  137.         echo "\" class=\"btn btn-primary\">";
  138.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("portal-engine.404.link"), "html"nulltrue);
  139.         echo "</a>
  140.                     </div>
  141.                 </div>
  142.             </div>
  143.         </div>
  144.     ";
  145.         
  146.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  147.         
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  149.     }
  150.     // line 38
  151.     public function block_error_page_content_details($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""error_page_content_details"));
  156.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""error_page_content_details"));
  158.         // line 39
  159.         echo "                        ";
  160.         
  161.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  162.         
  163.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  164.     }
  165.     public function getTemplateName()
  166.     {
  167.         return "@PimcorePortalEngine/error_page/base_error_page.html.twig";
  168.     }
  169.     public function isTraitable()
  170.     {
  171.         return false;
  172.     }
  173.     public function getDebugInfo()
  174.     {
  175.         return array (  185 => 39,  175 => 38,  156 => 40,  154 => 38,  148 => 34,  138 => 33,  119 => 22,  115 => 21,  106 => 14,  96 => 13,  83 => 47,  80 => 46,  78 => 33,  74 => 31,  72 => 13,  69 => 12,  65 => 10,  63 => 9,  61 => 8,  54 => 4,  49 => 2,  46 => 1,);
  176.     }
  177.     public function getSourceContext()
  178.     {
  179.         return new Source("<!DOCTYPE html>
  180. <html lang=\"{{ app.request.locale }}\">
  181. <head>
  182.     {{ include(\"@PimcorePortalEngine/shared/layout/head.html.twig\") }}
  183. </head>
  184. <body class=\"full-height-layout\">
  185. {% set homeLink = document.property(constant(\"Pimcore\\\\Bundle\\\\PortalEngineBundle\\\\Enum\\\\Routing::NAVIGATION_ROOT_PROPERTY\")) ?? portalEngine_portalConfig().portalDocument %}
  186. {% if app.request.get('publicShareHash') %}
  187.     {% set homeLink = path('pimcore_portalengine_public_share_public_list', {publicShareHash:app.request.get('publicShareHash')}) %}
  188. {% endif %}
  189. {% block navbar %}
  190.     <header class=\"full-height-layout__fit\">
  191.         <nav class=\"main-navbar js-main-nav\">
  192.             <div class=\"main-navbar__top\">
  193.                 <div class=\"container\">
  194.                     <div class=\"row no-gutters flex-nowrap align-items-center\">
  195.                         <div class=\"col-3 col-md-2\">
  196.                             <a href=\"{{ homeLink }}\">
  197.                                 <img class=\"img-fluid main-navbar__logo\" src=\"{{ portalEngine_images_logo(constant('Pimcore\\\\Bundle\\\\PortalEngineBundle\\\\Enum\\\\ImageThumbnails::LOGO')) }}\">
  198.                             </a>
  199.                         </div>
  200.                     </div>
  201.                 </div>
  202.             </div>
  203.         </nav>
  204.     </header>
  205. {% endblock %}
  206. <div class=\"container\">
  207.     {% block error_page_content %}
  208.         <div class=\"page-wrap d-flex flex-row align-items-center mt-5 mb-5\">
  209.             <div class=\"container\">
  210.                 <div class=\"row justify-content-center\">
  211.                     <div class=\"col-md-12 text-center\">
  212.                         {% block error_page_content_details %}
  213.                         {% endblock %}
  214.                         <a href=\"{{ homeLink }}\" class=\"btn btn-primary\">{{ \"portal-engine.404.link\"|trans }}</a>
  215.                     </div>
  216.                 </div>
  217.             </div>
  218.         </div>
  219.     {% endblock %}
  220.     {{ include('@PimcorePortalEngine/error_page/shared/debug_info.html.twig')}}
  221. </div>
  222. </body>""@PimcorePortalEngine/error_page/base_error_page.html.twig""/var/www/html/siteone/vendor/pimcore/portal-engine/src/Resources/views/error_page/base_error_page.html.twig");
  223.     }
  224. }