var/cache/dev/twig/cd/cd1475cfb768415c94a2a2a72d5c4d10cb81d26fdbb85128acd1dd200de744a1.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/_breadcrumbs.html.twig */
  14. class __TwigTemplate_7378737ed409337d3c6f7d55e4eb7bffb271d46bb0554abb47d3118678e00684 extends \Twig\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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Layout/_breadcrumbs.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Layout/_breadcrumbs.html.twig"));
  33.         // line 1
  34.         if (((isset($context["nodemenu"]) || array_key_exists("nodemenu"$context)) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["nodemenu"]) || array_key_exists("nodemenu"$context) ? $context["nodemenu"] : (function () { throw new RuntimeError('Variable "nodemenu" does not exist.'1$this->source); })()), "breadCrumb", [], "any"falsefalsefalse1)) > 1))) {
  35.             // line 2
  36.             echo "    <section class=\"content\">
  37.         <nav class=\"breadcrumb\">
  38.             ";
  39.             // line 4
  40.             $context["homepagePageNode"] = twig_get_attribute($this->env$this->source, (isset($context["nodemenu"]) || array_key_exists("nodemenu"$context) ? $context["nodemenu"] : (function () { throw new RuntimeError('Variable "nodemenu" does not exist.'4$this->source); })()), "getNodeByInternalName", [=> "homepage"], "method"falsefalsefalse4);
  41.             // line 5
  42.             echo "            <a href=\"";
  43.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_slug", ["url" => twig_get_attribute($this->env$this->source, (isset($context["homepagePageNode"]) || array_key_exists("homepagePageNode"$context) ? $context["homepagePageNode"] : (function () { throw new RuntimeError('Variable "homepagePageNode" does not exist.'5$this->source); })()), "slug", [], "any"falsefalsefalse5)]), "html"nulltrue);
  44.             echo "\" class=\"breadcrumb__item breadcrumb__item--home\">
  45.                 Start
  46.             </a>
  47.             <i class=\"fas fa-chevron-right\"></i>
  48.             ";
  49.             // line 10
  50.             if (((isset($context["refererString"]) || array_key_exists("refererString"$context)) && (isset($context["refererString"]) || array_key_exists("refererString"$context) ? $context["refererString"] : (function () { throw new RuntimeError('Variable "refererString" does not exist.'10$this->source); })()))) {
  51.                 // line 11
  52.                 echo "                ";
  53.                 $context["refererNodes"] = twig_split_filter($this->env, (isset($context["refererString"]) || array_key_exists("refererString"$context) ? $context["refererString"] : (function () { throw new RuntimeError('Variable "refererString" does not exist.'11$this->source); })()), ",");
  54.                 // line 12
  55.                 echo "
  56.                 ";
  57.                 // line 13
  58.                 $context['_parent'] = $context;
  59.                 $context['_seq'] = twig_ensure_traversable((isset($context["refererNodes"]) || array_key_exists("refererNodes"$context) ? $context["refererNodes"] : (function () { throw new RuntimeError('Variable "refererNodes" does not exist.'13$this->source); })()));
  60.                 foreach ($context['_seq'] as $context["_key"] => $context["refererNode"]) {
  61.                     // line 14
  62.                     echo "
  63.                     ";
  64.                     // line 15
  65.                     $context["node"] = $this->extensions['Kunstmaan\NodeBundle\Twig\NodeTwigExtension']->getNodeTranslationByNodeId($context["refererNode"], 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.'15$this->source); })()), "request", [], "any"falsefalsefalse15), "locale", [], "any"falsefalsefalse15));
  66.                     // line 16
  67.                     echo "
  68.                     <a href=\"";
  69.                     // line 17
  70.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_slug", ["url" => twig_get_attribute($this->env$this->source, (isset($context["node"]) || array_key_exists("node"$context) ? $context["node"] : (function () { throw new RuntimeError('Variable "node" does not exist.'17$this->source); })()), "url", [], "any"falsefalsefalse17)]), "html"nulltrue);
  71.                     echo "\" class=\"breadcrumb__item\">
  72.                         ";
  73.                     // line 18
  74.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["node"]) || array_key_exists("node"$context) ? $context["node"] : (function () { throw new RuntimeError('Variable "node" does not exist.'18$this->source); })()), "title", [], "any"falsefalsefalse18), "html"nulltrue);
  75.                     echo "
  76.                     </a>
  77.                     <i class=\"fas fa-chevron-right\"></i>
  78.                 ";
  79.                 }
  80.                 $_parent $context['_parent'];
  81.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['refererNode'], $context['_parent'], $context['loop']);
  82.                 $context array_intersect_key($context$_parent) + $_parent;
  83.                 // line 23
  84.                 echo "
  85.                 <span class=\"breadcrumb__item breadcrumb__item--current\">
  86.                     ";
  87.                 // line 25
  88.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_last($this->envtwig_get_attribute($this->env$this->source, (isset($context["nodemenu"]) || array_key_exists("nodemenu"$context) ? $context["nodemenu"] : (function () { throw new RuntimeError('Variable "nodemenu" does not exist.'25$this->source); })()), "breadCrumb", [], "any"falsefalsefalse25)), "title", [], "any"falsefalsefalse25), "html"nulltrue);
  89.                 echo "
  90.                 </span>
  91.             ";
  92.             } else {
  93.                 // line 29
  94.                 echo "
  95.                 ";
  96.                 // line 30
  97.                 $context['_parent'] = $context;
  98.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["nodemenu"]) || array_key_exists("nodemenu"$context) ? $context["nodemenu"] : (function () { throw new RuntimeError('Variable "nodemenu" does not exist.'30$this->source); })()), "breadCrumb", [], "any"falsefalsefalse30));
  99.                 $context['loop'] = [
  100.                   'parent' => $context['_parent'],
  101.                   'index0' => 0,
  102.                   'index'  => 1,
  103.                   'first'  => true,
  104.                 ];
  105.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  106.                     $length count($context['_seq']);
  107.                     $context['loop']['revindex0'] = $length 1;
  108.                     $context['loop']['revindex'] = $length;
  109.                     $context['loop']['length'] = $length;
  110.                     $context['loop']['last'] = === $length;
  111.                 }
  112.                 foreach ($context['_seq'] as $context["_key"] => $context["node"]) {
  113.                     // line 31
  114.                     echo "                    ";
  115.                     if ( !twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse31)) {
  116.                         // line 32
  117.                         echo "                        ";
  118.                         if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse32)) {
  119.                             // line 33
  120.                             echo "                            <span class=\"breadcrumb__item breadcrumb__item--current\">
  121.                                 ";
  122.                             // line 34
  123.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["node"], "title", [], "any"falsefalsefalse34), "html"nulltrue);
  124.                             echo "
  125.                             </span>
  126.                         ";
  127.                         } else {
  128.                             // line 37
  129.                             echo "                            <a href=\"";
  130.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_slug", ["url" => twig_get_attribute($this->env$this->source$context["node"], "slug", [], "any"falsefalsefalse37)]), "html"nulltrue);
  131.                             echo "\" class=\"breadcrumb__item\">
  132.                                 ";
  133.                             // line 38
  134.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["node"], "title", [], "any"falsefalsefalse38), "html"nulltrue);
  135.                             echo "
  136.                             </a>
  137.                             <i class=\"fas fa-chevron-right\"></i>
  138.                         ";
  139.                         }
  140.                         // line 42
  141.                         echo "                    ";
  142.                     }
  143.                     // line 43
  144.                     echo "                ";
  145.                     ++$context['loop']['index0'];
  146.                     ++$context['loop']['index'];
  147.                     $context['loop']['first'] = false;
  148.                     if (isset($context['loop']['length'])) {
  149.                         --$context['loop']['revindex0'];
  150.                         --$context['loop']['revindex'];
  151.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  152.                     }
  153.                 }
  154.                 $_parent $context['_parent'];
  155.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['node'], $context['_parent'], $context['loop']);
  156.                 $context array_intersect_key($context$_parent) + $_parent;
  157.                 // line 44
  158.                 echo "
  159.             ";
  160.             }
  161.             // line 46
  162.             echo "        </nav>
  163.     </section>
  164. ";
  165.         }
  166.         
  167.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  168.         
  169.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  170.     }
  171.     public function getTemplateName()
  172.     {
  173.         return "Layout/_breadcrumbs.html.twig";
  174.     }
  175.     public function isTraitable()
  176.     {
  177.         return false;
  178.     }
  179.     public function getDebugInfo()
  180.     {
  181.         return array (  174 => 46,  170 => 44,  156 => 43,  153 => 42,  146 => 38,  141 => 37,  135 => 34,  132 => 33,  129 => 32,  126 => 31,  109 => 30,  106 => 29,  99 => 25,  95 => 23,  84 => 18,  80 => 17,  77 => 16,  75 => 15,  72 => 14,  68 => 13,  65 => 12,  62 => 11,  60 => 10,  51 => 5,  49 => 4,  45 => 2,  43 => 1,);
  182.     }
  183.     public function getSourceContext()
  184.     {
  185.         return new Source("{% if nodemenu is defined and nodemenu.breadCrumb|length > 1 %}
  186.     <section class=\"content\">
  187.         <nav class=\"breadcrumb\">
  188.             {% set homepagePageNode = nodemenu.getNodeByInternalName('homepage') %}
  189.             <a href=\"{{ path('_slug', { 'url': homepagePageNode.slug }) }}\" class=\"breadcrumb__item breadcrumb__item--home\">
  190.                 Start
  191.             </a>
  192.             <i class=\"fas fa-chevron-right\"></i>
  193.             {% if refererString is defined and refererString %}
  194.                 {% set refererNodes = refererString | split(',') %}
  195.                 {% for refererNode in refererNodes %}
  196.                     {% set node = get_node_trans_by_node_id(refererNode, app.request.locale) %}
  197.                     <a href=\"{{ path('_slug', { 'url': node.url }) }}\" class=\"breadcrumb__item\">
  198.                         {{ node.title }}
  199.                     </a>
  200.                     <i class=\"fas fa-chevron-right\"></i>
  201.                 {% endfor %}
  202.                 <span class=\"breadcrumb__item breadcrumb__item--current\">
  203.                     {{ nodemenu.breadCrumb | last.title }}
  204.                 </span>
  205.             {% else %}
  206.                 {% for node in nodemenu.breadCrumb %}
  207.                     {% if not loop.first %}
  208.                         {% if loop.last %}
  209.                             <span class=\"breadcrumb__item breadcrumb__item--current\">
  210.                                 {{ node.title }}
  211.                             </span>
  212.                         {% else %}
  213.                             <a href=\"{{ path('_slug', { 'url': node.slug }) }}\" class=\"breadcrumb__item\">
  214.                                 {{ node.title }}
  215.                             </a>
  216.                             <i class=\"fas fa-chevron-right\"></i>
  217.                         {% endif %}
  218.                     {% endif %}
  219.                 {% endfor %}
  220.             {% endif %}
  221.         </nav>
  222.     </section>
  223. {% endif %}
  224. ""Layout/_breadcrumbs.html.twig""/var/www/gcs/html/dev/templates/Layout/_breadcrumbs.html.twig");
  225.     }
  226. }