var/cache/dev/twig/d0/d01fd5e8dec62ca78cbf8164bca422500a677f031f0cab48eeb7e5b0590e45d2.php line 16

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_511cc2646943e54b67f44b36b3735f4bb609850ceb89f9f96721379a92149489 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.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 11
  30.         return "default_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  39.         // line 13
  40.         $context["body_class"] = "product_page";
  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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 15
  50.     public function block_javascript($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         // line 16
  58.         echo "    <script>
  59.         eccube.productsClassCategories = {
  60.             ";
  61.         // line 18
  62.         $context['_parent'] = $context;
  63.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'18$this->source); })()));
  64.         $context['loop'] = [
  65.           'parent' => $context['_parent'],
  66.           'index0' => 0,
  67.           'index'  => 1,
  68.           'first'  => true,
  69.         ];
  70.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  71.             $length count($context['_seq']);
  72.             $context['loop']['revindex0'] = $length 1;
  73.             $context['loop']['revindex'] = $length;
  74.             $context['loop']['length'] = $length;
  75.             $context['loop']['last'] = === $length;
  76.         }
  77.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  78.             // line 19
  79.             echo "            \"";
  80.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse19), "js"), "html"nulltrue);
  81.             echo "\": ";
  82.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  83.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse19) == false)) {
  84.                 echo ", ";
  85.             }
  86.             // line 20
  87.             echo "            ";
  88.             ++$context['loop']['index0'];
  89.             ++$context['loop']['index'];
  90.             $context['loop']['first'] = false;
  91.             if (isset($context['loop']['length'])) {
  92.                 --$context['loop']['revindex0'];
  93.                 --$context['loop']['revindex'];
  94.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  95.             }
  96.         }
  97.         $_parent $context['_parent'];
  98.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  99.         $context array_intersect_key($context$_parent) + $_parent;
  100.         // line 21
  101.         echo "        };
  102.         \$(function() {
  103.             // 表示件数を変更
  104.             \$('.disp-number').change(function() {
  105.                 var dispNumber = \$(this).val();
  106.                 \$('#disp_number').val(dispNumber);
  107.                 \$('#pageno').val(1);
  108.                 \$(\"#form1\").submit();
  109.             });
  110.             // 並び順を変更
  111.             \$('.order-by').change(function() {
  112.                 var orderBy = \$(this).val();
  113.                 \$('#orderby').val(orderBy);
  114.                 \$('#pageno').val(1);
  115.                 \$(\"#form1\").submit();
  116.             });
  117.             \$('.add-cart').on('click', function(e) {
  118.                 var \$form = \$(this).parents('li').find('form');
  119.                 // 個数フォームのチェック
  120.                 var \$quantity = \$form.parent().find('.quantity');
  121.                 if (\$quantity.val() < 1) {
  122.                     \$quantity[0].setCustomValidity('";
  123.         // line 47
  124.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  125.         echo "');
  126.                     setTimeout(function() {
  127.                         loadingOverlay('hide');
  128.                     }, 100);
  129.                     return true;
  130.                 } else {
  131.                     \$quantity[0].setCustomValidity('');
  132.                 }
  133.                 e.preventDefault();
  134.                 \$.ajax({
  135.                     url: \$form.attr('action'),
  136.                     type: \$form.attr('method'),
  137.                     data: \$form.serialize(),
  138.                     dataType: 'json',
  139.                     beforeSend: function(xhr, settings) {
  140.                         // Buttonを無効にする
  141.                         \$('.add-cart').prop('disabled', true);
  142.                     }
  143.                 }).done(function(data) {
  144.                     // レスポンス内のメッセージをalertで表示
  145.                     \$.each(data.messages, function() {
  146.                         \$('#ec-modal-header').text(this);
  147.                     });
  148.                     \$('.ec-modal').show()
  149.                     // カートブロックを更新する
  150.                     \$.ajax({
  151.                         url: '";
  152.         // line 75
  153.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  154.         echo "',
  155.                         type: 'GET',
  156.                         dataType: 'html'
  157.                     }).done(function(html) {
  158.                         \$('.ec-headerRole__cart').html(html);
  159.                     });
  160.                 }).fail(function(data) {
  161.                     alert('";
  162.         // line 82
  163.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  164.         echo "');
  165.                 }).always(function(data) {
  166.                     // Buttonを有効にする
  167.                     \$('.add-cart').prop('disabled', false);
  168.                 });
  169.             });
  170.         });
  171.         \$('.ec-modal-wrap').on('click', function(e) {
  172.             // モーダル内の処理は外側にバブリングさせない
  173.             e.stopPropagation();
  174.         });
  175.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  176.             \$('.ec-modal').hide()
  177.         });
  178.     </script>
  179. ";
  180.         
  181.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  182.         
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  184.     }
  185.     // line 100
  186.     public function block_main($context, array $blocks = [])
  187.     {
  188.         $macros $this->macros;
  189.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  190.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  191.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  192.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  193.         // line 101
  194.         echo "    ";
  195.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'101$this->source); })()), "category_id", [], "any"falsefalsefalse101), "vars", [], "any"falsefalsefalse101), "errors", [], "any"falsefalsefalse101)) > 0)) {
  196.             // line 102
  197.             echo "        <div class=\"ec-searchnavRole\">
  198.             <p class=\"errormsg text-danger\">";
  199.             // line 103
  200.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  201.             echo "</p>
  202.         </div>
  203.     ";
  204.         } else {
  205.             // line 106
  206.             echo "        <div class=\"ec-searchnavRole\">
  207.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  208.                 ";
  209.             // line 108
  210.             $context['_parent'] = $context;
  211.             $context['_seq'] = twig_ensure_traversable((isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'108$this->source); })()));
  212.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  213.                 // line 109
  214.                 echo "                    <input type=\"hidden\" id=\"";
  215.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse109), "id", [], "any"falsefalsefalse109), "html"nulltrue);
  216.                 echo "\"
  217.                            name=\"";
  218.                 // line 110
  219.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse110), "full_name", [], "any"falsefalsefalse110), "html"nulltrue);
  220.                 echo "\"
  221.                            ";
  222.                 // line 111
  223.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse111), "value", [], "any"falsefalsefalse111))) {
  224.                     echo "value=\"";
  225.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse111), "value", [], "any"falsefalsefalse111), "html"nulltrue);
  226.                     echo "\" ";
  227.                 }
  228.                 echo "/>
  229.                 ";
  230.             }
  231.             $_parent $context['_parent'];
  232.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  233.             $context array_intersect_key($context$_parent) + $_parent;
  234.             // line 113
  235.             echo "            </form>
  236.             <div class=\"ec-searchnavRole__topicpath\">
  237.                 <ol class=\"ec-topicpath\">
  238.                     <li class=\"ec-topicpath__item\"><a href=\"";
  239.             // line 116
  240.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  241.             echo "\">";
  242.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ALL PRODUCTS"), "html"nulltrue);
  243.             echo "</a>
  244.                     </li>
  245.                     ";
  246.             // line 118
  247.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'118$this->source); })()))) {
  248.                 // line 119
  249.                 echo "                        ";
  250.                 $context['_parent'] = $context;
  251.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'119$this->source); })()), "path", [], "any"falsefalsefalse119));
  252.                 $context['loop'] = [
  253.                   'parent' => $context['_parent'],
  254.                   'index0' => 0,
  255.                   'index'  => 1,
  256.                   'first'  => true,
  257.                 ];
  258.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  259.                     $length count($context['_seq']);
  260.                     $context['loop']['revindex0'] = $length 1;
  261.                     $context['loop']['revindex'] = $length;
  262.                     $context['loop']['length'] = $length;
  263.                     $context['loop']['last'] = === $length;
  264.                 }
  265.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  266.                     // line 120
  267.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  268.                             <li class=\"ec-topicpath__item";
  269.                     // line 121
  270.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse121)) {
  271.                         echo "--active";
  272.                     }
  273.                     echo "\"><a
  274.                                         href=\"";
  275.                     // line 122
  276.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  277.                     echo "?category_id=";
  278.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse122), "html"nulltrue);
  279.                     echo "\">";
  280.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse122), "html"nulltrue);
  281.                     echo "</a>
  282.                             </li>
  283.                         ";
  284.                     ++$context['loop']['index0'];
  285.                     ++$context['loop']['index'];
  286.                     $context['loop']['first'] = false;
  287.                     if (isset($context['loop']['length'])) {
  288.                         --$context['loop']['revindex0'];
  289.                         --$context['loop']['revindex'];
  290.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  291.                     }
  292.                 }
  293.                 $_parent $context['_parent'];
  294.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  295.                 $context array_intersect_key($context$_parent) + $_parent;
  296.                 // line 125
  297.                 echo "                    ";
  298.             }
  299.             // line 126
  300.             echo "                    ";
  301.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'126$this->source); })()), "vars", [], "any"falsefalsefalse126), "value", [], "any"falsefalsefalse126) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'126$this->source); })()), "vars", [], "any"falsefalsefalse126), "value", [], "any"falsefalsefalse126), "name", [], "any"falsefalsefalse126))) {
  302.                 // line 127
  303.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  304.                         <li class=\"ec-topicpath__item\">";
  305.                 // line 128
  306.                 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, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'128$this->source); })()), "vars", [], "any"falsefalsefalse128), "value", [], "any"falsefalsefalse128), "name", [], "any"falsefalsefalse128)]), "html"nulltrue);
  307.                 echo "</li>
  308.                     ";
  309.             }
  310.             // line 130
  311.             echo "                </ol>
  312.             </div>
  313.             <div class=\"ec-searchnavRole__infos\">
  314.                 <div class=\"ec-searchnavRole__counter\">
  315.                     ";
  316.             // line 134
  317.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'134$this->source); })()), "totalItemCount", [], "any"falsefalsefalse134) > 0)) {
  318.                 // line 135
  319.                 echo "                        ";
  320.                 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, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'135$this->source); })()), "totalItemCount", [], "any"falsefalsefalse135)]);
  321.                 echo "
  322.                     ";
  323.             } else {
  324.                 // line 137
  325.                 echo "                        <span>";
  326.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  327.                 echo "</span>
  328.                     ";
  329.             }
  330.             // line 139
  331.             echo "                </div>
  332.                 ";
  333.             // line 140
  334.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'140$this->source); })()), "totalItemCount", [], "any"falsefalsefalse140) > 0)) {
  335.                 // line 141
  336.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  337.                         <div class=\"ec-select\">
  338.                             ";
  339.                 // line 143
  340.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'143$this->source); })()), "disp_number", [], "any"falsefalsefalse143), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  341.                 echo "
  342.                             ";
  343.                 // line 144
  344.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'144$this->source); })()), "orderby", [], "any"falsefalsefalse144), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  345.                 echo "
  346.                         </div>
  347.                     </div>
  348.                 ";
  349.             }
  350.             // line 148
  351.             echo "            </div>
  352.         </div>
  353.         ";
  354.             // line 150
  355.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'150$this->source); })()), "totalItemCount", [], "any"falsefalsefalse150) > 0)) {
  356.                 // line 151
  357.                 echo "            <div class=\"ec-shelfRole\">
  358.                 <ul class=\"ec-shelfGrid\">
  359.                     ";
  360.                 // line 153
  361.                 $context['_parent'] = $context;
  362.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'153$this->source); })()));
  363.                 $context['loop'] = [
  364.                   'parent' => $context['_parent'],
  365.                   'index0' => 0,
  366.                   'index'  => 1,
  367.                   'first'  => true,
  368.                 ];
  369.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  370.                     $length count($context['_seq']);
  371.                     $context['loop']['revindex0'] = $length 1;
  372.                     $context['loop']['revindex'] = $length;
  373.                     $context['loop']['length'] = $length;
  374.                     $context['loop']['last'] = === $length;
  375.                 }
  376.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  377.                     // line 154
  378.                     echo "                        <li class=\"ec-shelfGrid__item\">
  379.                             <a href=\"";
  380.                     // line 155
  381.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse155)]), "html"nulltrue);
  382.                     echo "\">
  383.                                 <div class=\"ec-shelfGrid__item-image resize\">
  384.                                     <!--div><img src=\"";
  385.                     // line 157
  386.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsefalse157)), "save_image"), "html"nulltrue);
  387.                     echo "\" alt=\"";
  388.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse157), "html"nulltrue);
  389.                     echo "\" ";
  390.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse157) > 5)) {
  391.                         echo " loading=\"lazy\"";
  392.                     }
  393.                     echo "></div-->
  394.                                     ";
  395.                     // line 158
  396.                     $context['_parent'] = $context;
  397.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductImage", [], "any"falsefalsefalse158));
  398.                     $context['_iterated'] = false;
  399.                     $context['loop'] = [
  400.                       'parent' => $context['_parent'],
  401.                       'index0' => 0,
  402.                       'index'  => 1,
  403.                       'first'  => true,
  404.                     ];
  405.                     if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  406.                         $length count($context['_seq']);
  407.                         $context['loop']['revindex0'] = $length 1;
  408.                         $context['loop']['revindex'] = $length;
  409.                         $context['loop']['length'] = $length;
  410.                         $context['loop']['last'] = === $length;
  411.                     }
  412.                     foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
  413.                         // line 159
  414.                         echo "                                        <div><img src=\"";
  415.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["ProductImage"], "save_image"), "html"nulltrue);
  416.                         echo "\" alt=\"";
  417.                         ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse159)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse159), "html"nulltrue))) : (print ("")));
  418.                         echo "\"></div>
  419.                                     ";
  420.                         $context['_iterated'] = true;
  421.                         ++$context['loop']['index0'];
  422.                         ++$context['loop']['index'];
  423.                         $context['loop']['first'] = false;
  424.                         if (isset($context['loop']['length'])) {
  425.                             --$context['loop']['revindex0'];
  426.                             --$context['loop']['revindex'];
  427.                             $context['loop']['last'] = === $context['loop']['revindex0'];
  428.                         }
  429.                     }
  430.                     if (!$context['_iterated']) {
  431.                         // line 161
  432.                         echo "                                        <div><img src=\"";
  433.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html"nulltrue);
  434.                         echo "\" alt=\"";
  435.                         ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse161)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse161), "html"nulltrue))) : (print ("")));
  436.                         echo "\"></div>
  437.                                     ";
  438.                     }
  439.                     $_parent $context['_parent'];
  440.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
  441.                     $context array_intersect_key($context$_parent) + $_parent;
  442.                     // line 163
  443.                     echo "                                </div>
  444.                                 <h3>";
  445.                     // line 164
  446.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse164), "html"nulltrue);
  447.                     echo "</h3>
  448.                                 ";
  449.                     // line 165
  450.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse165)) {
  451.                         // line 166
  452.                         echo "                                    <p>";
  453.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse166));
  454.                         echo "</p>
  455.                                 ";
  456.                     }
  457.                     // line 168
  458.                     echo "                                <p class=\"price02-default price\">
  459.                                     ";
  460.                     // line 169
  461.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse169)) {
  462.                         // line 170
  463.                         echo "                                        ";
  464.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse170) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse170))) {
  465.                             // line 171
  466.                             echo "                                            ";
  467.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse171)), "html"nulltrue);
  468.                             echo "
  469.                                         ";
  470.                         } else {
  471.                             // line 173
  472.                             echo "                                            ";
  473.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse173)), "html"nulltrue);
  474.                             echo " ~ ";
  475.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse173)), "html"nulltrue);
  476.                             echo "
  477.                                         ";
  478.                         }
  479.                         // line 175
  480.                         echo "                                    ";
  481.                     } else {
  482.                         // line 176
  483.                         echo "                                        ";
  484.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse176)), "html"nulltrue);
  485.                         echo "
  486.                                     ";
  487.                     }
  488.                     // line 178
  489.                     echo "                                </p>
  490.                             </a>
  491.                             ";
  492.                     // line 181
  493.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse181)) {
  494.                         // line 182
  495.                         echo "                                ";
  496.                         $context["form"] = twig_get_attribute($this->env$this->source, (isset($context["forms"]) || array_key_exists("forms"$context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.'182$this->source); })()), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse182), [], "array"falsefalsefalse182);
  497.                         // line 183
  498.                         echo "                                <form name=\"form";
  499.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse183), "html"nulltrue);
  500.                         echo "\" id=\"productForm";
  501.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse183), "html"nulltrue);
  502.                         echo "\" action=\"";
  503.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse183)]), "html"nulltrue);
  504.                         echo "\" method=\"post\">
  505.                                     <div class=\"ec-productRole__actions\">
  506.                                         ";
  507.                         // line 185
  508.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse185)) {
  509.                             // line 186
  510.                             echo "                                            <div class=\"ec-select\">
  511.                                                 ";
  512.                             // line 187
  513.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'187$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse187), 'widget');
  514.                             echo "
  515.                                                 ";
  516.                             // line 188
  517.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'188$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse188), 'errors');
  518.                             echo "
  519.                                             </div>
  520.                                             ";
  521.                             // line 190
  522.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse190)) {
  523.                                 // line 191
  524.                                 echo "                                                <div class=\"ec-select\">
  525.                                                     ";
  526.                                 // line 192
  527.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'192$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse192), 'widget');
  528.                                 echo "
  529.                                                     ";
  530.                                 // line 193
  531.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'193$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse193), 'errors');
  532.                                 echo "
  533.                                                 </div>
  534.                                             ";
  535.                             }
  536.                             // line 196
  537.                             echo "                                        ";
  538.                         }
  539.                         // line 197
  540.                         echo "                                        <div class=\"ec-numberInput\"><span>";
  541.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  542.                         echo "</span>
  543.                                             ";
  544.                         // line 198
  545.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'198$this->source); })()), "quantity", [], "any"falsefalsefalse198), 'widget', ["attr" => ["class" => "quantity"]]);
  546.                         echo "
  547.                                             ";
  548.                         // line 199
  549.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'199$this->source); })()), "quantity", [], "any"falsefalsefalse199), 'errors');
  550.                         echo "
  551.                                         </div>
  552.                                     </div>
  553.                                     ";
  554.                         // line 202
  555.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'202$this->source); })()), 'rest');
  556.                         echo "
  557.                                 </form>
  558.                                 <div class=\"ec-productRole__btn\">
  559.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  560.                         // line 205
  561.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse205), "html"nulltrue);
  562.                         echo "\" form=\"productForm";
  563.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse205), "html"nulltrue);
  564.                         echo "\">
  565.                                         ";
  566.                         // line 206
  567.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  568.                         echo "
  569.                                     </button>
  570.                                 </div>
  571.                             ";
  572.                     } else {
  573.                         // line 210
  574.                         echo "                                <div class=\"ec-productRole__btn\">
  575.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  576.                                         ";
  577.                         // line 212
  578.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  579.                         echo "
  580.                                     </button>
  581.                                 </div>
  582.                             ";
  583.                     }
  584.                     // line 216
  585.                     echo "                        </li>
  586.                     ";
  587.                     ++$context['loop']['index0'];
  588.                     ++$context['loop']['index'];
  589.                     $context['loop']['first'] = false;
  590.                     if (isset($context['loop']['length'])) {
  591.                         --$context['loop']['revindex0'];
  592.                         --$context['loop']['revindex'];
  593.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  594.                     }
  595.                 }
  596.                 $_parent $context['_parent'];
  597.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  598.                 $context array_intersect_key($context$_parent) + $_parent;
  599.                 // line 218
  600.                 echo "                </ul>
  601.             </div>
  602.             <div class=\"ec-modal\">
  603.                 <div class=\"ec-modal-overlay\">
  604.                     <div class=\"ec-modal-wrap\">
  605.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  606.                 // line 223
  607.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  608.                 echo "\" alt=\"\"/></span></span>
  609.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  610.                 // line 224
  611.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  612.                 echo "</div>
  613.                         <div class=\"ec-modal-box\">
  614.                             <div class=\"ec-role\">
  615.                                 <span class=\"ec-inlineBtn--cancel\">";
  616.                 // line 227
  617.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  618.                 echo "</span>
  619.                                 <a href=\"";
  620.                 // line 228
  621.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  622.                 echo "\" class=\"ec-inlineBtn--action\">";
  623.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  624.                 echo "</a>
  625.                             </div>
  626.                         </div>
  627.                     </div>
  628.                 </div>
  629.             </div>
  630.             <div class=\"ec-pagerRole\">
  631.                 ";
  632.                 // line 235
  633.                 $this->loadTemplate("pager.twig""Product/list.twig"235)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'235$this->source); })()), "paginationData", [], "any"falsefalsefalse235)]));
  634.                 // line 236
  635.                 echo "            </div>
  636.         ";
  637.             }
  638.             // line 238
  639.             echo "    ";
  640.         }
  641.         
  642.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  643.         
  644.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  645.     }
  646.     public function getTemplateName()
  647.     {
  648.         return "Product/list.twig";
  649.     }
  650.     public function isTraitable()
  651.     {
  652.         return false;
  653.     }
  654.     public function getDebugInfo()
  655.     {
  656.         return array (  667 => 238,  663 => 236,  661 => 235,  649 => 228,  645 => 227,  639 => 224,  635 => 223,  628 => 218,  613 => 216,  606 => 212,  602 => 210,  595 => 206,  589 => 205,  583 => 202,  577 => 199,  573 => 198,  568 => 197,  565 => 196,  559 => 193,  555 => 192,  552 => 191,  550 => 190,  545 => 188,  541 => 187,  538 => 186,  536 => 185,  526 => 183,  523 => 182,  521 => 181,  516 => 178,  510 => 176,  507 => 175,  499 => 173,  493 => 171,  490 => 170,  488 => 169,  485 => 168,  479 => 166,  477 => 165,  473 => 164,  470 => 163,  459 => 161,  441 => 159,  423 => 158,  413 => 157,  408 => 155,  405 => 154,  388 => 153,  384 => 151,  382 => 150,  378 => 148,  371 => 144,  367 => 143,  363 => 141,  361 => 140,  358 => 139,  352 => 137,  346 => 135,  344 => 134,  338 => 130,  333 => 128,  330 => 127,  327 => 126,  324 => 125,  303 => 122,  297 => 121,  294 => 120,  276 => 119,  274 => 118,  267 => 116,  262 => 113,  250 => 111,  246 => 110,  241 => 109,  237 => 108,  233 => 106,  227 => 103,  224 => 102,  221 => 101,  211 => 100,  184 => 82,  174 => 75,  143 => 47,  115 => 21,  101 => 20,  93 => 19,  76 => 18,  72 => 16,  62 => 15,  51 => 11,  49 => 13,  36 => 11,);
  657.     }
  658.     public function getSourceContext()
  659.     {
  660.         return new Source("{#
  661. This file is part of EC-CUBE
  662. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  663. http://www.ec-cube.co.jp/
  664. For the full copyright and license information, please view the LICENSE
  665. file that was distributed with this source code.
  666. #}
  667. {% extends 'default_frame.twig' %}
  668. {% set body_class = 'product_page' %}
  669. {% block javascript %}
  670.     <script>
  671.         eccube.productsClassCategories = {
  672.             {% for Product in pagination %}
  673.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  674.             {% endfor %}
  675.         };
  676.         \$(function() {
  677.             // 表示件数を変更
  678.             \$('.disp-number').change(function() {
  679.                 var dispNumber = \$(this).val();
  680.                 \$('#disp_number').val(dispNumber);
  681.                 \$('#pageno').val(1);
  682.                 \$(\"#form1\").submit();
  683.             });
  684.             // 並び順を変更
  685.             \$('.order-by').change(function() {
  686.                 var orderBy = \$(this).val();
  687.                 \$('#orderby').val(orderBy);
  688.                 \$('#pageno').val(1);
  689.                 \$(\"#form1\").submit();
  690.             });
  691.             \$('.add-cart').on('click', function(e) {
  692.                 var \$form = \$(this).parents('li').find('form');
  693.                 // 個数フォームのチェック
  694.                 var \$quantity = \$form.parent().find('.quantity');
  695.                 if (\$quantity.val() < 1) {
  696.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  697.                     setTimeout(function() {
  698.                         loadingOverlay('hide');
  699.                     }, 100);
  700.                     return true;
  701.                 } else {
  702.                     \$quantity[0].setCustomValidity('');
  703.                 }
  704.                 e.preventDefault();
  705.                 \$.ajax({
  706.                     url: \$form.attr('action'),
  707.                     type: \$form.attr('method'),
  708.                     data: \$form.serialize(),
  709.                     dataType: 'json',
  710.                     beforeSend: function(xhr, settings) {
  711.                         // Buttonを無効にする
  712.                         \$('.add-cart').prop('disabled', true);
  713.                     }
  714.                 }).done(function(data) {
  715.                     // レスポンス内のメッセージをalertで表示
  716.                     \$.each(data.messages, function() {
  717.                         \$('#ec-modal-header').text(this);
  718.                     });
  719.                     \$('.ec-modal').show()
  720.                     // カートブロックを更新する
  721.                     \$.ajax({
  722.                         url: '{{ url('block_cart') }}',
  723.                         type: 'GET',
  724.                         dataType: 'html'
  725.                     }).done(function(html) {
  726.                         \$('.ec-headerRole__cart').html(html);
  727.                     });
  728.                 }).fail(function(data) {
  729.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  730.                 }).always(function(data) {
  731.                     // Buttonを有効にする
  732.                     \$('.add-cart').prop('disabled', false);
  733.                 });
  734.             });
  735.         });
  736.         \$('.ec-modal-wrap').on('click', function(e) {
  737.             // モーダル内の処理は外側にバブリングさせない
  738.             e.stopPropagation();
  739.         });
  740.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  741.             \$('.ec-modal').hide()
  742.         });
  743.     </script>
  744. {% endblock %}
  745. {% block main %}
  746.     {% if search_form.category_id.vars.errors|length > 0 %}
  747.         <div class=\"ec-searchnavRole\">
  748.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  749.         </div>
  750.     {% else %}
  751.         <div class=\"ec-searchnavRole\">
  752.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  753.                 {% for item in search_form %}
  754.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  755.                            name=\"{{ item.vars.full_name }}\"
  756.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  757.                 {% endfor %}
  758.             </form>
  759.             <div class=\"ec-searchnavRole__topicpath\">
  760.                 <ol class=\"ec-topicpath\">
  761.                     <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ 'ALL PRODUCTS'|trans }}</a>
  762.                     </li>
  763.                     {% if Category is not null %}
  764.                         {% for Path in Category.path %}
  765.                             <li class=\"ec-topicpath__divider\">|</li>
  766.                             <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
  767.                                         href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  768.                             </li>
  769.                         {% endfor %}
  770.                     {% endif %}
  771.                     {% if search_form.vars.value and search_form.vars.value.name %}
  772.                         <li class=\"ec-topicpath__divider\">|</li>
  773.                         <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  774.                     {% endif %}
  775.                 </ol>
  776.             </div>
  777.             <div class=\"ec-searchnavRole__infos\">
  778.                 <div class=\"ec-searchnavRole__counter\">
  779.                     {% if pagination.totalItemCount > 0 %}
  780.                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  781.                     {% else %}
  782.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  783.                     {% endif %}
  784.                 </div>
  785.                 {% if pagination.totalItemCount > 0 %}
  786.                     <div class=\"ec-searchnavRole__actions\">
  787.                         <div class=\"ec-select\">
  788.                             {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  789.                             {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  790.                         </div>
  791.                     </div>
  792.                 {% endif %}
  793.             </div>
  794.         </div>
  795.         {% if pagination.totalItemCount > 0 %}
  796.             <div class=\"ec-shelfRole\">
  797.                 <ul class=\"ec-shelfGrid\">
  798.                     {% for Product in pagination %}
  799.                         <li class=\"ec-shelfGrid__item\">
  800.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  801.                                 <div class=\"ec-shelfGrid__item-image resize\">
  802.                                     <!--div><img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}></div-->
  803.                                     {% for ProductImage in Product.ProductImage %}
  804.                                         <div><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\"></div>
  805.                                     {% else %}
  806.                                         <div><img src=\"{{ asset(''|no_image_product, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\"></div>
  807.                                     {% endfor %}
  808.                                 </div>
  809.                                 <h3>{{ Product.name }}</h3>
  810.                                 {% if Product.description_list %}
  811.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  812.                                 {% endif %}
  813.                                 <p class=\"price02-default price\">
  814.                                     {% if Product.hasProductClass %}
  815.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  816.                                             {{ Product.getPrice02IncTaxMin|price }}
  817.                                         {% else %}
  818.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  819.                                         {% endif %}
  820.                                     {% else %}
  821.                                         {{ Product.getPrice02IncTaxMin|price }}
  822.                                     {% endif %}
  823.                                 </p>
  824.                             </a>
  825.                             {% if Product.stock_find %}
  826.                                 {% set form = forms[Product.id] %}
  827.                                 <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  828.                                     <div class=\"ec-productRole__actions\">
  829.                                         {% if form.classcategory_id1 is defined %}
  830.                                             <div class=\"ec-select\">
  831.                                                 {{ form_widget(form.classcategory_id1) }}
  832.                                                 {{ form_errors(form.classcategory_id1) }}
  833.                                             </div>
  834.                                             {% if form.classcategory_id2 is defined %}
  835.                                                 <div class=\"ec-select\">
  836.                                                     {{ form_widget(form.classcategory_id2) }}
  837.                                                     {{ form_errors(form.classcategory_id2) }}
  838.                                                 </div>
  839.                                             {% endif %}
  840.                                         {% endif %}
  841.                                         <div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
  842.                                             {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  843.                                             {{ form_errors(form.quantity) }}
  844.                                         </div>
  845.                                     </div>
  846.                                     {{ form_rest(form) }}
  847.                                 </form>
  848.                                 <div class=\"ec-productRole__btn\">
  849.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  850.                                         {{ 'カートに入れる'|trans }}
  851.                                     </button>
  852.                                 </div>
  853.                             {% else %}
  854.                                 <div class=\"ec-productRole__btn\">
  855.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  856.                                         {{ 'ただいま品切れ中です。'|trans }}
  857.                                     </button>
  858.                                 </div>
  859.                             {% endif %}
  860.                         </li>
  861.                     {% endfor %}
  862.                 </ul>
  863.             </div>
  864.             <div class=\"ec-modal\">
  865.                 <div class=\"ec-modal-overlay\">
  866.                     <div class=\"ec-modal-wrap\">
  867.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  868.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  869.                         <div class=\"ec-modal-box\">
  870.                             <div class=\"ec-role\">
  871.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  872.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  873.                             </div>
  874.                         </div>
  875.                     </div>
  876.                 </div>
  877.             </div>
  878.             <div class=\"ec-pagerRole\">
  879.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  880.             </div>
  881.         {% endif %}
  882.     {% endif %}
  883. {% endblock %}
  884. ""Product/list.twig""/home/riderz/slaps.tokyo/public_html/app/template/default/Product/list.twig");
  885.     }
  886. }