var/cache/dev/twig/3a/3a445d28e9b499be4e51473658bd68b149e01cea03d632db89fc5c36453a9a48.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_index.xml.twig */
  14. class __TwigTemplate_ff5f16ec8c68f0c0c8ca8d1981a67d7489fd6958e3784ed51320391404b2f5bd extends \Eccube\Twig\Template
  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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""sitemap_index.xml.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""sitemap_index.xml.twig"));
  35.         // line 1
  36.         echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
  37. <sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">
  38.     <sitemap>
  39.         <loc>";
  40.         // line 4
  41.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sitemap_page_xml");
  42.         echo "</loc>
  43.         <lastmod>";
  44.         // line 5
  45.         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"falsefalsetrue5), 5$this->source), """c"), "html"nulltrue);
  46.         echo "</lastmod>
  47.     </sitemap>
  48.     <sitemap>
  49.         <loc>";
  50.         // line 8
  51.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sitemap_category_xml");
  52.         echo "</loc>
  53.         <lastmod>";
  54.         // line 9
  55.         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"falsefalsetrue9), 9$this->source), """c"), "html"nulltrue);
  56.         echo "</lastmod>
  57.     </sitemap>
  58.     ";
  59.         // line 11
  60.         $context['_parent'] = $context;
  61.         $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); })())));
  62.         foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
  63.             // line 12
  64.             echo "        <sitemap>
  65.             <loc>";
  66.             // line 13
  67.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sitemap_product_xml", ["page" => $context["p"]]), "html"nulltrue);
  68.             echo "</loc>
  69.             <lastmod>";
  70.             // line 14
  71.             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"falsefalsetrue14), 14$this->source), """c"), "html"nulltrue);
  72.             echo "</lastmod>
  73.         </sitemap>
  74.     ";
  75.         }
  76.         $_parent $context['_parent'];
  77.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
  78.         $context array_intersect_key($context$_parent) + $_parent;
  79.         // line 17
  80.         echo "</sitemapindex>
  81. ";
  82.         
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  84.         
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  86.     }
  87.     public function getTemplateName()
  88.     {
  89.         return "sitemap_index.xml.twig";
  90.     }
  91.     public function isTraitable()
  92.     {
  93.         return false;
  94.     }
  95.     public function getDebugInfo()
  96.     {
  97.         return array (  89 => 17,  80 => 14,  76 => 13,  73 => 12,  69 => 11,  64 => 9,  60 => 8,  54 => 5,  50 => 4,  45 => 1,);
  98.     }
  99.     public function getSourceContext()
  100.     {
  101.         return new Source("<?xml version=\"1.0\" encoding=\"UTF-8\"?>
  102. <sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">
  103.     <sitemap>
  104.         <loc>{{url('sitemap_page_xml')}}</loc>
  105.         <lastmod>{{Page.update_date|date_format('','c')}}</lastmod>
  106.     </sitemap>
  107.     <sitemap>
  108.         <loc>{{url('sitemap_category_xml')}}</loc>
  109.         <lastmod>{{Category.update_date|date_format('','c')}}</lastmod>
  110.     </sitemap>
  111.     {% for p in 1..productPageCount %}
  112.         <sitemap>
  113.             <loc>{{url('sitemap_product_xml', {page: p})}}</loc>
  114.             <lastmod>{{Product.update_date|date_format('','c')}}</lastmod>
  115.         </sitemap>
  116.     {% endfor %}
  117. </sitemapindex>
  118. ""sitemap_index.xml.twig""/home/rfzhmmpx/public_html/bhw.world/gekiyasumeishi/shop/preprod/src/Eccube/Resource/template/default/sitemap_index.xml.twig");
  119.     }
  120.     
  121.     public function checkSecurity()
  122.     {
  123.         static $tags = array("for" => 11);
  124.         static $filters = array("escape" => 5"date_format" => 5);
  125.         static $functions = array("url" => 4"range" => 11);
  126.         try {
  127.             $this->sandbox->checkSecurity(
  128.                 ['for'],
  129.                 ['escape''date_format'],
  130.                 ['url''range']
  131.             );
  132.         } catch (SecurityError $e) {
  133.             $e->setSourceContext($this->source);
  134.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  135.                 $e->setTemplateLine($tags[$e->getTagName()]);
  136.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  137.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  138.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  139.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  140.             }
  141.             throw $e;
  142.         }
  143.     }
  144. }