var/cache/dev/twig/5f/5fceda8fb75b6c7ebb56cb058594e4e0.php line 48

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @KunstmaanSitemap/Sitemap/entry.xml.twig */
  16. class __TwigTemplate_9a4e27cd937e29a95cdc12dd14036199 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = []): iterable
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@KunstmaanSitemap/Sitemap/entry.xml.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@KunstmaanSitemap/Sitemap/entry.xml.twig"));
  38.         // line 1
  39.         if ( !$this->extensions['Kunstmaan\SitemapBundle\Twig\SitemapTwigExtension']->isHiddenFromSitemap((isset($context["entry"]) || array_key_exists("entry"$context) ? $context["entry"] : (function () { throw new RuntimeError('Variable "entry" does not exist.'1$this->source); })()))) {
  40.             // line 2
  41.             yield "    <url>
  42.         <loc>";
  43.             // line 3
  44.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("_slug", ["_locale" => (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'3$this->source); })()), "url" => CoreExtension::getAttribute($this->env$this->source, (isset($context["entry"]) || array_key_exists("entry"$context) ? $context["entry"] : (function () { throw new RuntimeError('Variable "entry" does not exist.'3$this->source); })()), "slug", [], "any"falsefalsefalse3)]), "html"nulltrue);
  45.             yield "</loc>
  46.         <lastmod>";
  47.             // line 4
  48.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["entry"]) || array_key_exists("entry"$context) ? $context["entry"] : (function () { throw new RuntimeError('Variable "entry" does not exist.'4$this->source); })()), "nodeTranslation", [], "any"falsefalsefalse4), "getPublicNodeVersion", [], "method"falsefalsefalse4), "getUpdated", [], "method"falsefalsefalse4), "Y-m-d"), "html"nulltrue);
  49.             yield "</lastmod>
  50.         <priority>";
  51.             // line 5
  52.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(("0." . (isset($context["priority"]) || array_key_exists("priority"$context) ? $context["priority"] : (function () { throw new RuntimeError('Variable "priority" does not exist.'5$this->source); })())), "html"nulltrue);
  53.             yield "</priority>
  54.     </url>
  55. ";
  56.         }
  57.         // line 8
  58.         if ( !$this->extensions['Kunstmaan\SitemapBundle\Twig\SitemapTwigExtension']->isHiddenChildrenFromSitemap((isset($context["entry"]) || array_key_exists("entry"$context) ? $context["entry"] : (function () { throw new RuntimeError('Variable "entry" does not exist.'8$this->source); })()))) {
  59.             // line 9
  60.             yield "    ";
  61.             $context['_parent'] = $context;
  62.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["entry"]) || array_key_exists("entry"$context) ? $context["entry"] : (function () { throw new RuntimeError('Variable "entry" does not exist.'9$this->source); })()), "getChildren", [], "method"falsefalsefalse9));
  63.             $context['loop'] = [
  64.               'parent' => $context['_parent'],
  65.               'index0' => 0,
  66.               'index'  => 1,
  67.               'first'  => true,
  68.             ];
  69.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  70.                 $length count($context['_seq']);
  71.                 $context['loop']['revindex0'] = $length 1;
  72.                 $context['loop']['revindex'] = $length;
  73.                 $context['loop']['length'] = $length;
  74.                 $context['loop']['last'] = === $length;
  75.             }
  76.             foreach ($context['_seq'] as $context["_key"] => $context["subNode"]) {
  77.                 // line 10
  78.                 yield "        ";
  79.                 yield from $this->loadTemplate("@KunstmaanSitemap/Sitemap/entry.xml.twig""@KunstmaanSitemap/Sitemap/entry.xml.twig"10)->unwrap()->yield(CoreExtension::merge($context, ["entry" => $context["subNode"], "priority" => ((isset($context["priority"]) || array_key_exists("priority"$context) ? $context["priority"] : (function () { throw new RuntimeError('Variable "priority" does not exist.'10$this->source); })()) - 1)]));
  80.                 // line 11
  81.                 yield "    ";
  82.                 ++$context['loop']['index0'];
  83.                 ++$context['loop']['index'];
  84.                 $context['loop']['first'] = false;
  85.                 if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  86.                     --$context['loop']['revindex0'];
  87.                     --$context['loop']['revindex'];
  88.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  89.                 }
  90.             }
  91.             $_parent $context['_parent'];
  92.             unset($context['_seq'], $context['_key'], $context['subNode'], $context['_parent'], $context['loop']);
  93.             $context array_intersect_key($context$_parent) + $_parent;
  94.         }
  95.         
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  97.         
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  99.         yield from [];
  100.     }
  101.     /**
  102.      * @codeCoverageIgnore
  103.      */
  104.     public function getTemplateName(): string
  105.     {
  106.         return "@KunstmaanSitemap/Sitemap/entry.xml.twig";
  107.     }
  108.     /**
  109.      * @codeCoverageIgnore
  110.      */
  111.     public function isTraitable(): bool
  112.     {
  113.         return false;
  114.     }
  115.     /**
  116.      * @codeCoverageIgnore
  117.      */
  118.     public function getDebugInfo(): array
  119.     {
  120.         return array (  90 => 11,  87 => 10,  69 => 9,  67 => 8,  61 => 5,  57 => 4,  53 => 3,  50 => 2,  48 => 1,);
  121.     }
  122.     public function getSourceContext(): Source
  123.     {
  124.         return new Source("{% if not hide_from_sitemap(entry) %}
  125.     <url>
  126.         <loc>{{ url('_slug', { '_locale': locale, 'url': entry.slug }) }}</loc>
  127.         <lastmod>{{ entry.nodeTranslation.getPublicNodeVersion().getUpdated()|date('Y-m-d') }}</lastmod>
  128.         <priority>{{ \"0.\" ~ priority }}</priority>
  129.     </url>
  130. {% endif %}
  131. {% if not hide_children_from_sitemap(entry) %}
  132.     {% for subNode in entry.getChildren() %}
  133.         {% include '@KunstmaanSitemap/Sitemap/entry.xml.twig' with {'entry' : subNode, 'priority' : (priority - 1) } %}
  134.     {% endfor %}
  135. {% endif %}
  136. ""@KunstmaanSitemap/Sitemap/entry.xml.twig""/home/u363484990/domains/iut-udc.online/public_html/vendor/kunstmaan/sitemap-bundle/Resources/views/Sitemap/entry.xml.twig");
  137.     }
  138. }