<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @PimcorePortalEngine/error_page/base_error_page.html.twig */
class __TwigTemplate_90b5f689348650168c6d87405ee3f6dc extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'navbar' => [$this, 'block_navbar'],
'error_page_content' => [$this, 'block_error_page_content'],
'error_page_content_details' => [$this, 'block_error_page_content_details'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PimcorePortalEngine/error_page/base_error_page.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PimcorePortalEngine/error_page/base_error_page.html.twig"));
// line 1
echo "<!DOCTYPE html>
<html lang=\"";
// line 2
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 2), "locale", [], "any", false, false, false, 2), "html", null, true);
echo "\">
<head>
";
// line 4
echo twig_include($this->env, $context, "@PimcorePortalEngine/shared/layout/head.html.twig");
echo "
</head>
<body class=\"full-height-layout\">
";
// line 8
$context["homeLink"] = (((twig_get_attribute($this->env, $this->source, ($context["document"] ?? null), "property", [0 => twig_constant("Pimcore\\Bundle\\PortalEngineBundle\\Enum\\Routing::NAVIGATION_ROOT_PROPERTY")], "method", true, true, false, 8) && !(null === twig_get_attribute($this->env, $this->source, ($context["document"] ?? null), "property", [0 => twig_constant("Pimcore\\Bundle\\PortalEngineBundle\\Enum\\Routing::NAVIGATION_ROOT_PROPERTY")], "method", false, false, false, 8)))) ? (twig_get_attribute($this->env, $this->source, ($context["document"] ?? null), "property", [0 => twig_constant("Pimcore\\Bundle\\PortalEngineBundle\\Enum\\Routing::NAVIGATION_ROOT_PROPERTY")], "method", false, false, false, 8)) : (twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Bundle\PortalEngineBundle\Twig\ConfigExtension']->getPortalConfig(), "portalDocument", [], "any", false, false, false, 8)));
// line 9
if (twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 9), "get", [0 => "publicShareHash"], "method", false, false, false, 9)) {
// line 10
echo " ";
$context["homeLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pimcore_portalengine_public_share_public_list", ["publicShareHash" => twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 10), "get", [0 => "publicShareHash"], "method", false, false, false, 10)]);
}
// line 12
echo "
";
// line 13
$this->displayBlock('navbar', $context, $blocks);
// line 31
echo "
<div class=\"container\">
";
// line 33
$this->displayBlock('error_page_content', $context, $blocks);
// line 46
echo "
";
// line 47
echo twig_include($this->env, $context, "@PimcorePortalEngine/error_page/shared/debug_info.html.twig");
echo "
</div>
</body>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 13
public function block_navbar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
// line 14
echo " <header class=\"full-height-layout__fit\">
<nav class=\"main-navbar js-main-nav\">
<div class=\"main-navbar__top\">
<div class=\"container\">
<div class=\"row no-gutters flex-nowrap align-items-center\">
<div class=\"col-3 col-md-2\">
<a href=\"";
// line 21
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", null, true);
echo "\">
<img class=\"img-fluid main-navbar__logo\" src=\"";
// line 22
echo twig_escape_filter($this->env, $this->extensions['Pimcore\Bundle\PortalEngineBundle\Twig\PortalImagesExtension']->getLogoImagePath(twig_constant("Pimcore\\Bundle\\PortalEngineBundle\\Enum\\ImageThumbnails::LOGO")), "html", null, true);
echo "\">
</a>
</div>
</div>
</div>
</div>
</nav>
</header>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 33
public function block_error_page_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "error_page_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "error_page_content"));
// line 34
echo " <div class=\"page-wrap d-flex flex-row align-items-center mt-5 mb-5\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-md-12 text-center\">
";
// line 38
$this->displayBlock('error_page_content_details', $context, $blocks);
// line 40
echo " <a href=\"";
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", null, true);
echo "\" class=\"btn btn-primary\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("portal-engine.404.link"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 38
public function block_error_page_content_details($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "error_page_content_details"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "error_page_content_details"));
// line 39
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@PimcorePortalEngine/error_page/base_error_page.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html lang=\"{{ app.request.locale }}\">
<head>
{{ include(\"@PimcorePortalEngine/shared/layout/head.html.twig\") }}
</head>
<body class=\"full-height-layout\">
{% set homeLink = document.property(constant(\"Pimcore\\\\Bundle\\\\PortalEngineBundle\\\\Enum\\\\Routing::NAVIGATION_ROOT_PROPERTY\")) ?? portalEngine_portalConfig().portalDocument %}
{% if app.request.get('publicShareHash') %}
{% set homeLink = path('pimcore_portalengine_public_share_public_list', {publicShareHash:app.request.get('publicShareHash')}) %}
{% endif %}
{% block navbar %}
<header class=\"full-height-layout__fit\">
<nav class=\"main-navbar js-main-nav\">
<div class=\"main-navbar__top\">
<div class=\"container\">
<div class=\"row no-gutters flex-nowrap align-items-center\">
<div class=\"col-3 col-md-2\">
<a href=\"{{ homeLink }}\">
<img class=\"img-fluid main-navbar__logo\" src=\"{{ portalEngine_images_logo(constant('Pimcore\\\\Bundle\\\\PortalEngineBundle\\\\Enum\\\\ImageThumbnails::LOGO')) }}\">
</a>
</div>
</div>
</div>
</div>
</nav>
</header>
{% endblock %}
<div class=\"container\">
{% block error_page_content %}
<div class=\"page-wrap d-flex flex-row align-items-center mt-5 mb-5\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-md-12 text-center\">
{% block error_page_content_details %}
{% endblock %}
<a href=\"{{ homeLink }}\" class=\"btn btn-primary\">{{ \"portal-engine.404.link\"|trans }}</a>
</div>
</div>
</div>
</div>
{% endblock %}
{{ include('@PimcorePortalEngine/error_page/shared/debug_info.html.twig')}}
</div>
</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");
}
}