var/cache/dev/twig/90/90c7338a689d0a5532b684a49a7d6b93.php line 35

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. /* snippet.twig */
  14. class __TwigTemplate_1e4cf2ae3f18a5ae96d6645fbf79bbfd 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""snippet.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""snippet.twig"));
  35.         // line 1
  36.         $context['_parent'] = $context;
  37.         $context['_seq'] = twig_ensure_traversable((isset($context["snippets"]) || array_key_exists("snippets"$context) ? $context["snippets"] : (function () { throw new RuntimeError('Variable "snippets" does not exist.'1$this->source); })()));
  38.         $context['loop'] = [
  39.           'parent' => $context['_parent'],
  40.           'index0' => 0,
  41.           'index'  => 1,
  42.           'first'  => true,
  43.         ];
  44.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  45.             $length count($context['_seq']);
  46.             $context['loop']['revindex0'] = $length 1;
  47.             $context['loop']['revindex'] = $length;
  48.             $context['loop']['length'] = $length;
  49.             $context['loop']['last'] = === $length;
  50.         }
  51.         foreach ($context['_seq'] as $context["snippet"] => $context["include"]) {
  52.             // line 2
  53.             echo "    ";
  54.             if ($context["include"]) {
  55.                 // line 3
  56.                 echo "        ";
  57.                 echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context$this->sandbox->ensureToStringAllowed($context["snippet"], 3$this->source));
  58.                 echo "
  59.     ";
  60.             } else {
  61.                 // line 5
  62.                 echo "        ";
  63.                 echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$contexttwig_template_from_string($this->env$this->sandbox->ensureToStringAllowed($context["snippet"], 5$this->source)));
  64.                 echo "
  65.     ";
  66.             }
  67.             ++$context['loop']['index0'];
  68.             ++$context['loop']['index'];
  69.             $context['loop']['first'] = false;
  70.             if (isset($context['loop']['length'])) {
  71.                 --$context['loop']['revindex0'];
  72.                 --$context['loop']['revindex'];
  73.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  74.             }
  75.         }
  76.         $_parent $context['_parent'];
  77.         unset($context['_seq'], $context['_iterated'], $context['snippet'], $context['include'], $context['_parent'], $context['loop']);
  78.         $context array_intersect_key($context$_parent) + $_parent;
  79.         
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81.         
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83.     }
  84.     public function getTemplateName()
  85.     {
  86.         return "snippet.twig";
  87.     }
  88.     public function isTraitable()
  89.     {
  90.         return false;
  91.     }
  92.     public function getDebugInfo()
  93.     {
  94.         return array (  71 => 5,  65 => 3,  62 => 2,  45 => 1,);
  95.     }
  96.     public function getSourceContext()
  97.     {
  98.         return new Source("{% for snippet, include in snippets %}
  99.     {% if include %}
  100.         {{ include(snippet) }}
  101.     {% else %}
  102.         {{ include(template_from_string(snippet)) }}
  103.     {% endif %}
  104. {% endfor %}
  105. ""snippet.twig""/home/kir018258/public_html/test.aneros.co.jp/aneros_2023_b/app/template/aneros2023/snippet.twig");
  106.     }
  107.     
  108.     public function checkSecurity()
  109.     {
  110.         static $tags = array("for" => 1"if" => 2);
  111.         static $filters = array();
  112.         static $functions = array("include" => 3"template_from_string" => 5);
  113.         try {
  114.             $this->sandbox->checkSecurity(
  115.                 ['for''if'],
  116.                 [],
  117.                 ['include''template_from_string']
  118.             );
  119.         } catch (SecurityError $e) {
  120.             $e->setSourceContext($this->source);
  121.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  122.                 $e->setTemplateLine($tags[$e->getTagName()]);
  123.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  124.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  125.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  126.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  127.             }
  128.             throw $e;
  129.         }
  130.     }
  131. }