var/cache/dev/twig/0f/0fcbcea0ece4233ccd061fc57b33c46c.php line 55

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_bc6d773d6475bc3fa2bf348778e40dfc 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.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 11
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros = $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
  42.         // line 13
  43.         $context["body_class"] = "product_page";
  44.         // line 11
  45.         $this->parent = $this->loadTemplate("default_frame.twig", "Product/list.twig", 11);
  46.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 15
  53.     public function block_stylesheet($context, array $blocks = [])
  54.     {
  55.         $macros = $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
  60.         // line 16
  61.         echo "    <link rel=\"stylesheet\" href=\"";
  62.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/productlist.css", "user_data"), "html", null, true);
  63.         echo "\">
  64. ";
  65.         
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67.         
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  69.     }
  70.     // line 19
  71.     public function block_javascript($context, array $blocks = [])
  72.     {
  73.         $macros = $this->macros;
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
  78.         // line 20
  79.         echo "    <script>
  80.         eccube.productsClassCategories = {
  81.             ";
  82.         // line 22
  83.         $context['_parent'] = $context;
  84.         $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); })()));
  85.         $context['loop'] = [
  86.           'parent' => $context['_parent'],
  87.           'index0' => 0,
  88.           'index'  => 1,
  89.           'first'  => true,
  90.         ];
  91.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  92.             $length = count($context['_seq']);
  93.             $context['loop']['revindex0'] = $length - 1;
  94.             $context['loop']['revindex'] = $length;
  95.             $context['loop']['length'] = $length;
  96.             $context['loop']['last'] = 1 === $length;
  97.         }
  98.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  99.             // line 23
  100.             echo "            \"";
  101.             echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 23), 23, $this->source), "js"), "html", null, true);
  102.             echo "\": ";
  103.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 23, $this->source));
  104.             if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 23) == false)) {
  105.                 echo ", ";
  106.             }
  107.             // line 24
  108.             echo "            ";
  109.             ++$context['loop']['index0'];
  110.             ++$context['loop']['index'];
  111.             $context['loop']['first'] = false;
  112.             if (isset($context['loop']['length'])) {
  113.                 --$context['loop']['revindex0'];
  114.                 --$context['loop']['revindex'];
  115.                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  116.             }
  117.         }
  118.         $_parent = $context['_parent'];
  119.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  120.         $context = array_intersect_key($context, $_parent) + $_parent;
  121.         // line 25
  122.         echo "        };
  123.         \$(function() {
  124.             // 表示件数を変更
  125.             \$('.disp-number').change(function() {
  126.                 var dispNumber = \$(this).val();
  127.                 \$('#disp_number').val(dispNumber);
  128.                 \$('#pageno').val(1);
  129.                 \$(\"#form1\").submit();
  130.             });
  131.             // 並び順を変更
  132.             \$('.order-by').change(function() {
  133.                 var orderBy = \$(this).val();
  134.                 \$('#orderby').val(orderBy);
  135.                 \$('#pageno').val(1);
  136.                 \$(\"#form1\").submit();
  137.             });
  138.             \$('.add-cart').on('click', function(e) {
  139.                 var \$form = \$(this).parents('li').find('form');
  140.                 // 個数フォームのチェック
  141.                 var \$quantity = \$form.parent().find('.quantity');
  142.                 if (\$quantity.val() < 1) {
  143.                     \$quantity[0].setCustomValidity('";
  144.         // line 46
  145.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html", null, true);
  146.         echo "');
  147.                     setTimeout(function() {
  148.                         loadingOverlay('hide');
  149.                     }, 100);
  150.                     return true;
  151.                 } else {
  152.                     \$quantity[0].setCustomValidity('');
  153.                 }
  154.                 e.preventDefault();
  155.                 \$.ajax({
  156.                     url: \$form.attr('action'),
  157.                     type: \$form.attr('method'),
  158.                     data: \$form.serialize(),
  159.                     dataType: 'json',
  160.                     beforeSend: function(xhr, settings) {
  161.                         // Buttonを無効にする
  162.                         \$('.add-cart').prop('disabled', true);
  163.                     }
  164.                 }).done(function(data) {
  165.                     // レスポンス内のメッセージをalertで表示
  166.                     \$.each(data.messages, function() {
  167.                         \$('#ec-modal-header').text(this);
  168.                     });
  169.                     //\$('.ec-modal').show()
  170.                     \$('.ec-modal').fadeIn(800);
  171.                     scrollPos = \$(window).scrollTop();
  172. \t\t\t        \$('body').addClass('have_ec-modal').css('top',-scrollPos + 'px');
  173.                     // カートブロックを更新する
  174.                     \$.ajax({
  175.                         url: '";
  176.         // line 75
  177.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  178.         echo "',
  179.                         type: 'GET',
  180.                         dataType: 'html'
  181.                     }).done(function(html) {
  182.                         \$('.ec-headerRole__cart').html(html);
  183.                     });
  184.                 }).fail(function(data) {
  185.                     alert('";
  186.         // line 82
  187.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html", null, true);
  188.         echo "');
  189.                 }).always(function(data) {
  190.                     // Buttonを有効にする
  191.                     \$('.add-cart').prop('disabled', false);
  192.                 });
  193.             });
  194.         });
  195.         \$('.ec-modal-wrap').on('click', function(e) {
  196.             // モーダル内の処理は外側にバブリングさせない
  197.             e.stopPropagation();
  198.         });
  199.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  200.             //\$('.ec-modal').hide()
  201.             \$('.ec-modal').fadeOut(800)
  202.             \$('body').removeClass('have_ec-modal').css('top',0 + 'px');
  203. \t\t\twindow.scrollTo( 0 , scrollPos );
  204.         });
  205.     </script>
  206.     <script>
  207.     \$(function() {
  208.         \$('.form-control').each(function() {
  209.             var el  = \$(this);
  210.             var add = \$('.spinner-add');
  211.             var sub = \$('.spinner-sub');
  212.     // substract
  213.     el.parent().on('click', '.spinner-sub', function() {
  214.         if (el.val() > parseInt(el.attr('min'))) {
  215.         el.val(function(i, oldval) {
  216.             return --oldval;
  217.         });
  218.         }
  219.     // disabled
  220.     if (el.val() == parseInt(el.attr('min'))) {
  221.         el.prev(sub).addClass('disabled');
  222.     }
  223.     if (el.val() < parseInt(el.attr('max'))) {
  224.         el.next(add).removeClass('disabled');
  225.     }
  226.     });
  227.     // increment
  228.     el.parent().on('click', '.spinner-add', function() {
  229.         el.val(function(i, oldval) {
  230.           return ++oldval;
  231.         });
  232.       // disabled
  233.       if (el.val() > parseInt(el.attr('min'))) {
  234.         el.prev(sub).removeClass('disabled');
  235.       }
  236.       if (el.val() == parseInt(el.attr('max'))) {
  237.         el.next(add).addClass('disabled');
  238.       }
  239.     });
  240.   });
  241. });
  242. </script>
  243. ";
  244.         
  245.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  246.         
  247.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  248.     }
  249.     // line 140
  250.     public function block_main($context, array $blocks = [])
  251.     {
  252.         $macros = $this->macros;
  253.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  254.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  255.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  256.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  257.         // line 141
  258.         echo "    ";
  259.         if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 141, $this->source); })()), "category_id", [], "any", false, false, true, 141), "vars", [], "any", false, false, true, 141), "errors", [], "any", false, false, true, 141)) > 0)) {
  260.             // line 142
  261.             echo "        <div class=\"ec-searchnavRole\">
  262.             <p class=\"errormsg text-danger\">";
  263.             // line 143
  264.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
  265.             echo "</p>
  266.         </div>
  267.     ";
  268.         } else {
  269.             // line 146
  270.             echo "        <div class=\"ec-searchnavRole\">
  271.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  272.                 ";
  273.             // line 148
  274.             $context['_parent'] = $context;
  275.             $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.', 148, $this->source); })()));
  276.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  277.                 // line 149
  278.                 echo "                    <input type=\"hidden\" id=\"";
  279.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, true, 149), "id", [], "any", false, false, true, 149), 149, $this->source), "html", null, true);
  280.                 echo "\"
  281.                            name=\"";
  282.                 // line 150
  283.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, true, 150), "full_name", [], "any", false, false, true, 150), 150, $this->source), "html", null, true);
  284.                 echo "\"
  285.                            ";
  286.                 // line 151
  287.                 if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, true, 151), "value", [], "any", false, false, true, 151))) {
  288.                     echo "value=\"";
  289.                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, true, 151), "value", [], "any", false, false, true, 151), 151, $this->source), "html", null, true);
  290.                     echo "\" ";
  291.                 }
  292.                 echo "/>
  293.                 ";
  294.             }
  295.             $_parent = $context['_parent'];
  296.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  297.             $context = array_intersect_key($context, $_parent) + $_parent;
  298.             // line 153
  299.             echo "            </form>
  300.             ";
  301.             // line 154
  302.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 154, $this->source); })()))) {
  303.                 // line 155
  304.                 echo "                ";
  305.                 $context['_parent'] = $context;
  306.                 $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.', 155, $this->source); })()), "path", [], "any", false, false, true, 155));
  307.                 $context['loop'] = [
  308.                   'parent' => $context['_parent'],
  309.                   'index0' => 0,
  310.                   'index'  => 1,
  311.                   'first'  => true,
  312.                 ];
  313.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  314.                     $length = count($context['_seq']);
  315.                     $context['loop']['revindex0'] = $length - 1;
  316.                     $context['loop']['revindex'] = $length;
  317.                     $context['loop']['length'] = $length;
  318.                     $context['loop']['last'] = 1 === $length;
  319.                 }
  320.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  321.                     // line 156
  322.                     echo "                    ";
  323.                     if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 156)) {
  324.                         // line 157
  325.                         echo "                        <h1>";
  326.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, true, 157), 157, $this->source), "html", null, true);
  327.                         echo "</h1>
  328.                     ";
  329.                     }
  330.                     // line 159
  331.                     echo "                ";
  332.                     ++$context['loop']['index0'];
  333.                     ++$context['loop']['index'];
  334.                     $context['loop']['first'] = false;
  335.                     if (isset($context['loop']['length'])) {
  336.                         --$context['loop']['revindex0'];
  337.                         --$context['loop']['revindex'];
  338.                         $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  339.                     }
  340.                 }
  341.                 $_parent = $context['_parent'];
  342.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  343.                 $context = array_intersect_key($context, $_parent) + $_parent;
  344.                 // line 160
  345.                 echo "            ";
  346.             } else {
  347.                 // line 161
  348.                 echo "                ";
  349.                 if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 161, $this->source); })()), "request", [], "any", false, false, true, 161), "get", [0 => "name"], "method", false, false, true, 161) != "")) {
  350.                     // line 162
  351.                     echo "                    <h1>";
  352.                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 162, $this->source); })()), "request", [], "any", false, false, true, 162), "get", [0 => "name"], "method", false, false, true, 162), 162, $this->source), "html", null, true);
  353.                     echo "</h1>
  354.                 ";
  355.                 } else {
  356.                     // line 164
  357.                     echo "                    <h1>宇宙グッズ一覧</h1>
  358.                 ";
  359.                 }
  360.                 // line 166
  361.                 echo "            ";
  362.             }
  363.             // line 167
  364.             echo "            <div class=\"ec-searchnavRole__infos\">
  365.                 ";
  366.             // line 168
  367.             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.', 168, $this->source); })()), "totalItemCount", [], "any", false, false, true, 168) > 0)) {
  368.                 // line 169
  369.                 echo "                ";
  370.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<div class=\"product_count\"><span>%count%</span>件</div>", ["%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.', 169, $this->source); })()), "totalItemCount", [], "any", false, false, true, 169)]);
  371.                 echo "
  372.                     <div class=\"ec-select\">
  373.                         ";
  374.                 // line 171
  375.                 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.', 171, $this->source); })()), "orderby", [], "any", false, false, true, 171), 171, $this->source), 'widget', ["id" => "", "attr" => ["class" => "order-by"]]);
  376.                 echo "
  377.                     </div>
  378.                 ";
  379.                 // line 177
  380.                 echo "                ";
  381.             }
  382.             // line 178
  383.             echo "            </div>
  384.         </div>
  385.         
  386.         ";
  387.             // line 181
  388.             if (((array_key_exists("Category", $context) &&  !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 181, $this->source); })()))) && twig_get_attribute($this->env, $this->source, ($context["Category"] ?? null), "file_name", [], "any", true, true, true, 181))) {
  389.                 // line 182
  390.                 echo "        <div class=\"apg_category_content\">
  391.             ";
  392.                 // line 183
  393.                 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.', 183, $this->source); })()), "file_name", [], "any", false, false, true, 183)) {
  394.                     // line 184
  395.                     echo "            <div class=\"apg_category_image\" style=\"background-image:url(";
  396.                     echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("rich_category/" . $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.', 184, $this->source); })()), "file_name", [], "any", false, false, true, 184), 184, $this->source)), "save_image"), "html", null, true);
  397.                     echo ");\"></div>
  398.             ";
  399.                 }
  400.                 // line 186
  401.                 echo "            ";
  402.                 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.', 186, $this->source); })()), "content", [], "any", false, false, true, 186)) {
  403.                     // line 187
  404.                     echo "            <div class=\"apg_category_description\">
  405.                 ";
  406.                     // line 188
  407.                     echo twig_nl2br($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.', 188, $this->source); })()), "content", [], "any", false, false, true, 188), 188, $this->source));
  408.                     echo "
  409.             </div>
  410.             ";
  411.                 }
  412.                 // line 191
  413.                 echo "        </div>
  414.         ";
  415.             }
  416.             // line 193
  417.             echo "        
  418.         ";
  419.             // line 194
  420.             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.', 194, $this->source); })()), "totalItemCount", [], "any", false, false, true, 194) > 0)) {
  421.                 // line 195
  422.                 echo "            <div class=\"ec-shelfRole\">
  423.                 <ul class=\"ec-shelfGrid\">
  424.                     ";
  425.                 // line 197
  426.                 $context['_parent'] = $context;
  427.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 197, $this->source); })()));
  428.                 $context['loop'] = [
  429.                   'parent' => $context['_parent'],
  430.                   'index0' => 0,
  431.                   'index'  => 1,
  432.                   'first'  => true,
  433.                 ];
  434.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  435.                     $length = count($context['_seq']);
  436.                     $context['loop']['revindex0'] = $length - 1;
  437.                     $context['loop']['revindex'] = $length;
  438.                     $context['loop']['length'] = $length;
  439.                     $context['loop']['last'] = 1 === $length;
  440.                 }
  441.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  442.                     // line 198
  443.                     echo "                        <li class=\"ec-shelfGrid__item\">
  444.                             <a href=\"";
  445.                     // line 199
  446.                     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", false, false, true, 199)]), "html", null, true);
  447.                     echo "\">
  448.                                 <div class=\"item_img\"><img src=\"";
  449.                     // line 200
  450.                     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", false, false, true, 200), 200, $this->source)), "save_image"), "html", null, true);
  451.                     echo "\" alt=\"";
  452.                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 200), 200, $this->source), "html", null, true);
  453.                     echo "\" ";
  454.                     if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 200) > 5)) {
  455.                         echo " loading=\"lazy\"";
  456.                     }
  457.                     echo "></div>
  458.                                 <p class=\"item_name\">";
  459.                     // line 201
  460.                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 201), 201, $this->source), "html", null, true);
  461.                     echo "</p>
  462.                                 ";
  463.                     // line 202
  464.                     if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, true, 202)) {
  465.                         // line 203
  466.                         echo "                                    ";
  467.                         if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, true, 203) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, true, 203))) {
  468.                             // line 204
  469.                             echo "                                        <p class=\"price02-default\">";
  470.                             echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 204), 204, $this->source)), "html", null, true);
  471.                             echo "</p>
  472.                                     ";
  473.                         } else {
  474.                             // line 206
  475.                             echo "                                        <p class=\"price02-default price_multiple\">";
  476.                             echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 206), 206, $this->source)), "html", null, true);
  477.                             echo "~";
  478.                             echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMax", [], "any", false, false, true, 206), 206, $this->source)), "html", null, true);
  479.                             echo "</p>
  480.                                     ";
  481.                         }
  482.                         // line 208
  483.                         echo "                                ";
  484.                     } else {
  485.                         // line 209
  486.                         echo "                                    <p class=\"price02-default\">";
  487.                         echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 209), 209, $this->source)), "html", null, true);
  488.                         echo "</p>
  489.                                 ";
  490.                     }
  491.                     // line 211
  492.                     echo "                            </a>
  493.                             ";
  494.                     // line 212
  495.                     if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, true, 212)) {
  496.                         // line 213
  497.                         echo "                                ";
  498.                         $context["form"] = twig_get_attribute($this->env, $this->source, (isset($context["forms"]) || array_key_exists("forms", $context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.', 213, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 213), [], "array", false, false, true, 213);
  499.                         // line 214
  500.                         echo "                                <form name=\"form";
  501.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 214), 214, $this->source), "html", null, true);
  502.                         echo "\" id=\"productForm";
  503.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 214), 214, $this->source), "html", null, true);
  504.                         echo "\" action=\"";
  505.                         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 214)]), "html", null, true);
  506.                         echo "\" method=\"post\">
  507.                                     <div class=\"ec-productRole__actions\">
  508.                                         ";
  509.                         // line 216
  510.                         if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 216)) {
  511.                             // line 217
  512.                             echo "                                            <div class=\"ec-select\">
  513.                                                 ";
  514.                             // line 218
  515.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 218, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 218), 218, $this->source), 'widget');
  516.                             echo "
  517.                                                 ";
  518.                             // line 219
  519.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 219, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 219), 219, $this->source), 'errors');
  520.                             echo "
  521.                                             </div>
  522.                                             ";
  523.                             // line 221
  524.                             if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 221)) {
  525.                                 // line 222
  526.                                 echo "                                                <div class=\"ec-select\">
  527.                                                     ";
  528.                                 // line 223
  529.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 223, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 223), 223, $this->source), 'widget');
  530.                                 echo "
  531.                                                     ";
  532.                                 // line 224
  533.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 224, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 224), 224, $this->source), 'errors');
  534.                                 echo "
  535.                                                 </div>
  536.                                             ";
  537.                             }
  538.                             // line 227
  539.                             echo "                                        ";
  540.                         }
  541.                         // line 228
  542.                         echo "                                        <div class=\"ec-numberInput\">
  543.                                             <div class=\"number_wrap\">
  544.                                                 <span class=\"spinner-sub disabled\"><i class=\"fas fa-minus-circle\"></i></span>
  545.                                                 ";
  546.                         // line 231
  547.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 231, $this->source); })()), "quantity", [], "any", false, false, true, 231), 231, $this->source), 'widget', ["attr" => ["class" => "quantity"]]);
  548.                         echo "
  549.                                                 ";
  550.                         // line 232
  551.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 232, $this->source); })()), "quantity", [], "any", false, false, true, 232), 232, $this->source), 'errors');
  552.                         echo "
  553.                                                 <span class=\"spinner-add\"><i class=\"fas fa-plus-circle\"></i></span>
  554.                                             </div>
  555.                                         </div>
  556.                                     </div>
  557.                                     ";
  558.                         // line 237
  559.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 237, $this->source); })()), 237, $this->source), 'rest');
  560.                         echo "
  561.                                 </form>
  562.                                 <div class=\"ec-productRole__btn\">
  563.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  564.                         // line 240
  565.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 240), 240, $this->source), "html", null, true);
  566.                         echo "\" form=\"productForm";
  567.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 240), 240, $this->source), "html", null, true);
  568.                         echo "\">
  569.                                         ";
  570.                         // line 241
  571.                         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
  572.                         echo "
  573.                                     </button>
  574.                                 </div>
  575.                             ";
  576.                     } else {
  577.                         // line 245
  578.                         echo "                                <div class=\"ec-productRole__btn\">
  579.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  580.                                         ";
  581.                         // line 247
  582.                         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
  583.                         echo "
  584.                                     </button>
  585.                                 </div>
  586.                             ";
  587.                     }
  588.                     // line 251
  589.                     echo "                        </li>
  590.                     ";
  591.                     ++$context['loop']['index0'];
  592.                     ++$context['loop']['index'];
  593.                     $context['loop']['first'] = false;
  594.                     if (isset($context['loop']['length'])) {
  595.                         --$context['loop']['revindex0'];
  596.                         --$context['loop']['revindex'];
  597.                         $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  598.                     }
  599.                 }
  600.                 $_parent = $context['_parent'];
  601.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  602.                 $context = array_intersect_key($context, $_parent) + $_parent;
  603.                 // line 253
  604.                 echo "                </ul>
  605.             </div>
  606.             <div class=\"ec-pagerRole\">
  607.                 ";
  608.                 // line 256
  609.                 $this->loadTemplate("pager.twig", "Product/list.twig", 256)->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.', 256, $this->source); })()), "paginationData", [], "any", false, false, true, 256)]));
  610.                 // line 257
  611.                 echo "            </div>
  612.             <div class=\"productlist_bottom\">
  613.                 <div class=\"productlist_number ec-select\">
  614.                     <div>";
  615.                 // line 260
  616.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("表示件数", ["%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.', 260, $this->source); })()), "totalItemCount", [], "any", false, false, true, 260)]);
  617.                 echo "</div>
  618.                     ";
  619.                 // line 261
  620.                 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.', 261, $this->source); })()), "disp_number", [], "any", false, false, true, 261), 261, $this->source), 'widget', ["id" => "", "attr" => ["class" => "disp-number"]]);
  621.                 echo "
  622.                 </div>
  623.                 <div class=\"ec-searchnavRole__category\">
  624.                     <p><a href=\"";
  625.                 // line 264
  626.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  627.                 echo "\" class=\"all_category\">宇宙グッズ一覧</a></p>
  628.                     ";
  629.                 // line 265
  630.                 if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 265, $this->source); })()))) {
  631.                     // line 266
  632.                     echo "                        ";
  633.                     $context['_parent'] = $context;
  634.                     $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.', 266, $this->source); })()), "path", [], "any", false, false, true, 266));
  635.                     $context['loop'] = [
  636.                       'parent' => $context['_parent'],
  637.                       'index0' => 0,
  638.                       'index'  => 1,
  639.                       'first'  => true,
  640.                     ];
  641.                     if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  642.                         $length = count($context['_seq']);
  643.                         $context['loop']['revindex0'] = $length - 1;
  644.                         $context['loop']['revindex'] = $length;
  645.                         $context['loop']['length'] = $length;
  646.                         $context['loop']['last'] = 1 === $length;
  647.                     }
  648.                     foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  649.                         // line 267
  650.                         echo "                            <p><a href=\"";
  651.                         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  652.                         echo "?category_id=";
  653.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, true, 267), 267, $this->source), "html", null, true);
  654.                         echo "\" class=\"list_category_";
  655.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 267), 267, $this->source), "html", null, true);
  656.                         echo "\">";
  657.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, true, 267), 267, $this->source), "html", null, true);
  658.                         echo "</a></p>
  659.                             <script>
  660.                                 \$(\".category_id_";
  661.                         // line 269
  662.                         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, true, 269), 269, $this->source), "html", null, true);
  663.                         echo "\").addClass(\"is-active\").css(\"display\",\"block\");
  664.                                 ";
  665.                         // line 270
  666.                         if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 270)) {
  667.                             // line 271
  668.                             echo "                                \$(\".category_id_";
  669.                             echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, true, 271), 271, $this->source), "html", null, true);
  670.                             echo "\").addClass(\"is-active_last\");
  671.                                 ";
  672.                         }
  673.                         // line 273
  674.                         echo "                            </script>
  675.                         ";
  676.                         ++$context['loop']['index0'];
  677.                         ++$context['loop']['index'];
  678.                         $context['loop']['first'] = false;
  679.                         if (isset($context['loop']['length'])) {
  680.                             --$context['loop']['revindex0'];
  681.                             --$context['loop']['revindex'];
  682.                             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  683.                         }
  684.                     }
  685.                     $_parent = $context['_parent'];
  686.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  687.                     $context = array_intersect_key($context, $_parent) + $_parent;
  688.                     // line 275
  689.                     echo "                    ";
  690.                 }
  691.                 // line 276
  692.                 echo "                </div>
  693.             </div>
  694.         ";
  695.             } else {
  696.                 // line 279
  697.                 echo "            <div class=\"error_content\">
  698.                 <p><img src=\"";
  699.                 // line 280
  700.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/pages/error_character.png", "user_data"), "html", null, true);
  701.                 echo "\" alt=\"申し訳ございません。該当する宇宙グッズは見付かりませんでした。\" width=\"112\" height=\"169\" /></p>
  702.                 <p>申し訳ございません。</p>
  703.                 <p>お探しの宇宙グッズは見付かりませんでした。</p>
  704.             </div>
  705.             <div class=\"productlist_bottom error\">
  706.                 <div class=\"ec-searchnavRole__category\">
  707.                     <p><a href=\"";
  708.                 // line 286
  709.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  710.                 echo "\" class=\"all_category\">宇宙グッズ一覧</a></p>
  711.                 </div>
  712.             </div>
  713.         ";
  714.             }
  715.             // line 290
  716.             echo "    ";
  717.         }
  718.         
  719.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  720.         
  721.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  722.     }
  723.     public function getTemplateName()
  724.     {
  725.         return "Product/list.twig";
  726.     }
  727.     public function isTraitable()
  728.     {
  729.         return false;
  730.     }
  731.     public function getDebugInfo()
  732.     {
  733.         return array (  741 => 290,  734 => 286,  725 => 280,  722 => 279,  717 => 276,  714 => 275,  699 => 273,  693 => 271,  691 => 270,  687 => 269,  675 => 267,  657 => 266,  655 => 265,  651 => 264,  645 => 261,  641 => 260,  636 => 257,  634 => 256,  629 => 253,  614 => 251,  607 => 247,  603 => 245,  596 => 241,  590 => 240,  584 => 237,  576 => 232,  572 => 231,  567 => 228,  564 => 227,  558 => 224,  554 => 223,  551 => 222,  549 => 221,  544 => 219,  540 => 218,  537 => 217,  535 => 216,  525 => 214,  522 => 213,  520 => 212,  517 => 211,  511 => 209,  508 => 208,  500 => 206,  494 => 204,  491 => 203,  489 => 202,  485 => 201,  475 => 200,  471 => 199,  468 => 198,  451 => 197,  447 => 195,  445 => 194,  442 => 193,  438 => 191,  432 => 188,  429 => 187,  426 => 186,  420 => 184,  418 => 183,  415 => 182,  413 => 181,  408 => 178,  405 => 177,  400 => 171,  394 => 169,  392 => 168,  389 => 167,  386 => 166,  382 => 164,  376 => 162,  373 => 161,  370 => 160,  356 => 159,  350 => 157,  347 => 156,  329 => 155,  327 => 154,  324 => 153,  312 => 151,  308 => 150,  303 => 149,  299 => 148,  295 => 146,  289 => 143,  286 => 142,  283 => 141,  273 => 140,  206 => 82,  196 => 75,  164 => 46,  141 => 25,  127 => 24,  119 => 23,  102 => 22,  98 => 20,  88 => 19,  75 => 16,  65 => 15,  54 => 11,  52 => 13,  39 => 11,);
  734.     }
  735.     public function getSourceContext()
  736.     {
  737.         return new Source("{#
  738. This file is part of EC-CUBE
  739. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  740. http://www.ec-cube.co.jp/
  741. For the full copyright and license information, please view the LICENSE
  742. file that was distributed with this source code.
  743. #}
  744. {% extends 'default_frame.twig' %}
  745. {% set body_class = 'product_page' %}
  746. {% block stylesheet %}
  747.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/productlist.css', 'user_data') }}\">
  748. {% endblock %}
  749. {% block javascript %}
  750.     <script>
  751.         eccube.productsClassCategories = {
  752.             {% for Product in pagination %}
  753.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  754.             {% endfor %}
  755.         };
  756.         \$(function() {
  757.             // 表示件数を変更
  758.             \$('.disp-number').change(function() {
  759.                 var dispNumber = \$(this).val();
  760.                 \$('#disp_number').val(dispNumber);
  761.                 \$('#pageno').val(1);
  762.                 \$(\"#form1\").submit();
  763.             });
  764.             // 並び順を変更
  765.             \$('.order-by').change(function() {
  766.                 var orderBy = \$(this).val();
  767.                 \$('#orderby').val(orderBy);
  768.                 \$('#pageno').val(1);
  769.                 \$(\"#form1\").submit();
  770.             });
  771.             \$('.add-cart').on('click', function(e) {
  772.                 var \$form = \$(this).parents('li').find('form');
  773.                 // 個数フォームのチェック
  774.                 var \$quantity = \$form.parent().find('.quantity');
  775.                 if (\$quantity.val() < 1) {
  776.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  777.                     setTimeout(function() {
  778.                         loadingOverlay('hide');
  779.                     }, 100);
  780.                     return true;
  781.                 } else {
  782.                     \$quantity[0].setCustomValidity('');
  783.                 }
  784.                 e.preventDefault();
  785.                 \$.ajax({
  786.                     url: \$form.attr('action'),
  787.                     type: \$form.attr('method'),
  788.                     data: \$form.serialize(),
  789.                     dataType: 'json',
  790.                     beforeSend: function(xhr, settings) {
  791.                         // Buttonを無効にする
  792.                         \$('.add-cart').prop('disabled', true);
  793.                     }
  794.                 }).done(function(data) {
  795.                     // レスポンス内のメッセージをalertで表示
  796.                     \$.each(data.messages, function() {
  797.                         \$('#ec-modal-header').text(this);
  798.                     });
  799.                     //\$('.ec-modal').show()
  800.                     \$('.ec-modal').fadeIn(800);
  801.                     scrollPos = \$(window).scrollTop();
  802. \t\t\t        \$('body').addClass('have_ec-modal').css('top',-scrollPos + 'px');
  803.                     // カートブロックを更新する
  804.                     \$.ajax({
  805.                         url: '{{ url('block_cart') }}',
  806.                         type: 'GET',
  807.                         dataType: 'html'
  808.                     }).done(function(html) {
  809.                         \$('.ec-headerRole__cart').html(html);
  810.                     });
  811.                 }).fail(function(data) {
  812.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  813.                 }).always(function(data) {
  814.                     // Buttonを有効にする
  815.                     \$('.add-cart').prop('disabled', false);
  816.                 });
  817.             });
  818.         });
  819.         \$('.ec-modal-wrap').on('click', function(e) {
  820.             // モーダル内の処理は外側にバブリングさせない
  821.             e.stopPropagation();
  822.         });
  823.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  824.             //\$('.ec-modal').hide()
  825.             \$('.ec-modal').fadeOut(800)
  826.             \$('body').removeClass('have_ec-modal').css('top',0 + 'px');
  827. \t\t\twindow.scrollTo( 0 , scrollPos );
  828.         });
  829.     </script>
  830.     <script>
  831.     \$(function() {
  832.         \$('.form-control').each(function() {
  833.             var el  = \$(this);
  834.             var add = \$('.spinner-add');
  835.             var sub = \$('.spinner-sub');
  836.     // substract
  837.     el.parent().on('click', '.spinner-sub', function() {
  838.         if (el.val() > parseInt(el.attr('min'))) {
  839.         el.val(function(i, oldval) {
  840.             return --oldval;
  841.         });
  842.         }
  843.     // disabled
  844.     if (el.val() == parseInt(el.attr('min'))) {
  845.         el.prev(sub).addClass('disabled');
  846.     }
  847.     if (el.val() < parseInt(el.attr('max'))) {
  848.         el.next(add).removeClass('disabled');
  849.     }
  850.     });
  851.     // increment
  852.     el.parent().on('click', '.spinner-add', function() {
  853.         el.val(function(i, oldval) {
  854.           return ++oldval;
  855.         });
  856.       // disabled
  857.       if (el.val() > parseInt(el.attr('min'))) {
  858.         el.prev(sub).removeClass('disabled');
  859.       }
  860.       if (el.val() == parseInt(el.attr('max'))) {
  861.         el.next(add).addClass('disabled');
  862.       }
  863.     });
  864.   });
  865. });
  866. </script>
  867. {% endblock %}
  868. {% block main %}
  869.     {% if search_form.category_id.vars.errors|length > 0 %}
  870.         <div class=\"ec-searchnavRole\">
  871.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  872.         </div>
  873.     {% else %}
  874.         <div class=\"ec-searchnavRole\">
  875.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  876.                 {% for item in search_form %}
  877.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  878.                            name=\"{{ item.vars.full_name }}\"
  879.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  880.                 {% endfor %}
  881.             </form>
  882.             {% if Category is not null %}
  883.                 {% for Path in Category.path %}
  884.                     {% if loop.last %}
  885.                         <h1>{{ Path.name }}</h1>
  886.                     {% endif %}
  887.                 {% endfor %}
  888.             {% else %}
  889.                 {% if app.request.get('name') != \"\" %}
  890.                     <h1>{{app.request.get('name')}}</h1>
  891.                 {% else %}
  892.                     <h1>宇宙グッズ一覧</h1>
  893.                 {% endif %}
  894.             {% endif %}
  895.             <div class=\"ec-searchnavRole__infos\">
  896.                 {% if pagination.totalItemCount > 0 %}
  897.                 {{ '<div class=\"product_count\"><span>%count%</span>件</div>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  898.                     <div class=\"ec-select\">
  899.                         {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  900.                     </div>
  901.                 {#
  902.                 {% else %}
  903.                     <div class=\"product_count\">{{ '0件'|trans }}</div>
  904.                 #}
  905.                 {% endif %}
  906.             </div>
  907.         </div>
  908.         
  909.         {% if Category is defined and Category is not null and attribute(Category, 'file_name') is defined %}
  910.         <div class=\"apg_category_content\">
  911.             {% if Category.file_name %}
  912.             <div class=\"apg_category_image\" style=\"background-image:url({{ asset('rich_category/'~Category.file_name,'save_image') }});\"></div>
  913.             {% endif %}
  914.             {% if Category.content %}
  915.             <div class=\"apg_category_description\">
  916.                 {{ Category.content|raw|nl2br }}
  917.             </div>
  918.             {% endif %}
  919.         </div>
  920.         {% endif %}
  921.         
  922.         {% if pagination.totalItemCount > 0 %}
  923.             <div class=\"ec-shelfRole\">
  924.                 <ul class=\"ec-shelfGrid\">
  925.                     {% for Product in pagination %}
  926.                         <li class=\"ec-shelfGrid__item\">
  927.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  928.                                 <div class=\"item_img\"><img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}></div>
  929.                                 <p class=\"item_name\">{{ Product.name }}</p>
  930.                                 {% if Product.hasProductClass %}
  931.                                     {% if Product.getPrice02Min == Product.getPrice02Max %}
  932.                                         <p class=\"price02-default\">{{ Product.getPrice02IncTaxMin|price }}</p>
  933.                                     {% else %}
  934.                                         <p class=\"price02-default price_multiple\">{{ Product.getPrice02IncTaxMin|price }}~{{ Product.getPrice02IncTaxMax|price }}</p>
  935.                                     {% endif %}
  936.                                 {% else %}
  937.                                     <p class=\"price02-default\">{{ Product.getPrice02IncTaxMin|price }}</p>
  938.                                 {% endif %}
  939.                             </a>
  940.                             {% if Product.stock_find %}
  941.                                 {% set form = forms[Product.id] %}
  942.                                 <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  943.                                     <div class=\"ec-productRole__actions\">
  944.                                         {% if form.classcategory_id1 is defined %}
  945.                                             <div class=\"ec-select\">
  946.                                                 {{ form_widget(form.classcategory_id1) }}
  947.                                                 {{ form_errors(form.classcategory_id1) }}
  948.                                             </div>
  949.                                             {% if form.classcategory_id2 is defined %}
  950.                                                 <div class=\"ec-select\">
  951.                                                     {{ form_widget(form.classcategory_id2) }}
  952.                                                     {{ form_errors(form.classcategory_id2) }}
  953.                                                 </div>
  954.                                             {% endif %}
  955.                                         {% endif %}
  956.                                         <div class=\"ec-numberInput\">
  957.                                             <div class=\"number_wrap\">
  958.                                                 <span class=\"spinner-sub disabled\"><i class=\"fas fa-minus-circle\"></i></span>
  959.                                                 {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  960.                                                 {{ form_errors(form.quantity) }}
  961.                                                 <span class=\"spinner-add\"><i class=\"fas fa-plus-circle\"></i></span>
  962.                                             </div>
  963.                                         </div>
  964.                                     </div>
  965.                                     {{ form_rest(form) }}
  966.                                 </form>
  967.                                 <div class=\"ec-productRole__btn\">
  968.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  969.                                         {{ 'カートに入れる'|trans }}
  970.                                     </button>
  971.                                 </div>
  972.                             {% else %}
  973.                                 <div class=\"ec-productRole__btn\">
  974.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  975.                                         {{ 'ただいま品切れ中です。'|trans }}
  976.                                     </button>
  977.                                 </div>
  978.                             {% endif %}
  979.                         </li>
  980.                     {% endfor %}
  981.                 </ul>
  982.             </div>
  983.             <div class=\"ec-pagerRole\">
  984.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  985.             </div>
  986.             <div class=\"productlist_bottom\">
  987.                 <div class=\"productlist_number ec-select\">
  988.                     <div>{{ '表示件数'|trans({ '%count%': pagination.totalItemCount })|raw }}</div>
  989.                     {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  990.                 </div>
  991.                 <div class=\"ec-searchnavRole__category\">
  992.                     <p><a href=\"{{ url('product_list') }}\" class=\"all_category\">宇宙グッズ一覧</a></p>
  993.                     {% if Category is not null %}
  994.                         {% for Path in Category.path %}
  995.                             <p><a href=\"{{ url('product_list') }}?category_id={{ Path.id }}\" class=\"list_category_{{loop.index}}\">{{ Path.name }}</a></p>
  996.                             <script>
  997.                                 \$(\".category_id_{{ Path.id }}\").addClass(\"is-active\").css(\"display\",\"block\");
  998.                                 {% if loop.last %}
  999.                                 \$(\".category_id_{{ Path.id }}\").addClass(\"is-active_last\");
  1000.                                 {% endif %}
  1001.                             </script>
  1002.                         {% endfor %}
  1003.                     {% endif %}
  1004.                 </div>
  1005.             </div>
  1006.         {% else %}
  1007.             <div class=\"error_content\">
  1008.                 <p><img src=\"{{ asset('assets/img/pages/error_character.png', 'user_data') }}\" alt=\"申し訳ございません。該当する宇宙グッズは見付かりませんでした。\" width=\"112\" height=\"169\" /></p>
  1009.                 <p>申し訳ございません。</p>
  1010.                 <p>お探しの宇宙グッズは見付かりませんでした。</p>
  1011.             </div>
  1012.             <div class=\"productlist_bottom error\">
  1013.                 <div class=\"ec-searchnavRole__category\">
  1014.                     <p><a href=\"{{ url('product_list') }}\" class=\"all_category\">宇宙グッズ一覧</a></p>
  1015.                 </div>
  1016.             </div>
  1017.         {% endif %}
  1018.     {% endif %}
  1019. {% endblock %}", "Product/list.twig", "/home/unibo-test/www/html/app/template/default/Product/list.twig");
  1020.     }
  1021.     
  1022.     public function checkSecurity()
  1023.     {
  1024.         static $tags = array("set" => 13, "for" => 22, "if" => 23, "include" => 256);
  1025.         static $filters = array("escape" => 16, "raw" => 23, "trans" => 46, "length" => 141, "nl2br" => 188, "no_image_product" => 200, "price" => 204);
  1026.         static $functions = array("asset" => 16, "class_categories_as_json" => 23, "url" => 75, "form_widget" => 171, "form_errors" => 219, "form_rest" => 237);
  1027.         try {
  1028.             $this->sandbox->checkSecurity(
  1029.                 ['set', 'for', 'if', 'include'],
  1030.                 ['escape', 'raw', 'trans', 'length', 'nl2br', 'no_image_product', 'price'],
  1031.                 ['asset', 'class_categories_as_json', 'url', 'form_widget', 'form_errors', 'form_rest'],
  1032.                 $this->source
  1033.             );
  1034.         } catch (SecurityError $e) {
  1035.             $e->setSourceContext($this->source);
  1036.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1037.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1038.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1039.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1040.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1041.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1042.             }
  1043.             throw $e;
  1044.         }
  1045.     }
  1046. }