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