var/cache/dev/twig/fb/fb3c6e6457dbf0aecf5a2937cec118b4a20b6968e64da1f7194a58d04c5e5656.php line 52

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