sterntours/var/cache/dev/twig/44/4468330840bbc6cfcd83b6b4c443547f8da441ae79fb5c4052379d58e3b588cb.php
2020-07-09 12:49:32 +02:00

152 lines
8.2 KiB
PHP

<?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;
/* default/components/breadcrumb.html.twig */
class __TwigTemplate_61226b15fba18804deede4a739aa584d558c72f21d87056b5a1d2ea229c7d582 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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/components/breadcrumb.html.twig"));
// line 1
if ( !twig_test_empty((isset($context["breadcrumb_entries"]) || array_key_exists("breadcrumb_entries", $context) ? $context["breadcrumb_entries"] : (function () { throw new RuntimeError('Variable "breadcrumb_entries" does not exist.', 1, $this->source); })()))) {
// line 2
echo " <div class=\"breadcrumb-holder\">
<ol class=\"breadcrumb\" itemprop=\"breadcrumb\" itemscope=\"\" itemtype=\"http://schema.org/BreadcrumbList\">
<li itemscope=\"\" itemprop=\"itemListElement\" itemtype=\"http://schema.org/ListItem\">
<a class=\"on\" itemprop=\"item\" title=\"STERN TOURS\" href=\"";
// line 5
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.', 5, $this->source); })()), "request", [], "any", false, false, false, 5), "getSchemeAndHttpHost", [], "method", false, false, false, 5), "html", null, true);
echo "\">
<span itemprop=\"name\">STERN TOURS</span></a>
<meta itemprop=\"position\" content=\"1\">
</li>
";
// line 9
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["breadcrumb_entries"]) || array_key_exists("breadcrumb_entries", $context) ? $context["breadcrumb_entries"] : (function () { throw new RuntimeError('Variable "breadcrumb_entries" does not exist.', 9, $this->source); })()));
$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["breadcrumb_entry"]) {
// line 10
echo " ";
// line 11
echo " <li itemscope=\"\" itemprop=\"itemListElement\" itemtype=\"http://schema.org/ListItem\">
<a itemprop=\"item\" title=\"";
// line 12
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["breadcrumb_entry"], "title", [], "any", false, false, false, 12), "html", null, true);
echo "\" href=\"";
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.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "getSchemeAndHttpHost", [], "method", false, false, false, 12), "html", null, true);
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["breadcrumb_entry"], "url", [], "any", false, false, false, 12), "html", null, true);
echo "\">
<span itemprop=\"name\">";
// line 13
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["breadcrumb_entry"], "title", [], "any", false, false, false, 13), "html", null, true);
echo "</span>
</a>
<meta itemprop=\"position\" content=\"";
// line 15
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 15) + 2), "html", null, true);
echo "\">
</li>
";
++$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['breadcrumb_entry'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 18
echo " </ol>
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "default/components/breadcrumb.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 105 => 18, 88 => 15, 83 => 13, 76 => 12, 73 => 11, 71 => 10, 54 => 9, 47 => 5, 42 => 2, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% if breadcrumb_entries is not empty %}
<div class=\"breadcrumb-holder\">
<ol class=\"breadcrumb\" itemprop=\"breadcrumb\" itemscope=\"\" itemtype=\"http://schema.org/BreadcrumbList\">
<li itemscope=\"\" itemprop=\"itemListElement\" itemtype=\"http://schema.org/ListItem\">
<a class=\"on\" itemprop=\"item\" title=\"STERN TOURS\" href=\"{{ app.request.getSchemeAndHttpHost() }}\">
<span itemprop=\"name\">STERN TOURS</span></a>
<meta itemprop=\"position\" content=\"1\">
</li>
{% for breadcrumb_entry in breadcrumb_entries %}
{# @var breadcrumb_entry \\AppBundle\\Entity\\BreadcrumbEntry #}
<li itemscope=\"\" itemprop=\"itemListElement\" itemtype=\"http://schema.org/ListItem\">
<a itemprop=\"item\" title=\"{{ breadcrumb_entry.title }}\" href=\"{{ app.request.getSchemeAndHttpHost() }}{{ breadcrumb_entry.url }}\">
<span itemprop=\"name\">{{ breadcrumb_entry.title }}</span>
</a>
<meta itemprop=\"position\" content=\"{{ loop.index0 + 2 }}\">
</li>
{% endfor %}
</ol>
</div>
{% endif %}", "default/components/breadcrumb.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/components/breadcrumb.html.twig");
}
}