var/cache/dev/twig/29/297cf95f653fa3769c54cc0173762969bed935625875d7c2a57bb829a457b01c.php line 16

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. /* sitemap.xml.twig */
  14. class __TwigTemplate_d61384ad68a17a4054dcbf39a1d93e8f44bd4c809f129c89bf945dc1f17a1219 extends \eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate
  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""sitemap.xml.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""sitemap.xml.twig"));
  33.         // line 1
  34.         echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
  35. <urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">
  36.     <url>
  37.         <loc>";
  38.         // line 4
  39.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("ez_urlalias", ["locationId" => twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse4), "id", [], "any"falsefalsefalse4)]), "html"nulltrue);
  40.         echo "</loc>
  41.     </url>
  42.     ";
  43.         // line 6
  44.         $context['_parent'] = $context;
  45.         $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); })()));
  46.         foreach ($context['_seq'] as $context["_key"] => $context["location"]) {
  47.             // line 7
  48.             echo "        <url>
  49.             <loc>";
  50.             // line 8
  51.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("ez_urlalias", ["locationId" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["location"], "valueObject", [], "any"falsefalsefalse8), "id", [], "any"falsefalsefalse8)]), "html"nulltrue);
  52.             echo "</loc>
  53.         </url>
  54.     ";
  55.         }
  56.         $_parent $context['_parent'];
  57.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['location'], $context['_parent'], $context['loop']);
  58.         $context array_intersect_key($context$_parent) + $_parent;
  59.         // line 11
  60.         echo "</urlset>";
  61.         
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  63.         
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  65.     }
  66.     public function getTemplateName()
  67.     {
  68.         return "sitemap.xml.twig";
  69.     }
  70.     public function isTraitable()
  71.     {
  72.         return false;
  73.     }
  74.     public function getDebugInfo()
  75.     {
  76.         return array (  69 => 11,  60 => 8,  57 => 7,  53 => 6,  48 => 4,  43 => 1,);
  77.     }
  78.     public function getSourceContext()
  79.     {
  80.         return new Source("<?xml version=\"1.0\" encoding=\"UTF-8\"?>
  81. <urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">
  82.     <url>
  83.         <loc>{{ url( 'ez_urlalias', {'locationId': ezpublish.rootLocation.id } ) }}</loc>
  84.     </url>
  85.     {% for location in searchHits %}
  86.         <url>
  87.             <loc>{{ url( 'ez_urlalias', {'locationId': location.valueObject.id } ) }}</loc>
  88.         </url>
  89.     {% endfor %}
  90. </urlset>""sitemap.xml.twig""/var/www/app/Resources/views/sitemap.xml.twig");
  91.     }
  92. }