var/cache/dev/twig/6d/6d64102041e4c15d7e54995820cda1e5.php line 213

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. /* ProductTagPage42/list.twig */
  14. class __TwigTemplate_ad8776cc966cee2ed486c2ebe498618a 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 1
  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""ProductTagPage42/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""ProductTagPage42/list.twig"));
  41.         // line 3
  42.         $context["body_class"] = "product_tag_page";
  43.         // line 1
  44.         $this->parent $this->loadTemplate("default_frame.twig""ProductTagPage42/list.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 5
  52.     public function block_javascript($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  59.         // line 6
  60.         echo "    <script>
  61.         eccube.productsClassCategories = {
  62.             ";
  63.         // line 8
  64.         $context['_parent'] = $context;
  65.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'8$this->source); })()));
  66.         $context['loop'] = [
  67.           'parent' => $context['_parent'],
  68.           'index0' => 0,
  69.           'index'  => 1,
  70.           'first'  => true,
  71.         ];
  72.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  73.             $length count($context['_seq']);
  74.             $context['loop']['revindex0'] = $length 1;
  75.             $context['loop']['revindex'] = $length;
  76.             $context['loop']['length'] = $length;
  77.             $context['loop']['last'] = === $length;
  78.         }
  79.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  80.             // line 9
  81.             echo "            \"";
  82.             echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue9), 9$this->source), "js"), "html"nulltrue);
  83.             echo "\": ";
  84.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 9$this->source));
  85.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue9) == false)) {
  86.                 echo ", ";
  87.             }
  88.             // line 10
  89.             echo "            ";
  90.             ++$context['loop']['index0'];
  91.             ++$context['loop']['index'];
  92.             $context['loop']['first'] = false;
  93.             if (isset($context['loop']['length'])) {
  94.                 --$context['loop']['revindex0'];
  95.                 --$context['loop']['revindex'];
  96.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  97.             }
  98.         }
  99.         $_parent $context['_parent'];
  100.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  101.         $context array_intersect_key($context$_parent) + $_parent;
  102.         // line 11
  103.         echo "        };
  104.         \$(function() {
  105.             // 表示件数を変更
  106.             \$('.disp-number').change(function() {
  107.                 var dispNumber = \$(this).val();
  108.                 \$('#disp_number').val(dispNumber);
  109.                 \$('#pageno').val(1);
  110.                 \$(\"#form1\").submit();
  111.             });
  112.             // 並び順を変更
  113.             \$('.order-by').change(function() {
  114.                 var orderBy = \$(this).val();
  115.                 \$('#orderby').val(orderBy);
  116.                 \$('#pageno').val(1);
  117.                 \$(\"#form1\").submit();
  118.             });
  119.             \$('.add-cart').on('click', function(e) {
  120.                 var \$form = \$(this).parents('li').find('form');
  121.                 // 個数フォームのチェック
  122.                 var \$quantity = \$form.parent().find('.quantity');
  123.                 if (\$quantity.val() < 1) {
  124.                     \$quantity[0].setCustomValidity('";
  125.         // line 37
  126.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  127.         echo "');
  128.                     setTimeout(function() {
  129.                         loadingOverlay('hide');
  130.                     }, 100);
  131.                     return true;
  132.                 } else {
  133.                     \$quantity[0].setCustomValidity('');
  134.                 }
  135.                 e.preventDefault();
  136.                 \$.ajax({
  137.                     url: \$form.attr('action'),
  138.                     type: \$form.attr('method'),
  139.                     data: \$form.serialize(),
  140.                     dataType: 'json',
  141.                     beforeSend: function(xhr, settings) {
  142.                         // Buttonを無効にする
  143.                         \$('.add-cart').prop('disabled', true);
  144.                     }
  145.                 }).done(function(data) {
  146.                     // レスポンス内のメッセージをalertで表示
  147.                     \$.each(data.messages, function() {
  148.                         \$('#ec-modal-header').text(this);
  149.                     });
  150.                     \$('.ec-modal').show()
  151.                     // カートブロックを更新する
  152.                     \$.ajax({
  153.                         url: '";
  154.         // line 65
  155.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  156.         echo "',
  157.                         type: 'GET',
  158.                         dataType: 'html'
  159.                     }).done(function(html) {
  160.                         \$('.ec-headerRole__cart').html(html);
  161.                     });
  162.                 }).fail(function(data) {
  163.                     alert('";
  164.         // line 72
  165.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  166.         echo "');
  167.                 }).always(function(data) {
  168.                     // Buttonを有効にする
  169.                     \$('.add-cart').prop('disabled', false);
  170.                 });
  171.             });
  172.         });
  173.         \$('.ec-modal-wrap').on('click', function(e) {
  174.             // モーダル内の処理は外側にバブリングさせない
  175.             e.stopPropagation();
  176.         });
  177.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  178.             \$('.ec-modal').hide()
  179.         });
  180.     </script>
  181. ";
  182.         
  183.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  184.         
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  186.     }
  187.     // line 90
  188.     public function block_main($context, array $blocks = [])
  189.     {
  190.         $macros $this->macros;
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  195.         // line 91
  196.         echo "    ";
  197.         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.'91$this->source); })()), "id", [], "any"falsefalsetrue91), "vars", [], "any"falsefalsetrue91), "errors", [], "any"falsefalsetrue91)) > 0)) {
  198.             // line 92
  199.             echo "        <div class=\"ec-searchnavRole\">
  200.             <p class=\"errormsg text-danger\">";
  201.             // line 93
  202.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  203.             echo "</p>
  204.         </div>
  205.     ";
  206.         } else {
  207.             // line 96
  208.             echo "        <div class=\"ec-searchnavRole\">
  209.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  210.                 ";
  211.             // line 98
  212.             $context['_parent'] = $context;
  213.             $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.'98$this->source); })()));
  214.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  215.                 // line 99
  216.                 echo "                    <input type=\"hidden\" id=\"";
  217.                 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"falsefalsetrue99), "id", [], "any"falsefalsetrue99), 99$this->source), "html"nulltrue);
  218.                 echo "\"
  219.                            name=\"";
  220.                 // line 100
  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"falsefalsetrue100), "full_name", [], "any"falsefalsetrue100), 100$this->source), "html"nulltrue);
  222.                 echo "\"
  223.                            ";
  224.                 // line 101
  225.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue101), "value", [], "any"falsefalsetrue101))) {
  226.                     echo "value=\"";
  227.                     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"falsefalsetrue101), "value", [], "any"falsefalsetrue101), 101$this->source), "html"nulltrue);
  228.                     echo "\" ";
  229.                 }
  230.                 echo "/>
  231.                 ";
  232.             }
  233.             $_parent $context['_parent'];
  234.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  235.             $context array_intersect_key($context$_parent) + $_parent;
  236.             // line 103
  237.             echo "            </form>
  238.             <!--★タイトル★-->
  239.             ";
  240.             // line 105
  241.             $context["tagId"] = 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.'105$this->source); })()), "request", [], "any"falsefalsetrue105), "query", [], "any"falsefalsetrue105), "get", [=> "id"], "method"falsefalsetrue105);
  242.             // line 106
  243.             echo "            ";
  244.             if ((isset($context["tagId"]) || array_key_exists("tagId"$context) ? $context["tagId"] : (function () { throw new RuntimeError('Variable "tagId" does not exist.'106$this->source); })())) {
  245.                 // line 107
  246.                 echo "            <h2 class=\"title\">
  247.                 ";
  248.                 // line 108
  249.                 if (((isset($context["tagId"]) || array_key_exists("tagId"$context) ? $context["tagId"] : (function () { throw new RuntimeError('Variable "tagId" does not exist.'108$this->source); })()) == 1)) {
  250.                     // line 109
  251.                     echo "                    新刊書
  252.                 ";
  253.                 } elseif ((                // line 110
  254. (isset($context["tagId"]) || array_key_exists("tagId"$context) ? $context["tagId"] : (function () { throw new RuntimeError('Variable "tagId" does not exist.'110$this->source); })()) == 2)) {
  255.                     // line 111
  256.                     echo "                    既刊書
  257.                 ";
  258.                 }
  259.                 // line 113
  260.                 echo "            </h2>
  261.             ";
  262.             }
  263.             // line 115
  264.             echo "
  265.             <div class=\"ec-searchnavRole__infos pagenumber_area\">
  266.                 <div class=\"pagination-area flex\">
  267.                     <div class=\"ec-searchnavRole__counter\">
  268.                         ";
  269.             // line 119
  270.             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.'119$this->source); })()), "totalItemCount", [], "any"falsefalsetrue119) > 0)) {
  271.                 // line 120
  272.                 echo "                            ";
  273.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold attention\">%count%件</span><span>の商品がございます。</span>", ["%count%" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'120$this->source); })()), "totalItemCount", [], "any"falsefalsetrue120)]);
  274.                 echo "
  275.                         ";
  276.             } else {
  277.                 // line 122
  278.                 echo "                            <span>";
  279.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  280.                 echo "</span>
  281.                         ";
  282.             }
  283.             // line 124
  284.             echo "                    </div>
  285.                     ";
  286.             // line 125
  287.             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.'125$this->source); })()), "totalItemCount", [], "any"falsefalsetrue125) > 0)) {
  288.                 // line 126
  289.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  290.                         <div class=\"ec-select\">
  291.                             ";
  292.                 // line 128
  293.                 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.'128$this->source); })()), "disp_number", [], "any"falsefalsetrue128), 128$this->source), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  294.                 echo "
  295.                             ";
  296.                 // line 129
  297.                 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.'129$this->source); })()), "orderby", [], "any"falsefalsetrue129), 129$this->source), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  298.                 echo "
  299.                         </div>
  300.                     </div>
  301.                     ";
  302.             }
  303.             // line 133
  304.             echo "                </div>
  305.             </div>
  306.         </div>
  307.         ";
  308.             // line 136
  309.             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.'136$this->source); })()), "totalItemCount", [], "any"falsefalsetrue136) > 0)) {
  310.                 // line 137
  311.                 echo "            <div class=\"ec-shelfRole\" id=\"products-area\">
  312.                 <ul class=\"ec-shelfGrid\">
  313.                     ";
  314.                 // line 139
  315.                 $context['_parent'] = $context;
  316.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'139$this->source); })()));
  317.                 $context['loop'] = [
  318.                   'parent' => $context['_parent'],
  319.                   'index0' => 0,
  320.                   'index'  => 1,
  321.                   'first'  => true,
  322.                 ];
  323.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  324.                     $length count($context['_seq']);
  325.                     $context['loop']['revindex0'] = $length 1;
  326.                     $context['loop']['revindex'] = $length;
  327.                     $context['loop']['length'] = $length;
  328.                     $context['loop']['last'] = === $length;
  329.                 }
  330.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  331.                     // line 140
  332.                     echo "                        <li class=\"ec-shelfGrid__item\">
  333.                             <a href=\"";
  334.                     // line 141
  335.                     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"falsefalsetrue141)]), "html"nulltrue);
  336.                     echo "\">
  337.                                 <div class=\"product-detailarea flex\">
  338.                                     <div class=\"listphoto\">
  339.                                         <div class=\"listphotoarea\">
  340.                                             <p class=\"ec-shelfGrid__item-image\">
  341.                                                 <img src=\"";
  342.                     // line 146
  343.                     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"falsefalsetrue146), 146$this->source)), "save_image"), "html"nulltrue);
  344.                     echo "\" alt=\"";
  345.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue146), 146$this->source), "html"nulltrue);
  346.                     echo "\" ";
  347.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue146) > 5)) {
  348.                         echo " loading=\"lazy\"";
  349.                     }
  350.                     echo ">
  351.                                             </p>
  352.                                         </div>
  353.                                     </div>
  354.                                     <div class=\"product-ttlarea\">
  355.                                         <!-- 書籍タイトル -->
  356.                                         <div class=\"product-ttl\">
  357.                                         ";
  358.                     // line 153
  359.                     if (twig_get_attribute($this->env$this->source$context["Product"], "sub_name_up", [], "any"falsefalsetrue153)) {
  360.                         // line 154
  361.                         echo "                                            <p>";
  362.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "sub_name_up", [], "any"falsefalsetrue154), 154$this->source), "html"nulltrue);
  363.                         echo "</p>
  364.                                         ";
  365.                     }
  366.                     // line 156
  367.                     echo "                                        <h3>";
  368.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue156), 156$this->source), "html"nulltrue);
  369.                     echo "</h3>
  370.                                         ";
  371.                     // line 157
  372.                     if (twig_get_attribute($this->env$this->source$context["Product"], "sub_name_down", [], "any"falsefalsetrue157)) {
  373.                         // line 158
  374.                         echo "                                            <p>";
  375.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "sub_name_down", [], "any"falsefalsetrue158), 158$this->source), "html"nulltrue);
  376.                         echo "</p>
  377.                                         ";
  378.                     }
  379.                     // line 160
  380.                     echo "                                        </div>
  381.                                         <!-- 価格 -->
  382.                                         <div class=\"productlist-pricebox\">
  383.                                             <p class=\"price02-default\">
  384.                                                 定価:
  385.                                                 <span class=\"price sale_price\">
  386.                                                 ";
  387.                     // line 167
  388.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsetrue167)) {
  389.                         // line 168
  390.                         echo "                                                    ";
  391.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsetrue168) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsetrue168))) {
  392.                             // line 169
  393.                             echo "                                                        ";
  394.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue169), 169$this->source)), "html"nulltrue);
  395.                             echo "
  396.                                                     ";
  397.                         } else {
  398.                             // line 171
  399.                             echo "                                                        ";
  400.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue171), 171$this->source)), "html"nulltrue);
  401.                             echo " ~ ";
  402.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsetrue171), 171$this->source)), "html"nulltrue);
  403.                             echo "
  404.                                                     ";
  405.                         }
  406.                         // line 173
  407.                         echo "                                                ";
  408.                     } else {
  409.                         // line 174
  410.                         echo "                                                    ";
  411.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue174), 174$this->source)), "html"nulltrue);
  412.                         echo "
  413.                                                 ";
  414.                     }
  415.                     // line 176
  416.                     echo "                                                円</span>
  417.                                                 (税込)
  418.                                             </p>
  419.                                         </div>
  420.                                     </div>
  421.                                 </div>
  422.                             </a>
  423.                             <!-- 買い物かご -->
  424.                             <div class=\"productlist-cartarea only-pc\">
  425. \t\t\t\t\t\t\t\t <!--★商品詳細を見る★-->
  426. \t\t\t                    <div class=\"detail_btn\">
  427. \t\t\t                        <a class=\"rgreen-btn__s\" href=\"";
  428.                     // line 188
  429.                     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"falsefalsetrue188)]), "html"nulltrue);
  430.                     echo "\">
  431. \t\t\t                            商品詳細を見る
  432. \t\t\t                        </a>
  433. \t\t\t                    </div>
  434.                             ";
  435.                     // line 193
  436.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsetrue193)) {
  437.                         // line 194
  438.                         echo "                                ";
  439.                         $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.'194$this->source); })()), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue194), [], "array"falsefalsetrue194);
  440.                         // line 195
  441.                         echo "                                <form name=\"form";
  442.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue195), 195$this->source), "html"nulltrue);
  443.                         echo "\" id=\"productForm";
  444.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue195), 195$this->source), "html"nulltrue);
  445.                         echo "\" action=\"";
  446.                         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"falsefalsetrue195)]), "html"nulltrue);
  447.                         echo "\" method=\"post\">
  448.                                     <div class=\"ec-productRole__actions\">
  449.                                         ";
  450.                         // line 197
  451.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruetrue197)) {
  452.                             // line 198
  453.                             echo "                                        <div class=\"classlist\">
  454.                                             <div class=\"ec-select\">
  455.                                                 ";
  456.                             // line 200
  457.                             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["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'200$this->source); })()), "classcategory_id1", [], "any"falsefalsetrue200), "vars", [], "any"falsefalsetrue200), "label", [], "any"falsefalsetrue200), 200$this->source), "html"nulltrue);
  458.                             echo ":
  459.                                                 ";
  460.                             // line 201
  461.                             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.'201$this->source); })()), "classcategory_id1", [], "any"falsefalsetrue201), 201$this->source), 'widget');
  462.                             echo "
  463.                                                 ";
  464.                             // line 202
  465.                             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.'202$this->source); })()), "classcategory_id1", [], "any"falsefalsetrue202), 202$this->source), 'errors');
  466.                             echo "
  467.                                             </div>
  468.                                             ";
  469.                             // line 204
  470.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruetrue204)) {
  471.                                 // line 205
  472.                                 echo "                                                <div class=\"ec-select\">
  473.                                                     ";
  474.                                 // line 206
  475.                                 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["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'206$this->source); })()), "classcategory_id2", [], "any"falsefalsetrue206), "vars", [], "any"falsefalsetrue206), "label", [], "any"falsefalsetrue206), 206$this->source), "html"nulltrue);
  476.                                 echo ":
  477.                                                     ";
  478.                                 // line 207
  479.                                 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.'207$this->source); })()), "classcategory_id2", [], "any"falsefalsetrue207), 207$this->source), 'widget');
  480.                                 echo "
  481.                                                     ";
  482.                                 // line 208
  483.                                 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.'208$this->source); })()), "classcategory_id2", [], "any"falsefalsetrue208), 208$this->source), 'errors');
  484.                                 echo "
  485.                                                 </div>
  486.                                             ";
  487.                             }
  488.                             // line 211
  489.                             echo "                                        </div>
  490.                                         ";
  491.                         }
  492.                         // line 213
  493.                         echo "                                        <div class=\"ec-numberInput\"><span>数量:</span>
  494.                                             ";
  495.                         // line 214
  496.                         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.'214$this->source); })()), "quantity", [], "any"falsefalsetrue214), 214$this->source), 'widget', ["attr" => ["class" => "quantity"]]);
  497.                         echo "
  498.                                             ";
  499.                         // line 215
  500.                         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.'215$this->source); })()), "quantity", [], "any"falsefalsetrue215), 215$this->source), 'errors');
  501.                         echo "
  502.                                         </div>
  503.                                     </div>
  504.                                     ";
  505.                         // line 218
  506.                         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.'218$this->source); })()), 218$this->source), 'rest');
  507.                         echo "
  508.                                 </form>
  509.                                 <div class=\"ec-productRole__btn\">
  510.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart orange-btn__s\" data-cartid=\"";
  511.                         // line 221
  512.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue221), 221$this->source), "html"nulltrue);
  513.                         echo "\" form=\"productForm";
  514.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue221), 221$this->source), "html"nulltrue);
  515.                         echo "\">
  516.                                         カゴに入れる
  517.                                     </button>
  518.                                 </div>
  519.                             ";
  520.                     } else {
  521.                         // line 226
  522.                         echo "                                <div class=\"attention\">
  523.                                     ";
  524.                         // line 227
  525.                         $context["targettag"] = [];
  526.                         // line 228
  527.                         echo "                                    ";
  528.                         $context['_parent'] = $context;
  529.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "Tags", [], "any"falsefalsetrue228));
  530.                         foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  531.                             // line 229
  532.                             echo "                                        ";
  533.                             $context["targettag"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["targettag"]) || array_key_exists("targettag"$context) ? $context["targettag"] : (function () { throw new RuntimeError('Variable "targettag" does not exist.'229$this->source); })()), 229$this->source), [=> twig_get_attribute($this->env$this->source$context["tag"], "id", [], "any"falsefalsetrue229)]);
  534.                             // line 230
  535.                             echo "                                    ";
  536.                         }
  537.                         $_parent $context['_parent'];
  538.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  539.                         $context array_intersect_key($context$_parent) + $_parent;
  540.                         // line 231
  541.                         echo "                                    ";
  542.                         if (twig_in_filter("7", (isset($context["targettag"]) || array_key_exists("targettag"$context) ? $context["targettag"] : (function () { throw new RuntimeError('Variable "targettag" does not exist.'231$this->source); })()))) {
  543.                             // line 232
  544.                             echo "                                    申し訳ございませんが、本商品は絶版となりました。
  545.                                     ";
  546.                         } elseif (twig_in_filter("5",                         // line 233
  547. (isset($context["targettag"]) || array_key_exists("targettag"$context) ? $context["targettag"] : (function () { throw new RuntimeError('Variable "targettag" does not exist.'233$this->source); })()))) {
  548.                             // line 234
  549.                             echo "                                    この商品は発売前のため購入いただけません。
  550.                                     ";
  551.                         } else {
  552.                             // line 236
  553.                             echo "                                    申し訳ございませんが、本商品は只今品切れ中です。
  554.                                     ";
  555.                         }
  556.                         // line 238
  557.                         echo "                                </div>
  558.                             ";
  559.                     }
  560.                     // line 240
  561.                     echo "                            </div>
  562.                         </li>
  563.                     ";
  564.                     ++$context['loop']['index0'];
  565.                     ++$context['loop']['index'];
  566.                     $context['loop']['first'] = false;
  567.                     if (isset($context['loop']['length'])) {
  568.                         --$context['loop']['revindex0'];
  569.                         --$context['loop']['revindex'];
  570.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  571.                     }
  572.                 }
  573.                 $_parent $context['_parent'];
  574.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  575.                 $context array_intersect_key($context$_parent) + $_parent;
  576.                 // line 243
  577.                 echo "                </ul>
  578.             </div>
  579.             <div class=\"ec-modal\">
  580.                 <div class=\"ec-modal-overlay\">
  581.                     <div class=\"ec-modal-wrap\">
  582.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  583.                 // line 248
  584.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  585.                 echo "\" alt=\"\"/></span></span>
  586.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  587.                 // line 249
  588.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  589.                 echo "</div>
  590.                         <div class=\"ec-modal-box\">
  591.                             <div class=\"ec-role\">
  592.                                 <span class=\"ec-inlineBtn--cancel\">";
  593.                 // line 252
  594.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  595.                 echo "</span>
  596.                                 <a href=\"";
  597.                 // line 253
  598.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  599.                 echo "\" class=\"ec-inlineBtn--action\">";
  600.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  601.                 echo "</a>
  602.                             </div>
  603.                         </div>
  604.                     </div>
  605.                 </div>
  606.             </div>
  607.             ";
  608.                 // line 260
  609.                 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.'260$this->source); })()), "totalItemCount", [], "any"falsefalsetrue260) > 0)) {
  610.                     // line 261
  611.                     echo "            <div class=\"ec-pagerRole\">
  612.                 ";
  613.                     // line 262
  614.                     $this->loadTemplate("pager.twig""ProductTagPage42/list.twig"262)->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.'262$this->source); })()), "paginationData", [], "any"falsefalsetrue262)]));
  615.                     // line 263
  616.                     echo "            </div>
  617.             ";
  618.                 }
  619.                 // line 265
  620.                 echo "        ";
  621.             }
  622.             // line 266
  623.             echo "    ";
  624.         }
  625.         
  626.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  627.         
  628.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  629.     }
  630.     public function getTemplateName()
  631.     {
  632.         return "ProductTagPage42/list.twig";
  633.     }
  634.     public function isTraitable()
  635.     {
  636.         return false;
  637.     }
  638.     public function getDebugInfo()
  639.     {
  640.         return array (  654 => 266,  651 => 265,  647 => 263,  645 => 262,  642 => 261,  640 => 260,  628 => 253,  624 => 252,  618 => 249,  614 => 248,  607 => 243,  591 => 240,  587 => 238,  583 => 236,  579 => 234,  577 => 233,  574 => 232,  571 => 231,  565 => 230,  562 => 229,  557 => 228,  555 => 227,  552 => 226,  542 => 221,  536 => 218,  530 => 215,  526 => 214,  523 => 213,  519 => 211,  513 => 208,  509 => 207,  505 => 206,  502 => 205,  500 => 204,  495 => 202,  491 => 201,  487 => 200,  483 => 198,  481 => 197,  471 => 195,  468 => 194,  466 => 193,  458 => 188,  444 => 176,  438 => 174,  435 => 173,  427 => 171,  421 => 169,  418 => 168,  416 => 167,  407 => 160,  401 => 158,  399 => 157,  394 => 156,  388 => 154,  386 => 153,  370 => 146,  362 => 141,  359 => 140,  342 => 139,  338 => 137,  336 => 136,  331 => 133,  324 => 129,  320 => 128,  316 => 126,  314 => 125,  311 => 124,  305 => 122,  299 => 120,  297 => 119,  291 => 115,  287 => 113,  283 => 111,  281 => 110,  278 => 109,  276 => 108,  273 => 107,  270 => 106,  268 => 105,  264 => 103,  252 => 101,  248 => 100,  243 => 99,  239 => 98,  235 => 96,  229 => 93,  226 => 92,  223 => 91,  213 => 90,  186 => 72,  176 => 65,  145 => 37,  117 => 11,  103 => 10,  95 => 9,  78 => 8,  74 => 6,  64 => 5,  53 => 1,  51 => 3,  38 => 1,);
  641.     }
  642.     public function getSourceContext()
  643.     {
  644.         return new Source("{% extends 'default_frame.twig' %}
  645. {% set body_class = 'product_tag_page' %}
  646. {% block javascript %}
  647.     <script>
  648.         eccube.productsClassCategories = {
  649.             {% for Product in pagination %}
  650.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  651.             {% endfor %}
  652.         };
  653.         \$(function() {
  654.             // 表示件数を変更
  655.             \$('.disp-number').change(function() {
  656.                 var dispNumber = \$(this).val();
  657.                 \$('#disp_number').val(dispNumber);
  658.                 \$('#pageno').val(1);
  659.                 \$(\"#form1\").submit();
  660.             });
  661.             // 並び順を変更
  662.             \$('.order-by').change(function() {
  663.                 var orderBy = \$(this).val();
  664.                 \$('#orderby').val(orderBy);
  665.                 \$('#pageno').val(1);
  666.                 \$(\"#form1\").submit();
  667.             });
  668.             \$('.add-cart').on('click', function(e) {
  669.                 var \$form = \$(this).parents('li').find('form');
  670.                 // 個数フォームのチェック
  671.                 var \$quantity = \$form.parent().find('.quantity');
  672.                 if (\$quantity.val() < 1) {
  673.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  674.                     setTimeout(function() {
  675.                         loadingOverlay('hide');
  676.                     }, 100);
  677.                     return true;
  678.                 } else {
  679.                     \$quantity[0].setCustomValidity('');
  680.                 }
  681.                 e.preventDefault();
  682.                 \$.ajax({
  683.                     url: \$form.attr('action'),
  684.                     type: \$form.attr('method'),
  685.                     data: \$form.serialize(),
  686.                     dataType: 'json',
  687.                     beforeSend: function(xhr, settings) {
  688.                         // Buttonを無効にする
  689.                         \$('.add-cart').prop('disabled', true);
  690.                     }
  691.                 }).done(function(data) {
  692.                     // レスポンス内のメッセージをalertで表示
  693.                     \$.each(data.messages, function() {
  694.                         \$('#ec-modal-header').text(this);
  695.                     });
  696.                     \$('.ec-modal').show()
  697.                     // カートブロックを更新する
  698.                     \$.ajax({
  699.                         url: '{{ url('block_cart') }}',
  700.                         type: 'GET',
  701.                         dataType: 'html'
  702.                     }).done(function(html) {
  703.                         \$('.ec-headerRole__cart').html(html);
  704.                     });
  705.                 }).fail(function(data) {
  706.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  707.                 }).always(function(data) {
  708.                     // Buttonを有効にする
  709.                     \$('.add-cart').prop('disabled', false);
  710.                 });
  711.             });
  712.         });
  713.         \$('.ec-modal-wrap').on('click', function(e) {
  714.             // モーダル内の処理は外側にバブリングさせない
  715.             e.stopPropagation();
  716.         });
  717.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  718.             \$('.ec-modal').hide()
  719.         });
  720.     </script>
  721. {% endblock %}
  722. {% block main %}
  723.     {% if search_form.id.vars.errors|length > 0 %}
  724.         <div class=\"ec-searchnavRole\">
  725.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  726.         </div>
  727.     {% else %}
  728.         <div class=\"ec-searchnavRole\">
  729.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  730.                 {% for item in search_form %}
  731.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  732.                            name=\"{{ item.vars.full_name }}\"
  733.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  734.                 {% endfor %}
  735.             </form>
  736.             <!--★タイトル★-->
  737.             {% set tagId = app.request.query.get('id') %}
  738.             {% if tagId %}
  739.             <h2 class=\"title\">
  740.                 {% if tagId == 1  %}
  741.                     新刊書
  742.                 {% elseif tagId == 2  %}
  743.                     既刊書
  744.                 {% endif %}
  745.             </h2>
  746.             {% endif %}
  747.             <div class=\"ec-searchnavRole__infos pagenumber_area\">
  748.                 <div class=\"pagination-area flex\">
  749.                     <div class=\"ec-searchnavRole__counter\">
  750.                         {% if pagination.totalItemCount > 0 %}
  751.                             {{ '<span class=\"ec-font-bold attention\">%count%件</span><span>の商品がございます。</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  752.                         {% else %}
  753.                             <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  754.                         {% endif %}
  755.                     </div>
  756.                     {% if pagination.totalItemCount > 0 %}
  757.                     <div class=\"ec-searchnavRole__actions\">
  758.                         <div class=\"ec-select\">
  759.                             {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  760.                             {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  761.                         </div>
  762.                     </div>
  763.                     {% endif %}
  764.                 </div>
  765.             </div>
  766.         </div>
  767.         {% if pagination.totalItemCount > 0 %}
  768.             <div class=\"ec-shelfRole\" id=\"products-area\">
  769.                 <ul class=\"ec-shelfGrid\">
  770.                     {% for Product in pagination %}
  771.                         <li class=\"ec-shelfGrid__item\">
  772.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  773.                                 <div class=\"product-detailarea flex\">
  774.                                     <div class=\"listphoto\">
  775.                                         <div class=\"listphotoarea\">
  776.                                             <p class=\"ec-shelfGrid__item-image\">
  777.                                                 <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  778.                                             </p>
  779.                                         </div>
  780.                                     </div>
  781.                                     <div class=\"product-ttlarea\">
  782.                                         <!-- 書籍タイトル -->
  783.                                         <div class=\"product-ttl\">
  784.                                         {% if Product.sub_name_up %}
  785.                                             <p>{{ Product.sub_name_up }}</p>
  786.                                         {% endif %}
  787.                                         <h3>{{ Product.name }}</h3>
  788.                                         {% if Product.sub_name_down %}
  789.                                             <p>{{ Product.sub_name_down }}</p>
  790.                                         {% endif %}
  791.                                         </div>
  792.                                         <!-- 価格 -->
  793.                                         <div class=\"productlist-pricebox\">
  794.                                             <p class=\"price02-default\">
  795.                                                 定価:
  796.                                                 <span class=\"price sale_price\">
  797.                                                 {% if Product.hasProductClass %}
  798.                                                     {% if Product.getPrice02Min == Product.getPrice02Max %}
  799.                                                         {{ Product.getPrice02IncTaxMin|number_format }}
  800.                                                     {% else %}
  801.                                                         {{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }}
  802.                                                     {% endif %}
  803.                                                 {% else %}
  804.                                                     {{ Product.getPrice02IncTaxMin|number_format }}
  805.                                                 {% endif %}
  806.                                                 円</span>
  807.                                                 (税込)
  808.                                             </p>
  809.                                         </div>
  810.                                     </div>
  811.                                 </div>
  812.                             </a>
  813.                             <!-- 買い物かご -->
  814.                             <div class=\"productlist-cartarea only-pc\">
  815. \t\t\t\t\t\t\t\t <!--★商品詳細を見る★-->
  816. \t\t\t                    <div class=\"detail_btn\">
  817. \t\t\t                        <a class=\"rgreen-btn__s\" href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  818. \t\t\t                            商品詳細を見る
  819. \t\t\t                        </a>
  820. \t\t\t                    </div>
  821.                             {% if Product.stock_find %}
  822.                                 {% set form = forms[Product.id] %}
  823.                                 <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  824.                                     <div class=\"ec-productRole__actions\">
  825.                                         {% if form.classcategory_id1 is defined %}
  826.                                         <div class=\"classlist\">
  827.                                             <div class=\"ec-select\">
  828.                                                 {{form.classcategory_id1.vars.label }}:
  829.                                                 {{ form_widget(form.classcategory_id1) }}
  830.                                                 {{ form_errors(form.classcategory_id1) }}
  831.                                             </div>
  832.                                             {% if form.classcategory_id2 is defined %}
  833.                                                 <div class=\"ec-select\">
  834.                                                     {{form.classcategory_id2.vars.label }}:
  835.                                                     {{ form_widget(form.classcategory_id2) }}
  836.                                                     {{ form_errors(form.classcategory_id2) }}
  837.                                                 </div>
  838.                                             {% endif %}
  839.                                         </div>
  840.                                         {% endif %}
  841.                                         <div class=\"ec-numberInput\"><span>数量:</span>
  842.                                             {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  843.                                             {{ form_errors(form.quantity) }}
  844.                                         </div>
  845.                                     </div>
  846.                                     {{ form_rest(form) }}
  847.                                 </form>
  848.                                 <div class=\"ec-productRole__btn\">
  849.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart orange-btn__s\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  850.                                         カゴに入れる
  851.                                     </button>
  852.                                 </div>
  853.                             {% else %}
  854.                                 <div class=\"attention\">
  855.                                     {% set targettag = [] %}
  856.                                     {% for tag in Product.Tags %}
  857.                                         {% set targettag = targettag|merge([tag.id]) %}
  858.                                     {% endfor %}
  859.                                     {% if '7' in targettag %}
  860.                                     申し訳ございませんが、本商品は絶版となりました。
  861.                                     {% elseif '5' in targettag %}
  862.                                     この商品は発売前のため購入いただけません。
  863.                                     {% else %}
  864.                                     申し訳ございませんが、本商品は只今品切れ中です。
  865.                                     {% endif %}
  866.                                 </div>
  867.                             {% endif %}
  868.                             </div>
  869.                         </li>
  870.                     {% endfor %}
  871.                 </ul>
  872.             </div>
  873.             <div class=\"ec-modal\">
  874.                 <div class=\"ec-modal-overlay\">
  875.                     <div class=\"ec-modal-wrap\">
  876.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  877.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  878.                         <div class=\"ec-modal-box\">
  879.                             <div class=\"ec-role\">
  880.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  881.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  882.                             </div>
  883.                         </div>
  884.                     </div>
  885.                 </div>
  886.             </div>
  887.             {% if pagination.totalItemCount > 0 %}
  888.             <div class=\"ec-pagerRole\">
  889.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  890.             </div>
  891.             {% endif %}
  892.         {% endif %}
  893.     {% endif %}
  894. {% endblock %}
  895. ""ProductTagPage42/list.twig""/home/higashiyamashobo/www/higashiyamashobo.jpn.org/ec-cube/app/template/default/ProductTagPage42/list.twig");
  896.     }
  897.     
  898.     public function checkSecurity()
  899.     {
  900.         static $tags = array("set" => 3"for" => 8"if" => 9"include" => 262);
  901.         static $filters = array("escape" => 9"raw" => 9"trans" => 37"length" => 91"no_image_product" => 146"number_format" => 169"merge" => 229);
  902.         static $functions = array("class_categories_as_json" => 9"url" => 65"form_widget" => 128"asset" => 146"form_errors" => 202"form_rest" => 218);
  903.         try {
  904.             $this->sandbox->checkSecurity(
  905.                 ['set''for''if''include'],
  906.                 ['escape''raw''trans''length''no_image_product''number_format''merge'],
  907.                 ['class_categories_as_json''url''form_widget''asset''form_errors''form_rest']
  908.             );
  909.         } catch (SecurityError $e) {
  910.             $e->setSourceContext($this->source);
  911.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  912.                 $e->setTemplateLine($tags[$e->getTagName()]);
  913.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  914.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  915.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  916.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  917.             }
  918.             throw $e;
  919.         }
  920.     }
  921. }