var/cache/dev/twig/cf/cfe1cb17dee7516c32f6942ecc9f5082.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. /* block.twig */
  14. class __TwigTemplate_61829d3d14731fc6efaafb9e9558ea32 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""block.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""block.twig"));
  35.         // line 1
  36.         $context['_parent'] = $context;
  37.         $context['_seq'] = twig_ensure_traversable((isset($context["Blocks"]) || array_key_exists("Blocks"$context) ? $context["Blocks"] : (function () { throw new RuntimeError('Variable "Blocks" does not exist.'1$this->source); })()));
  38.         foreach ($context['_seq'] as $context["_key"] => $context["Block"]) {
  39.             // line 2
  40.             echo "    <!-- ▼";
  41.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Block"], "name", [], "any"falsefalsetrue2), 2$this->source), "html"nulltrue);
  42.             echo " -->
  43.     ";
  44.             // line 3
  45.             if (twig_get_attribute($this->env$this->source$context["Block"], "use_controller", [], "any"falsefalsetrue3)) {
  46.                 // line 4
  47.                 echo "        ";
  48.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(("block_" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Block"], "file_name", [], "any"falsefalsetrue4), 4$this->source))));
  49.                 echo "
  50.     ";
  51.             } else {
  52.                 // line 6
  53.                 echo "        ";
  54.                 echo $this->extensions['Eccube\Twig\Extension\TwigIncludeExtension']->include_dispatch($context, (("Block/" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Block"], "file_name", [], "any"falsefalsetrue6), 6$this->source)) . ".twig"));
  55.                 echo "
  56.     ";
  57.             }
  58.             // line 8
  59.             echo "    <!-- ▲";
  60.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Block"], "name", [], "any"falsefalsetrue8), 8$this->source), "html"nulltrue);
  61.             echo " -->
  62. ";
  63.         }
  64.         $_parent $context['_parent'];
  65.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Block'], $context['_parent'], $context['loop']);
  66.         $context array_intersect_key($context$_parent) + $_parent;
  67.         
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  69.         
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  71.     }
  72.     public function getTemplateName()
  73.     {
  74.         return "block.twig";
  75.     }
  76.     public function isTraitable()
  77.     {
  78.         return false;
  79.     }
  80.     public function getDebugInfo()
  81.     {
  82.         return array (  68 => 8,  62 => 6,  56 => 4,  54 => 3,  49 => 2,  45 => 1,);
  83.     }
  84.     public function getSourceContext()
  85.     {
  86.         return new Source("{% for Block in Blocks %}
  87.     <!-- ▼{{ Block.name }} -->
  88.     {% if Block.use_controller %}
  89.         {{ render(path('block_' ~ Block.file_name)) }}
  90.     {% else %}
  91.         {{ include_dispatch('Block/' ~ Block.file_name ~ '.twig') }}
  92.     {% endif %}
  93.     <!-- ▲{{ Block.name }} -->
  94. {% endfor %}
  95. ""block.twig""/home/apex4biotop/public_html/dev.biotop.ne.jp/app/template/biotop/block.twig");
  96.     }
  97.     
  98.     public function checkSecurity()
  99.     {
  100.         static $tags = array("for" => 1"if" => 3);
  101.         static $filters = array("escape" => 2);
  102.         static $functions = array("render" => 4"path" => 4"include_dispatch" => 6);
  103.         try {
  104.             $this->sandbox->checkSecurity(
  105.                 ['for''if'],
  106.                 ['escape'],
  107.                 ['render''path''include_dispatch']
  108.             );
  109.         } catch (SecurityError $e) {
  110.             $e->setSourceContext($this->source);
  111.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  112.                 $e->setTemplateLine($tags[$e->getTagName()]);
  113.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  114.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  115.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  116.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  117.             }
  118.             throw $e;
  119.         }
  120.     }
  121. }