var/cache/dev/twig/da/daecd3c1617b1c38b2d7b8a1fc9cac57.php line 41

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