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