var/cache/dev/twig/b5/b5c882345c2b56313e5aa46efdc9997d.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_9c25f3311b3a8f93fa80076ef0ead66b extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 11
  32.         return "default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  41.         // line 13
  42.         $context["body_class"] = "product_page";
  43.         // line 11
  44.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 15
  52.     public function block_javascript($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  59.         // line 16
  60.         echo "    <script>
  61.         eccube.productsClassCategories = {
  62.             ";
  63.         // line 18
  64.         $context['_parent'] = $context;
  65.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'18$this->source); })()));
  66.         $context['loop'] = [
  67.           'parent' => $context['_parent'],
  68.           'index0' => 0,
  69.           'index'  => 1,
  70.           'first'  => true,
  71.         ];
  72.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  73.             $length count($context['_seq']);
  74.             $context['loop']['revindex0'] = $length 1;
  75.             $context['loop']['revindex'] = $length;
  76.             $context['loop']['length'] = $length;
  77.             $context['loop']['last'] = === $length;
  78.         }
  79.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  80.             // line 19
  81.             echo "            \"";
  82.             echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue19), 19$this->source), "js"), "html"nulltrue);
  83.             echo "\": ";
  84.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 19$this->source));
  85.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue19) == false)) {
  86.                 echo ", ";
  87.             }
  88.             // line 20
  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 21
  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 47
  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 75
  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 82
  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.     <script >
  182.         \$('img.check').on('error', function() {
  183.             console.log(\"画像が読み込まれませんでした\");
  184.             \$(this).addClass('d-none');
  185.         });
  186.     </script>
  187.     <script>
  188.         function getParam(name, url) {
  189.             if (!url) url = window.location.href;
  190.             name = name.replace(/[\\[\\]]/g, \"\\\\\$&\");
  191.             var regex = new RegExp(\"[?&]\" + name + \"(=([^&#]*)|&|#|\$)\"),
  192.                 results = regex.exec(url);
  193.             if (!results) return null;
  194.             if (!results[2]) return '';
  195.             return decodeURIComponent(results[2].replace(/\\+/g, \" \"));
  196.         }
  197.         \$(function() {
  198.             var search_category = '<div class=\"ec-headerSearch__category d-none\">';
  199.             search_category += '<div class=\"ec-select ec-select_search\">';
  200.             search_category += '<select name=\"category_id\" class=\"category_id\">';
  201.             search_category += '<option value=\"\">全ての商品</option>';
  202.             if(getParam('category_id')) {
  203.                 if(getParam('category_id') == 1) {
  204.                     search_category += '<option value=\"1\" selected=\"selected\">Marriage ring 結婚指輪</option>';
  205.                     search_category += '<option value=\"2\">Engagement ring 婚約指輪</option>'; 
  206.                 } else if(getParam('category_id') == 2) {
  207.                     search_category += '<option value=\"1\">Marriage ring 結婚指輪</option>';
  208.                     search_category += '<option value=\"2\" selected=\"selected\">Engagement ring 婚約指輪</option>'; 
  209.                 }
  210.             }
  211.             search_category += '</select></div></div>';
  212.             \$('.ec-layoutRole__main .ec-headerSearch__keyword').before(search_category);
  213.         });
  214.     </script>
  215. ";
  216.         
  217.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  218.         
  219.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  220.     }
  221.     // line 134
  222.     public function block_main($context, array $blocks = [])
  223.     {
  224.         $macros $this->macros;
  225.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  226.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  227.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  228.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  229.         // line 135
  230.         echo "    ";
  231.         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.'135$this->source); })()), "category_id", [], "any"falsefalsetrue135), "vars", [], "any"falsefalsetrue135), "errors", [], "any"falsefalsetrue135)) > 0)) {
  232.             // line 136
  233.             echo "        <div class=\"ec-searchnavRole\">
  234.             <p class=\"errormsg text-danger\">";
  235.             // line 137
  236.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  237.             echo "</p>
  238.         </div>
  239.     ";
  240.         } else {
  241.             // line 140
  242.             echo "        ";
  243.             // line 141
  244.             echo "        ";
  245.             if (( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'141$this->source); })())) && (null === 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.'141$this->source); })()), "request", [], "any"falsefalsetrue141), "query", [], "any"falsefalsetrue141), "get", [=> "name"], "method"falsefalsetrue141)))) {
  246.                 // line 142
  247.                 echo "            <div class=\"ec-role\">
  248.                 <div class=\"ec-pageHeader text-center\">
  249.                     <h1 class=\"border-bottom-0 fw-normal d-inline-block\">";
  250.                 // line 144
  251.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'144$this->source); })()), "name", [], "any"falsefalsetrue144), 144$this->source), "html"nulltrue);
  252.                 echo "</h1>
  253.                 </div>
  254.             </div>
  255.         ";
  256.             }
  257.             // line 148
  258.             echo "
  259.         <div class=\"ec-searchnavRole\">
  260.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  261.                 ";
  262.             // line 151
  263.             $context['_parent'] = $context;
  264.             $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.'151$this->source); })()));
  265.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  266.                 // line 152
  267.                 echo "                    <input type=\"hidden\" id=\"";
  268.                 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"falsefalsetrue152), "id", [], "any"falsefalsetrue152), 152$this->source), "html"nulltrue);
  269.                 echo "\"
  270.                            name=\"";
  271.                 // line 153
  272.                 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"falsefalsetrue153), "full_name", [], "any"falsefalsetrue153), 153$this->source), "html"nulltrue);
  273.                 echo "\"
  274.                            ";
  275.                 // line 154
  276.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue154), "value", [], "any"falsefalsetrue154))) {
  277.                     echo "value=\"";
  278.                     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"falsefalsetrue154), "value", [], "any"falsefalsetrue154), 154$this->source), "html"nulltrue);
  279.                     echo "\" ";
  280.                 }
  281.                 echo "/>
  282.                 ";
  283.             }
  284.             $_parent $context['_parent'];
  285.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  286.             $context array_intersect_key($context$_parent) + $_parent;
  287.             // line 156
  288.             echo "            </form>
  289.             <div class=\"ec-headerNaviRole__search\">
  290.                 ";
  291.             // line 158
  292.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  293.             echo "
  294.             </div>
  295.             <div class=\"ec-searchnavRole__topicpath\">
  296.                 <ol class=\"ec-topicpath\">
  297.                     <li class=\"ec-topicpath__item\"><a href=\"";
  298.             // line 162
  299.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  300.             echo "\">";
  301.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  302.             echo "</a>
  303.                     </li>
  304.                     ";
  305.             // line 164
  306.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'164$this->source); })()))) {
  307.                 // line 165
  308.                 echo "                        ";
  309.                 $context['_parent'] = $context;
  310.                 $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.'165$this->source); })()), "path", [], "any"falsefalsetrue165));
  311.                 $context['loop'] = [
  312.                   'parent' => $context['_parent'],
  313.                   'index0' => 0,
  314.                   'index'  => 1,
  315.                   'first'  => true,
  316.                 ];
  317.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  318.                     $length count($context['_seq']);
  319.                     $context['loop']['revindex0'] = $length 1;
  320.                     $context['loop']['revindex'] = $length;
  321.                     $context['loop']['length'] = $length;
  322.                     $context['loop']['last'] = === $length;
  323.                 }
  324.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  325.                     // line 166
  326.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  327.                             <li class=\"ec-topicpath__item";
  328.                     // line 167
  329.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue167)) {
  330.                         echo "--active";
  331.                     }
  332.                     echo "\"><a
  333.                                         href=\"";
  334.                     // line 168
  335.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  336.                     echo "?category_id=";
  337.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsetrue168), 168$this->source), "html"nulltrue);
  338.                     echo "\">";
  339.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsetrue168), 168$this->source), "html"nulltrue);
  340.                     echo "</a>
  341.                             </li>
  342.                         ";
  343.                     ++$context['loop']['index0'];
  344.                     ++$context['loop']['index'];
  345.                     $context['loop']['first'] = false;
  346.                     if (isset($context['loop']['length'])) {
  347.                         --$context['loop']['revindex0'];
  348.                         --$context['loop']['revindex'];
  349.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  350.                     }
  351.                 }
  352.                 $_parent $context['_parent'];
  353.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  354.                 $context array_intersect_key($context$_parent) + $_parent;
  355.                 // line 171
  356.                 echo "                    ";
  357.             }
  358.             // line 172
  359.             echo "                    ";
  360.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'172$this->source); })()), "vars", [], "any"falsefalsetrue172), "value", [], "any"falsefalsetrue172) && 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.'172$this->source); })()), "vars", [], "any"falsefalsetrue172), "value", [], "any"falsefalsetrue172), "name", [], "any"falsefalsetrue172))) {
  361.                 // line 173
  362.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  363.                         <li class=\"ec-topicpath__item\">";
  364.                 // line 174
  365.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("「%name%」の検索結果", ["%name%" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'174$this->source); })()), "vars", [], "any"falsefalsetrue174), "value", [], "any"falsefalsetrue174), "name", [], "any"falsefalsetrue174)]), "html"nulltrue);
  366.                 echo "</li>
  367.                     ";
  368.             }
  369.             // line 176
  370.             echo "                </ol>
  371.             </div>
  372.             <div class=\"ec-searchnavRole__infos\">
  373.                 <div class=\"ec-searchnavRole__counter\">
  374.                     ";
  375.             // line 180
  376.             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.'180$this->source); })()), "totalItemCount", [], "any"falsefalsetrue180) > 0)) {
  377.                 // line 181
  378.                 echo "                        ";
  379.                 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.'181$this->source); })()), "totalItemCount", [], "any"falsefalsetrue181)]);
  380.                 echo "
  381.                     ";
  382.             } else {
  383.                 // line 183
  384.                 echo "                        <span>";
  385.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  386.                 echo "</span>
  387.                     ";
  388.             }
  389.             // line 185
  390.             echo "                </div>
  391.                 ";
  392.             // line 186
  393.             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.'186$this->source); })()), "totalItemCount", [], "any"falsefalsetrue186) > 0)) {
  394.                 // line 187
  395.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  396.                         <div class=\"ec-select\">
  397.                             ";
  398.                 // line 189
  399.                 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.'189$this->source); })()), "disp_number", [], "any"falsefalsetrue189), 189$this->source), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  400.                 echo "
  401.                             ";
  402.                 // line 190
  403.                 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.'190$this->source); })()), "orderby", [], "any"falsefalsetrue190), 190$this->source), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  404.                 echo "
  405.                         </div>
  406.                     </div>
  407.                 ";
  408.             }
  409.             // line 194
  410.             echo "            </div>
  411.         </div>
  412.         ";
  413.             // line 196
  414.             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.'196$this->source); })()), "totalItemCount", [], "any"falsefalsetrue196) > 0)) {
  415.                 // line 197
  416.                 echo "            <div class=\"ec-shelfRole\">
  417.                 <ul class=\"row flex-wrap ps-0\">
  418.                     ";
  419.                 // line 200
  420.                 echo "                    ";
  421.                 if ((twig_get_attribute($this->env$this->sourcetwig_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.'200$this->source); })()), "paginationData", [], "any"falsefalsetrue200), "current", [], "any"falsefalsetrue200) == 1)) {
  422.                     // line 201
  423.                     echo "                        ";
  424.                     $context["banner_index"] = 0;
  425.                     // line 202
  426.                     echo "                    ";
  427.                 } else {
  428.                     // line 203
  429.                     echo "                        ";
  430.                     // line 204
  431.                     echo "                        ";
  432.                     $context["banner_per_page"] = twig_round((twig_get_attribute($this->env$this->sourcetwig_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.'204$this->source); })()), "paginationData", [], "any"falsefalsetrue204), "numItemsPerPage", [], "any"falsefalsetrue204) / 8), 0"floor");
  433.                     // line 205
  434.                     echo "                        ";
  435.                     // line 206
  436.                     echo "                        ";
  437.                     $context["banner_displayed"] = ((isset($context["banner_per_page"]) || array_key_exists("banner_per_page"$context) ? $context["banner_per_page"] : (function () { throw new RuntimeError('Variable "banner_per_page" does not exist.'206$this->source); })()) * twig_get_attribute($this->env$this->sourcetwig_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.'206$this->source); })()), "paginationData", [], "any"falsefalsetrue206), "previous", [], "any"falsefalsetrue206));
  438.                     // line 207
  439.                     echo "                        ";
  440.                     if (((isset($context["banner_displayed"]) || array_key_exists("banner_displayed"$context) ? $context["banner_displayed"] : (function () { throw new RuntimeError('Variable "banner_displayed" does not exist.'207$this->source); })()) < twig_length_filter($this->env, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'207$this->source); })())))) {
  441.                         // line 208
  442.                         echo "                            ";
  443.                         $context["banner_index"] = (isset($context["banner_displayed"]) || array_key_exists("banner_displayed"$context) ? $context["banner_displayed"] : (function () { throw new RuntimeError('Variable "banner_displayed" does not exist.'208$this->source); })());
  444.                         // line 209
  445.                         echo "                        ";
  446.                     } elseif (((isset($context["banner_displayed"]) || array_key_exists("banner_displayed"$context) ? $context["banner_displayed"] : (function () { throw new RuntimeError('Variable "banner_displayed" does not exist.'209$this->source); })()) == twig_length_filter($this->env, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'209$this->source); })())))) {
  447.                         // line 210
  448.                         echo "                            ";
  449.                         $context["banner_index"] = 0;
  450.                         // line 211
  451.                         echo "                        ";
  452.                     } else {
  453.                         // line 212
  454.                         echo "                            ";
  455.                         $context["banner_index"] = ((isset($context["banner_displayed"]) || array_key_exists("banner_displayed"$context) ? $context["banner_displayed"] : (function () { throw new RuntimeError('Variable "banner_displayed" does not exist.'212$this->source); })()) % twig_length_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'212$this->source); })()), 212$this->source)));
  456.                         // line 213
  457.                         echo "                        ";
  458.                     }
  459.                     // line 214
  460.                     echo "                    ";
  461.                 }
  462.                 // line 215
  463.                 echo "                    ";
  464.                 $context['_parent'] = $context;
  465.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'215$this->source); })()));
  466.                 $context['loop'] = [
  467.                   'parent' => $context['_parent'],
  468.                   'index0' => 0,
  469.                   'index'  => 1,
  470.                   'first'  => true,
  471.                 ];
  472.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  473.                     $length count($context['_seq']);
  474.                     $context['loop']['revindex0'] = $length 1;
  475.                     $context['loop']['revindex'] = $length;
  476.                     $context['loop']['length'] = $length;
  477.                     $context['loop']['last'] = === $length;
  478.                 }
  479.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  480.                     // line 216
  481.                     echo "                        <li class=\"col-6 col-md-3 mb-3\">
  482.                             <a href=\"";
  483.                     // line 217
  484.                     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"falsefalsetrue217)]), "html"nulltrue);
  485.                     echo "\">
  486.                                 <p class=\"ec-shelfGrid__item-image\">
  487.                                     <img src=\"";
  488.                     // line 219
  489.                     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"falsefalsetrue219), 219$this->source)), "save_image"), "html"nulltrue);
  490.                     echo "\" alt=\"";
  491.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue219), 219$this->source), "html"nulltrue);
  492.                     echo "\" ";
  493.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue219) > 5)) {
  494.                         echo " loading=\"lazy\"";
  495.                     }
  496.                     echo ">
  497.                                 </p>
  498.                                 <p>";
  499.                     // line 221
  500.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue221), 221$this->source), "html"nulltrue);
  501.                     echo "</p>
  502.                                 ";
  503.                     // line 225
  504.                     echo "                                <p class=\"price02-default\">
  505.                                     ";
  506.                     // line 226
  507.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsetrue226)) {
  508.                         // line 227
  509.                         echo "                                        ";
  510.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsetrue227) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsetrue227))) {
  511.                             // line 228
  512.                             echo "                                            ";
  513.                             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"falsefalsetrue228), 228$this->source)), "html"nulltrue);
  514.                             echo "
  515.                                         ";
  516.                         } else {
  517.                             // line 230
  518.                             echo "                                            ";
  519.                             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"falsefalsetrue230), 230$this->source)), "html"nulltrue);
  520.                             echo " ~ ";
  521.                             // line 231
  522.                             echo "                                        ";
  523.                         }
  524.                         // line 232
  525.                         echo "                                    ";
  526.                     } else {
  527.                         // line 233
  528.                         echo "                                        ";
  529.                         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"falsefalsetrue233), 233$this->source)), "html"nulltrue);
  530.                         echo "
  531.                                     ";
  532.                     }
  533.                     // line 235
  534.                     echo "                                </p>
  535.                             </a>
  536.                             ";
  537.                     // line 239
  538.                     echo "                        </li>
  539.                         ";
  540.                     // line 240
  541.                     if (((null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'240$this->source); })())) || ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'240$this->source); })())) && (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.'240$this->source); })()), "id", [], "any"falsefalsetrue240) != 3)))) {
  542.                         // line 241
  543.                         echo "                            ";
  544.                         if ((((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue241) % 8) == 0) && (twig_length_filter($this->env, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'241$this->source); })())) <= (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'241$this->source); })())))) {
  545.                             // line 242
  546.                             echo "                                ";
  547.                             $context["banner_index"] = 0;
  548.                             echo " ";
  549.                             // line 243
  550.                             echo "                            ";
  551.                         }
  552.                         // line 244
  553.                         echo "                            ";
  554.                         if ((((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue244) % 8) == 0) && (twig_length_filter($this->env, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'244$this->source); })())) > (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'244$this->source); })())))) {
  555.                             // line 245
  556.                             echo "                                ";
  557.                             if (( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'245$this->source); })())) && (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.'245$this->source); })()), "id", [], "any"falsefalsetrue245) == 2))) {
  558.                                 // line 246
  559.                                 echo "                                    ";
  560.                                 // line 247
  561.                                 echo "                                    ";
  562.                                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'247$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'247$this->source); })()), [], "array"falsefalsetrue247), "id", [], "any"falsefalsetrue247) == 11)) {
  563.                                     // line 248
  564.                                     echo "                                        ";
  565.                                     $context["banner_index"] = ((isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'248$this->source); })()) + 1);
  566.                                     // line 249
  567.                                     echo "                                    ";
  568.                                 }
  569.                                 // line 250
  570.                                 echo "                                ";
  571.                             }
  572.                             // line 251
  573.                             echo "                                <li class=\"col-12 col-md-6 added_banner list-unstyled mb-4\">
  574.                                     ";
  575.                             // line 252
  576.                             $context["style"] = "";
  577.                             // line 253
  578.                             echo "                                    ";
  579.                             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'253$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'253$this->source); })()), [], "array"falsefalsetrue253), "link_url", [], "any"falsefalsetrue253)) {
  580.                                 // line 254
  581.                                 echo "                                        <a href=\"";
  582.                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'254$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'254$this->source); })()), [], "array"falsefalsetrue254), "link_url", [], "any"falsefalsetrue254), 254$this->source), "html"nulltrue);
  583.                                 echo "\" target=\"_blank\" rel=\"noopener\" class=\"d-flex flex-column justify-content-center h-100\" ";
  584.                                 (((isset($context["style"]) || array_key_exists("style"$context) ? $context["style"] : (function () { throw new RuntimeError('Variable "style" does not exist.'254$this->source); })())) ? (print (twig_escape_filter($this->env, (isset($context["style"]) || array_key_exists("style"$context) ? $context["style"] : (function () { throw new RuntimeError('Variable "style" does not exist.'254$this->source); })()), "html"nulltrue))) : (print ("")));
  585.                                 echo ">
  586.                                     ";
  587.                             } else {
  588.                                 // line 256
  589.                                 echo "                                        <div class=\"d-flex flex-column h-100\" ";
  590.                                 (((isset($context["style"]) || array_key_exists("style"$context) ? $context["style"] : (function () { throw new RuntimeError('Variable "style" does not exist.'256$this->source); })())) ? (print (twig_escape_filter($this->env, (isset($context["style"]) || array_key_exists("style"$context) ? $context["style"] : (function () { throw new RuntimeError('Variable "style" does not exist.'256$this->source); })()), "html"nulltrue))) : (print ("")));
  591.                                 echo ">
  592.                                     ";
  593.                             }
  594.                             // line 258
  595.                             echo "                                        ";
  596.                             // line 259
  597.                             echo "                                        ";
  598.                             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'259$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'259$this->source); })()), [], "array"falsefalsetrue259), "bg_image", [], "any"falsefalsetrue259)) {
  599.                                 // line 260
  600.                                 echo "                                            ";
  601.                                 $context["filename"] = twig_split_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'260$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'260$this->source); })()), [], "array"falsefalsetrue260), "bg_image", [], "any"falsefalsetrue260), 260$this->source), "/");
  602.                                 // line 261
  603.                                 echo "                                            <img src=\"";
  604.                                 echo twig_escape_filter($this->env, (($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("addbanner""save_image") . "/") . twig_last($this->env$this->sandbox->ensureToStringAllowed((isset($context["filename"]) || array_key_exists("filename"$context) ? $context["filename"] : (function () { throw new RuntimeError('Variable "filename" does not exist.'261$this->source); })()), 261$this->source))), "html"nulltrue);
  605.                                 echo "\">
  606.                                         ";
  607.                             }
  608.                             // line 263
  609.                             echo "                                        ";
  610.                             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'263$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'263$this->source); })()), [], "array"falsefalsetrue263), "description", [], "any"falsefalsetrue263)) {
  611.                                 // line 264
  612.                                 echo "                                            <div class=\"add_banner_desc p-2\">";
  613.                                 echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'264$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'264$this->source); })()), [], "array"falsefalsetrue264), "description", [], "any"falsefalsetrue264), 264$this->source));
  614.                                 echo "</div>
  615.                                         ";
  616.                             }
  617.                             // line 266
  618.                             echo "                                    ";
  619.                             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'266$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'266$this->source); })()), [], "array"falsefalsetrue266), "link_url", [], "any"falsefalsetrue266)) {
  620.                                 // line 267
  621.                                 echo "                                        </a>
  622.                                     ";
  623.                             } else {
  624.                                 // line 269
  625.                                 echo "                                        </div>
  626.                                     ";
  627.                             }
  628.                             // line 271
  629.                             echo "                                </li>
  630.                                 ";
  631.                             // line 272
  632.                             $context["banner_index"] = ((isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'272$this->source); })()) + 1);
  633.                             // line 273
  634.                             echo "                            ";
  635.                         }
  636.                         // line 274
  637.                         echo "                        ";
  638.                     }
  639.                     // line 275
  640.                     echo "                    ";
  641.                     ++$context['loop']['index0'];
  642.                     ++$context['loop']['index'];
  643.                     $context['loop']['first'] = false;
  644.                     if (isset($context['loop']['length'])) {
  645.                         --$context['loop']['revindex0'];
  646.                         --$context['loop']['revindex'];
  647.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  648.                     }
  649.                 }
  650.                 $_parent $context['_parent'];
  651.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  652.                 $context array_intersect_key($context$_parent) + $_parent;
  653.                 // line 276
  654.                 echo "                    
  655.                     ";
  656.                 // line 278
  657.                 echo "                    ";
  658.                 if ((twig_get_attribute($this->env$this->sourcetwig_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.'278$this->source); })()), "paginationData", [], "any"falsefalsetrue278), "endPage", [], "any"falsefalsetrue278) == twig_get_attribute($this->env$this->sourcetwig_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.'278$this->source); })()), "paginationData", [], "any"falsefalsetrue278), "current", [], "any"falsefalsetrue278))) {
  659.                     // line 279
  660.                     echo "                        ";
  661.                     $context['_parent'] = $context;
  662.                     $context['_seq'] = twig_ensure_traversable((isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'279$this->source); })()));
  663.                     $context['loop'] = [
  664.                       'parent' => $context['_parent'],
  665.                       'index0' => 0,
  666.                       'index'  => 1,
  667.                       'first'  => true,
  668.                     ];
  669.                     if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  670.                         $length count($context['_seq']);
  671.                         $context['loop']['revindex0'] = $length 1;
  672.                         $context['loop']['revindex'] = $length;
  673.                         $context['loop']['length'] = $length;
  674.                         $context['loop']['last'] = === $length;
  675.                     }
  676.                     foreach ($context['_seq'] as $context["_key"] => $context["AddBanner"]) {
  677.                         // line 280
  678.                         echo "                            ";
  679.                         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.'280$this->source); })()), "totalItemCount", [], "any"falsefalsetrue280) % 8) < twig_length_filter($this->env, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'280$this->source); })()))) && ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue280) == (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'280$this->source); })())) && (twig_length_filter($this->env, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'280$this->source); })())) > (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'280$this->source); })()))))) {
  680.                             // line 281
  681.                             echo "                                <li class=\"col-12 col-md-6 added_banner list-unstyled mb-4\">
  682.                                     ";
  683.                             // line 282
  684.                             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'282$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'282$this->source); })()), [], "array"falsefalsetrue282), "link_url", [], "any"falsefalsetrue282)) {
  685.                                 // line 283
  686.                                 echo "                                        <a href=\"";
  687.                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'283$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'283$this->source); })()), [], "array"falsefalsetrue283), "link_url", [], "any"falsefalsetrue283), 283$this->source), "html"nulltrue);
  688.                                 echo "\" target=\"_blank\" rel=\"noopener\" class=\"d-flex flex-column h-100\">
  689.                                     ";
  690.                             } else {
  691.                                 // line 285
  692.                                 echo "                                        <div class=\"d-flex flex-column h-100\">
  693.                                     ";
  694.                             }
  695.                             // line 287
  696.                             echo "                                        ";
  697.                             // line 288
  698.                             echo "                                        ";
  699.                             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'288$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'288$this->source); })()), [], "array"falsefalsetrue288), "bg_image", [], "any"falsefalsetrue288)) {
  700.                                 // line 289
  701.                                 echo "                                            ";
  702.                                 $context["filename"] = twig_split_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'289$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'289$this->source); })()), [], "array"falsefalsetrue289), "bg_image", [], "any"falsefalsetrue289), 289$this->source), "/");
  703.                                 // line 290
  704.                                 echo "                                            <img src=\"";
  705.                                 echo twig_escape_filter($this->env, (($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("addbanner""save_image") . "/") . twig_last($this->env$this->sandbox->ensureToStringAllowed((isset($context["filename"]) || array_key_exists("filename"$context) ? $context["filename"] : (function () { throw new RuntimeError('Variable "filename" does not exist.'290$this->source); })()), 290$this->source))), "html"nulltrue);
  706.                                 echo "\">
  707.                                         ";
  708.                             }
  709.                             // line 292
  710.                             echo "                                        ";
  711.                             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'292$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'292$this->source); })()), [], "array"falsefalsetrue292), "description", [], "any"falsefalsetrue292)) {
  712.                                 // line 293
  713.                                 echo "                                            <div class=\"add_banner_desc p-2\">";
  714.                                 echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'293$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'293$this->source); })()), [], "array"falsefalsetrue293), "description", [], "any"falsefalsetrue293), 293$this->source));
  715.                                 echo "</div>
  716.                                         ";
  717.                             }
  718.                             // line 295
  719.                             echo "                                    ";
  720.                             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["AddBanners"]) || array_key_exists("AddBanners"$context) ? $context["AddBanners"] : (function () { throw new RuntimeError('Variable "AddBanners" does not exist.'295$this->source); })()), (isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'295$this->source); })()), [], "array"falsefalsetrue295), "link_url", [], "any"falsefalsetrue295)) {
  721.                                 // line 296
  722.                                 echo "                                        </a>
  723.                                     ";
  724.                             } else {
  725.                                 // line 298
  726.                                 echo "                                        </div>
  727.                                     ";
  728.                             }
  729.                             // line 300
  730.                             echo "                                </li>
  731.                                 ";
  732.                             // line 301
  733.                             $context["banner_index"] = ((isset($context["banner_index"]) || array_key_exists("banner_index"$context) ? $context["banner_index"] : (function () { throw new RuntimeError('Variable "banner_index" does not exist.'301$this->source); })()) + 1);
  734.                             // line 302
  735.                             echo "                            ";
  736.                         }
  737.                         // line 303
  738.                         echo "                        ";
  739.                         ++$context['loop']['index0'];
  740.                         ++$context['loop']['index'];
  741.                         $context['loop']['first'] = false;
  742.                         if (isset($context['loop']['length'])) {
  743.                             --$context['loop']['revindex0'];
  744.                             --$context['loop']['revindex'];
  745.                             $context['loop']['last'] = === $context['loop']['revindex0'];
  746.                         }
  747.                     }
  748.                     $_parent $context['_parent'];
  749.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['AddBanner'], $context['_parent'], $context['loop']);
  750.                     $context array_intersect_key($context$_parent) + $_parent;
  751.                     // line 304
  752.                     echo "                    ";
  753.                 }
  754.                 // line 305
  755.                 echo "                </ul>
  756.             </div>
  757.             <div class=\"ec-modal\">
  758.                 <div class=\"ec-modal-overlay\">
  759.                     <div class=\"ec-modal-wrap\">
  760.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  761.                 // line 310
  762.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  763.                 echo "\" alt=\"\"/></span></span>
  764.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  765.                 // line 311
  766.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  767.                 echo "</div>
  768.                         <div class=\"ec-modal-box\">
  769.                             <div class=\"ec-role\">
  770.                                 <span class=\"ec-inlineBtn--cancel\">";
  771.                 // line 314
  772.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  773.                 echo "</span>
  774.                                 <a href=\"";
  775.                 // line 315
  776.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  777.                 echo "\" class=\"ec-inlineBtn--action\">";
  778.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  779.                 echo "</a>
  780.                             </div>
  781.                         </div>
  782.                     </div>
  783.                 </div>
  784.             </div>
  785.             <div class=\"ec-pagerRole\">
  786.                 ";
  787.                 // line 322
  788.                 $this->loadTemplate("pager.twig""Product/list.twig"322)->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.'322$this->source); })()), "paginationData", [], "any"falsefalsetrue322)]));
  789.                 // line 323
  790.                 echo "            </div>
  791.         ";
  792.             }
  793.             // line 325
  794.             echo "    ";
  795.         }
  796.         
  797.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  798.         
  799.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  800.     }
  801.     public function getTemplateName()
  802.     {
  803.         return "Product/list.twig";
  804.     }
  805.     public function isTraitable()
  806.     {
  807.         return false;
  808.     }
  809.     public function getDebugInfo()
  810.     {
  811.         return array (  822 => 325,  818 => 323,  816 => 322,  804 => 315,  800 => 314,  794 => 311,  790 => 310,  783 => 305,  780 => 304,  766 => 303,  763 => 302,  761 => 301,  758 => 300,  754 => 298,  750 => 296,  747 => 295,  741 => 293,  738 => 292,  732 => 290,  729 => 289,  726 => 288,  724 => 287,  720 => 285,  714 => 283,  712 => 282,  709 => 281,  706 => 280,  688 => 279,  685 => 278,  682 => 276,  668 => 275,  665 => 274,  662 => 273,  660 => 272,  657 => 271,  653 => 269,  649 => 267,  646 => 266,  640 => 264,  637 => 263,  631 => 261,  628 => 260,  625 => 259,  623 => 258,  617 => 256,  609 => 254,  606 => 253,  604 => 252,  601 => 251,  598 => 250,  595 => 249,  592 => 248,  589 => 247,  587 => 246,  584 => 245,  581 => 244,  578 => 243,  574 => 242,  571 => 241,  569 => 240,  566 => 239,  561 => 235,  555 => 233,  552 => 232,  549 => 231,  545 => 230,  539 => 228,  536 => 227,  534 => 226,  531 => 225,  527 => 221,  516 => 219,  511 => 217,  508 => 216,  490 => 215,  487 => 214,  484 => 213,  481 => 212,  478 => 211,  475 => 210,  472 => 209,  469 => 208,  466 => 207,  463 => 206,  461 => 205,  458 => 204,  456 => 203,  453 => 202,  450 => 201,  447 => 200,  443 => 197,  441 => 196,  437 => 194,  430 => 190,  426 => 189,  422 => 187,  420 => 186,  417 => 185,  411 => 183,  405 => 181,  403 => 180,  397 => 176,  392 => 174,  389 => 173,  386 => 172,  383 => 171,  362 => 168,  356 => 167,  353 => 166,  335 => 165,  333 => 164,  326 => 162,  319 => 158,  315 => 156,  303 => 154,  299 => 153,  294 => 152,  290 => 151,  285 => 148,  278 => 144,  274 => 142,  271 => 141,  269 => 140,  263 => 137,  260 => 136,  257 => 135,  247 => 134,  186 => 82,  176 => 75,  145 => 47,  117 => 21,  103 => 20,  95 => 19,  78 => 18,  74 => 16,  64 => 15,  53 => 11,  51 => 13,  38 => 11,);
  812.     }
  813.     public function getSourceContext()
  814.     {
  815.         return new Source("{#
  816. This file is part of EC-CUBE
  817. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  818. http://www.ec-cube.co.jp/
  819. For the full copyright and license information, please view the LICENSE
  820. file that was distributed with this source code.
  821. #}
  822. {% extends 'default_frame.twig' %}
  823. {% set body_class = 'product_page' %}
  824. {% block javascript %}
  825.     <script>
  826.         eccube.productsClassCategories = {
  827.             {% for Product in pagination %}
  828.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  829.             {% endfor %}
  830.         };
  831.         \$(function() {
  832.             // 表示件数を変更
  833.             \$('.disp-number').change(function() {
  834.                 var dispNumber = \$(this).val();
  835.                 \$('#disp_number').val(dispNumber);
  836.                 \$('#pageno').val(1);
  837.                 \$(\"#form1\").submit();
  838.             });
  839.             // 並び順を変更
  840.             \$('.order-by').change(function() {
  841.                 var orderBy = \$(this).val();
  842.                 \$('#orderby').val(orderBy);
  843.                 \$('#pageno').val(1);
  844.                 \$(\"#form1\").submit();
  845.             });
  846.             \$('.add-cart').on('click', function(e) {
  847.                 var \$form = \$(this).parents('li').find('form');
  848.                 // 個数フォームのチェック
  849.                 var \$quantity = \$form.parent().find('.quantity');
  850.                 if (\$quantity.val() < 1) {
  851.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  852.                     setTimeout(function() {
  853.                         loadingOverlay('hide');
  854.                     }, 100);
  855.                     return true;
  856.                 } else {
  857.                     \$quantity[0].setCustomValidity('');
  858.                 }
  859.                 e.preventDefault();
  860.                 \$.ajax({
  861.                     url: \$form.attr('action'),
  862.                     type: \$form.attr('method'),
  863.                     data: \$form.serialize(),
  864.                     dataType: 'json',
  865.                     beforeSend: function(xhr, settings) {
  866.                         // Buttonを無効にする
  867.                         \$('.add-cart').prop('disabled', true);
  868.                     }
  869.                 }).done(function(data) {
  870.                     // レスポンス内のメッセージをalertで表示
  871.                     \$.each(data.messages, function() {
  872.                         \$('#ec-modal-header').text(this);
  873.                     });
  874.                     \$('.ec-modal').show()
  875.                     // カートブロックを更新する
  876.                     \$.ajax({
  877.                         url: '{{ url('block_cart') }}',
  878.                         type: 'GET',
  879.                         dataType: 'html'
  880.                     }).done(function(html) {
  881.                         \$('.ec-headerRole__cart').html(html);
  882.                     });
  883.                 }).fail(function(data) {
  884.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  885.                 }).always(function(data) {
  886.                     // Buttonを有効にする
  887.                     \$('.add-cart').prop('disabled', false);
  888.                 });
  889.             });
  890.         });
  891.         \$('.ec-modal-wrap').on('click', function(e) {
  892.             // モーダル内の処理は外側にバブリングさせない
  893.             e.stopPropagation();
  894.         });
  895.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  896.             \$('.ec-modal').hide()
  897.         });
  898.     </script>
  899.     <script >
  900.         \$('img.check').on('error', function() {
  901.             console.log(\"画像が読み込まれませんでした\");
  902.             \$(this).addClass('d-none');
  903.         });
  904.     </script>
  905.     <script>
  906.         function getParam(name, url) {
  907.             if (!url) url = window.location.href;
  908.             name = name.replace(/[\\[\\]]/g, \"\\\\\$&\");
  909.             var regex = new RegExp(\"[?&]\" + name + \"(=([^&#]*)|&|#|\$)\"),
  910.                 results = regex.exec(url);
  911.             if (!results) return null;
  912.             if (!results[2]) return '';
  913.             return decodeURIComponent(results[2].replace(/\\+/g, \" \"));
  914.         }
  915.         \$(function() {
  916.             var search_category = '<div class=\"ec-headerSearch__category d-none\">';
  917.             search_category += '<div class=\"ec-select ec-select_search\">';
  918.             search_category += '<select name=\"category_id\" class=\"category_id\">';
  919.             search_category += '<option value=\"\">全ての商品</option>';
  920.             if(getParam('category_id')) {
  921.                 if(getParam('category_id') == 1) {
  922.                     search_category += '<option value=\"1\" selected=\"selected\">Marriage ring 結婚指輪</option>';
  923.                     search_category += '<option value=\"2\">Engagement ring 婚約指輪</option>'; 
  924.                 } else if(getParam('category_id') == 2) {
  925.                     search_category += '<option value=\"1\">Marriage ring 結婚指輪</option>';
  926.                     search_category += '<option value=\"2\" selected=\"selected\">Engagement ring 婚約指輪</option>'; 
  927.                 }
  928.             }
  929.             search_category += '</select></div></div>';
  930.             \$('.ec-layoutRole__main .ec-headerSearch__keyword').before(search_category);
  931.         });
  932.     </script>
  933. {% endblock %}
  934. {% block main %}
  935.     {% if search_form.category_id.vars.errors|length > 0 %}
  936.         <div class=\"ec-searchnavRole\">
  937.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  938.         </div>
  939.     {% else %}
  940.         {# カテゴリページかつ検索欄にキーワードをいれていない場合 #}
  941.         {% if Category is not null and app.request.query.get('name') is null %}
  942.             <div class=\"ec-role\">
  943.                 <div class=\"ec-pageHeader text-center\">
  944.                     <h1 class=\"border-bottom-0 fw-normal d-inline-block\">{{ Category.name }}</h1>
  945.                 </div>
  946.             </div>
  947.         {% endif %}
  948.         <div class=\"ec-searchnavRole\">
  949.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  950.                 {% for item in search_form %}
  951.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  952.                            name=\"{{ item.vars.full_name }}\"
  953.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  954.                 {% endfor %}
  955.             </form>
  956.             <div class=\"ec-headerNaviRole__search\">
  957.                 {{ render(path('block_search_product')) }}
  958.             </div>
  959.             <div class=\"ec-searchnavRole__topicpath\">
  960.                 <ol class=\"ec-topicpath\">
  961.                     <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  962.                     </li>
  963.                     {% if Category is not null %}
  964.                         {% for Path in Category.path %}
  965.                             <li class=\"ec-topicpath__divider\">|</li>
  966.                             <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
  967.                                         href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  968.                             </li>
  969.                         {% endfor %}
  970.                     {% endif %}
  971.                     {% if search_form.vars.value and search_form.vars.value.name %}
  972.                         <li class=\"ec-topicpath__divider\">|</li>
  973.                         <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  974.                     {% endif %}
  975.                 </ol>
  976.             </div>
  977.             <div class=\"ec-searchnavRole__infos\">
  978.                 <div class=\"ec-searchnavRole__counter\">
  979.                     {% if pagination.totalItemCount > 0 %}
  980.                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  981.                     {% else %}
  982.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  983.                     {% endif %}
  984.                 </div>
  985.                 {% if pagination.totalItemCount > 0 %}
  986.                     <div class=\"ec-searchnavRole__actions\">
  987.                         <div class=\"ec-select\">
  988.                             {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  989.                             {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  990.                         </div>
  991.                     </div>
  992.                 {% endif %}
  993.             </div>
  994.         </div>
  995.         {% if pagination.totalItemCount > 0 %}
  996.             <div class=\"ec-shelfRole\">
  997.                 <ul class=\"row flex-wrap ps-0\">
  998.                     {# バナー表示用インデックス #}
  999.                     {% if pagination.paginationData.current == 1 %}
  1000.                         {% set banner_index = 0 %}
  1001.                     {% else %}
  1002.                         {# 1ページあたりのバナー表示数 #}
  1003.                         {% set banner_per_page = (pagination.paginationData.numItemsPerPage / 8)|round(0, 'floor') %}
  1004.                         {# 既に何個のバナーを表示したか #}
  1005.                         {% set banner_displayed = banner_per_page * pagination.paginationData.previous %}
  1006.                         {% if banner_displayed < AddBanners|length %}
  1007.                             {% set banner_index = banner_displayed %}
  1008.                         {% elseif banner_displayed == AddBanners|length %}
  1009.                             {% set banner_index = 0 %}
  1010.                         {% else %}
  1011.                             {% set banner_index = (banner_displayed % AddBanners|length) %}
  1012.                         {% endif %}
  1013.                     {% endif %}
  1014.                     {% for Product in pagination %}
  1015.                         <li class=\"col-6 col-md-3 mb-3\">
  1016.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  1017.                                 <p class=\"ec-shelfGrid__item-image\">
  1018.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  1019.                                 </p>
  1020.                                 <p>{{ Product.name }}</p>
  1021.                                 {#{% if Product.description_list %}
  1022.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  1023.                                 {% endif %}#}
  1024.                                 <p class=\"price02-default\">
  1025.                                     {% if Product.hasProductClass %}
  1026.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  1027.                                             {{ Product.getPrice02IncTaxMin|price }}
  1028.                                         {% else %}
  1029.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {#{{ Product.getPrice02IncTaxMax|price }}#}
  1030.                                         {% endif %}
  1031.                                     {% else %}
  1032.                                         {{ Product.getPrice02IncTaxMin|price }}
  1033.                                     {% endif %}
  1034.                                 </p>
  1035.                             </a>
  1036.                             {# ここにあったカートボタンは削除 #}
  1037.                         </li>
  1038.                         {% if Category is null or (Category is not null and Category.id != 3) %}{# アニバーサリージュエリー以外の場合バナーを表示 #}
  1039.                             {% if loop.index % 8 == 0 and AddBanners|length <= banner_index %}{# バナーが少ない場合 #}
  1040.                                 {% set banner_index = 0 %} {# もう一度最初から表示する #}
  1041.                             {% endif %}
  1042.                             {% if loop.index % 8 == 0 and AddBanners|length > banner_index %}{# 8商品ごとにバナーを表示 #}
  1043.                                 {% if Category is not null and Category.id == 2 %}
  1044.                                     {# 婚約指輪の場合はid11のバナーは表示しない #}
  1045.                                     {% if AddBanners[banner_index].id == 11 %}
  1046.                                         {% set banner_index = banner_index + 1 %}
  1047.                                     {% endif %}
  1048.                                 {% endif %}
  1049.                                 <li class=\"col-12 col-md-6 added_banner list-unstyled mb-4\">
  1050.                                     {% set style = \"\" %}
  1051.                                     {% if AddBanners[banner_index].link_url %}
  1052.                                         <a href=\"{{ AddBanners[banner_index].link_url }}\" target=\"_blank\" rel=\"noopener\" class=\"d-flex flex-column justify-content-center h-100\" {{ style ? style : \"\" }}>
  1053.                                     {% else %}
  1054.                                         <div class=\"d-flex flex-column h-100\" {{ style ? style : \"\" }}>
  1055.                                     {% endif %}
  1056.                                         {#<h5>{{ AddBanners[banner_index].name }}</h5>#}{# 画像だけの場合もあるだろうから必須項目の「名称」は表示しない #}
  1057.                                         {% if AddBanners[banner_index].bg_image %}
  1058.                                             {% set filename = AddBanners[banner_index].bg_image|split('/') %}
  1059.                                             <img src=\"{{ asset('addbanner' ,'save_image') ~ \"/\" ~ filename|last }}\">
  1060.                                         {% endif %}
  1061.                                         {% if AddBanners[banner_index].description %}
  1062.                                             <div class=\"add_banner_desc p-2\">{{ AddBanners[banner_index].description|raw|nl2br }}</div>
  1063.                                         {% endif %}
  1064.                                     {% if AddBanners[banner_index].link_url %}
  1065.                                         </a>
  1066.                                     {% else %}
  1067.                                         </div>
  1068.                                     {% endif %}
  1069.                                 </li>
  1070.                                 {% set banner_index = banner_index + 1 %}
  1071.                             {% endif %}
  1072.                         {% endif %}
  1073.                     {% endfor %}
  1074.                     
  1075.                     {# 最終ページでバナーが多かった場合、残りのバナーを表示する #}
  1076.                     {% if pagination.paginationData.endPage == pagination.paginationData.current %}
  1077.                         {% for AddBanner in AddBanners %}
  1078.                             {% if (pagination.totalItemCount % 8 < AddBanners|length) and (loop.index == banner_index and AddBanners|length > banner_index) %}
  1079.                                 <li class=\"col-12 col-md-6 added_banner list-unstyled mb-4\">
  1080.                                     {% if AddBanners[banner_index].link_url %}
  1081.                                         <a href=\"{{ AddBanners[banner_index].link_url }}\" target=\"_blank\" rel=\"noopener\" class=\"d-flex flex-column h-100\">
  1082.                                     {% else %}
  1083.                                         <div class=\"d-flex flex-column h-100\">
  1084.                                     {% endif %}
  1085.                                         {#<h5>{{ AddBanners[banner_index].name }}</h5>#}{# 画像だけの場合もあるだろうから必須項目の「名称」は表示しない #}
  1086.                                         {% if AddBanners[banner_index].bg_image %}
  1087.                                             {% set filename = AddBanners[banner_index].bg_image|split('/') %}
  1088.                                             <img src=\"{{ asset('addbanner' ,'save_image') ~ \"/\" ~ filename|last }}\">
  1089.                                         {% endif %}
  1090.                                         {% if AddBanners[banner_index].description %}
  1091.                                             <div class=\"add_banner_desc p-2\">{{ AddBanners[banner_index].description|raw|nl2br }}</div>
  1092.                                         {% endif %}
  1093.                                     {% if AddBanners[banner_index].link_url %}
  1094.                                         </a>
  1095.                                     {% else %}
  1096.                                         </div>
  1097.                                     {% endif %}
  1098.                                 </li>
  1099.                                 {% set banner_index = banner_index + 1 %}
  1100.                             {% endif %}
  1101.                         {% endfor %}
  1102.                     {% endif %}
  1103.                 </ul>
  1104.             </div>
  1105.             <div class=\"ec-modal\">
  1106.                 <div class=\"ec-modal-overlay\">
  1107.                     <div class=\"ec-modal-wrap\">
  1108.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  1109.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  1110.                         <div class=\"ec-modal-box\">
  1111.                             <div class=\"ec-role\">
  1112.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  1113.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  1114.                             </div>
  1115.                         </div>
  1116.                     </div>
  1117.                 </div>
  1118.             </div>
  1119.             <div class=\"ec-pagerRole\">
  1120.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  1121.             </div>
  1122.         {% endif %}
  1123.     {% endif %}
  1124. {% endblock %}""Product/list.twig""/home/apteq5/apteq5x.com/public_html/tanzoec/app/template/tanzo/Product/list.twig");
  1125.     }
  1126.     
  1127.     public function checkSecurity()
  1128.     {
  1129.         static $tags = array("set" => 13"for" => 18"if" => 19"include" => 322);
  1130.         static $filters = array("escape" => 19"raw" => 19"trans" => 47"length" => 135"round" => 204"no_image_product" => 219"price" => 228"split" => 260"last" => 261"nl2br" => 264);
  1131.         static $functions = array("class_categories_as_json" => 19"url" => 75"render" => 158"path" => 158"form_widget" => 189"asset" => 219);
  1132.         try {
  1133.             $this->sandbox->checkSecurity(
  1134.                 ['set''for''if''include'],
  1135.                 ['escape''raw''trans''length''round''no_image_product''price''split''last''nl2br'],
  1136.                 ['class_categories_as_json''url''render''path''form_widget''asset']
  1137.             );
  1138.         } catch (SecurityError $e) {
  1139.             $e->setSourceContext($this->source);
  1140.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1141.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1142.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1143.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1144.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1145.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1146.             }
  1147.             throw $e;
  1148.         }
  1149.     }
  1150. }