var/cache/dev/twig/32/32146e1a7065acadb4b4cd1d05c00428.php line 53

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_14789029f9cb8b5b1f1d14e26ee978f6 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.             'stylesheet' => [$this'block_stylesheet'],
  24.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 11
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  40.         // line 13
  41.         $context["body_class"] = "product_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 15
  51.     public function block_stylesheet($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.     }
  63.     // line 17
  64.     public function block_javascript($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  71.         // line 18
  72.         echo "    <script src=\"";
  73.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/eccube.js"), "html"nulltrue);
  74.         echo "\"></script>
  75.     <script>
  76.         eccube.productsClassCategories = {
  77.             ";
  78.         // line 21
  79.         $context['_parent'] = $context;
  80.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'21$this->source); })()));
  81.         $context['loop'] = [
  82.           'parent' => $context['_parent'],
  83.           'index0' => 0,
  84.           'index'  => 1,
  85.           'first'  => true,
  86.         ];
  87.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  88.             $length count($context['_seq']);
  89.             $context['loop']['revindex0'] = $length 1;
  90.             $context['loop']['revindex'] = $length;
  91.             $context['loop']['length'] = $length;
  92.             $context['loop']['last'] = === $length;
  93.         }
  94.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  95.             // line 22
  96.             echo "                \"";
  97.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse22), "js"), "html"nulltrue);
  98.             echo "\": ";
  99.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  100.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse22) == false)) {
  101.                 echo ", ";
  102.             }
  103.             // line 23
  104.             echo "            ";
  105.             ++$context['loop']['index0'];
  106.             ++$context['loop']['index'];
  107.             $context['loop']['first'] = false;
  108.             if (isset($context['loop']['length'])) {
  109.                 --$context['loop']['revindex0'];
  110.                 --$context['loop']['revindex'];
  111.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  112.             }
  113.         }
  114.         $_parent $context['_parent'];
  115.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  116.         $context array_intersect_key($context$_parent) + $_parent;
  117.         // line 24
  118.         echo "        };
  119.         \$(function() {
  120.             // 表示件数を変更
  121.             \$('.disp-number').change(function() {
  122.                 var dispNumber = \$(this).val();
  123.                 \$('#disp_number').val(dispNumber);
  124.                 \$('#pageno').val(1);
  125.                 \$(\"#form1\").submit();
  126.             });
  127.             // 並び順を変更
  128.             \$('.order-by').change(function() {
  129.                 var orderBy = \$(this).val();
  130.                 \$('#orderby').val(orderBy);
  131.                 \$('#pageno').val(1);
  132.                 \$(\"#form1\").submit();
  133.             });
  134.             \$('.add-cart').on('click', function(e) {
  135.                 var \$form = \$(this).parents('li').find('form');
  136.                 // 個数フォームのチェック
  137.                 var \$quantity = \$form.parent().find('.quantity');
  138.                 if (\$quantity.val() < 1) {
  139.                     \$quantity[0].setCustomValidity('";
  140.         // line 50
  141.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  142.         echo "');
  143.                     setTimeout(function() {
  144.                         loadingOverlay('hide');
  145.                     }, 100);
  146.                     return true;
  147.                 } else {
  148.                     \$quantity[0].setCustomValidity('');
  149.                 }
  150.                 e.preventDefault();
  151.                 \$.ajax({
  152.                     url: \$form.attr('action'),
  153.                     type: \$form.attr('method'),
  154.                     data: \$form.serialize(),
  155.                     dataType: 'json',
  156.                     beforeSend: function(xhr, settings) {
  157.                         // Buttonを無効にする
  158.                         \$('.add-cart').prop('disabled', true);
  159.                     }
  160.                 }).done(function(data) {
  161.                     // レスポンス内のメッセージをalertで表示
  162.                     \$.each(data.messages, function() {
  163.                         \$('#js-product__modal-message').html(this);
  164.                     });
  165.                     \$('#p-product__modal-checkbox').prop('checked', true);
  166.                     // カートブロックを更新する
  167.                     \$.ajax({
  168.                         url: '";
  169.         // line 78
  170.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  171.         echo "',
  172.                         type: 'GET',
  173.                         dataType: 'html'
  174.                     }).done(function(html) {
  175.                         \$('#js-header__utility-cart').html(html);
  176.                     });
  177.                 }).fail(function(data) {
  178.                     alert('";
  179.         // line 85
  180.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  181.         echo "');
  182.                 }).always(function(data) {
  183.                     // Buttonを有効にする
  184.                     \$('.add-cart').prop('disabled', false);
  185.                 });
  186.             });
  187.         });
  188.     </script>
  189. ";
  190.         
  191.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  192.         
  193.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  194.     }
  195.     // line 95
  196.     public function block_main($context, array $blocks = [])
  197.     {
  198.         $macros $this->macros;
  199.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  200.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  201.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  202.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  203.         // line 96
  204.         echo "
  205.     <section class=\"p-product\">
  206.         <h2 class=\"p-product__title\">
  207.             ";
  208.         // line 99
  209.         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.'99$this->source); })()), "vars", [], "any"falsefalsefalse99), "value", [], "any"falsefalsefalse99) && 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.'99$this->source); })()), "vars", [], "any"falsefalsefalse99), "value", [], "any"falsefalsefalse99), "name", [], "any"falsefalsefalse99))) {
  210.             // line 100
  211.             echo "                <span class=\"p-product__title-text\">KEYWORD SEARCH</span>
  212.             ";
  213.         } elseif ( !(null ===         // line 101
  214. (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'101$this->source); })()))) {
  215.             // line 102
  216.             echo "                <span class=\"p-product__title-text\">ITEMS</span>
  217.             ";
  218.         } else {
  219.             // line 104
  220.             echo "                <span class=\"p-product__title-text\">ALL ITEMS</span>
  221.             ";
  222.         }
  223.         // line 106
  224.         echo "        </h2>
  225.         <div class=\"p-product__contents\">
  226.             ";
  227.         // line 108
  228.         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.'108$this->source); })()), "category_id", [], "any"falsefalsefalse108), "vars", [], "any"falsefalsefalse108), "errors", [], "any"falsefalsefalse108)) > 0)) {
  229.             // line 109
  230.             echo "                <p>";
  231.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  232.             echo "</p>
  233.             ";
  234.         } else {
  235.             // line 111
  236.             echo "                <div class=\"p-product__search\">
  237.                     <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  238.                         ";
  239.             // line 113
  240.             $context['_parent'] = $context;
  241.             $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.'113$this->source); })()));
  242.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  243.                 // line 114
  244.                 echo "                            <input type=\"hidden\" id=\"";
  245.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse114), "id", [], "any"falsefalsefalse114), "html"nulltrue);
  246.                 echo "\" name=\"";
  247.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse114), "full_name", [], "any"falsefalsefalse114), "html"nulltrue);
  248.                 echo "\" ";
  249.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse114), "value", [], "any"falsefalsefalse114))) {
  250.                     echo "value=\"";
  251.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse114), "value", [], "any"falsefalsefalse114), "html"nulltrue);
  252.                     echo "\" ";
  253.                 }
  254.                 echo "/>
  255.                         ";
  256.             }
  257.             $_parent $context['_parent'];
  258.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  259.             $context array_intersect_key($context$_parent) + $_parent;
  260.             // line 116
  261.             echo "                    </form>
  262.                     <div class=\"p-product__topicpath\">
  263.                         <ul class=\"p-product__topicpath-list u-list-sanitize\">
  264.                             <li class=\"p-product__topicpath-list-item\">
  265.                                 <a class=\"p-product__topicpath-link\" href=\"";
  266.             // line 120
  267.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  268.             echo "\">";
  269.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  270.             echo "</a>
  271.                             </li>
  272.                             ";
  273.             // line 122
  274.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'122$this->source); })()))) {
  275.                 // line 123
  276.                 echo "                                ";
  277.                 $context['_parent'] = $context;
  278.                 $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.'123$this->source); })()), "path", [], "any"falsefalsefalse123));
  279.                 $context['loop'] = [
  280.                   'parent' => $context['_parent'],
  281.                   'index0' => 0,
  282.                   'index'  => 1,
  283.                   'first'  => true,
  284.                 ];
  285.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  286.                     $length count($context['_seq']);
  287.                     $context['loop']['revindex0'] = $length 1;
  288.                     $context['loop']['revindex'] = $length;
  289.                     $context['loop']['length'] = $length;
  290.                     $context['loop']['last'] = === $length;
  291.                 }
  292.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  293.                     // line 124
  294.                     echo "                                    <li class=\"p-product__topicpath-list-item";
  295.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse124)) {
  296.                         echo " is-active";
  297.                     }
  298.                     echo "\">
  299.                                         <a class=\"p-product__topicpath-link\" href=\"";
  300.                     // line 125
  301.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  302.                     echo "?category_id=";
  303.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse125), "html"nulltrue);
  304.                     echo "\">";
  305.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse125), "html"nulltrue);
  306.                     echo "</a>
  307.                                     </li>
  308.                                 ";
  309.                     ++$context['loop']['index0'];
  310.                     ++$context['loop']['index'];
  311.                     $context['loop']['first'] = false;
  312.                     if (isset($context['loop']['length'])) {
  313.                         --$context['loop']['revindex0'];
  314.                         --$context['loop']['revindex'];
  315.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  316.                     }
  317.                 }
  318.                 $_parent $context['_parent'];
  319.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  320.                 $context array_intersect_key($context$_parent) + $_parent;
  321.                 // line 128
  322.                 echo "                            ";
  323.             }
  324.             // line 129
  325.             echo "                            ";
  326.             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.'129$this->source); })()), "vars", [], "any"falsefalsefalse129), "value", [], "any"falsefalsefalse129) && 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.'129$this->source); })()), "vars", [], "any"falsefalsefalse129), "value", [], "any"falsefalsefalse129), "name", [], "any"falsefalsefalse129))) {
  327.                 // line 130
  328.                 echo "                                <li class=\"p-product__topicpath-list-item is-result\">
  329.                                     <p class=\"p-product__topicpath-result\">";
  330.                 // line 131
  331.                 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.'131$this->source); })()), "vars", [], "any"falsefalsefalse131), "value", [], "any"falsefalsefalse131), "name", [], "any"falsefalsefalse131)]), "html"nulltrue);
  332.                 echo "</p>
  333.                                 </li>
  334.                             ";
  335.             }
  336.             // line 134
  337.             echo "                        </ul>
  338.                     </div>
  339.                     <div class=\"p-product__controller\">
  340.                         <p class=\"p-product__controller-result\">
  341.                             ";
  342.             // line 138
  343.             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.'138$this->source); })()), "totalItemCount", [], "any"falsefalsefalse138) > 0)) {
  344.                 // line 139
  345.                 echo "                                ";
  346.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"p-product__controller-result--number\">%count%件</span><span class=\"p-product__controller-result--text\">の商品が見つかりました</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.'139$this->source); })()), "totalItemCount", [], "any"falsefalsefalse139)]);
  347.                 echo "
  348.                             ";
  349.             } else {
  350.                 // line 141
  351.                 echo "                                <span class=\"p-product__controller-result--text\">";
  352.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  353.                 echo "</span>
  354.                             ";
  355.             }
  356.             // line 143
  357.             echo "                        </p>
  358.                         ";
  359.             // line 144
  360.             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.'144$this->source); })()), "totalItemCount", [], "any"falsefalsefalse144) > 0)) {
  361.                 // line 145
  362.                 echo "                            <div class=\"p-product__controller-actions\">
  363.                                 <div class=\"p-product__controller-actions-item\">
  364.                                     <div class=\"c-select mdc-select mdc-select--outlined\">
  365.                                         <i class=\"mdc-select__dropdown-icon\"></i>
  366.                                         <label class=\"c-select__label\" for=\"disp-number\">件数</label>
  367.                                         ";
  368.                 // line 150
  369.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(((array_key_exists("disp_number_form"$context)) ? ((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.'150$this->source); })())) : (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.'150$this->source); })()), "disp_number", [], "any"falsefalsefalse150))), 'widget', ["id" => "disp-number""attr" => ["class" => "c-select__native-control mdc-select__native-control disp-number"]]);
  370.                 echo "
  371.                                         <div class=\"mdc-notched-outline\">
  372.                                             <div class=\"mdc-notched-outline__leading\"></div>
  373.                                             <div class=\"mdc-notched-outline__notch\"></div>
  374.                                             <div class=\"mdc-notched-outline__trailing\"></div>
  375.                                         </div>
  376.                                     </div>
  377.                                 </div>
  378.                                 <div class=\"p-product__controller-actions-item\">
  379.                                     <div class=\"c-select mdc-select mdc-select--outlined\">
  380.                                         <i class=\"mdc-select__dropdown-icon\"></i>
  381.                                         <label class=\"c-select__label\" for=\"order-by\">並び順</label>
  382.                                         ";
  383.                 // line 162
  384.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(((array_key_exists("order_by_form"$context)) ? ((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.'162$this->source); })())) : (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.'162$this->source); })()), "orderby", [], "any"falsefalsefalse162))), 'widget', ["id" => "order-by""attr" => ["class" => "c-select__native-control mdc-select__native-control order-by"]]);
  385.                 echo "
  386.                                         <div class=\"mdc-notched-outline\">
  387.                                             <div class=\"mdc-notched-outline__leading\"></div>
  388.                                             <div class=\"mdc-notched-outline__notch\"></div>
  389.                                             <div class=\"mdc-notched-outline__trailing\"></div>
  390.                                         </div>
  391.                                     </div>
  392.                                 </div>
  393.                             </div>
  394.                         ";
  395.             }
  396.             // line 172
  397.             echo "                    </div>
  398.                 </div>
  399.                 ";
  400.             // line 174
  401.             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.'174$this->source); })()), "totalItemCount", [], "any"falsefalsefalse174) > 0)) {
  402.                 // line 175
  403.                 echo "                    <ul class=\"p-product__list u-list-sanitize\">
  404.                         ";
  405.                 // line 176
  406.                 $context['_parent'] = $context;
  407.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'176$this->source); })()));
  408.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  409.                     // line 177
  410.                     echo "                            <li class=\"p-product__list-item\">
  411.                                 <section class=\"c-list-product\">
  412.                                     <a class=\"c-list-product__link\" href=\"";
  413.                     // line 179
  414.                     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"falsefalsefalse179)]), "html"nulltrue);
  415.                     echo "\">
  416.                                         <div class=\"c-list-product__image js-list-product__image\">
  417.                                             <div class=\"c-list-product__image-contents\">
  418.                                                 <img class=\"c-list-product__image-pic\" src=\"";
  419.                     // line 182
  420.                     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"falsefalsefalse182)), "save_image"), "html"nulltrue);
  421.                     echo "\" alt=\"";
  422.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse182), "html"nulltrue);
  423.                     echo "\">
  424.                                             </div>
  425.                                         </div>
  426.                                         <h2 class=\"c-list-product__name js-list-product__name\">";
  427.                     // line 185
  428.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse185), "html"nulltrue);
  429.                     echo "</h2>
  430.                                         <p class=\"c-list-product__price\">
  431.                                             <span class=\"price02-default\">
  432.                                                 ";
  433.                     // line 188
  434.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse188)) {
  435.                         // line 189
  436.                         echo "                                                    ";
  437.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse189) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse189))) {
  438.                             // line 190
  439.                             echo "                                                        ";
  440.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse190)), "html"nulltrue);
  441.                             echo "
  442.                                                     ";
  443.                         } else {
  444.                             // line 192
  445.                             echo "                                                        ";
  446.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse192)), "html"nulltrue);
  447.                             echo " ~ ";
  448.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse192)), "html"nulltrue);
  449.                             echo "
  450.                                                     ";
  451.                         }
  452.                         // line 194
  453.                         echo "                                                ";
  454.                     } else {
  455.                         // line 195
  456.                         echo "                                                    ";
  457.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse195)), "html"nulltrue);
  458.                         echo "
  459.                                                 ";
  460.                     }
  461.                     // line 197
  462.                     echo "                                            </span>
  463.                                         </p>
  464.                                     </a>
  465.                                     ";
  466.                     // line 200
  467.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse200)) {
  468.                         // line 201
  469.                         echo "                                        ";
  470.                         $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.'201$this->source); })()), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse201), [], "array"falsefalsefalse201);
  471.                         // line 202
  472.                         echo "                                        <form name=\"form";
  473.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse202), "html"nulltrue);
  474.                         echo "\" id=\"productForm";
  475.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse202), "html"nulltrue);
  476.                         echo "\" action=\"";
  477.                         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"falsefalsefalse202)]), "html"nulltrue);
  478.                         echo "\" method=\"post\">
  479.                                             <div class=\"c-list-product__form\">
  480.                                                 ";
  481.                         // line 204
  482.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse204)) {
  483.                             // line 205
  484.                             echo "                                                    <div class=\"c-list-product__form-box\">
  485.                                                         <div class=\"c-list-product__form-box-item\">
  486.                                                             <div class=\"c-select mdc-select mdc-select--outlined";
  487.                             // line 207
  488.                             echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(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.'207$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse207))) ? (" mdc-select--invalid") : (""));
  489.                             echo "\">
  490.                                                                 <i class=\"mdc-select__dropdown-icon\"></i>
  491.                                                                 <label class=\"c-select__label\" for=\"";
  492.                             // line 209
  493.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'209$this->source); })()), "children", [], "any"falsefalsefalse209), "classcategory_id1", [], "any"falsefalsefalse209), "vars", [], "any"falsefalsefalse209), "id", [], "any"falsefalsefalse209), "html"nulltrue);
  494.                             echo "\">";
  495.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'209$this->source); })()), "children", [], "any"falsefalsefalse209), "classcategory_id1", [], "any"falsefalsefalse209), "vars", [], "any"falsefalsefalse209), "label", [], "any"falsefalsefalse209), "html"nulltrue);
  496.                             echo "</label>
  497.                                                                 ";
  498.                             // line 210
  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.'210$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse210), 'widget', ["attr" => ["class" => "c-select__native-control mdc-select__native-control"]]);
  500.                             echo "
  501.                                                                 <div class=\"mdc-notched-outline\">
  502.                                                                     <div class=\"mdc-notched-outline__leading\"></div>
  503.                                                                     <div class=\"mdc-notched-outline__notch\"></div>
  504.                                                                     <div class=\"mdc-notched-outline__trailing\"></div>
  505.                                                                 </div>
  506.                                                             </div>
  507.                                                             ";
  508.                             // line 217
  509.                             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.'217$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse217), 'errors', ["label_attr" => ["class" => "mdc-select-helper-text mdc-select-helper-text--validation-msg"]]);
  510.                             echo "
  511.                                                         </div>
  512.                                                     </div>
  513.                                                     ";
  514.                             // line 220
  515.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse220)) {
  516.                                 // line 221
  517.                                 echo "                                                        <div class=\"c-list-product__form-box\">
  518.                                                             <div class=\"c-list-product__form-box-item\">
  519.                                                                 <div class=\"c-select mdc-select mdc-select--outlined";
  520.                                 // line 223
  521.                                 echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(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.'223$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse223))) ? (" mdc-select--invalid") : (""));
  522.                                 echo "\">
  523.                                                                     <i class=\"mdc-select__dropdown-icon\"></i>
  524.                                                                     <label class=\"c-select__label\" for=\"";
  525.                                 // line 225
  526.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'225$this->source); })()), "children", [], "any"falsefalsefalse225), "classcategory_id2", [], "any"falsefalsefalse225), "vars", [], "any"falsefalsefalse225), "id", [], "any"falsefalsefalse225), "html"nulltrue);
  527.                                 echo "\">";
  528.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'225$this->source); })()), "children", [], "any"falsefalsefalse225), "classcategory_id2", [], "any"falsefalsefalse225), "vars", [], "any"falsefalsefalse225), "label", [], "any"falsefalsefalse225), "html"nulltrue);
  529.                                 echo "</label>
  530.                                                                     ";
  531.                                 // line 226
  532.                                 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.'226$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse226), 'widget', ["attr" => ["class" => "c-select__native-control mdc-select__native-control"]]);
  533.                                 echo "
  534.                                                                     <div class=\"mdc-notched-outline\">
  535.                                                                         <div class=\"mdc-notched-outline__leading\"></div>
  536.                                                                         <div class=\"mdc-notched-outline__notch\"></div>
  537.                                                                         <div class=\"mdc-notched-outline__trailing\"></div>
  538.                                                                     </div>
  539.                                                                 </div>
  540.                                                                 ";
  541.                                 // line 233
  542.                                 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.'233$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse233), 'errors', ["label_attr" => ["class" => "mdc-select-helper-text mdc-select-helper-text--validation-msg"]]);
  543.                                 echo "
  544.                                                             </div>
  545.                                                         </div>
  546.                                                     ";
  547.                             }
  548.                             // line 237
  549.                             echo "                                                ";
  550.                         }
  551.                         // line 238
  552.                         echo "                                                <div class=\"c-list-product__form-box\">
  553.                                                     <div class=\"c-list-product__form-box-item\">
  554.                                                         <div class=\"c-text-field mdc-text-field mdc-text-field--outlined\">
  555.                                                             ";
  556.                         // line 241
  557.                         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.'241$this->source); })()), "quantity", [], "any"falsefalsefalse241), 'widget', ["attr" => ["class" => "c-text-field__input mdc-text-field__input quantity"]]);
  558.                         echo "
  559.                                                             <div class=\"mdc-notched-outline\">
  560.                                                                 <div class=\"mdc-notched-outline__leading\"></div>
  561.                                                                 <div class=\"mdc-notched-outline__notch\">
  562.                                                                     <label class=\"c-floating-label mdc-floating-label\" for=\"quantity";
  563.                         // line 245
  564.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse245), "html"nulltrue);
  565.                         echo "\">数量</label>
  566.                                                                 </div>
  567.                                                                 <div class=\"mdc-notched-outline__trailing\"></div>
  568.                                                             </div>
  569.                                                         </div>
  570.                                                         ";
  571.                         // line 250
  572.                         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.'250$this->source); })()), "quantity", [], "any"falsefalsefalse250), 'errors');
  573.                         echo "
  574.                                                     </div>
  575.                                                 </div>
  576.                                                 ";
  577.                         // line 253
  578.                         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.'253$this->source); })()), 'rest');
  579.                         echo "
  580.                                             </div>
  581.                                         </form>
  582.                                         <div class=\"c-list-product__actions\">
  583.                                             <div class=\"c-list-product__actions-item\">
  584.                                                 <button class=\"c-button is-secondary c-button--unelevated mdc-button mdc-button--unelevated add-cart\" type=\"submit\" data-cartid=\"";
  585.                         // line 258
  586.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse258), "html"nulltrue);
  587.                         echo "\" form=\"productForm";
  588.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse258), "html"nulltrue);
  589.                         echo "\">
  590.                                                     <span class=\"c-button__label mdc-button__label\">";
  591.                         // line 259
  592.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  593.                         echo "</span>
  594.                                                 </button>
  595.                                             </div>
  596.                                         </div>
  597.                                     ";
  598.                     } else {
  599.                         // line 264
  600.                         echo "                                        <div class=\"c-list-product__actions\">
  601.                                             <div class=\"c-list-product__actions-item\">
  602.                                                 <button class=\"c-button c-button--unelevated mdc-button mdc-button--unelevated\" type=\"button\" disabled=\"disabled\">
  603.                                                     <span class=\"c-button__label mdc-button__label\">";
  604.                         // line 267
  605.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SOLD OUT"), "html"nulltrue);
  606.                         echo "</span>
  607.                                                 </button>
  608.                                             </div>
  609.                                         </div>
  610.                                     ";
  611.                     }
  612.                     // line 272
  613.                     echo "                                </section>
  614.                             </li>
  615.                         ";
  616.                 }
  617.                 $_parent $context['_parent'];
  618.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  619.                 $context array_intersect_key($context$_parent) + $_parent;
  620.                 // line 275
  621.                 echo "                    </ul>
  622.                     <div class=\"p-product__modal\">
  623.                         <input class=\"p-product__modal-checkbox\" id=\"p-product__modal-checkbox\" type=\"checkbox\">
  624.                         <div class=\"p-product__modal-overlay\">
  625.                             <label class=\"p-product__modal-overlay-close\" for=\"p-product__modal-checkbox\"></label>
  626.                             <div class=\"p-product__modal-contents\">
  627.                                 <label class=\"p-product__modal-close\" for=\"p-product__modal-checkbox\">
  628.                                     <i class=\"p-product__modal-close-icon material-icons\">close</i>
  629.                                 </label>
  630.                                 <div class=\"p-product__modal-header\">
  631.                                     <p class=\"p-product__modal-message\" id=\"js-product__modal-message\">";
  632.                 // line 285
  633.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  634.                 echo "</p>
  635.                                 </div>
  636.                                 <div class=\"p-product__modal-actions\">
  637.                                     <div class=\"p-product__modal-actions-item\">
  638.                                         <a class=\"p-product__modal-button c-button c-button--unelevated is-secondary mdc-button mdc-button--unelevated\" href=\"";
  639.                 // line 289
  640.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  641.                 echo "\">
  642.                                             <span class=\"c-button__label mdc-button__label\">";
  643.                 // line 290
  644.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  645.                 echo "</span>
  646.                                         </a>
  647.                                     </div>
  648.                                     <div class=\"p-product__modal-actions-item\">
  649.                                         <label class=\"p-product__modal-button c-button c-button--unelevated is-primary mdc-button mdc-button--unelevated\" for=\"p-product__modal-checkbox\">
  650.                                             <span class=\"c-button__label mdc-button__label\">";
  651.                 // line 295
  652.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  653.                 echo "</span>
  654.                                         </label>
  655.                                     </div>
  656.                                 </div>
  657.                             </div>
  658.                         </div>
  659.                     </div>
  660.                     ";
  661.                 // line 303
  662.                 $this->loadTemplate("pager.twig""Product/list.twig"303)->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.'303$this->source); })()), "paginationData", [], "any"falsefalsefalse303)]));
  663.                 // line 304
  664.                 echo "                ";
  665.             }
  666.             // line 305
  667.             echo "            ";
  668.         }
  669.         // line 306
  670.         echo "        </div>
  671.     </section>
  672. ";
  673.         
  674.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  675.         
  676.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  677.     }
  678.     public function getTemplateName()
  679.     {
  680.         return "Product/list.twig";
  681.     }
  682.     public function isTraitable()
  683.     {
  684.         return false;
  685.     }
  686.     public function getDebugInfo()
  687.     {
  688.         return array (  702 => 306,  699 => 305,  696 => 304,  694 => 303,  683 => 295,  675 => 290,  671 => 289,  664 => 285,  652 => 275,  644 => 272,  636 => 267,  631 => 264,  623 => 259,  617 => 258,  609 => 253,  603 => 250,  595 => 245,  588 => 241,  583 => 238,  580 => 237,  573 => 233,  563 => 226,  557 => 225,  552 => 223,  548 => 221,  546 => 220,  540 => 217,  530 => 210,  524 => 209,  519 => 207,  515 => 205,  513 => 204,  503 => 202,  500 => 201,  498 => 200,  493 => 197,  487 => 195,  484 => 194,  476 => 192,  470 => 190,  467 => 189,  465 => 188,  459 => 185,  451 => 182,  445 => 179,  441 => 177,  437 => 176,  434 => 175,  432 => 174,  428 => 172,  415 => 162,  400 => 150,  393 => 145,  391 => 144,  388 => 143,  382 => 141,  376 => 139,  374 => 138,  368 => 134,  362 => 131,  359 => 130,  356 => 129,  353 => 128,  332 => 125,  325 => 124,  307 => 123,  305 => 122,  298 => 120,  292 => 116,  275 => 114,  271 => 113,  267 => 111,  261 => 109,  259 => 108,  255 => 106,  251 => 104,  247 => 102,  245 => 101,  242 => 100,  240 => 99,  235 => 96,  225 => 95,  206 => 85,  196 => 78,  165 => 50,  137 => 24,  123 => 23,  115 => 22,  98 => 21,  91 => 18,  81 => 17,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  689.     }
  690.     public function getSourceContext()
  691.     {
  692.         return new Source("{#
  693. This file is part of EC-CUBE
  694. Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
  695. http://www.lockon.co.jp/
  696. For the full copyright and license information, please view the LICENSE
  697. file that was distributed with this source code.
  698. #}
  699. {% extends 'default_frame.twig' %}
  700. {% set body_class = 'product_page' %}
  701. {% block stylesheet %}{% endblock %}
  702. {% block javascript %}
  703.     <script src=\"{{ asset('assets/js/eccube.js') }}\"></script>
  704.     <script>
  705.         eccube.productsClassCategories = {
  706.             {% for Product in pagination %}
  707.                 \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  708.             {% endfor %}
  709.         };
  710.         \$(function() {
  711.             // 表示件数を変更
  712.             \$('.disp-number').change(function() {
  713.                 var dispNumber = \$(this).val();
  714.                 \$('#disp_number').val(dispNumber);
  715.                 \$('#pageno').val(1);
  716.                 \$(\"#form1\").submit();
  717.             });
  718.             // 並び順を変更
  719.             \$('.order-by').change(function() {
  720.                 var orderBy = \$(this).val();
  721.                 \$('#orderby').val(orderBy);
  722.                 \$('#pageno').val(1);
  723.                 \$(\"#form1\").submit();
  724.             });
  725.             \$('.add-cart').on('click', function(e) {
  726.                 var \$form = \$(this).parents('li').find('form');
  727.                 // 個数フォームのチェック
  728.                 var \$quantity = \$form.parent().find('.quantity');
  729.                 if (\$quantity.val() < 1) {
  730.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  731.                     setTimeout(function() {
  732.                         loadingOverlay('hide');
  733.                     }, 100);
  734.                     return true;
  735.                 } else {
  736.                     \$quantity[0].setCustomValidity('');
  737.                 }
  738.                 e.preventDefault();
  739.                 \$.ajax({
  740.                     url: \$form.attr('action'),
  741.                     type: \$form.attr('method'),
  742.                     data: \$form.serialize(),
  743.                     dataType: 'json',
  744.                     beforeSend: function(xhr, settings) {
  745.                         // Buttonを無効にする
  746.                         \$('.add-cart').prop('disabled', true);
  747.                     }
  748.                 }).done(function(data) {
  749.                     // レスポンス内のメッセージをalertで表示
  750.                     \$.each(data.messages, function() {
  751.                         \$('#js-product__modal-message').html(this);
  752.                     });
  753.                     \$('#p-product__modal-checkbox').prop('checked', true);
  754.                     // カートブロックを更新する
  755.                     \$.ajax({
  756.                         url: '{{ url('block_cart') }}',
  757.                         type: 'GET',
  758.                         dataType: 'html'
  759.                     }).done(function(html) {
  760.                         \$('#js-header__utility-cart').html(html);
  761.                     });
  762.                 }).fail(function(data) {
  763.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  764.                 }).always(function(data) {
  765.                     // Buttonを有効にする
  766.                     \$('.add-cart').prop('disabled', false);
  767.                 });
  768.             });
  769.         });
  770.     </script>
  771. {% endblock %}
  772. {% block main %}
  773.     <section class=\"p-product\">
  774.         <h2 class=\"p-product__title\">
  775.             {% if search_form.vars.value and search_form.vars.value.name %}
  776.                 <span class=\"p-product__title-text\">KEYWORD SEARCH</span>
  777.             {% elseif Category is not null %}
  778.                 <span class=\"p-product__title-text\">ITEMS</span>
  779.             {% else %}
  780.                 <span class=\"p-product__title-text\">ALL ITEMS</span>
  781.             {% endif %}
  782.         </h2>
  783.         <div class=\"p-product__contents\">
  784.             {% if search_form.category_id.vars.errors|length > 0 %}
  785.                 <p>{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  786.             {% else %}
  787.                 <div class=\"p-product__search\">
  788.                     <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  789.                         {% for item in search_form %}
  790.                             <input type=\"hidden\" id=\"{{ item.vars.id }}\" name=\"{{ item.vars.full_name }}\" {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  791.                         {% endfor %}
  792.                     </form>
  793.                     <div class=\"p-product__topicpath\">
  794.                         <ul class=\"p-product__topicpath-list u-list-sanitize\">
  795.                             <li class=\"p-product__topicpath-list-item\">
  796.                                 <a class=\"p-product__topicpath-link\" href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  797.                             </li>
  798.                             {% if Category is not null %}
  799.                                 {% for Path in Category.path %}
  800.                                     <li class=\"p-product__topicpath-list-item{% if loop.last %} is-active{% endif %}\">
  801.                                         <a class=\"p-product__topicpath-link\" href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  802.                                     </li>
  803.                                 {% endfor %}
  804.                             {% endif %}
  805.                             {% if search_form.vars.value and search_form.vars.value.name %}
  806.                                 <li class=\"p-product__topicpath-list-item is-result\">
  807.                                     <p class=\"p-product__topicpath-result\">{{ '%name%の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</p>
  808.                                 </li>
  809.                             {% endif %}
  810.                         </ul>
  811.                     </div>
  812.                     <div class=\"p-product__controller\">
  813.                         <p class=\"p-product__controller-result\">
  814.                             {% if pagination.totalItemCount > 0 %}
  815.                                 {{ '<span class=\"p-product__controller-result--number\">%count%件</span><span class=\"p-product__controller-result--text\">の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  816.                             {% else %}
  817.                                 <span class=\"p-product__controller-result--text\">{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  818.                             {% endif %}
  819.                         </p>
  820.                         {% if pagination.totalItemCount > 0 %}
  821.                             <div class=\"p-product__controller-actions\">
  822.                                 <div class=\"p-product__controller-actions-item\">
  823.                                     <div class=\"c-select mdc-select mdc-select--outlined\">
  824.                                         <i class=\"mdc-select__dropdown-icon\"></i>
  825.                                         <label class=\"c-select__label\" for=\"disp-number\">件数</label>
  826.                                         {{ form_widget(disp_number_form is defined ? disp_number_form : search_form.disp_number, {'id': 'disp-number', 'attr': {'class': 'c-select__native-control mdc-select__native-control disp-number'}}) }}
  827.                                         <div class=\"mdc-notched-outline\">
  828.                                             <div class=\"mdc-notched-outline__leading\"></div>
  829.                                             <div class=\"mdc-notched-outline__notch\"></div>
  830.                                             <div class=\"mdc-notched-outline__trailing\"></div>
  831.                                         </div>
  832.                                     </div>
  833.                                 </div>
  834.                                 <div class=\"p-product__controller-actions-item\">
  835.                                     <div class=\"c-select mdc-select mdc-select--outlined\">
  836.                                         <i class=\"mdc-select__dropdown-icon\"></i>
  837.                                         <label class=\"c-select__label\" for=\"order-by\">並び順</label>
  838.                                         {{ form_widget(order_by_form is defined ? order_by_form : search_form.orderby, {'id': 'order-by', 'attr': {'class': 'c-select__native-control mdc-select__native-control order-by'}}) }}
  839.                                         <div class=\"mdc-notched-outline\">
  840.                                             <div class=\"mdc-notched-outline__leading\"></div>
  841.                                             <div class=\"mdc-notched-outline__notch\"></div>
  842.                                             <div class=\"mdc-notched-outline__trailing\"></div>
  843.                                         </div>
  844.                                     </div>
  845.                                 </div>
  846.                             </div>
  847.                         {% endif %}
  848.                     </div>
  849.                 </div>
  850.                 {% if pagination.totalItemCount > 0 %}
  851.                     <ul class=\"p-product__list u-list-sanitize\">
  852.                         {% for Product in pagination %}
  853.                             <li class=\"p-product__list-item\">
  854.                                 <section class=\"c-list-product\">
  855.                                     <a class=\"c-list-product__link\" href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  856.                                         <div class=\"c-list-product__image js-list-product__image\">
  857.                                             <div class=\"c-list-product__image-contents\">
  858.                                                 <img class=\"c-list-product__image-pic\" src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\">
  859.                                             </div>
  860.                                         </div>
  861.                                         <h2 class=\"c-list-product__name js-list-product__name\">{{ Product.name }}</h2>
  862.                                         <p class=\"c-list-product__price\">
  863.                                             <span class=\"price02-default\">
  864.                                                 {% if Product.hasProductClass %}
  865.                                                     {% if Product.getPrice02Min == Product.getPrice02Max %}
  866.                                                         {{ Product.getPrice02IncTaxMin|price }}
  867.                                                     {% else %}
  868.                                                         {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  869.                                                     {% endif %}
  870.                                                 {% else %}
  871.                                                     {{ Product.getPrice02IncTaxMin|price }}
  872.                                                 {% endif %}
  873.                                             </span>
  874.                                         </p>
  875.                                     </a>
  876.                                     {% if Product.stock_find %}
  877.                                         {% set form = forms[Product.id] %}
  878.                                         <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  879.                                             <div class=\"c-list-product__form\">
  880.                                                 {% if form.classcategory_id1 is defined %}
  881.                                                     <div class=\"c-list-product__form-box\">
  882.                                                         <div class=\"c-list-product__form-box-item\">
  883.                                                             <div class=\"c-select mdc-select mdc-select--outlined{{ has_errors(form.classcategory_id1) ? ' mdc-select--invalid' }}\">
  884.                                                                 <i class=\"mdc-select__dropdown-icon\"></i>
  885.                                                                 <label class=\"c-select__label\" for=\"{{ form.children.classcategory_id1.vars.id }}\">{{ form.children.classcategory_id1.vars.label }}</label>
  886.                                                                 {{ form_widget(form.classcategory_id1, { 'attr': {'class': 'c-select__native-control mdc-select__native-control' }}) }}
  887.                                                                 <div class=\"mdc-notched-outline\">
  888.                                                                     <div class=\"mdc-notched-outline__leading\"></div>
  889.                                                                     <div class=\"mdc-notched-outline__notch\"></div>
  890.                                                                     <div class=\"mdc-notched-outline__trailing\"></div>
  891.                                                                 </div>
  892.                                                             </div>
  893.                                                             {{ form_errors(form.classcategory_id1, {'label_attr': {'class': 'mdc-select-helper-text mdc-select-helper-text--validation-msg'}}) }}
  894.                                                         </div>
  895.                                                     </div>
  896.                                                     {% if form.classcategory_id2 is defined %}
  897.                                                         <div class=\"c-list-product__form-box\">
  898.                                                             <div class=\"c-list-product__form-box-item\">
  899.                                                                 <div class=\"c-select mdc-select mdc-select--outlined{{ has_errors(form.classcategory_id2) ? ' mdc-select--invalid' }}\">
  900.                                                                     <i class=\"mdc-select__dropdown-icon\"></i>
  901.                                                                     <label class=\"c-select__label\" for=\"{{ form.children.classcategory_id2.vars.id }}\">{{ form.children.classcategory_id2.vars.label }}</label>
  902.                                                                     {{ form_widget(form.classcategory_id2, { 'attr': {'class': 'c-select__native-control mdc-select__native-control' }}) }}
  903.                                                                     <div class=\"mdc-notched-outline\">
  904.                                                                         <div class=\"mdc-notched-outline__leading\"></div>
  905.                                                                         <div class=\"mdc-notched-outline__notch\"></div>
  906.                                                                         <div class=\"mdc-notched-outline__trailing\"></div>
  907.                                                                     </div>
  908.                                                                 </div>
  909.                                                                 {{ form_errors(form.classcategory_id2, {'label_attr': {'class': 'mdc-select-helper-text mdc-select-helper-text--validation-msg'}}) }}
  910.                                                             </div>
  911.                                                         </div>
  912.                                                     {% endif %}
  913.                                                 {% endif %}
  914.                                                 <div class=\"c-list-product__form-box\">
  915.                                                     <div class=\"c-list-product__form-box-item\">
  916.                                                         <div class=\"c-text-field mdc-text-field mdc-text-field--outlined\">
  917.                                                             {{ form_widget(form.quantity, {'attr': {'class': 'c-text-field__input mdc-text-field__input quantity' }}) }}
  918.                                                             <div class=\"mdc-notched-outline\">
  919.                                                                 <div class=\"mdc-notched-outline__leading\"></div>
  920.                                                                 <div class=\"mdc-notched-outline__notch\">
  921.                                                                     <label class=\"c-floating-label mdc-floating-label\" for=\"quantity{{ Product.id }}\">数量</label>
  922.                                                                 </div>
  923.                                                                 <div class=\"mdc-notched-outline__trailing\"></div>
  924.                                                             </div>
  925.                                                         </div>
  926.                                                         {{ form_errors(form.quantity) }}
  927.                                                     </div>
  928.                                                 </div>
  929.                                                 {{ form_rest(form) }}
  930.                                             </div>
  931.                                         </form>
  932.                                         <div class=\"c-list-product__actions\">
  933.                                             <div class=\"c-list-product__actions-item\">
  934.                                                 <button class=\"c-button is-secondary c-button--unelevated mdc-button mdc-button--unelevated add-cart\" type=\"submit\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  935.                                                     <span class=\"c-button__label mdc-button__label\">{{ 'カートに入れる'|trans }}</span>
  936.                                                 </button>
  937.                                             </div>
  938.                                         </div>
  939.                                     {% else %}
  940.                                         <div class=\"c-list-product__actions\">
  941.                                             <div class=\"c-list-product__actions-item\">
  942.                                                 <button class=\"c-button c-button--unelevated mdc-button mdc-button--unelevated\" type=\"button\" disabled=\"disabled\">
  943.                                                     <span class=\"c-button__label mdc-button__label\">{{ 'SOLD OUT'|trans }}</span>
  944.                                                 </button>
  945.                                             </div>
  946.                                         </div>
  947.                                     {% endif %}
  948.                                 </section>
  949.                             </li>
  950.                         {% endfor %}
  951.                     </ul>
  952.                     <div class=\"p-product__modal\">
  953.                         <input class=\"p-product__modal-checkbox\" id=\"p-product__modal-checkbox\" type=\"checkbox\">
  954.                         <div class=\"p-product__modal-overlay\">
  955.                             <label class=\"p-product__modal-overlay-close\" for=\"p-product__modal-checkbox\"></label>
  956.                             <div class=\"p-product__modal-contents\">
  957.                                 <label class=\"p-product__modal-close\" for=\"p-product__modal-checkbox\">
  958.                                     <i class=\"p-product__modal-close-icon material-icons\">close</i>
  959.                                 </label>
  960.                                 <div class=\"p-product__modal-header\">
  961.                                     <p class=\"p-product__modal-message\" id=\"js-product__modal-message\">{{ 'カートに追加しました。'|trans }}</p>
  962.                                 </div>
  963.                                 <div class=\"p-product__modal-actions\">
  964.                                     <div class=\"p-product__modal-actions-item\">
  965.                                         <a class=\"p-product__modal-button c-button c-button--unelevated is-secondary mdc-button mdc-button--unelevated\" href=\"{{ url('cart') }}\">
  966.                                             <span class=\"c-button__label mdc-button__label\">{{ 'カートへ進む'|trans }}</span>
  967.                                         </a>
  968.                                     </div>
  969.                                     <div class=\"p-product__modal-actions-item\">
  970.                                         <label class=\"p-product__modal-button c-button c-button--unelevated is-primary mdc-button mdc-button--unelevated\" for=\"p-product__modal-checkbox\">
  971.                                             <span class=\"c-button__label mdc-button__label\">{{ 'お買い物を続ける'|trans }}</span>
  972.                                         </label>
  973.                                     </div>
  974.                                 </div>
  975.                             </div>
  976.                         </div>
  977.                     </div>
  978.                     {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  979.                 {% endif %}
  980.             {% endif %}
  981.         </div>
  982.     </section>
  983. {% endblock %}""Product/list.twig""/home/rocroc/tsmt-store.com/public_html/app/template/ss4002/Product/list.twig");
  984.     }
  985. }