var/cache/dev/twig/cd/cd26d445e16c4ca57d988aa43dd9ced6.php line 51

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. /* Product/list.twig */
  14. class __TwigTemplate_9647ee59ccda4f52ddadd20d08c94185 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.             'javascript' => [$this'block_javascript'],
  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""Product/list.twig"));
  39.         // line 14
  40.         $context["body_class"] = ("product_page cate" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["Category"] ?? null), "id", [], "any"falsefalsetrue14), 14$this->source));
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.     }
  47.     // line 16
  48.     public function block_javascript($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  53.         // line 17
  54.         echo "    <script>
  55.         eccube.productsClassCategories = {
  56.             ";
  57.         // line 19
  58.         $context['_parent'] = $context;
  59.         $context['_seq'] = twig_ensure_traversable(($context["pagination"] ?? null));
  60.         $context['loop'] = [
  61.           'parent' => $context['_parent'],
  62.           'index0' => 0,
  63.           'index'  => 1,
  64.           'first'  => true,
  65.         ];
  66.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  67.             $length count($context['_seq']);
  68.             $context['loop']['revindex0'] = $length 1;
  69.             $context['loop']['revindex'] = $length;
  70.             $context['loop']['length'] = $length;
  71.             $context['loop']['last'] = === $length;
  72.         }
  73.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  74.             // line 20
  75.             echo "            \"";
  76.             echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue20), 20$this->source), "js"), "html"nulltrue);
  77.             echo "\": ";
  78.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 20$this->source));
  79.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue20) == false)) {
  80.                 echo ", ";
  81.             }
  82.             // line 21
  83.             echo "            ";
  84.             ++$context['loop']['index0'];
  85.             ++$context['loop']['index'];
  86.             $context['loop']['first'] = false;
  87.             if (isset($context['loop']['length'])) {
  88.                 --$context['loop']['revindex0'];
  89.                 --$context['loop']['revindex'];
  90.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  91.             }
  92.         }
  93.         $_parent $context['_parent'];
  94.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  95.         $context array_intersect_key($context$_parent) + $_parent;
  96.         // line 22
  97.         echo "        };
  98.         \$(function() {
  99.             // 表示件数を変更
  100.             \$('.disp-number').change(function() {
  101.                 var dispNumber = \$(this).val();
  102.                 \$('#disp_number').val(dispNumber);
  103.                 \$('#pageno').val(1);
  104.                 \$(\"#form1\").submit();
  105.             });
  106.             // 並び順を変更
  107.             \$('.order-by').change(function() {
  108.                 var orderBy = \$(this).val();
  109.                 \$('#orderby').val(orderBy);
  110.                 \$('#pageno').val(1);
  111.                 \$(\"#form1\").submit();
  112.             });
  113.             \$('.add-cart').on('click', function(e) {
  114.                 var \$form = \$(this).parents('li').find('form');
  115.                 // 個数フォームのチェック
  116.                 var \$quantity = \$form.parent().find('.quantity');
  117.                 if (\$quantity.val() < 1) {
  118.                     \$quantity[0].setCustomValidity('";
  119.         // line 48
  120.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  121.         echo "');
  122.                     setTimeout(function() {
  123.                         loadingOverlay('hide');
  124.                     }, 100);
  125.                     return true;
  126.                 } else {
  127.                     \$quantity[0].setCustomValidity('');
  128.                 }
  129.                 e.preventDefault();
  130.                 \$.ajax({
  131.                     url: \$form.attr('action'),
  132.                     type: \$form.attr('method'),
  133.                     data: \$form.serialize(),
  134.                     dataType: 'json',
  135.                     beforeSend: function(xhr, settings) {
  136.                         // Buttonを無効にする
  137.                         \$('.add-cart').prop('disabled', true);
  138.                     }
  139.                 }).done(function(data) {
  140.                     // レスポンス内のメッセージをalertで表示
  141.                     \$.each(data.messages, function() {
  142.                         \$('#ec-modal-header').text(this);
  143.                     });
  144.                     \$('.ec-modal').show()
  145.                     // カートブロックを更新する
  146.                     \$.ajax({
  147.                         url: '";
  148.         // line 76
  149.         echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("block_cart");
  150.         echo "',
  151.                         type: 'GET',
  152.                         dataType: 'html'
  153.                     }).done(function(html) {
  154.                         \$('.ec-headerRole__cart').html(html);
  155.                     });
  156.                 }).fail(function(data) {
  157.                     alert('";
  158.         // line 83
  159.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  160.         echo "');
  161.                 }).always(function(data) {
  162.                     // Buttonを有効にする
  163.                     \$('.add-cart').prop('disabled', false);
  164.                 });
  165.             });
  166.         });
  167.         \$('.ec-modal-wrap').on('click', function(e) {
  168.             // モーダル内の処理は外側にバブリングさせない
  169.             e.stopPropagation();
  170.         });
  171.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  172.             \$('.ec-modal').hide()
  173.         });
  174.     </script>
  175. ";
  176.         
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  178.     }
  179.     // line 101
  180.     public function block_main($context, array $blocks = [])
  181.     {
  182.         $macros $this->macros;
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  184.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  185.         // line 102
  186.         echo "    ";
  187.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "category_id", [], "any"falsefalsetrue102), "vars", [], "any"falsefalsetrue102), "errors", [], "any"falsefalsetrue102)) > 0)) {
  188.             // line 103
  189.             echo "        <div class=\"ec-searchnavRole\">
  190.             <p class=\"errormsg text-danger\">";
  191.             // line 104
  192.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  193.             echo "</p>
  194.         </div>
  195.     ";
  196.         } else {
  197.             // line 107
  198.             echo "        <div class=\"ec-searchnavRole\">
  199.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  200.                 ";
  201.             // line 109
  202.             $context['_parent'] = $context;
  203.             $context['_seq'] = twig_ensure_traversable(($context["search_form"] ?? null));
  204.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  205.                 // line 110
  206.                 echo "                    <input type=\"hidden\" id=\"";
  207.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue110), "id", [], "any"falsefalsetrue110), 110$this->source), "html"nulltrue);
  208.                 echo "\"
  209.                            name=\"";
  210.                 // line 111
  211.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue111), "full_name", [], "any"falsefalsetrue111), 111$this->source), "html"nulltrue);
  212.                 echo "\"
  213.                            ";
  214.                 // line 112
  215.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue112), "value", [], "any"falsefalsetrue112))) {
  216.                     echo "value=\"";
  217.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue112), "value", [], "any"falsefalsetrue112), 112$this->source), "html"nulltrue);
  218.                     echo "\" ";
  219.                 }
  220.                 echo "/>
  221.                 ";
  222.             }
  223.             $_parent $context['_parent'];
  224.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  225.             $context array_intersect_key($context$_parent) + $_parent;
  226.             // line 114
  227.             echo "            </form>
  228.             <div class=\"ec-searchnavRole__topicpath\">
  229.                 <ol class=\"ec-topicpath\">
  230.                     <li class=\"ec-topicpath__item\"><a href=\"";
  231.             // line 117
  232.             echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_list");
  233.             echo "\">";
  234.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  235.             echo "</a>
  236.                     </li>
  237.                     ";
  238.             // line 119
  239.             if ( !(null === ($context["Category"] ?? null))) {
  240.                 // line 120
  241.                 echo "                        ";
  242.                 $context['_parent'] = $context;
  243.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, ($context["Category"] ?? null), "path", [], "any"falsefalsetrue120));
  244.                 $context['loop'] = [
  245.                   'parent' => $context['_parent'],
  246.                   'index0' => 0,
  247.                   'index'  => 1,
  248.                   'first'  => true,
  249.                 ];
  250.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  251.                     $length count($context['_seq']);
  252.                     $context['loop']['revindex0'] = $length 1;
  253.                     $context['loop']['revindex'] = $length;
  254.                     $context['loop']['length'] = $length;
  255.                     $context['loop']['last'] = === $length;
  256.                 }
  257.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  258.                     // line 121
  259.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  260.                             <li class=\"ec-topicpath__item";
  261.                     // line 122
  262.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue122)) {
  263.                         echo "--active";
  264.                     }
  265.                     echo "\"><a
  266.                                         href=\"";
  267.                     // line 123
  268.                     echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_list");
  269.                     echo "?category_id=";
  270.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsetrue123), 123$this->source), "html"nulltrue);
  271.                     echo "\">";
  272.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsetrue123), 123$this->source), "html"nulltrue);
  273.                     echo "</a>
  274.                             </li>
  275.                         ";
  276.                     ++$context['loop']['index0'];
  277.                     ++$context['loop']['index'];
  278.                     $context['loop']['first'] = false;
  279.                     if (isset($context['loop']['length'])) {
  280.                         --$context['loop']['revindex0'];
  281.                         --$context['loop']['revindex'];
  282.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  283.                     }
  284.                 }
  285.                 $_parent $context['_parent'];
  286.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  287.                 $context array_intersect_key($context$_parent) + $_parent;
  288.                 // line 126
  289.                 echo "                    ";
  290.             }
  291.             // line 127
  292.             echo "                    ";
  293.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsetrue127), "value", [], "any"falsefalsetrue127) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsetrue127), "value", [], "any"falsefalsetrue127), "name", [], "any"falsefalsetrue127))) {
  294.                 // line 128
  295.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  296.                         <li class=\"ec-topicpath__item\">";
  297.                 // line 129
  298.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("「%name%」の検索結果", ["%name%" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsetrue129), "value", [], "any"falsefalsetrue129), "name", [], "any"falsefalsetrue129)]), "html"nulltrue);
  299.                 echo "</li>
  300.                     ";
  301.             }
  302.             // line 131
  303.             echo "                </ol>
  304.             </div>
  305.             <div class=\"ec-searchnavRole__infos\">
  306.                 <div class=\"ec-searchnavRole__counter\">
  307.                     ";
  308.             // line 135
  309.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsetrue135) > 0)) {
  310.                 // line 136
  311.                 echo "                        ";
  312.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>", ["%count%" => twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsetrue136)]);
  313.                 echo "
  314.                     ";
  315.             } else {
  316.                 // line 138
  317.                 echo "                        <span>";
  318.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  319.                 echo "</span>
  320.                     ";
  321.             }
  322.             // line 140
  323.             echo "                </div>
  324.                 ";
  325.             // line 141
  326.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsetrue141) > 0)) {
  327.                 // line 142
  328.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  329.                         <div class=\"ec-select\">
  330.                             ";
  331.                 // line 144
  332.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "disp_number", [], "any"falsefalsetrue144), 144$this->source), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  333.                 echo "
  334.                             ";
  335.                 // line 145
  336.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "orderby", [], "any"falsefalsetrue145), 145$this->source), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  337.                 echo "
  338.                         </div>
  339.                     </div>
  340.                 ";
  341.             }
  342.             // line 149
  343.             echo "            </div>
  344.         </div>
  345.         ";
  346.             // line 151
  347.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsetrue151) > 0)) {
  348.                 // line 152
  349.                 echo "            <div class=\"ec-shelfRole\">
  350.                 <ul class=\"ec-shelfGrid\">
  351.                     ";
  352.                 // line 154
  353.                 $context['_parent'] = $context;
  354.                 $context['_seq'] = twig_ensure_traversable(($context["pagination"] ?? null));
  355.                 $context['loop'] = [
  356.                   'parent' => $context['_parent'],
  357.                   'index0' => 0,
  358.                   'index'  => 1,
  359.                   'first'  => true,
  360.                 ];
  361.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  362.                     $length count($context['_seq']);
  363.                     $context['loop']['revindex0'] = $length 1;
  364.                     $context['loop']['revindex'] = $length;
  365.                     $context['loop']['length'] = $length;
  366.                     $context['loop']['last'] = === $length;
  367.                 }
  368.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  369.                     // line 155
  370.                     echo "                        <li class=\"ec-shelfGrid__item\">
  371.                             <a href=\"";
  372.                     // line 156
  373.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue156)]), "html"nulltrue);
  374.                     echo "\">
  375.                                 <p class=\"ec-shelfGrid__item-image\">
  376.                                     <img src=\"";
  377.                     // line 158
  378.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsetrue158), 158$this->source)), "save_image"), "html"nulltrue);
  379.                     echo "\" alt=\"";
  380.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue158), 158$this->source), "html"nulltrue);
  381.                     echo "\" ";
  382.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue158) > 5)) {
  383.                         echo " loading=\"lazy\"";
  384.                     }
  385.                     echo ">
  386.                                 </p>
  387.                                 <p class=\"item_name\">";
  388.                     // line 160
  389.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue160), 160$this->source), "html"nulltrue);
  390.                     echo "</p>
  391.                                 ";
  392.                     // line 161
  393.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsetrue161)) {
  394.                         // line 162
  395.                         echo "                                    <p>";
  396.                         echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsetrue162), 162$this->source));
  397.                         echo "</p>
  398.                                 ";
  399.                     }
  400.                     // line 164
  401.                     echo "                                <p class=\"price02-default\">
  402.                                     ";
  403.                     // line 165
  404.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsetrue165)) {
  405.                         // line 166
  406.                         echo "                                        ";
  407.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsetrue166) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsetrue166))) {
  408.                             // line 167
  409.                             echo "                                            ";
  410.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue167), 167$this->source)), "html"nulltrue);
  411.                             echo "
  412.                                         ";
  413.                         } else {
  414.                             // line 169
  415.                             echo "                                            ";
  416.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue169), 169$this->source)), "html"nulltrue);
  417.                             echo " ~ ";
  418.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsetrue169), 169$this->source)), "html"nulltrue);
  419.                             echo "
  420.                                         ";
  421.                         }
  422.                         // line 171
  423.                         echo "                                    ";
  424.                     } else {
  425.                         // line 172
  426.                         echo "                                        ";
  427.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue172), 172$this->source)), "html"nulltrue);
  428.                         echo "
  429.                                     ";
  430.                     }
  431.                     // line 174
  432.                     echo "                                </p>
  433.                             </a>
  434.                             ";
  435.                     // line 177
  436.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsetrue177)) {
  437.                         // line 178
  438.                         echo "                                ";
  439.                         $context["form"] = (($__internal_compile_0 = ($context["forms"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue178)] ?? null) : null);
  440.                         // line 179
  441.                         echo "                                <!--form name=\"form";
  442.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue179), 179$this->source), "html"nulltrue);
  443.                         echo "\" id=\"productForm";
  444.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue179), 179$this->source), "html"nulltrue);
  445.                         echo "\" action=\"";
  446.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue179)]), "html"nulltrue);
  447.                         echo "\" method=\"post\">
  448.                                     <div class=\"ec-productRole__actions\">
  449.                                         ";
  450.                         // line 181
  451.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruetrue181)) {
  452.                             // line 182
  453.                             echo "                                            <div class=\"ec-select\">
  454.                                                 ";
  455.                             // line 183
  456.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"falsefalsetrue183), 183$this->source), 'widget');
  457.                             echo "
  458.                                                 ";
  459.                             // line 184
  460.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"falsefalsetrue184), 184$this->source), 'errors');
  461.                             echo "
  462.                                             </div>
  463.                                             ";
  464.                             // line 186
  465.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruetrue186)) {
  466.                                 // line 187
  467.                                 echo "                                                <div class=\"ec-select\">
  468.                                                     ";
  469.                                 // line 188
  470.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"falsefalsetrue188), 188$this->source), 'widget');
  471.                                 echo "
  472.                                                     ";
  473.                                 // line 189
  474.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"falsefalsetrue189), 189$this->source), 'errors');
  475.                                 echo "
  476.                                                 </div>
  477.                                             ";
  478.                             }
  479.                             // line 192
  480.                             echo "                                        ";
  481.                         }
  482.                         // line 193
  483.                         echo "                                        <div class=\"ec-numberInput\"><span>";
  484.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  485.                         echo "</span>
  486.                                             ";
  487.                         // line 194
  488.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "quantity", [], "any"falsefalsetrue194), 194$this->source), 'widget', ["attr" => ["class" => "quantity"]]);
  489.                         echo "
  490.                                             ";
  491.                         // line 195
  492.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "quantity", [], "any"falsefalsetrue195), 195$this->source), 'errors');
  493.                         echo "
  494.                                         </div>
  495.                                     </div>
  496.                                     ";
  497.                         // line 198
  498.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(($context["form"] ?? null), 198$this->source), 'rest');
  499.                         echo "
  500.                                 </form-->
  501.                                 <!--div class=\"ec-productRole__btn\">
  502.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  503.                         // line 201
  504.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue201), 201$this->source), "html"nulltrue);
  505.                         echo "\" form=\"productForm";
  506.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue201), 201$this->source), "html"nulltrue);
  507.                         echo "\">
  508.                                         ";
  509.                         // line 202
  510.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  511.                         echo "
  512.                                     </button>
  513.                                 </div-->
  514.                             ";
  515.                     } else {
  516.                         // line 206
  517.                         echo "                                <div class=\"ec-productRole__btn\">
  518.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  519.                                         ";
  520.                         // line 208
  521.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  522.                         echo "
  523.                                     </button>
  524.                                 </div>
  525.                             ";
  526.                     }
  527.                     // line 212
  528.                     echo "                        </li>
  529.                     ";
  530.                     ++$context['loop']['index0'];
  531.                     ++$context['loop']['index'];
  532.                     $context['loop']['first'] = false;
  533.                     if (isset($context['loop']['length'])) {
  534.                         --$context['loop']['revindex0'];
  535.                         --$context['loop']['revindex'];
  536.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  537.                     }
  538.                 }
  539.                 $_parent $context['_parent'];
  540.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  541.                 $context array_intersect_key($context$_parent) + $_parent;
  542.                 // line 214
  543.                 echo "                </ul>
  544.             </div>
  545.             <div class=\"ec-modal\">
  546.                 <div class=\"ec-modal-overlay\">
  547.                     <div class=\"ec-modal-wrap\">
  548.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  549.                 // line 219
  550.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  551.                 echo "\" alt=\"\"/></span></span>
  552.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  553.                 // line 220
  554.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  555.                 echo "</div>
  556.                         <div class=\"ec-modal-box\">
  557.                             <div class=\"ec-role\">
  558.                                 <span class=\"ec-inlineBtn--cancel\">";
  559.                 // line 223
  560.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  561.                 echo "</span>
  562.                                 <a href=\"";
  563.                 // line 224
  564.                 echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("cart");
  565.                 echo "\" class=\"ec-inlineBtn--action\">";
  566.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  567.                 echo "</a>
  568.                             </div>
  569.                         </div>
  570.                     </div>
  571.                 </div>
  572.             </div>
  573.             <div class=\"ec-pagerRole\">
  574.                 ";
  575.                 // line 231
  576.                 $this->loadTemplate("pager.twig""Product/list.twig"231)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "paginationData", [], "any"falsefalsetrue231)]));
  577.                 // line 232
  578.                 echo "            </div>
  579.         ";
  580.             }
  581.             // line 234
  582.             echo "    ";
  583.         }
  584.         
  585.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  586.     }
  587.     public function getTemplateName()
  588.     {
  589.         return "Product/list.twig";
  590.     }
  591.     public function isTraitable()
  592.     {
  593.         return false;
  594.     }
  595.     public function getDebugInfo()
  596.     {
  597.         return array (  605 => 234,  601 => 232,  599 => 231,  587 => 224,  583 => 223,  577 => 220,  573 => 219,  566 => 214,  551 => 212,  544 => 208,  540 => 206,  533 => 202,  527 => 201,  521 => 198,  515 => 195,  511 => 194,  506 => 193,  503 => 192,  497 => 189,  493 => 188,  490 => 187,  488 => 186,  483 => 184,  479 => 183,  476 => 182,  474 => 181,  464 => 179,  461 => 178,  459 => 177,  454 => 174,  448 => 172,  445 => 171,  437 => 169,  431 => 167,  428 => 166,  426 => 165,  423 => 164,  417 => 162,  415 => 161,  411 => 160,  400 => 158,  395 => 156,  392 => 155,  375 => 154,  371 => 152,  369 => 151,  365 => 149,  358 => 145,  354 => 144,  350 => 142,  348 => 141,  345 => 140,  339 => 138,  333 => 136,  331 => 135,  325 => 131,  320 => 129,  317 => 128,  314 => 127,  311 => 126,  290 => 123,  284 => 122,  281 => 121,  263 => 120,  261 => 119,  254 => 117,  249 => 114,  237 => 112,  233 => 111,  228 => 110,  224 => 109,  220 => 107,  214 => 104,  211 => 103,  208 => 102,  201 => 101,  177 => 83,  167 => 76,  136 => 48,  108 => 22,  94 => 21,  86 => 20,  69 => 19,  65 => 17,  58 => 16,  50 => 11,  48 => 14,  38 => 11,);
  598.     }
  599.     public function getSourceContext()
  600.     {
  601.         return new Source("""Product/list.twig""/usr/home/hbw1010t44oz/html/app/template/default/Product/list.twig");
  602.     }
  603.     
  604.     public function checkSecurity()
  605.     {
  606.         static $tags = array("set" => 14"for" => 19"if" => 20"include" => 231);
  607.         static $filters = array("escape" => 20"raw" => 20"trans" => 48"length" => 102"no_image_product" => 158"nl2br" => 162"price" => 167);
  608.         static $functions = array("class_categories_as_json" => 20"url" => 76"form_widget" => 144"asset" => 158"form_errors" => 184"form_rest" => 198);
  609.         try {
  610.             $this->sandbox->checkSecurity(
  611.                 ['set''for''if''include'],
  612.                 ['escape''raw''trans''length''no_image_product''nl2br''price'],
  613.                 ['class_categories_as_json''url''form_widget''asset''form_errors''form_rest'],
  614.                 $this->source
  615.             );
  616.         } catch (SecurityError $e) {
  617.             $e->setSourceContext($this->source);
  618.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  619.                 $e->setTemplateLine($tags[$e->getTagName()]);
  620.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  621.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  622.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  623.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  624.             }
  625.             throw $e;
  626.         }
  627.     }
  628. }