var/cache/dev/twig/c0/c03ee0c0d852ef0d14d371f358413ba5.php line 75

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_4865d1cea07aa540c2b05e5a50c91687 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.         $__eccube__gblobal $this->env->getGlobals();
  34.         $__eccube__eventDispatcher $__eccube__gblobal['event_dispatcher'];
  35.         $__eccube__source $this->env->getLoader()->getSourceContext($this->getTemplateName())->getCode();
  36.         $__eccube__event = new \Eccube\Event\TemplateEvent($this->getTemplateName(), $__eccube__source$context);
  37.         $__eccube__eventDispatcher->dispatch($__eccube__event$this->getTemplateName());
  38.         $context $__eccube__event->getParameters();
  39.         if ($__eccube__event->getSource() !== $__eccube__source) {
  40.             $__eccube__newTemplate $this->env->createTemplate($__eccube__event->getSource());
  41.             $__eccube__newTemplate->display($__eccube__event->getParameters(), $blocks);
  42.             return;
  43.         }
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""block.twig"));
  46.         // line 11
  47.         $context['_parent'] = $context;
  48.         $context['_seq'] = twig_ensure_traversable((isset($context["Blocks"]) || array_key_exists("Blocks"$context) ? $context["Blocks"] : (function () { throw new RuntimeError('Variable "Blocks" does not exist.'11$this->source); })()));
  49.         foreach ($context['_seq'] as $context["_key"] => $context["Block"]) {
  50.             // line 12
  51.             echo "    <!-- ▼";
  52.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Block"], "name", [], "any"falsefalsetrue12), 12$this->source), "html"nulltrue);
  53.             echo " -->
  54.     ";
  55.             // line 13
  56.             if (twig_get_attribute($this->env$this->source$context["Block"], "use_controller", [], "any"falsefalsetrue13)) {
  57.                 // line 14
  58.                 echo "        ";
  59.                 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"falsefalsetrue14), 14$this->source))));
  60.                 echo "
  61.     ";
  62.             } else {
  63.                 // line 16
  64.                 echo "        ";
  65.                 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"falsefalsetrue16), 16$this->source)) . ".twig"));
  66.                 echo "
  67.     ";
  68.             }
  69.             // line 18
  70.             echo "    <!-- ▲";
  71.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Block"], "name", [], "any"falsefalsetrue18), 18$this->source), "html"nulltrue);
  72.             echo " -->
  73. ";
  74.         }
  75.         $_parent $context['_parent'];
  76.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Block'], $context['_parent'], $context['loop']);
  77.         $context array_intersect_key($context$_parent) + $_parent;
  78.         
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  80.         
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  82.     }
  83.     public function getTemplateName()
  84.     {
  85.         return "block.twig";
  86.     }
  87.     public function isTraitable()
  88.     {
  89.         return false;
  90.     }
  91.     public function getDebugInfo()
  92.     {
  93.         return array (  80 => 18,  74 => 16,  68 => 14,  66 => 13,  61 => 12,  57 => 11,);
  94.     }
  95.     public function getSourceContext()
  96.     {
  97.         return new Source("{#
  98. This file is part of EC-CUBE
  99. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  100. http://www.ec-cube.co.jp/
  101. For the full copyright and license information, please view the LICENSE
  102. file that was distributed with this source code.
  103. #}
  104. {% for Block in Blocks %}
  105.     <!-- ▼{{ Block.name }} -->
  106.     {% if Block.use_controller %}
  107.         {{ render(path('block_' ~ Block.file_name)) }}
  108.     {% else %}
  109.         {{ include_dispatch('Block/' ~ Block.file_name ~ '.twig') }}
  110.     {% endif %}
  111.     <!-- ▲{{ Block.name }} -->
  112. {% endfor %}
  113. ""block.twig""/var/www/shop.temptu.co.jp/public_html/app/template/temptu/block.twig");
  114.     }
  115.     
  116.     public function checkSecurity()
  117.     {
  118.         static $tags = array("for" => 11"if" => 13);
  119.         static $filters = array("escape" => 12);
  120.         static $functions = array("render" => 14"path" => 14"include_dispatch" => 16);
  121.         try {
  122.             $this->sandbox->checkSecurity(
  123.                 ['for''if'],
  124.                 ['escape'],
  125.                 ['render''path''include_dispatch']
  126.             );
  127.         } catch (SecurityError $e) {
  128.             $e->setSourceContext($this->source);
  129.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  130.                 $e->setTemplateLine($tags[$e->getTagName()]);
  131.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  132.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  133.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  134.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  135.             }
  136.             throw $e;
  137.         }
  138.     }
  139. }