var/cache/dev/twig/31/31feed454d26c9771a57a4bc8ba7d55d.php line 33

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. /* layout/nav/footer.html.twig */
  14. class __TwigTemplate_7b62237edacf647c55f060a58a478ab8 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.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout/nav/footer.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout/nav/footer.html.twig"));
  33.         // line 1
  34.         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); })()))) {
  35.             // line 2
  36.             echo "    ";
  37.             $context["document"] = Pimcore\Model\Document::getById(1);
  38.         }
  39.         // line 4
  40.         echo "
  41. ";
  42.         // line 5
  43.         $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", [=> "footerNavStartNode"], "method"falsefalsefalse5);
  44.         // line 6
  45.         echo "
  46. ";
  47.         // line 7
  48.         if ( !(($this->env->getTest('instanceof')->getCallable()(        // line 8
  49. (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
  50. (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
  51. (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"))) {
  52.             // line 12
  53.             echo "    ";
  54.             $context["navStartNode"] = Pimcore\Model\Document::getById(1);
  55.         }
  56.         // line 14
  57.         echo "
  58. ";
  59.         // line 15
  60.         $context["mainNavigation"] = $this->env->getFunction('pimcore_build_nav')->getCallable()(["active" =>         // line 16
  61. (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
  62. (isset($context["navStartNode"]) || array_key_exists("navStartNode"$context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.'17$this->source); })())]);
  63.         // line 19
  64.         echo "
  65. ";
  66.         // line 20
  67.         $context["menuRenderer"] = $this->env->getFunction('pimcore_nav_renderer')->getCallable()("menu");
  68.         // line 21
  69.         echo "
  70. ";
  71.         // line 22
  72.         $context['_parent'] = $context;
  73.         $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); })()));
  74.         foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
  75.             // line 23
  76.             echo "    ";
  77.             if ((twig_get_attribute($this->env$this->source$context["page"], "isVisible", [], "method"falsefalsefalse23) && 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", [=> $context["page"]], "method"falsefalsefalse23))) {
  78.                 // line 24
  79.                 echo "
  80.         ";
  81.                 // line 25
  82.                 if (twig_get_attribute($this->env$this->source$context["page"], "getTarget", [], "method"falsefalsefalse25)) {
  83.                     // line 26
  84.                     echo "            ";
  85.                     $context["target"] = ("target=" twig_get_attribute($this->env$this->source$context["page"], "getTarget", [], "method"falsefalsefalse26));
  86.                     // line 27
  87.                     echo "        ";
  88.                 } else {
  89.                     // line 28
  90.                     echo "            ";
  91.                     $context["target"] = "";
  92.                     // line 29
  93.                     echo "        ";
  94.                 }
  95.                 // line 30
  96.                 echo "
  97.         <li>
  98.             <a href=\"";
  99.                 // line 32
  100.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getHref", [], "method"falsefalsefalse32), "html"nulltrue);
  101.                 echo "\" ";
  102.                 echo (isset($context["target"]) || array_key_exists("target"$context) ? $context["target"] : (function () { throw new RuntimeError('Variable "target" does not exist.'32$this->source); })());
  103.                 echo ">";
  104.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getLabel", [], "method"falsefalsefalse32), "html"nulltrue);
  105.                 echo "</a>
  106.         </li>
  107.         
  108.     ";
  109.             }
  110.         }
  111.         $_parent $context['_parent'];
  112.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
  113.         $context array_intersect_key($context$_parent) + $_parent;
  114.         
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  116.         
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  118.     }
  119.     public function getTemplateName()
  120.     {
  121.         return "layout/nav/footer.html.twig";
  122.     }
  123.     public function isTraitable()
  124.     {
  125.         return false;
  126.     }
  127.     public function getDebugInfo()
  128.     {
  129.         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,);
  130.     }
  131.     public function getSourceContext()
  132.     {
  133.         return new Source("{% if not document is defined or not document %}
  134.     {% set document = pimcore_document(1) %}
  135. {% endif %}
  136. {% set navStartNode = document.getProperty('footerNavStartNode') %}
  137. {% if not 
  138.     (navStartNode is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Page') 
  139.     or navStartNode is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Folder')
  140.     or navStartNode is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Link')
  141. ) %}
  142.     {% set navStartNode = pimcore_document(1) %}
  143. {% endif %}
  144. {% set mainNavigation = pimcore_build_nav({
  145.     active: document,
  146.     root: navStartNode
  147. }) %}
  148. {% set menuRenderer = pimcore_nav_renderer('menu') %}
  149. {% for page in mainNavigation %}
  150.     {% if page.isVisible() and menuRenderer.accept(page)  %}
  151.         {% if page.getTarget() %}
  152.             {% set target = 'target=' ~ page.getTarget() %}
  153.         {% else %}
  154.             {% set target = '' %}
  155.         {% endif %}
  156.         <li>
  157.             <a href=\"{{ page.getHref() }}\" {{ target|raw }}>{{ page.getLabel() }}</a>
  158.         </li>
  159.         
  160.     {% endif %}
  161. {% endfor %}""layout/nav/footer.html.twig""/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/layout/nav/footer.html.twig");
  162.     }
  163. }