<?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/_breadcrumbs.html.twig */
class __TwigTemplate_7378737ed409337d3c6f7d55e4eb7bffb271d46bb0554abb47d3118678e00684 extends \Twig\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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Layout/_breadcrumbs.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Layout/_breadcrumbs.html.twig"));
// line 1
if (((isset($context["nodemenu"]) || array_key_exists("nodemenu", $context)) && (twig_length_filter($this->env, 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.', 1, $this->source); })()), "breadCrumb", [], "any", false, false, false, 1)) > 1))) {
// line 2
echo " <section class=\"content\">
<nav class=\"breadcrumb\">
";
// line 4
$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", [0 => "homepage"], "method", false, false, false, 4);
// line 5
echo " <a href=\"";
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", false, false, false, 5)]), "html", null, true);
echo "\" class=\"breadcrumb__item breadcrumb__item--home\">
Start
</a>
<i class=\"fas fa-chevron-right\"></i>
";
// line 10
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); })()))) {
// line 11
echo " ";
$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); })()), ",");
// line 12
echo "
";
// line 13
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["refererNode"]) {
// line 14
echo "
";
// line 15
$context["node"] = $this->extensions['Kunstmaan\NodeBundle\Twig\NodeTwigExtension']->getNodeTranslationByNodeId($context["refererNode"], 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.', 15, $this->source); })()), "request", [], "any", false, false, false, 15), "locale", [], "any", false, false, false, 15));
// line 16
echo "
<a href=\"";
// line 17
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", false, false, false, 17)]), "html", null, true);
echo "\" class=\"breadcrumb__item\">
";
// line 18
echo twig_escape_filter($this->env, 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.', 18, $this->source); })()), "title", [], "any", false, false, false, 18), "html", null, true);
echo "
</a>
<i class=\"fas fa-chevron-right\"></i>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['refererNode'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 23
echo "
<span class=\"breadcrumb__item breadcrumb__item--current\">
";
// line 25
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_last($this->env, 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.', 25, $this->source); })()), "breadCrumb", [], "any", false, false, false, 25)), "title", [], "any", false, false, false, 25), "html", null, true);
echo "
</span>
";
} else {
// line 29
echo "
";
// line 30
$context['_parent'] = $context;
$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", false, false, false, 30));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["node"]) {
// line 31
echo " ";
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 31)) {
// line 32
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 32)) {
// line 33
echo " <span class=\"breadcrumb__item breadcrumb__item--current\">
";
// line 34
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["node"], "title", [], "any", false, false, false, 34), "html", null, true);
echo "
</span>
";
} else {
// line 37
echo " <a href=\"";
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", false, false, false, 37)]), "html", null, true);
echo "\" class=\"breadcrumb__item\">
";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["node"], "title", [], "any", false, false, false, 38), "html", null, true);
echo "
</a>
<i class=\"fas fa-chevron-right\"></i>
";
}
// line 42
echo " ";
}
// line 43
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['node'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
echo "
";
}
// line 46
echo " </nav>
</section>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "Layout/_breadcrumbs.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% if nodemenu is defined and nodemenu.breadCrumb|length > 1 %}
<section class=\"content\">
<nav class=\"breadcrumb\">
{% set homepagePageNode = nodemenu.getNodeByInternalName('homepage') %}
<a href=\"{{ path('_slug', { 'url': homepagePageNode.slug }) }}\" class=\"breadcrumb__item breadcrumb__item--home\">
Start
</a>
<i class=\"fas fa-chevron-right\"></i>
{% if refererString is defined and refererString %}
{% set refererNodes = refererString | split(',') %}
{% for refererNode in refererNodes %}
{% set node = get_node_trans_by_node_id(refererNode, app.request.locale) %}
<a href=\"{{ path('_slug', { 'url': node.url }) }}\" class=\"breadcrumb__item\">
{{ node.title }}
</a>
<i class=\"fas fa-chevron-right\"></i>
{% endfor %}
<span class=\"breadcrumb__item breadcrumb__item--current\">
{{ nodemenu.breadCrumb | last.title }}
</span>
{% else %}
{% for node in nodemenu.breadCrumb %}
{% if not loop.first %}
{% if loop.last %}
<span class=\"breadcrumb__item breadcrumb__item--current\">
{{ node.title }}
</span>
{% else %}
<a href=\"{{ path('_slug', { 'url': node.slug }) }}\" class=\"breadcrumb__item\">
{{ node.title }}
</a>
<i class=\"fas fa-chevron-right\"></i>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
</nav>
</section>
{% endif %}
", "Layout/_breadcrumbs.html.twig", "/var/www/gcs/html/dev/templates/Layout/_breadcrumbs.html.twig");
}
}