<?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_index.xml.twig */
class __TwigTemplate_ff5f16ec8c68f0c0c8ca8d1981a67d7489fd6958e3784ed51320391404b2f5bd extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
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_index.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_index.xml.twig"));
// line 1
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">
<sitemap>
<loc>";
// line 4
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sitemap_page_xml");
echo "</loc>
<lastmod>";
// line 5
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getDateFormatFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 5, $this->source); })()), "update_date", [], "any", false, false, true, 5), 5, $this->source), "", "c"), "html", null, true);
echo "</lastmod>
</sitemap>
<sitemap>
<loc>";
// line 8
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sitemap_category_xml");
echo "</loc>
<lastmod>";
// line 9
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getDateFormatFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 9, $this->source); })()), "update_date", [], "any", false, false, true, 9), 9, $this->source), "", "c"), "html", null, true);
echo "</lastmod>
</sitemap>
";
// line 11
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, (isset($context["productPageCount"]) || array_key_exists("productPageCount", $context) ? $context["productPageCount"] : (function () { throw new RuntimeError('Variable "productPageCount" does not exist.', 11, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
// line 12
echo " <sitemap>
<loc>";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sitemap_product_xml", ["page" => $context["p"]]), "html", null, true);
echo "</loc>
<lastmod>";
// line 14
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getDateFormatFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 14, $this->source); })()), "update_date", [], "any", false, false, true, 14), 14, $this->source), "", "c"), "html", null, true);
echo "</lastmod>
</sitemap>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 17
echo "</sitemapindex>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "sitemap_index.xml.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 89 => 17, 80 => 14, 76 => 13, 73 => 12, 69 => 11, 64 => 9, 60 => 8, 54 => 5, 50 => 4, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">
<sitemap>
<loc>{{url('sitemap_page_xml')}}</loc>
<lastmod>{{Page.update_date|date_format('','c')}}</lastmod>
</sitemap>
<sitemap>
<loc>{{url('sitemap_category_xml')}}</loc>
<lastmod>{{Category.update_date|date_format('','c')}}</lastmod>
</sitemap>
{% for p in 1..productPageCount %}
<sitemap>
<loc>{{url('sitemap_product_xml', {page: p})}}</loc>
<lastmod>{{Product.update_date|date_format('','c')}}</lastmod>
</sitemap>
{% endfor %}
</sitemapindex>
", "sitemap_index.xml.twig", "/home/rfzhmmpx/public_html/bhw.world/gekiyasumeishi/shop/preprod/src/Eccube/Resource/template/default/sitemap_index.xml.twig");
}
public function checkSecurity()
{
static $tags = array("for" => 11);
static $filters = array("escape" => 5, "date_format" => 5);
static $functions = array("url" => 4, "range" => 11);
try {
$this->sandbox->checkSecurity(
['for'],
['escape', 'date_format'],
['url', 'range']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}