<?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;
/* layout/nav/footer.html.twig */
class __TwigTemplate_7b62237edacf647c55f060a58a478ab8 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "layout/nav/footer.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/nav/footer.html.twig"));
// line 1
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.', 1, $this->source); })()))) {
// line 2
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
}
// line 4
echo "
";
// line 5
$context["navStartNode"] = 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.', 5, $this->source); })()), "getProperty", [0 => "footerNavStartNode"], "method", false, false, false, 5);
// line 6
echo "
";
// line 7
if ( !(($this->env->getTest('instanceof')->getCallable()( // line 8
(isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 8, $this->source); })()), "\\Pimcore\\Model\\Document\\Page") || $this->env->getTest('instanceof')->getCallable()( // line 9
(isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 9, $this->source); })()), "\\Pimcore\\Model\\Document\\Folder")) || $this->env->getTest('instanceof')->getCallable()( // line 10
(isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 10, $this->source); })()), "\\Pimcore\\Model\\Document\\Link"))) {
// line 12
echo " ";
$context["navStartNode"] = Pimcore\Model\Document::getById(1);
}
// line 14
echo "
";
// line 15
$context["mainNavigation"] = $this->env->getFunction('pimcore_build_nav')->getCallable()(["active" => // line 16
(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 16, $this->source); })()), "root" => // line 17
(isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 17, $this->source); })())]);
// line 19
echo "
";
// line 20
$context["menuRenderer"] = $this->env->getFunction('pimcore_nav_renderer')->getCallable()("menu");
// line 21
echo "
";
// line 22
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["mainNavigation"]) || array_key_exists("mainNavigation", $context) ? $context["mainNavigation"] : (function () { throw new RuntimeError('Variable "mainNavigation" does not exist.', 22, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
// line 23
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["page"], "isVisible", [], "method", false, false, false, 23) && twig_get_attribute($this->env, $this->source, (isset($context["menuRenderer"]) || array_key_exists("menuRenderer", $context) ? $context["menuRenderer"] : (function () { throw new RuntimeError('Variable "menuRenderer" does not exist.', 23, $this->source); })()), "accept", [0 => $context["page"]], "method", false, false, false, 23))) {
// line 24
echo "
";
// line 25
if (twig_get_attribute($this->env, $this->source, $context["page"], "getTarget", [], "method", false, false, false, 25)) {
// line 26
echo " ";
$context["target"] = ("target=" . twig_get_attribute($this->env, $this->source, $context["page"], "getTarget", [], "method", false, false, false, 26));
// line 27
echo " ";
} else {
// line 28
echo " ";
$context["target"] = "";
// line 29
echo " ";
}
// line 30
echo "
<li>
<a href=\"";
// line 32
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getHref", [], "method", false, false, false, 32), "html", null, true);
echo "\" ";
echo (isset($context["target"]) || array_key_exists("target", $context) ? $context["target"] : (function () { throw new RuntimeError('Variable "target" does not exist.', 32, $this->source); })());
echo ">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getLabel", [], "method", false, false, false, 32), "html", null, true);
echo "</a>
</li>
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "layout/nav/footer.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 109 => 32, 105 => 30, 102 => 29, 99 => 28, 96 => 27, 93 => 26, 91 => 25, 88 => 24, 85 => 23, 81 => 22, 78 => 21, 76 => 20, 73 => 19, 71 => 17, 70 => 16, 69 => 15, 66 => 14, 62 => 12, 60 => 10, 59 => 9, 58 => 8, 57 => 7, 54 => 6, 52 => 5, 49 => 4, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
{% set navStartNode = document.getProperty('footerNavStartNode') %}
{% if not
(navStartNode is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Page')
or navStartNode is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Folder')
or navStartNode is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Link')
) %}
{% set navStartNode = pimcore_document(1) %}
{% endif %}
{% set mainNavigation = pimcore_build_nav({
active: document,
root: navStartNode
}) %}
{% set menuRenderer = pimcore_nav_renderer('menu') %}
{% for page in mainNavigation %}
{% if page.isVisible() and menuRenderer.accept(page) %}
{% if page.getTarget() %}
{% set target = 'target=' ~ page.getTarget() %}
{% else %}
{% set target = '' %}
{% endif %}
<li>
<a href=\"{{ page.getHref() }}\" {{ target|raw }}>{{ page.getLabel() }}</a>
</li>
{% endif %}
{% endfor %}", "layout/nav/footer.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/layout/nav/footer.html.twig");
}
}