var/cache/dev/twig/21/2184fce59212d11d2a7629548d068936.php line 41

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. /* Help/tradelaw.twig */
  14. class __TwigTemplate_ba758ee0c40d31c9bc31cacb5bf7f78b 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->blocks = [
  23.             'stylesheet' => [$this, 'block_stylesheet'],
  24.             'main' => [$this, 'block_main'],
  25.         ];
  26.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 11
  32.         return "default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros = $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Help/tradelaw.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Help/tradelaw.twig"));
  41.         $this->parent = $this->loadTemplate("default_frame.twig", "Help/tradelaw.twig", 11);
  42.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 13
  49.     public function block_stylesheet($context, array $blocks = [])
  50.     {
  51.         $macros = $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
  56.         // line 14
  57.         echo "    <link rel=\"stylesheet\" href=\"";
  58.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/pages.css", "user_data"), "html", null, true);
  59.         echo "\">
  60. ";
  61.         
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63.         
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65.     }
  66.     // line 17
  67.     public function block_main($context, array $blocks = [])
  68.     {
  69.         $macros = $this->macros;
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  74.         // line 18
  75.         echo "    <div class=\"pages_wrap tradelaw\">
  76.         <h1> ";
  77.         // line 19
  78.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("特定商取引法に基づく表記"), "html", null, true);
  79.         echo "</h1>
  80.         <div class=\"ec-off1Grid\">
  81.             <div class=\"ec-off1Grid__cell\">
  82.                 <div class=\"ec-borderedDefs\">
  83.                     ";
  84.         // line 23
  85.         $context['_parent'] = $context;
  86.         $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["tradelaws"]) || array_key_exists("tradelaws", $context) ? $context["tradelaws"] : (function () { throw new RuntimeError('Variable "tradelaws" does not exist.', 23, $this->source); })()), function ($__t__) use ($context, $macros) { $context["t"] = $__t__; return (twig_get_attribute($this->env, $this->source, (isset($context["t"]) || array_key_exists("t", $context) ? $context["t"] : (function () { throw new RuntimeError('Variable "t" does not exist.', 23, $this->source); })()), "name", [], "any", false, false, true, 23) && twig_get_attribute($this->env, $this->source, (isset($context["t"]) || array_key_exists("t", $context) ? $context["t"] : (function () { throw new RuntimeError('Variable "t" does not exist.', 23, $this->source); })()), "description", [], "any", false, false, true, 23)); }));
  87.         foreach ($context['_seq'] as $context["_key"] => $context["tradelaw"]) {
  88.             // line 24
  89.             echo "                    <dl>
  90.                         <dt>
  91.                             <label class=\"ec-label\">";
  92.             // line 26
  93.             echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["tradelaw"], "name", [], "any", false, false, true, 26), 26, $this->source), "html", null, true);
  94.             echo "</label>
  95.                         </dt>
  96.                         <dd>";
  97.             // line 28
  98.             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["tradelaw"], "description", [], "any", false, false, true, 28), 28, $this->source);
  99.             echo "</dd>
  100.                     </dl>
  101.                     ";
  102.         }
  103.         $_parent = $context['_parent'];
  104.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tradelaw'], $context['_parent'], $context['loop']);
  105.         $context = array_intersect_key($context, $_parent) + $_parent;
  106.         // line 31
  107.         echo "                </div>
  108.             </div>
  109.         </div>
  110.     </div>
  111. ";
  112.         
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  114.         
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  116.     }
  117.     public function getTemplateName()
  118.     {
  119.         return "Help/tradelaw.twig";
  120.     }
  121.     public function isTraitable()
  122.     {
  123.         return false;
  124.     }
  125.     public function getDebugInfo()
  126.     {
  127.         return array (  126 => 31,  117 => 28,  112 => 26,  108 => 24,  104 => 23,  97 => 19,  94 => 18,  84 => 17,  71 => 14,  61 => 13,  38 => 11,);
  128.     }
  129.     public function getSourceContext()
  130.     {
  131.         return new Source("{#
  132. This file is part of EC-CUBE
  133. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  134. http://www.ec-cube.co.jp/
  135. For the full copyright and license information, please view the LICENSE
  136. file that was distributed with this source code.
  137. #}
  138. {% extends 'default_frame.twig' %}
  139. {% block stylesheet %}
  140.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/pages.css', 'user_data') }}\">
  141. {% endblock %}
  142. {% block main %}
  143.     <div class=\"pages_wrap tradelaw\">
  144.         <h1> {{ '特定商取引法に基づく表記'|trans }}</h1>
  145.         <div class=\"ec-off1Grid\">
  146.             <div class=\"ec-off1Grid__cell\">
  147.                 <div class=\"ec-borderedDefs\">
  148.                     {% for tradelaw in tradelaws|filter(t => t.name and t.description)  %}
  149.                     <dl>
  150.                         <dt>
  151.                             <label class=\"ec-label\">{{ tradelaw.name }}</label>
  152.                         </dt>
  153.                         <dd>{{ tradelaw.description|raw }}</dd>
  154.                     </dl>
  155.                     {% endfor %}
  156.                 </div>
  157.             </div>
  158.         </div>
  159.     </div>
  160. {% endblock %}", "Help/tradelaw.twig", "/home/unibo-test/www/html/app/template/default/Help/tradelaw.twig");
  161.     }
  162.     
  163.     public function checkSecurity()
  164.     {
  165.         static $tags = array("for" => 23);
  166.         static $filters = array("escape" => 14, "trans" => 19, "filter" => 23, "raw" => 28);
  167.         static $functions = array("asset" => 14);
  168.         try {
  169.             $this->sandbox->checkSecurity(
  170.                 ['for'],
  171.                 ['escape', 'trans', 'filter', 'raw'],
  172.                 ['asset'],
  173.                 $this->source
  174.             );
  175.         } catch (SecurityError $e) {
  176.             $e->setSourceContext($this->source);
  177.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  178.                 $e->setTemplateLine($tags[$e->getTagName()]);
  179.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  180.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  181.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  182.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  183.             }
  184.             throw $e;
  185.         }
  186.     }
  187. }