var/cache/dev/twig/4b/4bf89f1fbf991090f27474dfcc5e5b572ec2b0970673652deb95f9517826cfcb.php line 39

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_9642ce01c545258b111caeb1df1eb674a6f1116571c189430f2e18ca7f88bde1 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').html(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.     ";
  196.         // line 105
  197.         echo "    <div class=\"container\">
  198.         ";
  199.         // line 106
  200.         $context["request_uri"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'106$this->source); })()), "request", [], "any"falsefalsefalse106), "server", [], "any"falsefalsefalse106), "get", [=> "REQUEST_URI"], "method"falsefalsefalse106);
  201.         // line 107
  202.         echo "        ";
  203.         if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'107$this->source); })()))) {
  204.             // line 108
  205.             echo "            ";
  206.             if ((twig_length_filter($this->envtwig_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.'108$this->source); })()), "children", [], "any"falsefalsefalse108)) > 0)) {
  207.                 // line 109
  208.                 echo "                <h2 class=\"page-title\">
  209.                     <span class=\"_main\">
  210.                         ";
  211.                 // line 111
  212.                 echo twig_escape_filter($this->envtwig_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.'111$this->source); })()), "name", [], "any"falsefalsefalse111), "html"nulltrue);
  213.                 echo "
  214.                     </span>
  215.                 </h2>
  216.             ";
  217.             } else {
  218.                 // line 115
  219.                 echo "                ";
  220.                 $context["ParentCat"] = 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.'115$this->source); })()), "Parent", [], "any"falsefalsefalse115);
  221.                 // line 116
  222.                 echo "                <h2 class=\"page-title\">
  223.                     <span class=\"_main\">
  224.                         ";
  225.                 // line 118
  226.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["ParentCat"]) || array_key_exists("ParentCat"$context) ? $context["ParentCat"] : (function () { throw new RuntimeError('Variable "ParentCat" does not exist.'118$this->source); })()), "name", [], "any"falsefalsefalse118), "html"nulltrue);
  227.                 echo "
  228.                     </span>
  229.                 </h2>
  230.             ";
  231.             }
  232.             // line 122
  233.             echo "        ";
  234.         } elseif ((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.'122$this->source); })()), "vars", [], "any"falsefalsefalse122), "value", [], "any"falsefalsefalse122) && 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.'122$this->source); })()), "vars", [], "any"falsefalsefalse122), "value", [], "any"falsefalsefalse122), "name", [], "any"falsefalsefalse122))) {
  235.             // line 123
  236.             echo "            <h2 class=\"page-title\">
  237.                 <span class=\"_main\">
  238.                     ";
  239.             // line 125
  240.             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.'125$this->source); })()), "vars", [], "any"falsefalsefalse125), "value", [], "any"falsefalsefalse125), "name", [], "any"falsefalsefalse125)]), "html"nulltrue);
  241.             echo "
  242.                 </span>
  243.             </h2>
  244.         ";
  245.         } else {
  246.             // line 129
  247.             echo "            <h2 class=\"page-title\">
  248.                 <span class=\"_main\">全ての商品</span>
  249.                 <span class=\"_sub\">PRODUCTS ALL</span>
  250.             </h2>
  251.         ";
  252.         }
  253.         // line 134
  254.         echo "
  255.     </div>
  256.     ";
  257.         // line 137
  258.         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.'137$this->source); })()), "category_id", [], "any"falsefalsefalse137), "vars", [], "any"falsefalsefalse137), "errors", [], "any"falsefalsefalse137)) > 0)) {
  259.             // line 138
  260.             echo "        <div class=\"ec-searchnavRole\">
  261.             <p class=\"errormsg text-danger\">";
  262.             // line 139
  263.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  264.             echo "</p>
  265.         </div>
  266.     ";
  267.         } else {
  268.             // line 142
  269.             echo "        <div class=\"ec-searchnavRole\">
  270.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  271.                 ";
  272.             // line 144
  273.             $context['_parent'] = $context;
  274.             $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.'144$this->source); })()));
  275.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  276.                 // line 145
  277.                 echo "                    <input type=\"hidden\" id=\"";
  278.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse145), "id", [], "any"falsefalsefalse145), "html"nulltrue);
  279.                 echo "\"
  280.                            name=\"";
  281.                 // line 146
  282.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse146), "full_name", [], "any"falsefalsefalse146), "html"nulltrue);
  283.                 echo "\"
  284.                            ";
  285.                 // line 147
  286.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse147), "value", [], "any"falsefalsefalse147))) {
  287.                     echo "value=\"";
  288.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse147), "value", [], "any"falsefalsefalse147), "html"nulltrue);
  289.                     echo "\" ";
  290.                 }
  291.                 echo "/>
  292.                 ";
  293.             }
  294.             $_parent $context['_parent'];
  295.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  296.             $context array_intersect_key($context$_parent) + $_parent;
  297.             // line 149
  298.             echo "            </form>
  299.             
  300.             <div class=\"ec-searchnavRole__infos\">
  301.                 <div class=\"ec-searchnavRole__counter\">
  302.                     ";
  303.             // line 153
  304.             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.'153$this->source); })()), "totalItemCount", [], "any"falsefalsefalse153) > 0)) {
  305.                 // line 154
  306.                 echo "                        ";
  307.                 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.'154$this->source); })()), "totalItemCount", [], "any"falsefalsefalse154)]);
  308.                 echo "
  309.                     ";
  310.             } else {
  311.                 // line 156
  312.                 echo "                        <span>";
  313.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  314.                 echo "</span>
  315.                     ";
  316.             }
  317.             // line 158
  318.             echo "                </div>
  319.                 ";
  320.             // line 159
  321.             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.'159$this->source); })()), "totalItemCount", [], "any"falsefalsefalse159) > 0)) {
  322.                 // line 160
  323.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  324.                         <div class=\"ec-select\">
  325.                             <div class=\"ec-select__group\">
  326.                                 <span>件数</span>
  327.                                 ";
  328.                 // line 164
  329.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["disp_number_form"]) || array_key_exists("disp_number_form"$context) ? $context["disp_number_form"] : (function () { throw new RuntimeError('Variable "disp_number_form" does not exist.'164$this->source); })()), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  330.                 echo "
  331.                             </div>
  332.                             <div class=\"ec-select__group\">
  333.                                 <span>表示順</span>
  334.                                 ";
  335.                 // line 168
  336.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["order_by_form"]) || array_key_exists("order_by_form"$context) ? $context["order_by_form"] : (function () { throw new RuntimeError('Variable "order_by_form" does not exist.'168$this->source); })()), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  337.                 echo "
  338.                             </div>
  339.                         </div>
  340.                     </div>
  341.                 ";
  342.             }
  343.             // line 173
  344.             echo "            </div>
  345.         </div>
  346.         
  347.         ";
  348.             // line 176
  349.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'176$this->source); })()))) {
  350.                 // line 177
  351.                 echo "        ";
  352.                 // line 178
  353.                 echo "            ";
  354.                 if ((twig_length_filter($this->envtwig_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.'178$this->source); })()), "children", [], "any"falsefalsefalse178)) > 0)) {
  355.                     // line 179
  356.                     echo "                <div class=\"cat-nav\">
  357.                     <div class=\"container\">
  358.                         ";
  359.                     // line 181
  360.                     $context["cate_childs"] = 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.'181$this->source); })()), "getDescendants", [], "any"falsefalsefalse181);
  361.                     // line 182
  362.                     echo "                        ";
  363.                     if ((isset($context["cate_childs"]) || array_key_exists("cate_childs"$context) ? $context["cate_childs"] : (function () { throw new RuntimeError('Variable "cate_childs" does not exist.'182$this->source); })())) {
  364.                         // line 183
  365.                         echo "                        ";
  366.                         $context["h"] = (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.'183$this->source); })()), "hierarchy", [], "any"falsefalsefalse183) + 1);
  367.                         // line 184
  368.                         echo "                        <ul class=\"cat-nav__list\">
  369.                             ";
  370.                         // line 185
  371.                         $context['_parent'] = $context;
  372.                         $context['_seq'] = twig_ensure_traversable((isset($context["cate_childs"]) || array_key_exists("cate_childs"$context) ? $context["cate_childs"] : (function () { throw new RuntimeError('Variable "cate_childs" does not exist.'185$this->source); })()));
  373.                         foreach ($context['_seq'] as $context["_key"] => $context["cate"]) {
  374.                             // line 186
  375.                             echo "                                ";
  376.                             if (((isset($context["h"]) || array_key_exists("h"$context) ? $context["h"] : (function () { throw new RuntimeError('Variable "h" does not exist.'186$this->source); })()) == twig_get_attribute($this->env$this->source$context["cate"], "hierarchy", [], "any"falsefalsefalse186))) {
  377.                                 // line 187
  378.                                 echo "                                <li class=\"cat-nav__item\">
  379.                                     <a href=\"";
  380.                                 // line 188
  381.                                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  382.                                 echo "?category_id=";
  383.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cate"], "id", [], "any"falsefalsefalse188), "html"nulltrue);
  384.                                 echo "\">";
  385.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cate"], "name", [], "any"falsefalsefalse188), "html"nulltrue);
  386.                                 echo "</a>
  387.                                 </li>
  388.                                 ";
  389.                             }
  390.                             // line 191
  391.                             echo "                            ";
  392.                         }
  393.                         $_parent $context['_parent'];
  394.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cate'], $context['_parent'], $context['loop']);
  395.                         $context array_intersect_key($context$_parent) + $_parent;
  396.                         // line 192
  397.                         echo "                        </ul>
  398.                         ";
  399.                     }
  400.                     // line 194
  401.                     echo "                    </div>
  402.                 </div>
  403.             ";
  404.                 } else {
  405.                     // line 197
  406.                     echo "                <div class=\"cat-nav\">
  407.                     <div class=\"container\">
  408.                         ";
  409.                     // line 200
  410.                     echo "                        <ul class=\"cat-nav__list\">
  411.                             <li class=\"cat-nav__item is-current\">
  412.                                 <a href=\"";
  413.                     // line 202
  414.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  415.                     echo "?category_id=";
  416.                     echo twig_escape_filter($this->envtwig_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.'202$this->source); })()), "id", [], "any"falsefalsefalse202), "html"nulltrue);
  417.                     echo "\">
  418.                                     ";
  419.                     // line 203
  420.                     echo twig_escape_filter($this->envtwig_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.'203$this->source); })()), "name", [], "any"falsefalsefalse203), "html"nulltrue);
  421.                     echo "
  422.                                 </a>
  423.                             </li>
  424.                         ";
  425.                     // line 206
  426.                     $context["SameRankCategories"] = twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('repository')->getCallable(), ["Eccube\\Entity\\Category"]), "getList", [=> 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.'206$this->source); })()), "Parent", [], "any"falsefalsefalse206)], "method"falsefalsefalse206);
  427.                     // line 207
  428.                     echo "                        ";
  429.                     $context['_parent'] = $context;
  430.                     $context['_seq'] = twig_ensure_traversable((isset($context["SameRankCategories"]) || array_key_exists("SameRankCategories"$context) ? $context["SameRankCategories"] : (function () { throw new RuntimeError('Variable "SameRankCategories" does not exist.'207$this->source); })()));
  431.                     foreach ($context['_seq'] as $context["_key"] => $context["SameRankCategory"]) {
  432.                         if ( !((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'207$this->source); })()) === $context["SameRankCategory"])) {
  433.                             // line 208
  434.                             echo "                            <li class=\"cat-nav__item\">
  435.                                 <a href=\"";
  436.                             // line 209
  437.                             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  438.                             echo "?category_id=";
  439.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["SameRankCategory"], "id", [], "any"falsefalsefalse209), "html"nulltrue);
  440.                             echo "\">
  441.                                     ";
  442.                             // line 210
  443.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["SameRankCategory"], "name", [], "any"falsefalsefalse210), "html"nulltrue);
  444.                             echo "
  445.                                 </a>
  446.                             </li>
  447.                         ";
  448.                         }
  449.                     }
  450.                     $_parent $context['_parent'];
  451.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['SameRankCategory'], $context['_parent'], $context['loop']);
  452.                     $context array_intersect_key($context$_parent) + $_parent;
  453.                     // line 214
  454.                     echo "                        </ul>
  455.                     </div>
  456.                 </div>
  457.             ";
  458.                 }
  459.                 // line 218
  460.                 echo "        ";
  461.             }
  462.             // line 219
  463.             echo "
  464.         
  465.         
  466.         
  467.         
  468.         ";
  469.             // line 224
  470.             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.'224$this->source); })()), "totalItemCount", [], "any"falsefalsefalse224) > 0)) {
  471.                 // line 225
  472.                 echo "            <div class=\"ec-shelfRole _list\">
  473.                 <ul class=\"ec-shelfGrid\">
  474.                     ";
  475.                 // line 227
  476.                 $context['_parent'] = $context;
  477.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'227$this->source); })()));
  478.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  479.                     // line 228
  480.                     echo "                        <li class=\"ec-shelfGrid__item\">
  481.                             <a href=\"";
  482.                     // line 229
  483.                     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"falsefalsefalse229)]), "html"nulltrue);
  484.                     echo "\">
  485.                                 <p class=\"ec-shelfGrid__item-image\">
  486.                                     <img src=\"";
  487.                     // line 231
  488.                     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"falsefalsefalse231)), "save_image"), "html"nulltrue);
  489.                     echo "\" alt=\"";
  490.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse231), "html"nulltrue);
  491.                     echo "\" loading=\"lazy\">
  492.                                 </p>
  493.                                 <p class=\"ec-shelfGrid__item-title\">";
  494.                     // line 233
  495.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse233), "html"nulltrue);
  496.                     echo "</p>
  497.                                 <div class=\"ec-shelfGrid__item-btn\">
  498.                                     <span class=\"btn-basic _red _small\">
  499.                                         詳しく見る
  500.                                     </span>
  501.                                 </div>
  502.                                 <p class=\"ec-shelfGrid__item-description\">
  503.                                     ";
  504.                     // line 240
  505.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse240)) {
  506.                         // line 241
  507.                         echo "                                        <p>";
  508.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse241));
  509.                         echo "</p>
  510.                                     ";
  511.                     }
  512.                     // line 243
  513.                     echo "                                </p>
  514.                             </a>
  515.                             ";
  516.                     // line 281
  517.                     echo "                        </li>
  518.                     ";
  519.                 }
  520.                 $_parent $context['_parent'];
  521.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  522.                 $context array_intersect_key($context$_parent) + $_parent;
  523.                 // line 283
  524.                 echo "                </ul>
  525.             </div>
  526.             <div class=\"ec-modal\">
  527.                 <div class=\"ec-modal-overlay\">
  528.                     <div class=\"ec-modal-wrap\">
  529.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  530.                 // line 288
  531.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  532.                 echo "\" alt=\"\"/></span></span>
  533.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  534.                 // line 289
  535.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  536.                 echo "</div>
  537.                         <div class=\"ec-modal-box\">
  538.                             <div class=\"ec-role\">
  539.                                 <span class=\"btn-basic _sub _prev\">";
  540.                 // line 292
  541.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  542.                 echo "</span>
  543.                                 <a href=\"";
  544.                 // line 293
  545.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  546.                 echo "\" class=\"btn-cart\">";
  547.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  548.                 echo "</a>
  549.                             </div>
  550.                         </div>
  551.                     </div>
  552.                 </div>
  553.             </div>
  554.             <div class=\"ec-pagerRole\">
  555.                 ";
  556.                 // line 300
  557.                 $this->loadTemplate("pager.twig""Product/list.twig"300)->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.'300$this->source); })()), "paginationData", [], "any"falsefalsefalse300)]));
  558.                 // line 301
  559.                 echo "            </div>
  560.         ";
  561.             }
  562.             // line 303
  563.             echo "    ";
  564.         }
  565.         
  566.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  567.         
  568.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  569.     }
  570.     public function getTemplateName()
  571.     {
  572.         return "Product/list.twig";
  573.     }
  574.     public function isTraitable()
  575.     {
  576.         return false;
  577.     }
  578.     public function getDebugInfo()
  579.     {
  580.         return array (  594 => 303,  590 => 301,  588 => 300,  576 => 293,  572 => 292,  566 => 289,  562 => 288,  555 => 283,  548 => 281,  543 => 243,  537 => 241,  535 => 240,  525 => 233,  518 => 231,  513 => 229,  510 => 228,  506 => 227,  502 => 225,  500 => 224,  493 => 219,  490 => 218,  484 => 214,  473 => 210,  467 => 209,  464 => 208,  458 => 207,  456 => 206,  450 => 203,  444 => 202,  440 => 200,  436 => 197,  431 => 194,  427 => 192,  421 => 191,  411 => 188,  408 => 187,  405 => 186,  401 => 185,  398 => 184,  395 => 183,  392 => 182,  390 => 181,  386 => 179,  383 => 178,  381 => 177,  379 => 176,  374 => 173,  366 => 168,  359 => 164,  353 => 160,  351 => 159,  348 => 158,  342 => 156,  336 => 154,  334 => 153,  328 => 149,  316 => 147,  312 => 146,  307 => 145,  303 => 144,  299 => 142,  293 => 139,  290 => 138,  288 => 137,  283 => 134,  276 => 129,  269 => 125,  265 => 123,  262 => 122,  255 => 118,  251 => 116,  248 => 115,  241 => 111,  237 => 109,  234 => 108,  231 => 107,  229 => 106,  226 => 105,  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,);
  581.     }
  582.     public function getSourceContext()
  583.     {
  584.         return new Source("{#
  585. This file is part of EC-CUBE
  586. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  587. http://www.ec-cube.co.jp/
  588. For the full copyright and license information, please view the LICENSE
  589. file that was distributed with this source code.
  590. #}
  591. {% extends 'default_frame.twig' %}
  592. {% set body_class = 'product_page' %}
  593. {% block javascript %}
  594.     <script>
  595.         eccube.productsClassCategories = {
  596.             {% for Product in pagination %}
  597.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  598.             {% endfor %}
  599.         };
  600.         \$(function() {
  601.             // 表示件数を変更
  602.             \$('.disp-number').change(function() {
  603.                 var dispNumber = \$(this).val();
  604.                 \$('#disp_number').val(dispNumber);
  605.                 \$('#pageno').val(1);
  606.                 \$(\"#form1\").submit();
  607.             });
  608.             // 並び順を変更
  609.             \$('.order-by').change(function() {
  610.                 var orderBy = \$(this).val();
  611.                 \$('#orderby').val(orderBy);
  612.                 \$('#pageno').val(1);
  613.                 \$(\"#form1\").submit();
  614.             });
  615.             \$('.add-cart').on('click', function(e) {
  616.                 var \$form = \$(this).parents('li').find('form');
  617.                 // 個数フォームのチェック
  618.                 var \$quantity = \$form.parent().find('.quantity');
  619.                 if (\$quantity.val() < 1) {
  620.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  621.                     setTimeout(function() {
  622.                         loadingOverlay('hide');
  623.                     }, 100);
  624.                     return true;
  625.                 } else {
  626.                     \$quantity[0].setCustomValidity('');
  627.                 }
  628.                 e.preventDefault();
  629.                 \$.ajax({
  630.                     url: \$form.attr('action'),
  631.                     type: \$form.attr('method'),
  632.                     data: \$form.serialize(),
  633.                     dataType: 'json',
  634.                     beforeSend: function(xhr, settings) {
  635.                         // Buttonを無効にする
  636.                         \$('.add-cart').prop('disabled', true);
  637.                     }
  638.                 }).done(function(data) {
  639.                     // レスポンス内のメッセージをalertで表示
  640.                     \$.each(data.messages, function() {
  641.                         \$('#ec-modal-header').html(this);
  642.                     });
  643.                     \$('.ec-modal').show()
  644.                     // カートブロックを更新する
  645.                     \$.ajax({
  646.                         url: '{{ url('block_cart') }}',
  647.                         type: 'GET',
  648.                         dataType: 'html'
  649.                     }).done(function(html) {
  650.                         \$('.ec-headerRole__cart').html(html);
  651.                     });
  652.                 }).fail(function(data) {
  653.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  654.                 }).always(function(data) {
  655.                     // Buttonを有効にする
  656.                     \$('.add-cart').prop('disabled', false);
  657.                 });
  658.             });
  659.         });
  660.         \$('.ec-modal-wrap').on('click', function(e) {
  661.             // モーダル内の処理は外側にバブリングさせない
  662.             e.stopPropagation();
  663.         });
  664.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  665.             \$('.ec-modal').hide()
  666.         });
  667.     </script>
  668. {% endblock %}
  669. {% block main %}
  670.     
  671.     {# タイトル #}
  672.     <div class=\"container\">
  673.         {% set request_uri = app.request.server.get('REQUEST_URI') %}
  674.         {% if Category is not null %}
  675.             {% if Category.children|length > 0 %}
  676.                 <h2 class=\"page-title\">
  677.                     <span class=\"_main\">
  678.                         {{ Category.name }}
  679.                     </span>
  680.                 </h2>
  681.             {% else %}
  682.                 {% set ParentCat = Category.Parent %}
  683.                 <h2 class=\"page-title\">
  684.                     <span class=\"_main\">
  685.                         {{ ParentCat.name }}
  686.                     </span>
  687.                 </h2>
  688.             {% endif %}
  689.         {% elseif search_form.vars.value and search_form.vars.value.name %}
  690.             <h2 class=\"page-title\">
  691.                 <span class=\"_main\">
  692.                     {{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}
  693.                 </span>
  694.             </h2>
  695.         {% else %}
  696.             <h2 class=\"page-title\">
  697.                 <span class=\"_main\">全ての商品</span>
  698.                 <span class=\"_sub\">PRODUCTS ALL</span>
  699.             </h2>
  700.         {% endif %}
  701.     </div>
  702.     {% if search_form.category_id.vars.errors|length > 0 %}
  703.         <div class=\"ec-searchnavRole\">
  704.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  705.         </div>
  706.     {% else %}
  707.         <div class=\"ec-searchnavRole\">
  708.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  709.                 {% for item in search_form %}
  710.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  711.                            name=\"{{ item.vars.full_name }}\"
  712.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  713.                 {% endfor %}
  714.             </form>
  715.             
  716.             <div class=\"ec-searchnavRole__infos\">
  717.                 <div class=\"ec-searchnavRole__counter\">
  718.                     {% if pagination.totalItemCount > 0 %}
  719.                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  720.                     {% else %}
  721.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  722.                     {% endif %}
  723.                 </div>
  724.                 {% if pagination.totalItemCount > 0 %}
  725.                     <div class=\"ec-searchnavRole__actions\">
  726.                         <div class=\"ec-select\">
  727.                             <div class=\"ec-select__group\">
  728.                                 <span>件数</span>
  729.                                 {{ form_widget(disp_number_form, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  730.                             </div>
  731.                             <div class=\"ec-select__group\">
  732.                                 <span>表示順</span>
  733.                                 {{ form_widget(order_by_form, {'id': '', 'attr': {'class': 'order-by'}}) }}
  734.                             </div>
  735.                         </div>
  736.                     </div>
  737.                 {% endif %}
  738.             </div>
  739.         </div>
  740.         
  741.         {% if Category is not null %}
  742.         {# 子カテゴリがある場合 #}
  743.             {% if Category.children|length > 0 %}
  744.                 <div class=\"cat-nav\">
  745.                     <div class=\"container\">
  746.                         {% set cate_childs = Category.getDescendants %}
  747.                         {% if cate_childs %}
  748.                         {% set h = Category.hierarchy + 1 %}
  749.                         <ul class=\"cat-nav__list\">
  750.                             {% for cate in cate_childs %}
  751.                                 {% if h == cate.hierarchy %}
  752.                                 <li class=\"cat-nav__item\">
  753.                                     <a href=\"{{ url('product_list') }}?category_id={{ cate.id }}\">{{ cate.name }}</a>
  754.                                 </li>
  755.                                 {% endif %}
  756.                             {% endfor %}
  757.                         </ul>
  758.                         {% endif %}
  759.                     </div>
  760.                 </div>
  761.             {% else %}
  762.                 <div class=\"cat-nav\">
  763.                     <div class=\"container\">
  764.                         {# 子カテゴリがない場合 #}
  765.                         <ul class=\"cat-nav__list\">
  766.                             <li class=\"cat-nav__item is-current\">
  767.                                 <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">
  768.                                     {{ Category.name }}
  769.                                 </a>
  770.                             </li>
  771.                         {% set SameRankCategories = repository('Eccube\\\\Entity\\\\Category').getList(Category.Parent) %}
  772.                         {% for SameRankCategory in SameRankCategories if Category is not same as(SameRankCategory)  %}
  773.                             <li class=\"cat-nav__item\">
  774.                                 <a href=\"{{ url('product_list') }}?category_id={{ SameRankCategory.id }}\">
  775.                                     {{ SameRankCategory.name }}
  776.                                 </a>
  777.                             </li>
  778.                         {% endfor %}
  779.                         </ul>
  780.                     </div>
  781.                 </div>
  782.             {% endif %}
  783.         {% endif %}
  784.         
  785.         
  786.         
  787.         
  788.         {% if pagination.totalItemCount > 0 %}
  789.             <div class=\"ec-shelfRole _list\">
  790.                 <ul class=\"ec-shelfGrid\">
  791.                     {% for Product in pagination %}
  792.                         <li class=\"ec-shelfGrid__item\">
  793.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  794.                                 <p class=\"ec-shelfGrid__item-image\">
  795.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" loading=\"lazy\">
  796.                                 </p>
  797.                                 <p class=\"ec-shelfGrid__item-title\">{{ Product.name }}</p>
  798.                                 <div class=\"ec-shelfGrid__item-btn\">
  799.                                     <span class=\"btn-basic _red _small\">
  800.                                         詳しく見る
  801.                                     </span>
  802.                                 </div>
  803.                                 <p class=\"ec-shelfGrid__item-description\">
  804.                                     {% if Product.description_list %}
  805.                                         <p>{{ Product.description_list|raw|nl2br }}</p>
  806.                                     {% endif %}
  807.                                 </p>
  808.                             </a>
  809.                             {# {% if Product.stock_find %}
  810.                                 {% set form = forms[Product.id] %}
  811.                                 <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  812.                                     <div class=\"ec-productRole__actions\">
  813.                                         {% if form.classcategory_id1 is defined %}
  814.                                             <div class=\"ec-select\">
  815.                                                 {{ form_widget(form.classcategory_id1) }}
  816.                                                 {{ form_errors(form.classcategory_id1) }}
  817.                                             </div>
  818.                                             {% if form.classcategory_id2 is defined %}
  819.                                                 <div class=\"ec-select\">
  820.                                                     {{ form_widget(form.classcategory_id2) }}
  821.                                                     {{ form_errors(form.classcategory_id2) }}
  822.                                                 </div>
  823.                                             {% endif %}
  824.                                         {% endif %}
  825.                                         <div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
  826.                                             {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  827.                                             {{ form_errors(form.quantity) }}
  828.                                         </div>
  829.                                     </div>
  830.                                     {{ form_rest(form) }}
  831.                                 </form>
  832.                                 <div class=\"ec-productRole__btn\">
  833.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  834.                                         {{ 'カートに入れる'|trans }}
  835.                                     </button>
  836.                                 </div>
  837.                             {% else %}
  838.                                 <div class=\"ec-productRole__btn\">
  839.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  840.                                         {{ 'ただいま品切れ中です。'|trans }}
  841.                                     </button>
  842.                                 </div>
  843.                             {% endif %} #}
  844.                         </li>
  845.                     {% endfor %}
  846.                 </ul>
  847.             </div>
  848.             <div class=\"ec-modal\">
  849.                 <div class=\"ec-modal-overlay\">
  850.                     <div class=\"ec-modal-wrap\">
  851.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  852.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  853.                         <div class=\"ec-modal-box\">
  854.                             <div class=\"ec-role\">
  855.                                 <span class=\"btn-basic _sub _prev\">{{ 'お買い物を続ける'|trans }}</span>
  856.                                 <a href=\"{{ url('cart') }}\" class=\"btn-cart\">{{ 'カートへ進む'|trans }}</a>
  857.                             </div>
  858.                         </div>
  859.                     </div>
  860.                 </div>
  861.             </div>
  862.             <div class=\"ec-pagerRole\">
  863.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  864.             </div>
  865.         {% endif %}
  866.     {% endif %}
  867. {% endblock %}""Product/list.twig""/home/saicomp/stg-site.jp/public_html/cosmo-test3.stg-site.jp/app/template/default/Product/list.twig");
  868.     }
  869. }