var/cache/dev/twig/e6/e6634f86615ac6a2c69cf4a2e24228326f7de94be3f3491a3de790cf69b2114c.php line 16

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_11a7de69bd4b50209ab53c1d849aeb075ee8f70e34ce1bacec523500bd7e8c01 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 1
  30.         return "default_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  39.         // line 3
  40.         $context["body_class"] = "product_page";
  41.         // line 1
  42.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 5
  50.     public function block_javascript($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         // line 6
  58.         echo "    <script>
  59.         eccube.productsClassCategories = {
  60.             ";
  61.         // line 8
  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.'8$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 9
  79.             echo "            \"";
  80.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse9), "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"falsefalsefalse9) == false)) {
  84.                 echo ", ";
  85.             }
  86.             // line 10
  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 11
  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 37
  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').text(this);
  147.                     });
  148.                     \$('.ec-modal').show()
  149.                     // カートブロックを更新する
  150.                     \$.ajax({
  151.                         url: '";
  152.         // line 65
  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 72
  163.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  164.         echo "');
  165.                 }).always(function(data) {
  166.                     // Buttonを有効にする
  167.                     \$('.add-cart').prop('disabled', false);
  168.                 });
  169.             });
  170.         });
  171.         \$('.ec-modal-wrap').on('click', function(e) {
  172.             // モーダル内の処理は外側にバブリングさせない
  173.             e.stopPropagation();
  174.         });
  175.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  176.             \$('.ec-modal').hide()
  177.         });
  178.     </script>
  179. ";
  180.         
  181.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  182.         
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  184.     }
  185.     // line 90
  186.     public function block_main($context, array $blocks = [])
  187.     {
  188.         $macros $this->macros;
  189.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  190.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  191.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  192.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  193.         // line 91
  194.         echo "
  195.     <section class=\"normal_list_section\">
  196.     ";
  197.         // line 95
  198.         echo "    <div class=\"seach_resutl seach_resutl__sp\">
  199.         <ul class=\"seach_resutl__list\">
  200.             ";
  201.         // line 98
  202.         echo "            ";
  203.         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.'98$this->source); })()), "vars", [], "any"falsefalsefalse98), "value", [], "any"falsefalsefalse98) && 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.'98$this->source); })()), "vars", [], "any"falsefalsefalse98), "value", [], "any"falsefalsefalse98), "name", [], "any"falsefalsefalse98))) {
  204.             // line 99
  205.             echo "                <li class=\"ec-topicpath__item\">";
  206.             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.'99$this->source); })()), "vars", [], "any"falsefalsefalse99), "value", [], "any"falsefalsefalse99), "name", [], "any"falsefalsefalse99)]), "html"nulltrue);
  207.             echo "</li>
  208.             ";
  209.         }
  210.         // line 101
  211.         echo "
  212.             ";
  213.         // line 103
  214.         echo "            ";
  215.         if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'103$this->source); })()))) {
  216.             // line 104
  217.             echo "                ";
  218.             $context['_parent'] = $context;
  219.             $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.'104$this->source); })()), "path", [], "any"falsefalsefalse104));
  220.             foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  221.                 // line 105
  222.                 echo "                    ";
  223.                 // line 106
  224.                 echo "                    ";
  225.                 if (((twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse106) != 34) && (twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse106) != 7))) {
  226.                     // line 107
  227.                     echo "                        ";
  228.                     $context["current_id"] = twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse107);
  229.                     // line 108
  230.                     echo "                        ";
  231.                     $context["current_name"] = twig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse108);
  232.                     // line 109
  233.                     echo "                        <li>";
  234.                     echo twig_escape_filter($this->env, (isset($context["current_name"]) || array_key_exists("current_name"$context) ? $context["current_name"] : (function () { throw new RuntimeError('Variable "current_name" does not exist.'109$this->source); })()), "html"nulltrue);
  235.                     echo "</li>
  236.                     ";
  237.                 }
  238.                 // line 111
  239.                 echo "                ";
  240.             }
  241.             $_parent $context['_parent'];
  242.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  243.             $context array_intersect_key($context$_parent) + $_parent;
  244.             // line 112
  245.             echo "            ";
  246.         }
  247.         // line 113
  248.         echo "
  249.             ";
  250.         // line 115
  251.         echo "            ";
  252.         if (array_key_exists("ProductItems"$context)) {
  253.             // line 116
  254.             echo "                ";
  255.             $context['_parent'] = $context;
  256.             $context['_seq'] = twig_ensure_traversable((isset($context["ProductItems"]) || array_key_exists("ProductItems"$context) ? $context["ProductItems"] : (function () { throw new RuntimeError('Variable "ProductItems" does not exist.'116$this->source); })()));
  257.             foreach ($context['_seq'] as $context["_key"] => $context["ProductItem"]) {
  258.                 // line 117
  259.                 echo "                    ";
  260.                 $context["name"] = ("productplus_" twig_get_attribute($this->env$this->source$context["ProductItem"], "id", [], "any"falsefalsefalse117));
  261.                 // line 118
  262.                 echo "
  263.                     ";
  264.                 // line 119
  265.                 if ((twig_get_attribute($this->env$this->source$context["ProductItem"], "input_type", [], "any"falsefalsefalse119) >= twig_constant("Plugin\\ProductPlus42\\Entity\\ProductItem::SELECT_TYPE"))) {
  266.                     // line 120
  267.                     echo "
  268.                         ";
  269.                     // line 121
  270.                     $context['_parent'] = $context;
  271.                     $context['_seq'] = twig_ensure_traversable(twig_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.'121$this->source); })()), (isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'121$this->source); })()), [], "array"falsefalsefalse121), "vars", [], "any"falsefalsefalse121), "choices", [], "any"falsefalsefalse121));
  272.                     foreach ($context['_seq'] as $context["_key"] => $context["choice"]) {
  273.                         // line 122
  274.                         echo "                            ";
  275.                         if (twig_in_filter(twig_get_attribute($this->env$this->source$context["choice"], "value", [], "any"falsefalsefalse122), twig_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.'122$this->source); })()), (isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'122$this->source); })()), [], "array"falsefalsefalse122), "vars", [], "any"falsefalsefalse122), "data", [], "any"falsefalsefalse122))) {
  276.                             // line 123
  277.                             echo "                                <li>";
  278.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["choice"], "label", [], "any"falsefalsefalse123), "html"nulltrue);
  279.                             echo "</li>
  280.                             ";
  281.                         }
  282.                         // line 125
  283.                         echo "                        ";
  284.                     }
  285.                     $_parent $context['_parent'];
  286.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['choice'], $context['_parent'], $context['loop']);
  287.                     $context array_intersect_key($context$_parent) + $_parent;
  288.                     // line 126
  289.                     echo "
  290.                     ";
  291.                 } else {
  292.                     // line 128
  293.                     echo "
  294.                     ";
  295.                 }
  296.                 // line 130
  297.                 echo "                ";
  298.             }
  299.             $_parent $context['_parent'];
  300.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductItem'], $context['_parent'], $context['loop']);
  301.             $context array_intersect_key($context$_parent) + $_parent;
  302.             // line 131
  303.             echo "            ";
  304.         }
  305.         // line 132
  306.         echo "
  307.             ";
  308.         // line 134
  309.         echo "            ";
  310.         if ((twig_get_attribute($this->env$this->source, (isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'134$this->source); })()), "hmin", [], "any"falsefalsefalse134) || twig_get_attribute($this->env$this->source, (isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'134$this->source); })()), "hmax", [], "any"falsefalsefalse134))) {
  311.             // line 135
  312.             echo "                <li>
  313.                     高さ
  314.                     ";
  315.             // line 137
  316.             if (twig_get_attribute($this->env$this->source, (isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'137$this->source); })()), "hmin", [], "any"falsefalsefalse137)) {
  317.                 // line 138
  318.                 echo "                        ";
  319.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'138$this->source); })()), "hmin", [], "any"falsefalsefalse138), "html"nulltrue);
  320.                 echo "mm
  321.                     ";
  322.             }
  323.             // line 140
  324.             echo "                    <span>~</span>
  325.                     ";
  326.             // line 141
  327.             if (twig_get_attribute($this->env$this->source, (isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'141$this->source); })()), "hmax", [], "any"falsefalsefalse141)) {
  328.                 // line 142
  329.                 echo "                        ";
  330.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'142$this->source); })()), "hmax", [], "any"falsefalsefalse142), "html"nulltrue);
  331.                 echo "mm
  332.                     ";
  333.             }
  334.             // line 144
  335.             echo "                </li>
  336.             ";
  337.         }
  338.         // line 146
  339.         echo "
  340.             ";
  341.         // line 148
  342.         echo "            ";
  343.         if ((twig_get_attribute($this->env$this->source, (isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'148$this->source); })()), "wmin", [], "any"falsefalsefalse148) || twig_get_attribute($this->env$this->source, (isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'148$this->source); })()), "wmax", [], "any"falsefalsefalse148))) {
  344.             // line 149
  345.             echo "                <li>
  346.                     幅
  347.                     ";
  348.             // line 151
  349.             if (twig_get_attribute($this->env$this->source, (isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'151$this->source); })()), "wmin", [], "any"falsefalsefalse151)) {
  350.                 // line 152
  351.                 echo "                        ";
  352.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'152$this->source); })()), "wmin", [], "any"falsefalsefalse152), "html"nulltrue);
  353.                 echo "mm
  354.                     ";
  355.             }
  356.             // line 154
  357.             echo "                    <span>~</span>
  358.                     ";
  359.             // line 155
  360.             if (twig_get_attribute($this->env$this->source, (isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'155$this->source); })()), "wmax", [], "any"falsefalsefalse155)) {
  361.                 // line 156
  362.                 echo "                        ";
  363.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["searchData"]) || array_key_exists("searchData"$context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.'156$this->source); })()), "wmax", [], "any"falsefalsefalse156), "html"nulltrue);
  364.                 echo "mm
  365.                     ";
  366.             }
  367.             // line 158
  368.             echo "                </li>
  369.             ";
  370.         }
  371.         // line 160
  372.         echo "
  373.             ";
  374.         // line 162
  375.         echo "            ";
  376.         if (((twig_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.'162$this->source); })()), "pmin", [], "any"falsefalsefalse162), "vars", [], "any"falsefalsefalse162), "value", [], "any"falsefalsefalse162) != "") || (twig_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.'162$this->source); })()), "pmax", [], "any"falsefalsefalse162), "vars", [], "any"falsefalsefalse162), "value", [], "any"falsefalsefalse162) != ""))) {
  377.             // line 163
  378.             echo "                <li>
  379.                     ";
  380.             // line 164
  381.             if ((twig_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.'164$this->source); })()), "pmin", [], "any"falsefalsefalse164), "vars", [], "any"falsefalsefalse164), "value", [], "any"falsefalsefalse164) != "")) {
  382.                 // line 165
  383.                 echo "                        ";
  384.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_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.'165$this->source); })()), "pmin", [], "any"falsefalsefalse165), "vars", [], "any"falsefalsefalse165), "value", [], "any"falsefalsefalse165)), "html"nulltrue);
  385.                 echo "円
  386.                     ";
  387.             }
  388.             // line 167
  389.             echo "                    <span>~</span>
  390.                     ";
  391.             // line 168
  392.             if ((twig_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.'168$this->source); })()), "pmax", [], "any"falsefalsefalse168), "vars", [], "any"falsefalsefalse168), "value", [], "any"falsefalsefalse168) != "")) {
  393.                 // line 169
  394.                 echo "                        ";
  395.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_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.'169$this->source); })()), "pmax", [], "any"falsefalsefalse169), "vars", [], "any"falsefalsefalse169), "value", [], "any"falsefalsefalse169)), "html"nulltrue);
  396.                 echo "円
  397.                     ";
  398.             }
  399.             // line 171
  400.             echo "                </li>
  401.             ";
  402.         }
  403.         // line 173
  404.         echo "        </ul>
  405.         ";
  406.         // line 175
  407.         echo "        ";
  408.         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.'175$this->source); })()), "vars", [], "any"falsefalsefalse175), "value", [], "any"falsefalsefalse175) && 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.'175$this->source); })()), "vars", [], "any"falsefalsefalse175), "value", [], "any"falsefalsefalse175), "name", [], "any"falsefalsefalse175))) {
  409.             // line 176
  410.             echo "            <a class=\"searchResetLink\">検索クリア</a>
  411.         ";
  412.         } else {
  413.             // line 178
  414.             echo "        ";
  415.         }
  416.         // line 179
  417.         echo "    </div><!--/.seach_resutl-->
  418.     ";
  419.         // line 181
  420.         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.'181$this->source); })()), "category_id", [], "any"falsefalsefalse181), "vars", [], "any"falsefalsefalse181), "errors", [], "any"falsefalsefalse181)) > 0)) {
  421.             // line 182
  422.             echo "        <div class=\"ec-searchnavRole\">
  423.             <p class=\"errormsg text-danger\">";
  424.             // line 183
  425.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  426.             echo "</p>
  427.         </div>
  428.     ";
  429.         } else {
  430.             // line 186
  431.             echo "
  432.         <div class=\"ec-searchnavRole\">
  433.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  434.                 ";
  435.             // line 189
  436.             $context['_parent'] = $context;
  437.             $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.'189$this->source); })()));
  438.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  439.                 // line 190
  440.                 echo "                    <input type=\"hidden\" id=\"";
  441.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse190), "id", [], "any"falsefalsefalse190), "html"nulltrue);
  442.                 echo "\"
  443.                            name=\"";
  444.                 // line 191
  445.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse191), "full_name", [], "any"falsefalsefalse191), "html"nulltrue);
  446.                 echo "\"
  447.                            ";
  448.                 // line 192
  449.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse192), "value", [], "any"falsefalsefalse192))) {
  450.                     echo "value=\"";
  451.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse192), "value", [], "any"falsefalsefalse192), "html"nulltrue);
  452.                     echo "\" ";
  453.                 }
  454.                 echo "/>
  455.                 ";
  456.             }
  457.             $_parent $context['_parent'];
  458.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  459.             $context array_intersect_key($context$_parent) + $_parent;
  460.             // line 194
  461.             echo "            </form>
  462.             ";
  463.             // line 216
  464.             echo "
  465.             <div class=\"ec-searchnavRole__infos\">
  466.                 <div class=\"ec-searchnavRole__counter\">
  467.                     ";
  468.             // line 219
  469.             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.'219$this->source); })()), "totalItemCount", [], "any"falsefalsefalse219) > 0)) {
  470.                 // line 220
  471.                 echo "                        ";
  472.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">対象商品 <span>%count%</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.'220$this->source); })()), "totalItemCount", [], "any"falsefalsefalse220)]);
  473.                 echo "
  474.                     ";
  475.             } else {
  476.                 // line 222
  477.                 echo "                        <span>";
  478.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  479.                 echo "</span>
  480.                     ";
  481.             }
  482.             // line 224
  483.             echo "                </div>
  484.                 ";
  485.             // line 225
  486.             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.'225$this->source); })()), "totalItemCount", [], "any"falsefalsefalse225) > 0)) {
  487.                 // line 226
  488.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  489.                         <div class=\"ec-select\">
  490.                             ";
  491.                 // line 228
  492.                 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.'228$this->source); })()), "disp_number", [], "any"falsefalsefalse228), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  493.                 echo "
  494.                             ";
  495.                 // line 229
  496.                 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.'229$this->source); })()), "orderby", [], "any"falsefalsefalse229), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  497.                 echo "
  498.                         </div>
  499.                     </div>
  500.                 ";
  501.             }
  502.             // line 233
  503.             echo "            </div>
  504.         </div>
  505.         ";
  506.             // line 235
  507.             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.'235$this->source); })()), "totalItemCount", [], "any"falsefalsefalse235) > 0)) {
  508.                 // line 236
  509.                 echo "            <div class=\"ec-shelfRole\">
  510.                 <ul class=\"ec-shelfGrid\">
  511.                     ";
  512.                 // line 238
  513.                 $context['_parent'] = $context;
  514.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'238$this->source); })()));
  515.                 $context['loop'] = [
  516.                   'parent' => $context['_parent'],
  517.                   'index0' => 0,
  518.                   'index'  => 1,
  519.                   'first'  => true,
  520.                 ];
  521.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  522.                     $length count($context['_seq']);
  523.                     $context['loop']['revindex0'] = $length 1;
  524.                     $context['loop']['revindex'] = $length;
  525.                     $context['loop']['length'] = $length;
  526.                     $context['loop']['last'] = === $length;
  527.                 }
  528.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  529.                     // line 239
  530.                     echo "                        <li class=\"ec-shelfGrid__item\">
  531.                             <a href=\"";
  532.                     // line 240
  533.                     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"falsefalsefalse240)]), "html"nulltrue);
  534.                     echo "\">
  535.                                 <p class=\"ec-shelfGrid__item-image\">
  536.                                     <img src=\"";
  537.                     // line 242
  538.                     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"falsefalsefalse242)), "save_image"), "html"nulltrue);
  539.                     echo "\" alt=\"";
  540.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse242), "html"nulltrue);
  541.                     echo "\" ";
  542.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse242) > 5)) {
  543.                         echo " loading=\"lazy\"";
  544.                     }
  545.                     echo ">
  546.                                 </p>
  547.                                 <p>";
  548.                     // line 244
  549.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse244), "html"nulltrue);
  550.                     echo "</p>
  551.                                 ";
  552.                     // line 245
  553.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse245)) {
  554.                         // line 246
  555.                         echo "                                    <p>";
  556.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse246));
  557.                         echo "</p>
  558.                                 ";
  559.                     }
  560.                     // line 248
  561.                     echo "                                <p class=\"price02-default\">
  562.                                     ";
  563.                     // line 249
  564.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse249)) {
  565.                         // line 250
  566.                         echo "                                        ";
  567.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse250) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse250))) {
  568.                             // line 251
  569.                             echo "                                            ";
  570.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse251)), "html"nulltrue);
  571.                             echo "
  572.                                         ";
  573.                         } else {
  574.                             // line 253
  575.                             echo "                                            ";
  576.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse253)), "html"nulltrue);
  577.                             echo " ~ ";
  578.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse253)), "html"nulltrue);
  579.                             echo "
  580.                                         ";
  581.                         }
  582.                         // line 255
  583.                         echo "                                    ";
  584.                     } else {
  585.                         // line 256
  586.                         echo "                                        ";
  587.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse256)), "html"nulltrue);
  588.                         echo "
  589.                                     ";
  590.                     }
  591.                     // line 258
  592.                     echo "                                </p>
  593.                             </a>
  594.                             ";
  595.                     // line 300
  596.                     echo "                        </li>
  597.                     ";
  598.                     ++$context['loop']['index0'];
  599.                     ++$context['loop']['index'];
  600.                     $context['loop']['first'] = false;
  601.                     if (isset($context['loop']['length'])) {
  602.                         --$context['loop']['revindex0'];
  603.                         --$context['loop']['revindex'];
  604.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  605.                     }
  606.                 }
  607.                 $_parent $context['_parent'];
  608.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  609.                 $context array_intersect_key($context$_parent) + $_parent;
  610.                 // line 302
  611.                 echo "                </ul>
  612.             </div>
  613.             <div class=\"ec-modal\">
  614.                 <div class=\"ec-modal-overlay\">
  615.                     <div class=\"ec-modal-wrap\">
  616.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  617.                 // line 307
  618.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  619.                 echo "\" alt=\"\"/></span></span>
  620.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  621.                 // line 308
  622.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  623.                 echo "</div>
  624.                         <div class=\"ec-modal-box\">
  625.                             <div class=\"ec-role\">
  626.                                 <span class=\"ec-inlineBtn--cancel\">";
  627.                 // line 311
  628.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  629.                 echo "</span>
  630.                                 <a href=\"";
  631.                 // line 312
  632.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  633.                 echo "\" class=\"ec-inlineBtn--action\">";
  634.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  635.                 echo "</a>
  636.                             </div>
  637.                         </div>
  638.                     </div>
  639.                 </div>
  640.             </div>
  641.             <div class=\"ec-pagerRole\">
  642.                 ";
  643.                 // line 319
  644.                 $this->loadTemplate("pager.twig""Product/list.twig"319)->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.'319$this->source); })()), "paginationData", [], "any"falsefalsefalse319)]));
  645.                 // line 320
  646.                 echo "            </div>
  647.         ";
  648.             }
  649.             // line 322
  650.             echo "    ";
  651.         }
  652.         // line 323
  653.         echo "
  654.     </section><!--/.normal_list_section-->
  655.     <a class=\"sp_filtter_btn\">
  656.         <img src=\"";
  657.         // line 327
  658.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/plus_icon.png"), "html"nulltrue);
  659.         echo "\">
  660.         <span class=\"txt\">絞り込み</span>
  661.     </a>
  662. ";
  663.         
  664.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  665.         
  666.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  667.     }
  668.     public function getTemplateName()
  669.     {
  670.         return "Product/list.twig";
  671.     }
  672.     public function isTraitable()
  673.     {
  674.         return false;
  675.     }
  676.     public function getDebugInfo()
  677.     {
  678.         return array (  690 => 327,  684 => 323,  681 => 322,  677 => 320,  675 => 319,  663 => 312,  659 => 311,  653 => 308,  649 => 307,  642 => 302,  627 => 300,  622 => 258,  616 => 256,  613 => 255,  605 => 253,  599 => 251,  596 => 250,  594 => 249,  591 => 248,  585 => 246,  583 => 245,  579 => 244,  568 => 242,  563 => 240,  560 => 239,  543 => 238,  539 => 236,  537 => 235,  533 => 233,  526 => 229,  522 => 228,  518 => 226,  516 => 225,  513 => 224,  507 => 222,  501 => 220,  499 => 219,  494 => 216,  490 => 194,  478 => 192,  474 => 191,  469 => 190,  465 => 189,  460 => 186,  454 => 183,  451 => 182,  449 => 181,  445 => 179,  442 => 178,  438 => 176,  435 => 175,  432 => 173,  428 => 171,  422 => 169,  420 => 168,  417 => 167,  411 => 165,  409 => 164,  406 => 163,  403 => 162,  400 => 160,  396 => 158,  390 => 156,  388 => 155,  385 => 154,  379 => 152,  377 => 151,  373 => 149,  370 => 148,  367 => 146,  363 => 144,  357 => 142,  355 => 141,  352 => 140,  346 => 138,  344 => 137,  340 => 135,  337 => 134,  334 => 132,  331 => 131,  325 => 130,  321 => 128,  317 => 126,  311 => 125,  305 => 123,  302 => 122,  298 => 121,  295 => 120,  293 => 119,  290 => 118,  287 => 117,  282 => 116,  279 => 115,  276 => 113,  273 => 112,  267 => 111,  261 => 109,  258 => 108,  255 => 107,  252 => 106,  250 => 105,  245 => 104,  242 => 103,  239 => 101,  233 => 99,  230 => 98,  226 => 95,  221 => 91,  211 => 90,  184 => 72,  174 => 65,  143 => 37,  115 => 11,  101 => 10,  93 => 9,  76 => 8,  72 => 6,  62 => 5,  51 => 1,  49 => 3,  36 => 1,);
  679.     }
  680.     public function getSourceContext()
  681.     {
  682.         return new Source("{% extends 'default_frame.twig' %}
  683. {% set body_class = 'product_page' %}
  684. {% block javascript %}
  685.     <script>
  686.         eccube.productsClassCategories = {
  687.             {% for Product in pagination %}
  688.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  689.             {% endfor %}
  690.         };
  691.         \$(function() {
  692.             // 表示件数を変更
  693.             \$('.disp-number').change(function() {
  694.                 var dispNumber = \$(this).val();
  695.                 \$('#disp_number').val(dispNumber);
  696.                 \$('#pageno').val(1);
  697.                 \$(\"#form1\").submit();
  698.             });
  699.             // 並び順を変更
  700.             \$('.order-by').change(function() {
  701.                 var orderBy = \$(this).val();
  702.                 \$('#orderby').val(orderBy);
  703.                 \$('#pageno').val(1);
  704.                 \$(\"#form1\").submit();
  705.             });
  706.             \$('.add-cart').on('click', function(e) {
  707.                 var \$form = \$(this).parents('li').find('form');
  708.                 // 個数フォームのチェック
  709.                 var \$quantity = \$form.parent().find('.quantity');
  710.                 if (\$quantity.val() < 1) {
  711.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  712.                     setTimeout(function() {
  713.                         loadingOverlay('hide');
  714.                     }, 100);
  715.                     return true;
  716.                 } else {
  717.                     \$quantity[0].setCustomValidity('');
  718.                 }
  719.                 e.preventDefault();
  720.                 \$.ajax({
  721.                     url: \$form.attr('action'),
  722.                     type: \$form.attr('method'),
  723.                     data: \$form.serialize(),
  724.                     dataType: 'json',
  725.                     beforeSend: function(xhr, settings) {
  726.                         // Buttonを無効にする
  727.                         \$('.add-cart').prop('disabled', true);
  728.                     }
  729.                 }).done(function(data) {
  730.                     // レスポンス内のメッセージをalertで表示
  731.                     \$.each(data.messages, function() {
  732.                         \$('#ec-modal-header').text(this);
  733.                     });
  734.                     \$('.ec-modal').show()
  735.                     // カートブロックを更新する
  736.                     \$.ajax({
  737.                         url: '{{ url('block_cart') }}',
  738.                         type: 'GET',
  739.                         dataType: 'html'
  740.                     }).done(function(html) {
  741.                         \$('.ec-headerRole__cart').html(html);
  742.                     });
  743.                 }).fail(function(data) {
  744.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  745.                 }).always(function(data) {
  746.                     // Buttonを有効にする
  747.                     \$('.add-cart').prop('disabled', false);
  748.                 });
  749.             });
  750.         });
  751.         \$('.ec-modal-wrap').on('click', function(e) {
  752.             // モーダル内の処理は外側にバブリングさせない
  753.             e.stopPropagation();
  754.         });
  755.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  756.             \$('.ec-modal').hide()
  757.         });
  758.     </script>
  759. {% endblock %}
  760. {% block main %}
  761.     <section class=\"normal_list_section\">
  762.     {# SP 検索項目表示エリア #}
  763.     <div class=\"seach_resutl seach_resutl__sp\">
  764.         <ul class=\"seach_resutl__list\">
  765.             {# 検索ワード #}
  766.             {% if search_form.vars.value and search_form.vars.value.name %}
  767.                 <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  768.             {% endif %}
  769.             {# カテゴリ名 #}
  770.             {% if Category is not null %}
  771.                 {% for Path in Category.path %}
  772.                     {# 親カテゴリは非表示 #}
  773.                     {% if Path.id != 34 and Path.id != 7 %}
  774.                         {% set current_id = Path.id %}
  775.                         {% set current_name = Path.name %}
  776.                         <li>{{ current_name }}</li>
  777.                     {% endif %}
  778.                 {% endfor %}
  779.             {% endif %}
  780.             {# 検索項目 #}
  781.             {% if ProductItems is defined %}
  782.                 {% for ProductItem in ProductItems %}
  783.                     {% set name = 'productplus_' ~ ProductItem.id %}
  784.                     {% if  ProductItem.input_type >= constant('Plugin\\\\ProductPlus42\\\\Entity\\\\ProductItem::SELECT_TYPE') %}
  785.                         {% for choice in form[name].vars.choices %}
  786.                             {% if choice.value in form[name].vars.data %}
  787.                                 <li>{{ choice.label }}</li>
  788.                             {% endif %}
  789.                         {% endfor %}
  790.                     {% else %}
  791.                     {% endif %}
  792.                 {% endfor %}
  793.             {% endif %}
  794.             {# 高さ #}
  795.             {% if searchData.hmin or searchData.hmax %}
  796.                 <li>
  797.                     高さ
  798.                     {% if searchData.hmin %}
  799.                         {{ searchData.hmin }}mm
  800.                     {% endif %}
  801.                     <span>~</span>
  802.                     {% if searchData.hmax %}
  803.                         {{ searchData.hmax }}mm
  804.                     {% endif %}
  805.                 </li>
  806.             {% endif %}
  807.             {# 幅 #}
  808.             {% if searchData.wmin or searchData.wmax %}
  809.                 <li>
  810.                     幅
  811.                     {% if searchData.wmin %}
  812.                         {{ searchData.wmin }}mm
  813.                     {% endif %}
  814.                     <span>~</span>
  815.                     {% if searchData.wmax %}
  816.                         {{ searchData.wmax }}mm
  817.                     {% endif %}
  818.                 </li>
  819.             {% endif %}
  820.             {# 価格帯 #}
  821.             {% if form.pmin.vars.value != '' or form.pmax.vars.value != '' %}
  822.                 <li>
  823.                     {% if form.pmin.vars.value != '' %}
  824.                         {{ form.pmin.vars.value|number_format }}円
  825.                     {% endif %}
  826.                     <span>~</span>
  827.                     {% if form.pmax.vars.value != '' %}
  828.                         {{ form.pmax.vars.value|number_format }}円
  829.                     {% endif %}
  830.                 </li>
  831.             {% endif %}
  832.         </ul>
  833.         {# リセットボタン #}
  834.         {% if search_form.vars.value and search_form.vars.value.name %}
  835.             <a class=\"searchResetLink\">検索クリア</a>
  836.         {% else %}
  837.         {% endif %}
  838.     </div><!--/.seach_resutl-->
  839.     {% if search_form.category_id.vars.errors|length > 0 %}
  840.         <div class=\"ec-searchnavRole\">
  841.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  842.         </div>
  843.     {% else %}
  844.         <div class=\"ec-searchnavRole\">
  845.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  846.                 {% for item in search_form %}
  847.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  848.                            name=\"{{ item.vars.full_name }}\"
  849.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  850.                 {% endfor %}
  851.             </form>
  852.             {#
  853.             <div class=\"ec-searchnavRole__topicpath\">
  854.                 <ol class=\"ec-topicpath\">
  855.                     <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  856.                     </li>
  857.                     {% if Category is not null %}
  858.                         {% for Path in Category.path %}
  859.                             <li class=\"ec-topicpath__divider\">|</li>
  860.                             <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
  861.                                         href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  862.                             </li>
  863.                         {% endfor %}
  864.                     {% endif %}
  865.                     {% if search_form.vars.value and search_form.vars.value.name %}
  866.                         <li class=\"ec-topicpath__divider\">|</li>
  867.                         <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  868.                     {% endif %}
  869.                 </ol>
  870.             </div>
  871.             #}
  872.             <div class=\"ec-searchnavRole__infos\">
  873.                 <div class=\"ec-searchnavRole__counter\">
  874.                     {% if pagination.totalItemCount > 0 %}
  875.                         {{ '<span class=\"ec-font-bold\">対象商品 <span>%count%</span> 件</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  876.                     {% else %}
  877.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  878.                     {% endif %}
  879.                 </div>
  880.                 {% if pagination.totalItemCount > 0 %}
  881.                     <div class=\"ec-searchnavRole__actions\">
  882.                         <div class=\"ec-select\">
  883.                             {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  884.                             {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  885.                         </div>
  886.                     </div>
  887.                 {% endif %}
  888.             </div>
  889.         </div>
  890.         {% if pagination.totalItemCount > 0 %}
  891.             <div class=\"ec-shelfRole\">
  892.                 <ul class=\"ec-shelfGrid\">
  893.                     {% for Product in pagination %}
  894.                         <li class=\"ec-shelfGrid__item\">
  895.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  896.                                 <p class=\"ec-shelfGrid__item-image\">
  897.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  898.                                 </p>
  899.                                 <p>{{ Product.name }}</p>
  900.                                 {% if Product.description_list %}
  901.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  902.                                 {% endif %}
  903.                                 <p class=\"price02-default\">
  904.                                     {% if Product.hasProductClass %}
  905.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  906.                                             {{ Product.getPrice02IncTaxMin|price }}
  907.                                         {% else %}
  908.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  909.                                         {% endif %}
  910.                                     {% else %}
  911.                                         {{ Product.getPrice02IncTaxMin|price }}
  912.                                     {% endif %}
  913.                                 </p>
  914.                             </a>
  915.                             {#
  916.                             {% if Product.stock_find %}
  917.                                 {% set form = forms[Product.id] %}
  918.                                 <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  919.                                     <div class=\"ec-productRole__actions\">
  920.                                         {% if form.classcategory_id1 is defined %}
  921.                                             <div class=\"ec-select\">
  922.                                                 {{ form_widget(form.classcategory_id1) }}
  923.                                                 {{ form_errors(form.classcategory_id1) }}
  924.                                             </div>
  925.                                             {% if form.classcategory_id2 is defined %}
  926.                                                 <div class=\"ec-select\">
  927.                                                     {{ form_widget(form.classcategory_id2) }}
  928.                                                     {{ form_errors(form.classcategory_id2) }}
  929.                                                 </div>
  930.                                             {% endif %}
  931.                                         {% endif %}
  932.                                         <div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
  933.                                             {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  934.                                             {{ form_errors(form.quantity) }}
  935.                                         </div>
  936.                                     </div>
  937.                                     {{ form_rest(form) }}
  938.                                 </form>
  939.                                 {#
  940.                                 <div class=\"ec-productRole__btn\">
  941.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  942.                                         {{ 'カートに入れる'|trans }}
  943.                                     </button>
  944.                                 </div>
  945.                             {% else %}
  946.                                 <div class=\"ec-productRole__btn\">
  947.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  948.                                         {{ 'ただいま品切れ中です。'|trans }}
  949.                                     </button>
  950.                                 </div>
  951.                             {% endif %}
  952.                             #}
  953.                         </li>
  954.                     {% endfor %}
  955.                 </ul>
  956.             </div>
  957.             <div class=\"ec-modal\">
  958.                 <div class=\"ec-modal-overlay\">
  959.                     <div class=\"ec-modal-wrap\">
  960.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  961.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  962.                         <div class=\"ec-modal-box\">
  963.                             <div class=\"ec-role\">
  964.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  965.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  966.                             </div>
  967.                         </div>
  968.                     </div>
  969.                 </div>
  970.             </div>
  971.             <div class=\"ec-pagerRole\">
  972.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  973.             </div>
  974.         {% endif %}
  975.     {% endif %}
  976.     </section><!--/.normal_list_section-->
  977.     <a class=\"sp_filtter_btn\">
  978.         <img src=\"{{ asset('assets/img/common/plus_icon.png') }}\">
  979.         <span class=\"txt\">絞り込み</span>
  980.     </a>
  981. {% endblock %}
  982. ""Product/list.twig""/home/xs626321/ikus.furniture/public_html/dev/app/template/default/Product/list.twig");
  983.     }
  984. }