<?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;
/* sitemap.xml.twig */
class __TwigTemplate_d61384ad68a17a4054dcbf39a1d93e8f44bd4c809f129c89bf945dc1f17a1219 extends \eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate
{
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", "sitemap.xml.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "sitemap.xml.twig"));
// line 1
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">
<url>
<loc>";
// line 4
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("ez_urlalias", ["locationId" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ezpublish"]) || array_key_exists("ezpublish", $context) ? $context["ezpublish"] : (function () { throw new RuntimeError('Variable "ezpublish" does not exist.', 4, $this->source); })()), "rootLocation", [], "any", false, false, false, 4), "id", [], "any", false, false, false, 4)]), "html", null, true);
echo "</loc>
</url>
";
// line 6
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["searchHits"]) || array_key_exists("searchHits", $context) ? $context["searchHits"] : (function () { throw new RuntimeError('Variable "searchHits" does not exist.', 6, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["location"]) {
// line 7
echo " <url>
<loc>";
// line 8
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("ez_urlalias", ["locationId" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["location"], "valueObject", [], "any", false, false, false, 8), "id", [], "any", false, false, false, 8)]), "html", null, true);
echo "</loc>
</url>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['location'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 11
echo "</urlset>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "sitemap.xml.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 69 => 11, 60 => 8, 57 => 7, 53 => 6, 48 => 4, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">
<url>
<loc>{{ url( 'ez_urlalias', {'locationId': ezpublish.rootLocation.id } ) }}</loc>
</url>
{% for location in searchHits %}
<url>
<loc>{{ url( 'ez_urlalias', {'locationId': location.valueObject.id } ) }}</loc>
</url>
{% endfor %}
</urlset>", "sitemap.xml.twig", "/var/www/app/Resources/views/sitemap.xml.twig");
}
}