var/cache/dev/twig/47/477fc35b0583cd53ff5a977eb23dfadabc7d6ff4f486480a83f4ea1d09031f32.php line 66

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. /* @admin/snippet.twig */
  14. class __TwigTemplate_03248ebd409496fa62333e9be39480c8b29c5c34da536ab7732029f4c9f8d0fd 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""@admin/snippet.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""@admin/snippet.twig"));
  35.         // line 11
  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.'11$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 12
  53.             echo "    ";
  54.             if ($context["include"]) {
  55.                 // line 13
  56.                 echo "        ";
  57.                 echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context$this->sandbox->ensureToStringAllowed($context["snippet"], 13$this->source));
  58.                 echo "
  59.     ";
  60.             } else {
  61.                 // line 15
  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"], 15$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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  81.         
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  83.     }
  84.     public function getTemplateName()
  85.     {
  86.         return "@admin/snippet.twig";
  87.     }
  88.     public function isTraitable()
  89.     {
  90.         return false;
  91.     }
  92.     public function getDebugInfo()
  93.     {
  94.         return array (  71 => 15,  65 => 13,  62 => 12,  45 => 11,);
  95.     }
  96.     public function getSourceContext()
  97.     {
  98.         return new Source("{#
  99. This file is part of EC-CUBE
  100. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  101. http://www.ec-cube.co.jp/
  102. For the full copyright and license information, please view the LICENSE
  103. file that was distributed with this source code.
  104. #}
  105. {% for snippet, include in snippets %}
  106.     {% if include %}
  107.         {{ include(snippet) }}
  108.     {% else %}
  109.         {{ include(template_from_string(snippet)) }}
  110.     {% endif %}
  111. {% endfor %}
  112. ""@admin/snippet.twig""/home/nakatomishop/www/NfNudtBdkd/src/Eccube/Resource/template/admin/snippet.twig");
  113.     }
  114.     
  115.     public function checkSecurity()
  116.     {
  117.         static $tags = array("for" => 11"if" => 12);
  118.         static $filters = array();
  119.         static $functions = array("include" => 13"template_from_string" => 15);
  120.         try {
  121.             $this->sandbox->checkSecurity(
  122.                 ['for''if'],
  123.                 [],
  124.                 ['include''template_from_string']
  125.             );
  126.         } catch (SecurityError $e) {
  127.             $e->setSourceContext($this->source);
  128.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  129.                 $e->setTemplateLine($tags[$e->getTagName()]);
  130.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  131.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  132.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  133.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  134.             }
  135.             throw $e;
  136.         }
  137.     }
  138. }