var/cache/dev/twig/35/35f15cd2f5ee715c38161f5347a96d26.php line 54

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_3281bde01ac731b9966869e57cd1d54b 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 11
  32.         return "default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  41.         // line 13
  42.         $context["body_class"] = "product_page";
  43.         // line 11
  44.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 15
  52.     public function block_javascript($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  59.         // line 16
  60.         echo "   <script>
  61.       eccube.productsClassCategories = {
  62.         ";
  63.         // line 18
  64.         $context['_parent'] = $context;
  65.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'18$this->source); })()));
  66.         $context['loop'] = [
  67.           'parent' => $context['_parent'],
  68.           'index0' => 0,
  69.           'index'  => 1,
  70.           'first'  => true,
  71.         ];
  72.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  73.             $length count($context['_seq']);
  74.             $context['loop']['revindex0'] = $length 1;
  75.             $context['loop']['revindex'] = $length;
  76.             $context['loop']['length'] = $length;
  77.             $context['loop']['last'] = === $length;
  78.         }
  79.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  80.             // line 19
  81.             echo "          \"";
  82.             echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue19), 19$this->source), "js"), "html"nulltrue);
  83.             echo "\" : ";
  84.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 19$this->source));
  85.             echo "
  86.           ";
  87.             // line 20
  88.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue20) == false)) {
  89.                 echo ",";
  90.             }
  91.             // line 21
  92.             echo "        ";
  93.             ++$context['loop']['index0'];
  94.             ++$context['loop']['index'];
  95.             $context['loop']['first'] = false;
  96.             if (isset($context['loop']['length'])) {
  97.                 --$context['loop']['revindex0'];
  98.                 --$context['loop']['revindex'];
  99.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  100.             }
  101.         }
  102.         $_parent $context['_parent'];
  103.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  104.         $context array_intersect_key($context$_parent) + $_parent;
  105.         // line 22
  106.         echo "      };
  107.   
  108.       \$(function () {
  109.         \$('.disp-number').change(function () {
  110.           var dispNumber = \$(this).val();
  111.           \$('#disp_number').val(dispNumber);
  112.           \$('#pageno').val(1);
  113.           \$(\"#form1\").submit();
  114.         });
  115.         \$('.disp-number-artist').change(function () {
  116.             var dispNumber = \$(this).val();
  117.             var currentUrl = window.location.href;
  118.             if (currentUrl.indexOf('disp_number=') !== -1) {
  119.                 currentUrl = currentUrl.replace(/(disp_number=)[^&]*/, '\$1' + dispNumber);
  120.             } else {
  121.                 currentUrl += (currentUrl.indexOf('?') === -1 ? '?' : '&') + 'disp_number=' + dispNumber;
  122.             }
  123.             window.location.href = currentUrl;
  124.         });
  125.       \$('.order-by-artist').change(function () {
  126.           var orderBy = \$(this).val();
  127.           var currentUrl = window.location.href;
  128.           if (currentUrl.indexOf('order_by=') !== -1) {
  129.               currentUrl = currentUrl.replace(/(order_by=)[^&]*/, '\$1' + orderBy);
  130.           } else {
  131.               currentUrl += (currentUrl.indexOf('?') === -1 ? '?' : '&') + 'order_by=' + orderBy;
  132.           }
  133.           window.location.href = currentUrl;
  134.       });
  135.         
  136.   
  137.         \$('.order-by').change(function () {
  138.           var orderBy = \$(this).val();
  139.           \$('#orderby').val(orderBy);
  140.           \$('#pageno').val(1);
  141.           \$(\"#form1\").submit();
  142.         });
  143.   
  144.         \$('.add-cart').on('click', function (e) {
  145.           var \$form = \$(this).parents('li').find('form');
  146.   
  147.           // 個数フォームのチェック
  148.           var \$quantity = \$form.parent().find('.quantity');
  149.           if (\$quantity.val() < 1) {
  150.             \$quantity[0].setCustomValidity('";
  151.         // line 71
  152.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  153.         echo "');
  154.             setTimeout(function () {
  155.               loadingOverlay('hide');
  156.             }, 100);
  157.             return true;
  158.           } else {
  159.             \$quantity[0].setCustomValidity('');
  160.           }
  161.           e.preventDefault();
  162.           \$.ajax({
  163.             url: \$form.attr('action'),
  164.             type: \$form.attr('method'),
  165.             data: \$form.serialize(),
  166.             dataType: 'json',
  167.             beforeSend: function (xhr, settings) { // Buttonを無効にする
  168.               \$('.add-cart').prop('disabled', true);
  169.             }
  170.           }).done(function (data) { // レスポンス内のメッセージをalertで表示
  171.             \$.each(data.messages, function () {
  172.               \$('#ec-modal-header').text(this);
  173.             });
  174.   
  175.             \$('.ec-modal').show();
  176.   
  177.             // カートブロックを更新する
  178.             \$.ajax({
  179.               url: '";
  180.         // line 97
  181.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  182.         echo "',
  183.               type: 'GET',
  184.               dataType: 'html'
  185.             }).done(function (html) {
  186.               \$('.ec-headerRole__cart').html(html);
  187.             });
  188.           }).fail(function (data) {
  189.             alert('";
  190.         // line 104
  191.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  192.         echo "');
  193.           }).always(function (data) { // Buttonを有効にする
  194.             \$('.add-cart').prop('disabled', false);
  195.           });
  196.         });
  197.   
  198.         \$('.ec-modal-wrap').on('click', function (e) {
  199.           e.stopPropagation();
  200.         });
  201.   
  202.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function () {
  203.           \$('.ec-modal').hide();
  204.         });
  205.         \$(document).ready(function() {
  206.           \$('.custom-select').select2({
  207.             minimumResultsForSearch: -1,
  208.             dropdownCssClass: 'select2-dropdown-slide'
  209.           });
  210.         });
  211.       });
  212.     </script>
  213. ";
  214.         
  215.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  216.         
  217.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  218.     }
  219.     // line 128
  220.     public function block_main($context, array $blocks = [])
  221.     {
  222.         $macros $this->macros;
  223.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  224.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  225.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  226.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  227.         // line 129
  228.         echo "  <div class=\"ec-layoutRole__main custom-layout__product\">
  229.     ";
  230.         // line 131
  231.         echo "    ";
  232.         if ((array_key_exists("GroupProduct"$context) && (isset($context["GroupProduct"]) || array_key_exists("GroupProduct"$context) ? $context["GroupProduct"] : (function () { throw new RuntimeError('Variable "GroupProduct" does not exist.'131$this->source); })()))) {
  233.             // line 132
  234.             echo "      ";
  235.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["GroupProduct"]) || array_key_exists("GroupProduct"$context) ? $context["GroupProduct"] : (function () { throw new RuntimeError('Variable "GroupProduct" does not exist.'132$this->source); })()), "ProductCategories", [], "any"falsefalsetrue132))) {
  236.                 // line 133
  237.                 echo "        <div class=\"ec-breadcrumbs_layout\">
  238.           ";
  239.                 // line 134
  240.                 $context["shown_breadcrumb"] = false;
  241.                 // line 135
  242.                 echo "          ";
  243.                 $context['_parent'] = $context;
  244.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["GroupProduct"]) || array_key_exists("GroupProduct"$context) ? $context["GroupProduct"] : (function () { throw new RuntimeError('Variable "GroupProduct" does not exist.'135$this->source); })()), "ProductCategories", [], "any"falsefalsetrue135));
  245.                 foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  246.                     // line 136
  247.                     echo "          ";
  248.                     if (( !(isset($context["shown_breadcrumb"]) || array_key_exists("shown_breadcrumb"$context) ? $context["shown_breadcrumb"] : (function () { throw new RuntimeError('Variable "shown_breadcrumb" does not exist.'136$this->source); })()) && ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["GroupProduct"]) || array_key_exists("GroupProduct"$context) ? $context["GroupProduct"] : (function () { throw new RuntimeError('Variable "GroupProduct" does not exist.'136$this->source); })()), "ProductCategories", [], "any"falsefalsetrue136)) == 1) || (twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsetrue136), "path", [], "any"falsefalsetrue136)) >= 2)))) {
  249.                         // line 137
  250.                         echo "            <div class=\"ec-breadcrumbs\">
  251.               <a href=\"/\">Home</a>
  252.               <span> ></span>
  253.               ";
  254.                         // line 140
  255.                         $context['_parent'] = $context;
  256.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsetrue140), "path", [], "any"falsefalsetrue140));
  257.                         $context['loop'] = [
  258.                           'parent' => $context['_parent'],
  259.                           'index0' => 0,
  260.                           'index'  => 1,
  261.                           'first'  => true,
  262.                         ];
  263.                         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  264.                             $length count($context['_seq']);
  265.                             $context['loop']['revindex0'] = $length 1;
  266.                             $context['loop']['revindex'] = $length;
  267.                             $context['loop']['length'] = $length;
  268.                             $context['loop']['last'] = === $length;
  269.                         }
  270.                         foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  271.                             // line 141
  272.                             echo "                ";
  273.                             if ((twig_get_attribute($this->env$this->source$context["Category"], "id", [], "any"falsefalsetrue141) == 1)) {
  274.                                 // line 142
  275.                                 echo "                  <a href=\"/rock/\">";
  276.                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsetrue142), 142$this->source), "html"nulltrue);
  277.                                 echo "</a> 
  278.                 ";
  279.                             } else {
  280.                                 // line 144
  281.                                 echo "                  <a href=\"";
  282.                                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  283.                                 echo "?category_id=";
  284.                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Category"], "id", [], "any"falsefalsetrue144), 144$this->source), "html"nulltrue);
  285.                                 echo "\">";
  286.                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsetrue144), 144$this->source), "html"nulltrue);
  287.                                 echo "</a> 
  288.                 ";
  289.                             }
  290.                             // line 146
  291.                             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue146) == false)) {
  292.                                 // line 147
  293.                                 echo "                  <span> ></span>
  294.                 ";
  295.                             }
  296.                             ++$context['loop']['index0'];
  297.                             ++$context['loop']['index'];
  298.                             $context['loop']['first'] = false;
  299.                             if (isset($context['loop']['length'])) {
  300.                                 --$context['loop']['revindex0'];
  301.                                 --$context['loop']['revindex'];
  302.                                 $context['loop']['last'] = === $context['loop']['revindex0'];
  303.                             }
  304.                         }
  305.                         $_parent $context['_parent'];
  306.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  307.                         $context array_intersect_key($context$_parent) + $_parent;
  308.                         // line 150
  309.                         echo "              <span> ></span> ";
  310.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["GroupProduct"]) || array_key_exists("GroupProduct"$context) ? $context["GroupProduct"] : (function () { throw new RuntimeError('Variable "GroupProduct" does not exist.'150$this->source); })()), "name", [], "any"falsefalsetrue150), 150$this->source), "html"nulltrue);
  311.                         echo "
  312.             </div>
  313.             ";
  314.                         // line 152
  315.                         $context["shown_breadcrumb"] = true;
  316.                         // line 153
  317.                         echo "          ";
  318.                     }
  319.                     // line 154
  320.                     echo "          ";
  321.                 }
  322.                 $_parent $context['_parent'];
  323.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  324.                 $context array_intersect_key($context$_parent) + $_parent;
  325.                 // line 155
  326.                 echo "        </div>
  327.         ";
  328.             }
  329.             // line 157
  330.             echo "    ";
  331.         } else {
  332.             // line 158
  333.             echo "    <div class=\"ec-breadcrumbs\">
  334.       <div itemscope=\"\" itemtype=\"http://data-vocabulary.org/Breadcrumb\">
  335.         <a href=\"/\" itemprop=\"url\">
  336.           <span itemprop=\"title\">Home</span>
  337.         </a>
  338.       </div>
  339.       ";
  340.             // line 164
  341.             if ((array_key_exists("Artist"$context) && (isset($context["Artist"]) || array_key_exists("Artist"$context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.'164$this->source); })()))) {
  342.                 // line 165
  343.                 echo "        <div>
  344.           &gt;
  345.           <a href=\"";
  346.                 // line 167
  347.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Artist"]) || array_key_exists("Artist"$context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.'167$this->source); })()), "getCategoryLabelUrl", [], "method"falsefalsetrue167), 167$this->source), "html"nulltrue);
  348.                 echo "\" itemprop=\"url\">
  349.             <span itemprop=\"title\">";
  350.                 // line 168
  351.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["Artist"]) || array_key_exists("Artist"$context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.'168$this->source); })()), "CategoryLabel", [], "any"falsefalsetrue168), "name", [], "any"falsefalsetrue168), 168$this->source), "html"nulltrue);
  352.                 echo "</span>
  353.           </a>
  354.         </div>
  355.         <div>
  356.           &gt;
  357.           <span itemprop=\"title\">";
  358.                 // line 173
  359.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Artist"]) || array_key_exists("Artist"$context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.'173$this->source); })()), "name", [], "any"falsefalsetrue173), 173$this->source), "html"nulltrue);
  360.                 echo "</span>
  361.         </div>
  362.       ";
  363.             } elseif ((            // line 175
  364. array_key_exists("Category"$context) && (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'175$this->source); })()))) {
  365.                 // line 176
  366.                 echo "        ";
  367.                 if (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.'176$this->source); })()), "Parent", [], "any"falsefalsetrue176)) {
  368.                     // line 177
  369.                     echo "        <div>
  370.           &gt;
  371.           <a href=\"";
  372.                     // line 179
  373.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  374.                     echo "?category_id=";
  375.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'179$this->source); })()), "Parent", [], "any"falsefalsetrue179), "id", [], "any"falsefalsetrue179), 179$this->source), "html"nulltrue);
  376.                     echo "\" itemprop=\"url\">
  377.             <span itemprop=\"title\">";
  378.                     // line 180
  379.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'180$this->source); })()), "Parent", [], "any"falsefalsetrue180), "name", [], "any"falsefalsetrue180), 180$this->source), "html"nulltrue);
  380.                     echo "</span>
  381.           </a>
  382.         </div>
  383.         ";
  384.                 }
  385.                 // line 184
  386.                 echo "        <div>
  387.           &gt;
  388.             <span itemprop=\"title\">";
  389.                 // line 186
  390.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'186$this->source); })()), "name", [], "any"falsefalsetrue186), 186$this->source), "html"nulltrue);
  391.                 echo "</span>
  392.         </div>
  393.       ";
  394.             } else {
  395.                 // line 189
  396.                 echo "        <div>
  397.           &gt;
  398.           <span itemprop=\"title\">全商品</span>
  399.         </div>
  400.       ";
  401.             }
  402.             // line 194
  403.             echo "    </div>
  404.     ";
  405.         }
  406.         // line 196
  407.         echo "    ";
  408.         // line 197
  409.         echo "    
  410.     ";
  411.         // line 198
  412.         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.'198$this->source); })()), "category_id", [], "any"falsefalsetrue198), "vars", [], "any"falsefalsetrue198), "errors", [], "any"falsefalsetrue198)) > 0)) {
  413.             // line 199
  414.             echo "      <div class=\"ec-searchnavRole\">
  415.         <p class=\"errormsg text-danger\">";
  416.             // line 200
  417.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  418.             echo "</p>
  419.       </div>
  420.     ";
  421.         } else {
  422.             // line 203
  423.             echo "      <div class=\"ec-searchnavRole\">
  424.         <div class=\"ec-searchnavRole__search\">
  425.           <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  426.             ";
  427.             // line 206
  428.             $context['_parent'] = $context;
  429.             $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.'206$this->source); })()));
  430.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  431.                 // line 207
  432.                 echo "              ";
  433.                 if (!twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue207), "id", [], "any"falsefalsetrue207), [=> "name"=> "field_type"=> "genre_id"])) {
  434.                     // line 208
  435.                     echo "                <input type=\"hidden\" id=\"";
  436.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue208), "id", [], "any"falsefalsetrue208), 208$this->source), "html"nulltrue);
  437.                     echo "\" name=\"";
  438.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue208), "full_name", [], "any"falsefalsetrue208), 208$this->source), "html"nulltrue);
  439.                     echo "\" ";
  440.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue208), "value", [], "any"falsefalsetrue208))) {
  441.                         echo " value=\"";
  442.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue208), "value", [], "any"falsefalsetrue208), 208$this->source), "html"nulltrue);
  443.                         echo "\" ";
  444.                     }
  445.                     echo "/>
  446.               ";
  447.                 }
  448.                 // line 210
  449.                 echo "            ";
  450.             }
  451.             $_parent $context['_parent'];
  452.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  453.             $context array_intersect_key($context$_parent) + $_parent;
  454.             // line 211
  455.             echo "            <input type=\"hidden\" name=\"pageno\" value=\"1\">
  456.             <div class=\"d-flex align-items-center gap-1\">
  457.               <div class=\"d-flex align-items-center p-0\">
  458.                 <div class=\"ec-searchnavRole__search__input input-name\">
  459.                   ";
  460.             // line 215
  461.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'215$this->source); })()), "name", [], "any"falsefalsetrue215), 215$this->source), 'widget');
  462.             echo "
  463.                   <button class=\"ec-headerSearch__keywordBtn\" type=\"submit\">
  464.                     <img src=\"";
  465.             // line 217
  466.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/btn_search_s.jpg"), "html"nulltrue);
  467.             echo "\" alt=\"購入履歴\">
  468.                   </button>
  469.                 </div>
  470.                 ";
  471.             // line 220
  472.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'220$this->source); })()), "name", [], "any"falsefalsetrue220), 220$this->source), 'errors');
  473.             echo "
  474.               </div>
  475.               <div class=\"\">
  476.                 <div class=\"ec-searchnavRole__search__input input-select\">
  477.                   ";
  478.             // line 224
  479.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'224$this->source); })()), "field_type", [], "any"falsefalsetrue224), 224$this->source), 'widget', ["attr" => ["class" => "custom-select"]]);
  480.             echo "
  481.                   <button class=\"ec-headerSearch__keywordBtn\" type=\"submit\">
  482.                     <img src=\"";
  483.             // line 226
  484.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/btn_topsearch_music_genre.png"), "html"nulltrue);
  485.             echo "\" alt=\"購入履歴\">
  486.                   </button>
  487.                 </div>
  488.                 ";
  489.             // line 229
  490.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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); })()), "field_type", [], "any"falsefalsetrue229), 229$this->source), 'errors');
  491.             echo "
  492.               </div>
  493.               <div class=\"\">
  494.                 <div class=\"ec-searchnavRole__search__input input-select\">
  495.                   ";
  496.             // line 233
  497.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'233$this->source); })()), "genre_id", [], "any"falsefalsetrue233), 233$this->source), 'widget', ["attr" => ["class" => "custom-select"]]);
  498.             echo "
  499.                   <button class=\"ec-headerSearch__keywordBtn\" type=\"submit\">                  
  500.                     <img src=\"";
  501.             // line 235
  502.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/btn_topsearch_item_genre.png"), "html"nulltrue);
  503.             echo "\" alt=\"購入履歴\">
  504.                   </button>
  505.                 </div>
  506.                 ";
  507.             // line 238
  508.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'238$this->source); })()), "genre_id", [], "any"falsefalsetrue238), 238$this->source), 'errors');
  509.             echo "
  510.               </div>
  511.               <div class=\"\">
  512.                 <button class=\"search-button\" type=\"submit\">
  513.                   <img src=\"";
  514.             // line 242
  515.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/btn_search.jpg"), "html"nulltrue);
  516.             echo "\" alt=\"";
  517.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("検索"), "html"nulltrue);
  518.             echo "\">
  519.                 </button>
  520.               </div>
  521.             </div>
  522.           </form>
  523.         </div>
  524.         ";
  525.             // line 249
  526.             echo "        ";
  527.             if ((array_key_exists("Artist"$context) && (isset($context["Artist"]) || array_key_exists("Artist"$context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.'249$this->source); })()))) {
  528.                 // line 250
  529.                 echo "          <div class=\"artist\">
  530.             ";
  531.                 // line 251
  532.                 if ((array_key_exists("ArtistImage"$context) && (isset($context["ArtistImage"]) || array_key_exists("ArtistImage"$context) ? $context["ArtistImage"] : (function () { throw new RuntimeError('Variable "ArtistImage" does not exist.'251$this->source); })()))) {
  533.                     // line 252
  534.                     echo "              <div class=\"artist-image\">
  535.                 <img src=\"";
  536.                     // line 253
  537.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["ArtistImage"]) || array_key_exists("ArtistImage"$context) ? $context["ArtistImage"] : (function () { throw new RuntimeError('Variable "ArtistImage" does not exist.'253$this->source); })()), 253$this->source), "html"nulltrue);
  538.                     echo "\" class=\"artist-image\" alt=\"";
  539.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Artist"]) || array_key_exists("Artist"$context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.'253$this->source); })()), "name", [], "any"falsefalsetrue253), 253$this->source), "html"nulltrue);
  540.                     echo "\">
  541.               </div>
  542.             ";
  543.                 }
  544.                 // line 256
  545.                 echo "            <div class=\"artist-detail\">
  546.               <p>";
  547.                 // line 257
  548.                 echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Artist"]) || array_key_exists("Artist"$context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.'257$this->source); })()), "category_content", [], "any"falsefalsetrue257), 257$this->source));
  549.                 echo "</p>
  550.             </div>
  551.           </div>
  552.         ";
  553.             }
  554.             // line 261
  555.             echo "        ";
  556.             // line 262
  557.             echo "        <div class=\"ec-searchnavRole__infos\">
  558.           <div class=\"ec-searchnavRole__counter\">
  559.             ";
  560.             // line 264
  561.             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.'264$this->source); })()), "totalItemCount", [], "any"falsefalsetrue264) > 0)) {
  562.                 // line 265
  563.                 echo "              ";
  564.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"attention\">%count%件</span><span>の商品がございます。</span>", ["%count%" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'265$this->source); })()), "totalItemCount", [], "any"falsefalsetrue265)]);
  565.                 echo "
  566.             ";
  567.             } else {
  568.                 // line 267
  569.                 echo "              <span>";
  570.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  571.                 echo "</span>
  572.             ";
  573.             }
  574.             // line 269
  575.             echo "          </div>
  576.           <div class=\"ec-searchnavRole__actions\">
  577.             ";
  578.             // line 271
  579.             if ((array_key_exists("Artist"$context) && (isset($context["Artist"]) || array_key_exists("Artist"$context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.'271$this->source); })()))) {
  580.                 // line 272
  581.                 echo "            <div class=\"ec-select\">
  582.               ";
  583.                 // line 273
  584.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'273$this->source); })()), "orderby", [], "any"falsefalsetrue273), 273$this->source), 'widget', ["id" => """attr" => ["class" => "order-by-artist"]]);
  585.                 echo "
  586.               ";
  587.                 // line 274
  588.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'274$this->source); })()), "disp_number", [], "any"falsefalsetrue274), 274$this->source), 'widget', ["id" => """attr" => ["class" => "disp-number-artist"]]);
  589.                 echo "
  590.             </div>
  591.             ";
  592.             } else {
  593.                 // line 277
  594.                 echo "            <div class=\"ec-select\">
  595.               ";
  596.                 // line 278
  597.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'278$this->source); })()), "orderby", [], "any"falsefalsetrue278), 278$this->source), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  598.                 echo "
  599.               ";
  600.                 // line 279
  601.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'279$this->source); })()), "disp_number", [], "any"falsefalsetrue279), 279$this->source), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  602.                 echo "
  603.             </div>
  604.             ";
  605.             }
  606.             // line 281
  607.             echo "  
  608.           </div>
  609.         </div>
  610.       </div>
  611.       ";
  612.             // line 285
  613.             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.'285$this->source); })()), "totalItemCount", [], "any"falsefalsetrue285) > 0)) {
  614.                 // line 286
  615.                 echo "        <div class=\"ec-shelfRole\">
  616.           <div class=\"ec-counterRole\">
  617.             ";
  618.                 // line 288
  619.                 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.'288$this->source); })()), "totalItemCount", [], "any"falsefalsetrue288) > 0)) {
  620.                     // line 289
  621.                     echo "              ";
  622.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"attention\">%count%件</span><span>の商品がございます。</span>", ["%count%" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'289$this->source); })()), "totalItemCount", [], "any"falsefalsetrue289)]);
  623.                     echo "
  624.             ";
  625.                 } else {
  626.                     // line 291
  627.                     echo "              <span>";
  628.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  629.                     echo "</span>
  630.             ";
  631.                 }
  632.                 // line 293
  633.                 echo "          </div>
  634.           <ul class=\"ec-shelfGrid\">
  635.             ";
  636.                 // line 295
  637.                 $context['_parent'] = $context;
  638.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'295$this->source); })()));
  639.                 $context['loop'] = [
  640.                   'parent' => $context['_parent'],
  641.                   'index0' => 0,
  642.                   'index'  => 1,
  643.                   'first'  => true,
  644.                 ];
  645.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  646.                     $length count($context['_seq']);
  647.                     $context['loop']['revindex0'] = $length 1;
  648.                     $context['loop']['revindex'] = $length;
  649.                     $context['loop']['length'] = $length;
  650.                     $context['loop']['last'] = === $length;
  651.                 }
  652.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  653.                     // line 296
  654.                     echo "              <li class=\"ec-shelfGrid__item\">
  655.                 <a class=\"link-product\" href=\"";
  656.                     // line 297
  657.                     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"falsefalsetrue297)]), "html"nulltrue);
  658.                     echo "\">
  659.                   <p class=\"ec-shelfGrid__item-image\">
  660.                     ";
  661.                     // line 299
  662.                     $context["isSoldOut"] = true;
  663.                     // line 300
  664.                     echo "                    ";
  665.                     $context['_parent'] = $context;
  666.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductClasses", [], "any"falsefalsetrue300));
  667.                     foreach ($context['_seq'] as $context["_key"] => $context["productClass"]) {
  668.                         // line 301
  669.                         echo "                      ";
  670.                         if (twig_get_attribute($this->env$this->source$context["productClass"], "stock_find", [], "any"falsefalsetrue301)) {
  671.                             // line 302
  672.                             echo "                        ";
  673.                             $context["isSoldOut"] = false;
  674.                             // line 303
  675.                             echo "                      ";
  676.                         }
  677.                         // line 304
  678.                         echo "                    ";
  679.                     }
  680.                     $_parent $context['_parent'];
  681.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productClass'], $context['_parent'], $context['loop']);
  682.                     $context array_intersect_key($context$_parent) + $_parent;
  683.                     // line 305
  684.                     echo "                    ";
  685.                     if ((isset($context["isSoldOut"]) || array_key_exists("isSoldOut"$context) ? $context["isSoldOut"] : (function () { throw new RuntimeError('Variable "isSoldOut" does not exist.'305$this->source); })())) {
  686.                         // line 306
  687.                         echo "                      <span class=\"soldout_box\"></span>
  688.                       <span class=\"soldout\">SOLD OUT</span>
  689.                     ";
  690.                     }
  691.                     // line 309
  692.                     echo "                    <img src=\"";
  693.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsetrue309), 309$this->source)), "save_image"), "html"nulltrue);
  694.                     echo "\" alt=\"";
  695.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue309), 309$this->source), "html"nulltrue);
  696.                     echo "\" ";
  697.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue309) > 5)) {
  698.                         echo " loading=\"lazy\" ";
  699.                     }
  700.                     echo ">
  701.                   </p>
  702.                     ";
  703.                     // line 311
  704.                     if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "ProductStatusCusts", [], "any"falsefalsetrue311)) > 0)) {
  705.                         // line 312
  706.                         echo "                      <ul class=\"ec-productRole__status\">
  707.                         ";
  708.                         // line 313
  709.                         $context["statusIds"] = [=> 1=> 2=> 4=> 5];
  710.                         // line 314
  711.                         echo "                        ";
  712.                         $context["statusIdsSpicon"] = [=> 6=> 13=> 14];
  713.                         // line 315
  714.                         echo "
  715.                         ";
  716.                         // line 316
  717.                         $context['_parent'] = $context;
  718.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductStatusCusts", [], "any"falsefalsetrue316));
  719.                         foreach ($context['_seq'] as $context["_key"] => $context["StatusItem"]) {
  720.                             // line 317
  721.                             echo "                          ";
  722.                             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["StatusItem"], "Status", [], "any"falsefalsetrue317), "id", [], "any"falsefalsetrue317) == 3)) {
  723.                                 // line 318
  724.                                 echo "                            <li class=\"ward-status\">
  725.                               <span class=\"ec-productRole__status__item status_3\">
  726.                                 <img src=\"";
  727.                                 // line 320
  728.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/ico_wgen.jpg"), "html"nulltrue);
  729.                                 echo "\" alt=\"ico_wgen\">
  730.                               </span>
  731.                             </li>
  732.                           ";
  733.                             }
  734.                             // line 324
  735.                             echo "                        ";
  736.                         }
  737.                         $_parent $context['_parent'];
  738.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['StatusItem'], $context['_parent'], $context['loop']);
  739.                         $context array_intersect_key($context$_parent) + $_parent;
  740.                         // line 325
  741.                         echo "
  742.                         ";
  743.                         // line 326
  744.                         $context['_parent'] = $context;
  745.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductStatusCusts", [], "any"falsefalsetrue326));
  746.                         foreach ($context['_seq'] as $context["_key"] => $context["StatusItem"]) {
  747.                             // line 327
  748.                             echo "                          ";
  749.                             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["StatusItem"], "Status", [], "any"falsefalsetrue327), "id", [], "any"falsefalsetrue327) != 3)) {
  750.                                 // line 328
  751.                                 echo "                            ";
  752.                                 $context["showSpicon"] = 0;
  753.                                 // line 329
  754.                                 echo "                            ";
  755.                                 if (twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["StatusItem"], "Status", [], "any"falsefalsetrue329), "id", [], "any"falsefalsetrue329), (isset($context["statusIds"]) || array_key_exists("statusIds"$context) ? $context["statusIds"] : (function () { throw new RuntimeError('Variable "statusIds" does not exist.'329$this->source); })()))) {
  756.                                     // line 330
  757.                                     echo "                              <li class=\"ec-productRole__status__item status_";
  758.                                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["StatusItem"], "Status", [], "any"falsefalsetrue330), "id", [], "any"falsefalsetrue330), 330$this->source), "html"nulltrue);
  759.                                     echo "\">
  760.                                 <span>";
  761.                                     // line 331
  762.                                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["StatusItem"], "Status", [], "any"falsefalsetrue331), "name", [], "any"falsefalsetrue331), 331$this->source), "html"nulltrue);
  763.                                     echo "</span>
  764.                               </li>
  765.                             ";
  766.                                 }
  767.                                 // line 334
  768.                                 echo "
  769.                             ";
  770.                                 // line 335
  771.                                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["StatusItem"], "Status", [], "any"falsefalsetrue335), "id", [], "any"falsefalsetrue335) == 11)) {
  772.                                     // line 336
  773.                                     echo "                              <li class=\"ec-productRole__status__item status_";
  774.                                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["StatusItem"], "Status", [], "any"falsefalsetrue336), "id", [], "any"falsefalsetrue336), 336$this->source), "html"nulltrue);
  775.                                     echo "\">
  776.                                 <span>お年玉セール</span>
  777.                               </li>
  778.                             ";
  779.                                 }
  780.                                 // line 340
  781.                                 echo "
  782.                             ";
  783.                                 // line 341
  784.                                 if (twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["StatusItem"], "Status", [], "any"falsefalsetrue341), "id", [], "any"falsefalsetrue341), (isset($context["statusIdsSpicon"]) || array_key_exists("statusIdsSpicon"$context) ? $context["statusIdsSpicon"] : (function () { throw new RuntimeError('Variable "statusIdsSpicon" does not exist.'341$this->source); })()))) {
  785.                                     // line 342
  786.                                     echo "                              ";
  787.                                     $context["showSpicon"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["StatusItem"], "Status", [], "any"falsefalsetrue342), "id", [], "any"falsefalsetrue342);
  788.                                     // line 343
  789.                                     echo "                            ";
  790.                                 }
  791.                                 // line 344
  792.                                 echo "
  793.                             ";
  794.                                 // line 345
  795.                                 if (((isset($context["showSpicon"]) || array_key_exists("showSpicon"$context) ? $context["showSpicon"] : (function () { throw new RuntimeError('Variable "showSpicon" does not exist.'345$this->source); })()) == 6)) {
  796.                                     // line 346
  797.                                     echo "                              <li class=\"ec-productRole__status__item status_12\">
  798.                                 <span>直筆サイン付</span>
  799.                               </li>
  800.                             ";
  801.                                 }
  802.                                 // line 350
  803.                                 echo "                          ";
  804.                             }
  805.                             // line 351
  806.                             echo "                        ";
  807.                         }
  808.                         $_parent $context['_parent'];
  809.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['StatusItem'], $context['_parent'], $context['loop']);
  810.                         $context array_intersect_key($context$_parent) + $_parent;
  811.                         // line 352
  812.                         echo "                    </ul>
  813.                   ";
  814.                     }
  815.                     // line 354
  816.                     echo "                  ";
  817.                     if ( !(null === twig_get_attribute($this->env$this->source$context["Product"], "getFirstArtist", [], "method"falsefalsetrue354))) {
  818.                         // line 355
  819.                         echo "                    <p class=\"ec-shelfGrid__item-artist\">
  820.                       ";
  821.                         // line 356
  822.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "getFirstArtist", [], "method"falsefalsetrue356), "name", [], "any"falsefalsetrue356), 356$this->source), "html"nulltrue);
  823.                         echo "
  824.                     </p>
  825.                   ";
  826.                     }
  827.                     // line 359
  828.                     echo "                  <p class=\"ec-shelfGrid__item-name\">
  829.                     ";
  830.                     // line 360
  831.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "papc3", [], "any"falsefalsetrue360), 360$this->source), "html"nulltrue);
  832.                     echo "
  833.                     ";
  834.                     // line 361
  835.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue361), 361$this->source), "html"nulltrue);
  836.                     echo "
  837.                     ";
  838.                     // line 362
  839.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "papc4", [], "any"falsefalsetrue362), 362$this->source), "html"nulltrue);
  840.                     echo "
  841.                   </p>
  842.                   <p class=\"price02-default\">
  843.                     ";
  844.                     // line 366
  845.                     echo "                      ";
  846.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsetrue366)) {
  847.                         // line 367
  848.                         echo "                        ";
  849.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsetrue367) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsetrue367))) {
  850.                             // line 368
  851.                             echo "                          <span class=\"ec-price__price price02-default\">
  852.                             ";
  853.                             // line 369
  854.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue369), 369$this->source), 0"."","), "html"nulltrue);
  855.                             echo "円
  856.                           </span>
  857.                           <span class=\"ec-price__price price02-default tax-excluded-price\">
  858.                             (税抜 ";
  859.                             // line 372
  860.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsetrue372), 372$this->source), 0"."","), "html"nulltrue);
  861.                             echo "円)
  862.                           </span>
  863.                           <span class=\"ec-price__price price02-default tax-excluded-price1\">
  864.                             (税込)
  865.                           </span>
  866.                         ";
  867.                         } else {
  868.                             // line 378
  869.                             echo "                          <div class=\"ec-price\">
  870.                             <span class=\"ec-price__price price02-default\">
  871.                               ";
  872.                             // line 380
  873.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue380), 380$this->source), 0"."","), "html"nulltrue);
  874.                             echo " ~ 
  875.                               ";
  876.                             // line 381
  877.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsetrue381), 381$this->source), 0"."","), "html"nulltrue);
  878.                             echo "円
  879.                             </span>
  880.                             <span class=\"ec-price__price price02-default tax-excluded-price\">
  881.                               (税抜 ";
  882.                             // line 384
  883.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsetrue384), 384$this->source), 0"."","), "html"nulltrue);
  884.                             echo " ~ 
  885.                               ";
  886.                             // line 385
  887.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsetrue385), 385$this->source), 0"."","), "html"nulltrue);
  888.                             echo "円)
  889.                             </span>
  890.                             <span class=\"ec-price__price price02-default tax-excluded-price1\">
  891.                               (税込)
  892.                             </span>
  893.                           </div>
  894.                         ";
  895.                         }
  896.                         // line 392
  897.                         echo "                      ";
  898.                     } else {
  899.                         // line 393
  900.                         echo "                        <div class=\"ec-price\">
  901.                           <span class=\"ec-price__price\">
  902.                             ";
  903.                         // line 395
  904.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue395), 395$this->source), 0"."","), "html"nulltrue);
  905.                         echo "円
  906.                           </span>
  907.                           <span class=\"ec-price__price tax-excluded-price\">
  908.                             (税抜 ";
  909.                         // line 398
  910.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsetrue398), 398$this->source), 0"."","), "html"nulltrue);
  911.                         echo "円)
  912.                           </span>
  913.                           <span class=\"ec-price__price price02-default tax-excluded-price1\">
  914.                             (税込)
  915.                           </span>
  916.                         </div>
  917.                       ";
  918.                     }
  919.                     // line 405
  920.                     echo "                    ";
  921.                     // line 449
  922.                     echo "                  </p>
  923.                   ";
  924.                     // line 450
  925.                     $context["original_price"] = twig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMin", [], "any"falsefalsetrue450);
  926.                     // line 451
  927.                     echo "                  ";
  928.                     $context["sale_price"] = twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue451);
  929.                     // line 452
  930.                     echo "                  ";
  931.                     if (((((isset($context["original_price"]) || array_key_exists("original_price"$context) ? $context["original_price"] : (function () { throw new RuntimeError('Variable "original_price" does not exist.'452$this->source); })()) > 0) &&  !(null === (isset($context["sale_price"]) || array_key_exists("sale_price"$context) ? $context["sale_price"] : (function () { throw new RuntimeError('Variable "sale_price" does not exist.'452$this->source); })()))) && ((isset($context["original_price"]) || array_key_exists("original_price"$context) ? $context["original_price"] : (function () { throw new RuntimeError('Variable "original_price" does not exist.'452$this->source); })()) > (isset($context["sale_price"]) || array_key_exists("sale_price"$context) ? $context["sale_price"] : (function () { throw new RuntimeError('Variable "sale_price" does not exist.'452$this->source); })())))) {
  932.                         // line 453
  933.                         echo "                    <div class=\"sale_price\">
  934.                         ";
  935.                         // line 454
  936.                         $context["discount_percentage"] = twig_round(((((isset($context["original_price"]) || array_key_exists("original_price"$context) ? $context["original_price"] : (function () { throw new RuntimeError('Variable "original_price" does not exist.'454$this->source); })()) - (isset($context["sale_price"]) || array_key_exists("sale_price"$context) ? $context["sale_price"] : (function () { throw new RuntimeError('Variable "sale_price" does not exist.'454$this->source); })())) / (isset($context["original_price"]) || array_key_exists("original_price"$context) ? $context["original_price"] : (function () { throw new RuntimeError('Variable "original_price" does not exist.'454$this->source); })())) * 100), 2);
  937.                         // line 455
  938.                         echo "                        <span class=\"plgShiro8PriceDownRate\">
  939.                           ";
  940.                         // line 456
  941.                         echo twig_escape_filter($this->env, (int) floor(((isset($context["discount_percentage"]) || array_key_exists("discount_percentage"$context) ? $context["discount_percentage"] : (function () { throw new RuntimeError('Variable "discount_percentage" does not exist.'456$this->source); })()) / 1)), "html"nulltrue);
  942.                         echo "%OFF
  943.                         </span>
  944.                     </div>
  945.                   ";
  946.                     }
  947.                     // line 460
  948.                     echo "                </a>
  949.               </li>
  950.             ";
  951.                     ++$context['loop']['index0'];
  952.                     ++$context['loop']['index'];
  953.                     $context['loop']['first'] = false;
  954.                     if (isset($context['loop']['length'])) {
  955.                         --$context['loop']['revindex0'];
  956.                         --$context['loop']['revindex'];
  957.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  958.                     }
  959.                 }
  960.                 $_parent $context['_parent'];
  961.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  962.                 $context array_intersect_key($context$_parent) + $_parent;
  963.                 // line 463
  964.                 echo "          </ul>
  965.           <div class=\"ec-pagerRole\">
  966.             ";
  967.                 // line 465
  968.                 $this->loadTemplate("pager.twig""Product/list.twig"465)->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.'465$this->source); })()), "paginationData", [], "any"falsefalsetrue465)]));
  969.                 // line 466
  970.                 echo "          </div>
  971.         </div>
  972.         <div class=\"ec-modal\">
  973.           <div class=\"ec-modal-overlay\">
  974.             <div class=\"ec-modal-wrap\">
  975.               <span class=\"ec-modal-close\">
  976.                 <span class=\"ec-icon\"><img src=\"";
  977.                 // line 472
  978.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  979.                 echo "\" alt=\"\"/></span>
  980.               </span>
  981.               <div id=\"ec-modal-header\" class=\"text-center\">";
  982.                 // line 474
  983.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  984.                 echo "</div>
  985.               <div class=\"ec-modal-box\">
  986.                 <div class=\"ec-role\">
  987.                   <span class=\"ec-inlineBtn--cancel\">";
  988.                 // line 477
  989.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  990.                 echo "</span>
  991.                   <a href=\"";
  992.                 // line 478
  993.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  994.                 echo "\" class=\"ec-inlineBtn--action\">";
  995.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  996.                 echo "</a>
  997.                 </div>
  998.               </div>
  999.             </div>
  1000.           </div>
  1001.         </div>
  1002.       ";
  1003.             }
  1004.             // line 485
  1005.             echo "    ";
  1006.         }
  1007.         // line 486
  1008.         echo "  </div>
  1009. ";
  1010.         
  1011.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1012.         
  1013.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1014.     }
  1015.     public function getTemplateName()
  1016.     {
  1017.         return "Product/list.twig";
  1018.     }
  1019.     public function isTraitable()
  1020.     {
  1021.         return false;
  1022.     }
  1023.     public function getDebugInfo()
  1024.     {
  1025.         return array (  1033 => 486,  1030 => 485,  1018 => 478,  1014 => 477,  1008 => 474,  1003 => 472,  995 => 466,  993 => 465,  989 => 463,  973 => 460,  966 => 456,  963 => 455,  961 => 454,  958 => 453,  955 => 452,  952 => 451,  950 => 450,  947 => 449,  945 => 405,  935 => 398,  929 => 395,  925 => 393,  922 => 392,  912 => 385,  908 => 384,  902 => 381,  898 => 380,  894 => 378,  885 => 372,  879 => 369,  876 => 368,  873 => 367,  870 => 366,  864 => 362,  860 => 361,  856 => 360,  853 => 359,  847 => 356,  844 => 355,  841 => 354,  837 => 352,  831 => 351,  828 => 350,  822 => 346,  820 => 345,  817 => 344,  814 => 343,  811 => 342,  809 => 341,  806 => 340,  798 => 336,  796 => 335,  793 => 334,  787 => 331,  782 => 330,  779 => 329,  776 => 328,  773 => 327,  769 => 326,  766 => 325,  760 => 324,  753 => 320,  749 => 318,  746 => 317,  742 => 316,  739 => 315,  736 => 314,  734 => 313,  731 => 312,  729 => 311,  717 => 309,  712 => 306,  709 => 305,  703 => 304,  700 => 303,  697 => 302,  694 => 301,  689 => 300,  687 => 299,  682 => 297,  679 => 296,  662 => 295,  658 => 293,  652 => 291,  646 => 289,  644 => 288,  640 => 286,  638 => 285,  632 => 281,  626 => 279,  622 => 278,  619 => 277,  613 => 274,  609 => 273,  606 => 272,  604 => 271,  600 => 269,  594 => 267,  588 => 265,  586 => 264,  582 => 262,  580 => 261,  573 => 257,  570 => 256,  562 => 253,  559 => 252,  557 => 251,  554 => 250,  551 => 249,  540 => 242,  533 => 238,  527 => 235,  522 => 233,  515 => 229,  509 => 226,  504 => 224,  497 => 220,  491 => 217,  486 => 215,  480 => 211,  474 => 210,  460 => 208,  457 => 207,  453 => 206,  448 => 203,  442 => 200,  439 => 199,  437 => 198,  434 => 197,  432 => 196,  428 => 194,  421 => 189,  415 => 186,  411 => 184,  404 => 180,  398 => 179,  394 => 177,  391 => 176,  389 => 175,  384 => 173,  376 => 168,  372 => 167,  368 => 165,  366 => 164,  358 => 158,  355 => 157,  351 => 155,  345 => 154,  342 => 153,  340 => 152,  334 => 150,  318 => 147,  316 => 146,  306 => 144,  300 => 142,  297 => 141,  280 => 140,  275 => 137,  272 => 136,  267 => 135,  265 => 134,  262 => 133,  259 => 132,  256 => 131,  253 => 129,  243 => 128,  210 => 104,  200 => 97,  171 => 71,  120 => 22,  106 => 21,  102 => 20,  95 => 19,  78 => 18,  74 => 16,  64 => 15,  53 => 11,  51 => 13,  38 => 11,);
  1026.     }
  1027.     public function getSourceContext()
  1028.     {
  1029.         return new Source("{#
  1030. This file is part of EC-CUBE
  1031. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  1032. http://www.ec-cube.co.jp/
  1033. For the full copyright and license information, please view the LICENSE
  1034. file that was distributed with this source code.
  1035. #}
  1036. {% extends 'default_frame.twig' %}
  1037. {% set body_class = 'product_page' %}
  1038. {% block javascript %}
  1039.    <script>
  1040.       eccube.productsClassCategories = {
  1041.         {% for Product in pagination %}
  1042.           \"{{ Product.id|escape('js') }}\" : {{ class_categories_as_json(Product)|raw }}
  1043.           {% if loop.last == false %},{% endif %}
  1044.         {% endfor %}
  1045.       };
  1046.   
  1047.       \$(function () {
  1048.         \$('.disp-number').change(function () {
  1049.           var dispNumber = \$(this).val();
  1050.           \$('#disp_number').val(dispNumber);
  1051.           \$('#pageno').val(1);
  1052.           \$(\"#form1\").submit();
  1053.         });
  1054.         \$('.disp-number-artist').change(function () {
  1055.             var dispNumber = \$(this).val();
  1056.             var currentUrl = window.location.href;
  1057.             if (currentUrl.indexOf('disp_number=') !== -1) {
  1058.                 currentUrl = currentUrl.replace(/(disp_number=)[^&]*/, '\$1' + dispNumber);
  1059.             } else {
  1060.                 currentUrl += (currentUrl.indexOf('?') === -1 ? '?' : '&') + 'disp_number=' + dispNumber;
  1061.             }
  1062.             window.location.href = currentUrl;
  1063.         });
  1064.       \$('.order-by-artist').change(function () {
  1065.           var orderBy = \$(this).val();
  1066.           var currentUrl = window.location.href;
  1067.           if (currentUrl.indexOf('order_by=') !== -1) {
  1068.               currentUrl = currentUrl.replace(/(order_by=)[^&]*/, '\$1' + orderBy);
  1069.           } else {
  1070.               currentUrl += (currentUrl.indexOf('?') === -1 ? '?' : '&') + 'order_by=' + orderBy;
  1071.           }
  1072.           window.location.href = currentUrl;
  1073.       });
  1074.         
  1075.   
  1076.         \$('.order-by').change(function () {
  1077.           var orderBy = \$(this).val();
  1078.           \$('#orderby').val(orderBy);
  1079.           \$('#pageno').val(1);
  1080.           \$(\"#form1\").submit();
  1081.         });
  1082.   
  1083.         \$('.add-cart').on('click', function (e) {
  1084.           var \$form = \$(this).parents('li').find('form');
  1085.   
  1086.           // 個数フォームのチェック
  1087.           var \$quantity = \$form.parent().find('.quantity');
  1088.           if (\$quantity.val() < 1) {
  1089.             \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  1090.             setTimeout(function () {
  1091.               loadingOverlay('hide');
  1092.             }, 100);
  1093.             return true;
  1094.           } else {
  1095.             \$quantity[0].setCustomValidity('');
  1096.           }
  1097.           e.preventDefault();
  1098.           \$.ajax({
  1099.             url: \$form.attr('action'),
  1100.             type: \$form.attr('method'),
  1101.             data: \$form.serialize(),
  1102.             dataType: 'json',
  1103.             beforeSend: function (xhr, settings) { // Buttonを無効にする
  1104.               \$('.add-cart').prop('disabled', true);
  1105.             }
  1106.           }).done(function (data) { // レスポンス内のメッセージをalertで表示
  1107.             \$.each(data.messages, function () {
  1108.               \$('#ec-modal-header').text(this);
  1109.             });
  1110.   
  1111.             \$('.ec-modal').show();
  1112.   
  1113.             // カートブロックを更新する
  1114.             \$.ajax({
  1115.               url: '{{ url('block_cart') }}',
  1116.               type: 'GET',
  1117.               dataType: 'html'
  1118.             }).done(function (html) {
  1119.               \$('.ec-headerRole__cart').html(html);
  1120.             });
  1121.           }).fail(function (data) {
  1122.             alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  1123.           }).always(function (data) { // Buttonを有効にする
  1124.             \$('.add-cart').prop('disabled', false);
  1125.           });
  1126.         });
  1127.   
  1128.         \$('.ec-modal-wrap').on('click', function (e) {
  1129.           e.stopPropagation();
  1130.         });
  1131.   
  1132.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function () {
  1133.           \$('.ec-modal').hide();
  1134.         });
  1135.         \$(document).ready(function() {
  1136.           \$('.custom-select').select2({
  1137.             minimumResultsForSearch: -1,
  1138.             dropdownCssClass: 'select2-dropdown-slide'
  1139.           });
  1140.         });
  1141.       });
  1142.     </script>
  1143. {% endblock %}
  1144. {% block main %}
  1145.   <div class=\"ec-layoutRole__main custom-layout__product\">
  1146.     {# breadcumb #}
  1147.     {% if GroupProduct is defined and GroupProduct %}
  1148.       {% if GroupProduct.ProductCategories is not empty %}
  1149.         <div class=\"ec-breadcrumbs_layout\">
  1150.           {% set shown_breadcrumb = false %}
  1151.           {% for ProductCategory in GroupProduct.ProductCategories %}
  1152.           {% if not shown_breadcrumb and (GroupProduct.ProductCategories|length == 1 or ProductCategory.Category.path|length >= 2) %}
  1153.             <div class=\"ec-breadcrumbs\">
  1154.               <a href=\"/\">Home</a>
  1155.               <span> ></span>
  1156.               {% for Category in ProductCategory.Category.path %}
  1157.                 {% if Category.id == 1 %}
  1158.                   <a href=\"/rock/\">{{ Category.name }}</a> 
  1159.                 {% else %}
  1160.                   <a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a> 
  1161.                 {% endif %}
  1162.                 {%- if loop.last == false %}
  1163.                   <span> ></span>
  1164.                 {% endif -%}
  1165.               {% endfor %}
  1166.               <span> ></span> {{ GroupProduct.name }}
  1167.             </div>
  1168.             {% set shown_breadcrumb = true %}
  1169.           {% endif %}
  1170.           {% endfor %}
  1171.         </div>
  1172.         {% endif %}
  1173.     {% else %}
  1174.     <div class=\"ec-breadcrumbs\">
  1175.       <div itemscope=\"\" itemtype=\"http://data-vocabulary.org/Breadcrumb\">
  1176.         <a href=\"/\" itemprop=\"url\">
  1177.           <span itemprop=\"title\">Home</span>
  1178.         </a>
  1179.       </div>
  1180.       {% if Artist is defined and Artist %}
  1181.         <div>
  1182.           &gt;
  1183.           <a href=\"{{ Artist.getCategoryLabelUrl() }}\" itemprop=\"url\">
  1184.             <span itemprop=\"title\">{{Artist.CategoryLabel.name}}</span>
  1185.           </a>
  1186.         </div>
  1187.         <div>
  1188.           &gt;
  1189.           <span itemprop=\"title\">{{Artist.name}}</span>
  1190.         </div>
  1191.       {% elseif Category is defined and Category %}
  1192.         {% if Category.Parent %}
  1193.         <div>
  1194.           &gt;
  1195.           <a href=\"{{ url('product_list') }}?category_id={{ Category.Parent.id }}\" itemprop=\"url\">
  1196.             <span itemprop=\"title\">{{Category.Parent.name}}</span>
  1197.           </a>
  1198.         </div>
  1199.         {% endif %}
  1200.         <div>
  1201.           &gt;
  1202.             <span itemprop=\"title\">{{Category.name}}</span>
  1203.         </div>
  1204.       {% else %}
  1205.         <div>
  1206.           &gt;
  1207.           <span itemprop=\"title\">全商品</span>
  1208.         </div>
  1209.       {% endif %}
  1210.     </div>
  1211.     {% endif %}
  1212.     {# end breadcumb #}
  1213.     
  1214.     {% if search_form.category_id.vars.errors|length > 0 %}
  1215.       <div class=\"ec-searchnavRole\">
  1216.         <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  1217.       </div>
  1218.     {% else %}
  1219.       <div class=\"ec-searchnavRole\">
  1220.         <div class=\"ec-searchnavRole__search\">
  1221.           <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  1222.             {% for item in search_form %}
  1223.               {% if item.vars.id not in ['name', 'field_type', 'genre_id'] %}
  1224.                 <input type=\"hidden\" id=\"{{ item.vars.id }}\" name=\"{{ item.vars.full_name }}\" {% if item.vars.value is not empty %} value=\"{{ item.vars.value }}\" {% endif %}/>
  1225.               {% endif %}
  1226.             {% endfor %}
  1227.             <input type=\"hidden\" name=\"pageno\" value=\"1\">
  1228.             <div class=\"d-flex align-items-center gap-1\">
  1229.               <div class=\"d-flex align-items-center p-0\">
  1230.                 <div class=\"ec-searchnavRole__search__input input-name\">
  1231.                   {{ form_widget(search_form.name) }}
  1232.                   <button class=\"ec-headerSearch__keywordBtn\" type=\"submit\">
  1233.                     <img src=\"{{ asset('assets/icon/btn_search_s.jpg') }}\" alt=\"購入履歴\">
  1234.                   </button>
  1235.                 </div>
  1236.                 {{ form_errors(search_form.name) }}
  1237.               </div>
  1238.               <div class=\"\">
  1239.                 <div class=\"ec-searchnavRole__search__input input-select\">
  1240.                   {{ form_widget(search_form.field_type, {'attr': {'class': 'custom-select'}}) }}
  1241.                   <button class=\"ec-headerSearch__keywordBtn\" type=\"submit\">
  1242.                     <img src=\"{{ asset('assets/icon/btn_topsearch_music_genre.png') }}\" alt=\"購入履歴\">
  1243.                   </button>
  1244.                 </div>
  1245.                 {{ form_errors(search_form.field_type) }}
  1246.               </div>
  1247.               <div class=\"\">
  1248.                 <div class=\"ec-searchnavRole__search__input input-select\">
  1249.                   {{ form_widget(search_form.genre_id, {'attr': {'class': 'custom-select'}}) }}
  1250.                   <button class=\"ec-headerSearch__keywordBtn\" type=\"submit\">                  
  1251.                     <img src=\"{{ asset('assets/icon/btn_topsearch_item_genre.png') }}\" alt=\"購入履歴\">
  1252.                   </button>
  1253.                 </div>
  1254.                 {{ form_errors(search_form.genre_id) }}
  1255.               </div>
  1256.               <div class=\"\">
  1257.                 <button class=\"search-button\" type=\"submit\">
  1258.                   <img src=\"{{ asset('assets/icon/btn_search.jpg') }}\" alt=\"{{ '検索'|trans }}\">
  1259.                 </button>
  1260.               </div>
  1261.             </div>
  1262.           </form>
  1263.         </div>
  1264.         {# artist detail #}
  1265.         {% if Artist is defined and Artist %}
  1266.           <div class=\"artist\">
  1267.             {% if ArtistImage is defined and ArtistImage %}
  1268.               <div class=\"artist-image\">
  1269.                 <img src=\"{{ ArtistImage }}\" class=\"artist-image\" alt=\"{{ Artist.name }}\">
  1270.               </div>
  1271.             {% endif %}
  1272.             <div class=\"artist-detail\">
  1273.               <p>{{ Artist.category_content|raw|nl2br }}</p>
  1274.             </div>
  1275.           </div>
  1276.         {% endif %}
  1277.         {# end artist detail #}
  1278.         <div class=\"ec-searchnavRole__infos\">
  1279.           <div class=\"ec-searchnavRole__counter\">
  1280.             {% if pagination.totalItemCount > 0 %}
  1281.               {{ '<span class=\"attention\">%count%件</span><span>の商品がございます。</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  1282.             {% else %}
  1283.               <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  1284.             {% endif %}
  1285.           </div>
  1286.           <div class=\"ec-searchnavRole__actions\">
  1287.             {% if Artist is defined and Artist %}
  1288.             <div class=\"ec-select\">
  1289.               {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by-artist'}}) }}
  1290.               {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number-artist'}}) }}
  1291.             </div>
  1292.             {% else %}
  1293.             <div class=\"ec-select\">
  1294.               {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  1295.               {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  1296.             </div>
  1297.             {% endif %}  
  1298.           </div>
  1299.         </div>
  1300.       </div>
  1301.       {% if pagination.totalItemCount > 0 %}
  1302.         <div class=\"ec-shelfRole\">
  1303.           <div class=\"ec-counterRole\">
  1304.             {% if pagination.totalItemCount > 0 %}
  1305.               {{ '<span class=\"attention\">%count%件</span><span>の商品がございます。</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  1306.             {% else %}
  1307.               <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  1308.             {% endif %}
  1309.           </div>
  1310.           <ul class=\"ec-shelfGrid\">
  1311.             {% for Product in pagination %}
  1312.               <li class=\"ec-shelfGrid__item\">
  1313.                 <a class=\"link-product\" href=\"{{ url('product_detail', {id: Product.id}) }}\">
  1314.                   <p class=\"ec-shelfGrid__item-image\">
  1315.                     {% set isSoldOut = true %}
  1316.                     {% for productClass in Product.ProductClasses %}
  1317.                       {% if productClass.stock_find %}
  1318.                         {% set isSoldOut = false %}
  1319.                       {% endif %}
  1320.                     {% endfor %}
  1321.                     {% if isSoldOut %}
  1322.                       <span class=\"soldout_box\"></span>
  1323.                       <span class=\"soldout\">SOLD OUT</span>
  1324.                     {% endif %}
  1325.                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\" {% endif %}>
  1326.                   </p>
  1327.                     {% if Product.ProductStatusCusts|length > 0 %}
  1328.                       <ul class=\"ec-productRole__status\">
  1329.                         {% set statusIds = [1, 2, 4, 5] %}
  1330.                         {% set statusIdsSpicon = [6, 13, 14] %}
  1331.                         {% for StatusItem in Product.ProductStatusCusts %}
  1332.                           {% if StatusItem.Status.id == 3 %}
  1333.                             <li class=\"ward-status\">
  1334.                               <span class=\"ec-productRole__status__item status_3\">
  1335.                                 <img src=\"{{ asset('assets/img/common/ico_wgen.jpg') }}\" alt=\"ico_wgen\">
  1336.                               </span>
  1337.                             </li>
  1338.                           {% endif %}
  1339.                         {% endfor %}
  1340.                         {% for StatusItem in Product.ProductStatusCusts %}
  1341.                           {% if StatusItem.Status.id != 3 %}
  1342.                             {% set showSpicon = 0 %}
  1343.                             {% if StatusItem.Status.id in statusIds %}
  1344.                               <li class=\"ec-productRole__status__item status_{{ StatusItem.Status.id }}\">
  1345.                                 <span>{{ StatusItem.Status.name }}</span>
  1346.                               </li>
  1347.                             {% endif %}
  1348.                             {% if StatusItem.Status.id == 11 %}
  1349.                               <li class=\"ec-productRole__status__item status_{{ StatusItem.Status.id }}\">
  1350.                                 <span>お年玉セール</span>
  1351.                               </li>
  1352.                             {% endif %}
  1353.                             {% if StatusItem.Status.id in statusIdsSpicon %}
  1354.                               {% set showSpicon = StatusItem.Status.id %}
  1355.                             {% endif %}
  1356.                             {% if showSpicon == 6 %}
  1357.                               <li class=\"ec-productRole__status__item status_12\">
  1358.                                 <span>直筆サイン付</span>
  1359.                               </li>
  1360.                             {% endif %}
  1361.                           {% endif %}
  1362.                         {% endfor %}
  1363.                     </ul>
  1364.                   {% endif %}
  1365.                   {% if Product.getFirstArtist() is not null %}
  1366.                     <p class=\"ec-shelfGrid__item-artist\">
  1367.                       {{ Product.getFirstArtist().name }}
  1368.                     </p>
  1369.                   {% endif %}
  1370.                   <p class=\"ec-shelfGrid__item-name\">
  1371.                     {{ Product.papc3 }}
  1372.                     {{ Product.name }}
  1373.                     {{ Product.papc4 }}
  1374.                   </p>
  1375.                   <p class=\"price02-default\">
  1376.                     {# {% if productClass.sale_type01 == 0 %} #}
  1377.                       {% if Product.hasProductClass %}
  1378.                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  1379.                           <span class=\"ec-price__price price02-default\">
  1380.                             {{ Product.getPrice02IncTaxMin | number_format(0, '.', ',') }}円
  1381.                           </span>
  1382.                           <span class=\"ec-price__price price02-default tax-excluded-price\">
  1383.                             (税抜 {{ Product.getPrice02Min | number_format(0, '.', ',') }}円)
  1384.                           </span>
  1385.                           <span class=\"ec-price__price price02-default tax-excluded-price1\">
  1386.                             (税込)
  1387.                           </span>
  1388.                         {% else %}
  1389.                           <div class=\"ec-price\">
  1390.                             <span class=\"ec-price__price price02-default\">
  1391.                               {{ Product.getPrice02IncTaxMin | number_format(0, '.', ',') }} ~ 
  1392.                               {{ Product.getPrice02IncTaxMax | number_format(0, '.', ',') }}円
  1393.                             </span>
  1394.                             <span class=\"ec-price__price price02-default tax-excluded-price\">
  1395.                               (税抜 {{ Product.getPrice02Min | number_format(0, '.', ',') }} ~ 
  1396.                               {{ Product.getPrice02Max | number_format(0, '.', ',') }}円)
  1397.                             </span>
  1398.                             <span class=\"ec-price__price price02-default tax-excluded-price1\">
  1399.                               (税込)
  1400.                             </span>
  1401.                           </div>
  1402.                         {% endif %}
  1403.                       {% else %}
  1404.                         <div class=\"ec-price\">
  1405.                           <span class=\"ec-price__price\">
  1406.                             {{ Product.getPrice02IncTaxMin | number_format(0, '.', ',') }}円
  1407.                           </span>
  1408.                           <span class=\"ec-price__price tax-excluded-price\">
  1409.                             (税抜 {{ Product.getPrice02Min  | number_format(0, '.', ',') }}円)
  1410.                           </span>
  1411.                           <span class=\"ec-price__price price02-default tax-excluded-price1\">
  1412.                             (税込)
  1413.                           </span>
  1414.                         </div>
  1415.                       {% endif %}
  1416.                     {# {% else %}
  1417.                       {% if Product.hasProductClass %}
  1418.                         {% set sale_price = Product.ProductClasses.first().sale_price + 0 %}
  1419.                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  1420.                           <span class=\"ec-price__price price02-default\">
  1421.                             {{ (sale_price * 1.1) | number_format(0, '.', ',') }}円
  1422.                           </span>
  1423.                           <span class=\"ec-price__price price02-default tax-excluded-price\">
  1424.                             (税抜 {{ sale_price | number_format(0, '.', ',') }}円)
  1425.                           </span>
  1426.                           <span class=\"ec-price__price price02-default tax-excluded-price1\">
  1427.                             (税込)
  1428.                           </span>
  1429.                         {% else %}
  1430.                         {% set sale_price = Product.ProductClasses.first().sale_price + 0 %}
  1431.                           <div class=\"ec-price\">
  1432.                             <span class=\"ec-price__price price02-default\">
  1433.                               {{ sale_price | number_format(0, '.', ',') }} ~ 
  1434.                               {{ (sale_price * 1.1) | number_format(0, '.', ',') }}円
  1435.                             </span>
  1436.                             <span class=\"ec-price__price price02-default tax-excluded-price\">
  1437.                               (税抜 {{ (sale_price * 1.1) | number_format(0, '.', ',') }} ~ 
  1438.                               {{ sale_price | number_format(0, '.', ',') }}円)
  1439.                             </span>
  1440.                             <span class=\"ec-price__price price02-default tax-excluded-price1\">
  1441.                               (税込)
  1442.                             </span>
  1443.                           </div>
  1444.                         {% endif %}
  1445.                       {% else %}
  1446.                       {% set sale_price = Product.ProductClasses.first().sale_price + 0 %}
  1447.                         <div class=\"ec-price\">
  1448.                           <span class=\"ec-price__price\">
  1449.                             {{ (sale_price * 1.1) | number_format(0, '.', ',') }}円
  1450.                           </span>
  1451.                           <span class=\"ec-price__price tax-excluded-price\">
  1452.                             (税抜 {{ sale_price | number_format(0, '.', ',') }}円)
  1453.                           </span>
  1454.                           <span class=\"ec-price__price price02-default tax-excluded-price1\">
  1455.                             (税込)
  1456.                           </span>
  1457.                         </div>
  1458.                       {% endif %}
  1459.                     {% endif %} #}
  1460.                   </p>
  1461.                   {% set original_price = Product.getPrice01IncTaxMin %}
  1462.                   {% set sale_price = Product.getPrice02IncTaxMin %}
  1463.                   {% if original_price > 0 and sale_price is not null and original_price > sale_price %}
  1464.                     <div class=\"sale_price\">
  1465.                         {% set discount_percentage = ((original_price - sale_price) / original_price * 100)|round(2) %}
  1466.                         <span class=\"plgShiro8PriceDownRate\">
  1467.                           {{ (discount_percentage // 1) }}%OFF
  1468.                         </span>
  1469.                     </div>
  1470.                   {% endif %}
  1471.                 </a>
  1472.               </li>
  1473.             {% endfor %}
  1474.           </ul>
  1475.           <div class=\"ec-pagerRole\">
  1476.             {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  1477.           </div>
  1478.         </div>
  1479.         <div class=\"ec-modal\">
  1480.           <div class=\"ec-modal-overlay\">
  1481.             <div class=\"ec-modal-wrap\">
  1482.               <span class=\"ec-modal-close\">
  1483.                 <span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span>
  1484.               </span>
  1485.               <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  1486.               <div class=\"ec-modal-box\">
  1487.                 <div class=\"ec-role\">
  1488.                   <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  1489.                   <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  1490.                 </div>
  1491.               </div>
  1492.             </div>
  1493.           </div>
  1494.         </div>
  1495.       {% endif %}
  1496.     {% endif %}
  1497.   </div>
  1498. {% endblock %}
  1499. ""Product/list.twig""/home/ubuntu/wardrecords/app/template/default/Product/list.twig");
  1500.     }
  1501.     
  1502.     public function checkSecurity()
  1503.     {
  1504.         static $tags = array("set" => 13"for" => 18"if" => 20"include" => 465);
  1505.         static $filters = array("escape" => 19"raw" => 19"trans" => 71"length" => 136"nl2br" => 257"no_image_product" => 309"number_format" => 369"round" => 454);
  1506.         static $functions = array("class_categories_as_json" => 19"url" => 97"form_widget" => 215"asset" => 217"form_errors" => 220);
  1507.         try {
  1508.             $this->sandbox->checkSecurity(
  1509.                 ['set''for''if''include'],
  1510.                 ['escape''raw''trans''length''nl2br''no_image_product''number_format''round'],
  1511.                 ['class_categories_as_json''url''form_widget''asset''form_errors'],
  1512.                 $this->source
  1513.             );
  1514.         } catch (SecurityError $e) {
  1515.             $e->setSourceContext($this->source);
  1516.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1517.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1518.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1519.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1520.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1521.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1522.             }
  1523.             throw $e;
  1524.         }
  1525.     }
  1526. }