var/cache/dev/twig/c6/c65fde5b3bac181cdbd2e5220db4532c97a417e3b13db5b3b272ce9b9c3c21f3.php line 40

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