var/cache/dev/twig/a2/a2753c769856b3d1e9bcb0c6dff016f9.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_83150701cdb887a40b140ea1889c1c19 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 "\t<script>
  61. \t\teccube.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.             echo "
  86. ";
  87.             // line 20
  88.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue20) == false)) {
  89.                 echo ",";
  90.             }
  91.             ++$context['loop']['index0'];
  92.             ++$context['loop']['index'];
  93.             $context['loop']['first'] = false;
  94.             if (isset($context['loop']['length'])) {
  95.                 --$context['loop']['revindex0'];
  96.                 --$context['loop']['revindex'];
  97.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  98.             }
  99.         }
  100.         $_parent $context['_parent'];
  101.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  102.         $context array_intersect_key($context$_parent) + $_parent;
  103.         // line 21
  104.         echo "};
  105. \$(function () { // 表示件数を変更
  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('.cart_form');
  121. // 個数フォームのチェック
  122. var \$quantity = \$form.parent().find('.quantity');
  123. if (\$quantity.val() < 1) {
  124. \$quantity[0].setCustomValidity('";
  125.         // line 45
  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. } e.preventDefault();
  135. \$.ajax({
  136. url: \$form.attr('action'),
  137. type: \$form.attr('method'),
  138. data: \$form.serialize(),
  139. dataType: 'json',
  140. beforeSend: function (xhr, settings) { // Buttonを無効にする
  141. \$('.add-cart').prop('disabled', true);
  142. }
  143. }).done(function (data) { // レスポンス内のメッセージをalertで表示
  144. \$.each(data.messages, function () {
  145. \$('#ec-modal-header').text(this);
  146. });
  147. \$('.ec-modal').show()
  148. // カートブロックを更新する
  149. \$.ajax({url: '";
  150.         // line 69
  151.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  152.         echo "', type: 'GET', dataType: 'html'}).done(function (html) {
  153. \$('.ec-headerRole__cart').html(html);
  154. });
  155. }).fail(function (data) {
  156. alert('";
  157.         // line 73
  158.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  159.         echo "');
  160. }).always(function (data) { // Buttonを有効にする
  161. \$('.add-cart').prop('disabled', false);
  162. });
  163. });
  164. });
  165. \$('.ec-modal-wrap').on('click', function (e) { // モーダル内の処理は外側にバブリングさせない
  166. e.stopPropagation();
  167. });
  168. \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function () {
  169. \$('.ec-modal').hide()
  170. });
  171. window.onload = function() {
  172.     // product_nameクラスの要素を全て取得
  173.     var elements = document.getElementsByClassName('product_name');
  174.     var maxHeight = 0;
  175.     // 最大の高さを見つける
  176.     for (var i = 0; i < elements.length; i++) {
  177.         if (elements[i].offsetHeight > maxHeight) {
  178.             maxHeight = elements[i].offsetHeight;
  179.         }
  180.     }
  181.     // 全てのproduct_name要素の高さを最大の高さに設定
  182.     for (var i = 0; i < elements.length; i++) {
  183.         elements[i].style.height = maxHeight + 'px';
  184.     }
  185. };
  186. \t</script>
  187. ";
  188.         
  189.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  190.         
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  192.     }
  193.     // line 108
  194.     public function block_main($context, array $blocks = [])
  195.     {
  196.         $macros $this->macros;
  197.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  199.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  201.         // line 109
  202.         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.'109$this->source); })()), "category_id", [], "any"falsefalsetrue109), "vars", [], "any"falsefalsetrue109), "errors", [], "any"falsefalsetrue109)) > 0)) {
  203.             // line 110
  204.             echo "\t
  205. ";
  206.         } else {
  207.             // line 112
  208.             echo "\t\t";
  209.             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.'112$this->source); })()), "totalItemCount", [], "any"falsefalsetrue112) > 0)) {
  210.                 // line 113
  211.                 echo "\t\t\t<div class=\"ec-shelfRole\"> ";
  212.                 $context["categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "getList", [], "method"falsefalsetrue113);
  213.                 // line 114
  214.                 echo "\t\t\t";
  215.                 $context['_parent'] = $context;
  216.                 $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'114$this->source); })()));
  217.                 $context['loop'] = [
  218.                   'parent' => $context['_parent'],
  219.                   'index0' => 0,
  220.                   'index'  => 1,
  221.                   'first'  => true,
  222.                 ];
  223.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  224.                     $length count($context['_seq']);
  225.                     $context['loop']['revindex0'] = $length 1;
  226.                     $context['loop']['revindex'] = $length;
  227.                     $context['loop']['length'] = $length;
  228.                     $context['loop']['last'] = === $length;
  229.                 }
  230.                 foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  231.                     // line 115
  232.                     echo "\t\t\t\t\t<h3 id=\"cat_";
  233.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsetrue115), 115$this->source), "html"nulltrue);
  234.                     echo "\">";
  235.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("front.block.category.list_text.id." $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsetrue115), 115$this->source))), "html"nulltrue);
  236.                     echo "</h3>
  237. \t\t\t\t\t";
  238.                     // line 117
  239.                     echo "\t\t\t\t\t";
  240.                     $context["qb"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Product"), "getQueryBuilderBySearchData", [=> ["category_id" => $context["category"]]], "method"falsefalsetrue117);
  241.                     // line 118
  242.                     echo "\t\t\t\t\t";
  243.                     $context["products"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["qb"]) || array_key_exists("qb"$context) ? $context["qb"] : (function () { throw new RuntimeError('Variable "qb" does not exist.'118$this->source); })()), "orderBy", [=> "p.id"=> "ASC"], "method"falsefalsetrue118), "setMaxResults", [=> 99], "method"falsefalsetrue118), "getQuery", [], "method"falsefalsetrue118), "getResult", [], "method"falsefalsetrue118);
  244.                     // line 119
  245.                     echo "\t\t\t\t\t<ul
  246. \t\t\t\t\t\tclass=\"ec-shelfGrid\">
  247. \t\t\t\t\t\t";
  248.                     // line 121
  249.                     $context['_parent'] = $context;
  250.                     $context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'121$this->source); })()));
  251.                     $context['loop'] = [
  252.                       'parent' => $context['_parent'],
  253.                       'index0' => 0,
  254.                       'index'  => 1,
  255.                       'first'  => true,
  256.                     ];
  257.                     if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  258.                         $length count($context['_seq']);
  259.                         $context['loop']['revindex0'] = $length 1;
  260.                         $context['loop']['revindex'] = $length;
  261.                         $context['loop']['length'] = $length;
  262.                         $context['loop']['last'] = === $length;
  263.                     }
  264.                     foreach ($context['_seq'] as $context["key"] => $context["Product"]) {
  265.                         // line 122
  266.                         echo "    \t\t\t\t\t\t";
  267.                         // line 123
  268.                         echo "                            ";
  269.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue123) == 18)) {
  270.                             // line 124
  271.                             echo "\t\t\t\t\t\t\t<li class=\"ec-shelfGrid__item\">
  272.                                 <a href=\"";
  273.                             // line 125
  274.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bib_detail", ["id" => 40"id2" => 18]), "html"nulltrue);
  275.                             echo "\">
  276. \t\t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
  277. \t\t\t\t\t\t\t\t\t\t<img src=\"/html/user_data/assets/img/item/bib_regular_set_100ppm.png\" alt=\"";
  278.                             // line 127
  279.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue127), 127$this->source), "html"nulltrue);
  280.                             echo "\" ";
  281.                             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue127) > 5)) {
  282.                                 echo " loading=\"lazy\" ";
  283.                             }
  284.                             echo ">
  285.                                         <div class=\"product_name product-list_title\">";
  286.                             // line 128
  287.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.product_list.subscription_100ppm"), "html"nulltrue);
  288.                             echo "</div>
  289. \t\t\t\t\t\t\t\t\t</p>
  290.                                 </a>
  291. \t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
  292. \t\t\t\t\t\t\t\t\t\t<a href=\"";
  293.                             // line 132
  294.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bib_detail", ["id" => 40"id2" => 18]), "html"nulltrue);
  295.                             echo "\" class=\"ec-blackBtn--custom ec-blockBtn--action bib_detail_btn\">
  296. \t\t\t\t\t\t\t\t\t\t\t";
  297.                             // line 133
  298.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.btn.detail"), "html"nulltrue);
  299.                             echo "
  300. \t\t\t\t\t\t\t\t\t\t</a>
  301.                                     </div>
  302.         \t\t\t\t\t</li>
  303.         \t\t\t\t\t";
  304.                         } elseif ((twig_get_attribute($this->env$this->source,                         // line 137
  305. $context["Product"], "id", [], "any"falsefalsetrue137) == 42)) {
  306.                             // line 138
  307.                             echo "        \t\t\t\t\t<li class=\"ec-shelfGrid__item\">
  308.                                 <a href=\"";
  309.                             // line 139
  310.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bib_detail_200ppm", ["id" => 38"id2" => 42]), "html"nulltrue);
  311.                             echo "\">
  312. \t\t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
  313. \t\t\t\t\t\t\t\t\t\t<img src=\"/html/user_data/assets/img/item/bib_regular_set_200ppm.png\" alt=\"";
  314.                             // line 141
  315.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue141), 141$this->source), "html"nulltrue);
  316.                             echo "\" ";
  317.                             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue141) > 5)) {
  318.                                 echo " loading=\"lazy\" ";
  319.                             }
  320.                             echo ">
  321.                                         <div class=\"product_name product-list_title\">
  322.                                             ";
  323.                             // line 143
  324.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.product_list.subscription_200ppm"), "html"nulltrue);
  325.                             echo "
  326.                                             <div class=\"product-tags plus_tag\">
  327.                                                 <span class=\"tag tag_plus\">
  328.                                                     <img src=\"/html/user_data/assets/img/item/tag_pllus.png\" alt=\"plus badge\">
  329.                                                 </span>
  330.                                             </div>
  331.                                         </div>
  332. \t\t\t\t\t\t\t\t\t</p>
  333.                                 </a>
  334. \t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
  335. \t\t\t\t\t\t\t\t\t\t<a href=\"";
  336.                             // line 153
  337.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bib_detail_200ppm", ["id" => 38"id2" => 42]), "html"nulltrue);
  338.                             echo "\" class=\"ec-blackBtn--custom ec-blockBtn--action bib_detail_btn\">
  339. \t\t\t\t\t\t\t\t\t\t\t";
  340.                             // line 154
  341.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.btn.detail"), "html"nulltrue);
  342.                             echo "
  343. \t\t\t\t\t\t\t\t\t\t</a>
  344.                                     </div>
  345.         \t\t\t\t\t</li>
  346.         \t\t\t\t\t";
  347.                         } elseif (((((twig_get_attribute($this->env$this->source,                         // line 158
  348. $context["Product"], "id", [], "any"falsefalsetrue158) == 9) || (twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue158) == 36)) || (twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue158) == 38)) || (twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue158) == 40))) {
  349.                             // line 159
  350.                             echo "        \t\t\t\t\t";
  351.                             // line 160
  352.                             echo "        \t\t\t\t\t";
  353.                         } else {
  354.                             // line 161
  355.                             echo "        \t\t\t\t\t<li class=\"ec-shelfGrid__item ec-shelfGrid__item_category_";
  356.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsetrue161), 161$this->source), "html"nulltrue);
  357.                             echo "\"
  358.         \t\t\t\t\t";
  359.                             // line 163
  360.                             echo "        \t\t\t\t\t";
  361.                             // line 164
  362.                             echo "        \t\t\t\t\t";
  363.                             if ((twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue164) == 15)) {
  364.                                 // line 165
  365.                                 echo "        \t\t\t\t\tstyle=\"order:-1\";
  366.         \t\t\t\t\t";
  367.                                 // line 167
  368.                                 echo "        \t\t\t\t\t";
  369.                             } elseif ((twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue167) == 19)) {
  370.                                 // line 168
  371.                                 echo "        \t\t\t\t\tstyle=\"order:-3\";
  372.         \t\t\t\t\t";
  373.                                 // line 170
  374.                                 echo "        \t\t\t\t\t";
  375.                             } elseif ((twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue170) == 39)) {
  376.                                 // line 171
  377.                                 echo "        \t\t\t\t\tstyle=\"order:-2\";
  378.         \t\t\t\t\t";
  379.                                 // line 173
  380.                                 echo "        \t\t\t\t\t";
  381.                             } elseif ((twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue173) == 10)) {
  382.                                 // line 174
  383.                                 echo "        \t\t\t\t\tstyle=\"order:-2\";
  384.         \t\t\t\t\t";
  385.                                 // line 176
  386.                                 echo "        \t\t\t\t\t";
  387.                             } elseif ((twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue176) == 41)) {
  388.                                 // line 177
  389.                                 echo "        \t\t\t\t\tstyle=\"order:-1\";
  390.         \t\t\t\t\t";
  391.                             }
  392.                             // line 179
  393.                             echo "        \t\t\t\t\t>
  394.                                 <a href=\"";
  395.                             // line 180
  396.                             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"falsefalsetrue180)]), "html"nulltrue);
  397.                             echo "\">
  398. \t\t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
  399. \t\t\t\t\t\t\t\t\t\t<img src=\"";
  400.                             // line 182
  401.                             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"falsefalsetrue182), 182$this->source)), "save_image"), "html"nulltrue);
  402.                             echo "\" alt=\"";
  403.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue182), 182$this->source), "html"nulltrue);
  404.                             echo "\" ";
  405.                             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue182) > 5)) {
  406.                                 echo " loading=\"lazy\" ";
  407.                             }
  408.                             echo ">
  409.                                         <div class=\"product_name product-list_title\">
  410.                                             ";
  411.                             // line 185
  412.                             echo "                                            ";
  413.                             echo twig_escape_filter($this->env$this->extensions['Customize\Twig\SimpleProductTranslationExtension']->translateProductName($this->sandbox->ensureToStringAllowed($context["Product"], 185$this->source)), "html"nulltrue);
  414.                             echo "
  415.                                             <div class=\"product-tags plus_tag\">
  416.                                                 ";
  417.                             // line 187
  418.                             $context['_parent'] = $context;
  419.                             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "tags", [], "any"falsefalsetrue187));
  420.                             foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  421.                                 // line 188
  422.                                 echo "                                                        ";
  423.                                 if ((twig_get_attribute($this->env$this->source$context["tag"], "id", [], "any"falsefalsetrue188) == 7)) {
  424.                                     // line 189
  425.                                     echo "                                                        <span class=\"tag tag_plus\">
  426.                                                             <img src=\"/html/user_data/assets/img/item/tag_pllus.png\" alt=\"plus badge\">
  427.                                                         </span>
  428.                                                         ";
  429.                                 }
  430.                                 // line 193
  431.                                 echo "                                                ";
  432.                             }
  433.                             $_parent $context['_parent'];
  434.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  435.                             $context array_intersect_key($context$_parent) + $_parent;
  436.                             // line 194
  437.                             echo "                                            </div>
  438.                                             ";
  439.                             // line 196
  440.                             echo "                                            ";
  441.                             $context["is_favorite"] = ((twig_get_attribute($this->env$this->source, ($context["favorites"] ?? null), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue196), [], "array"truetruetrue196)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["favorites"] ?? null), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue196), [], "array"falsefalsetrue196), 196$this->source), false)) : (false));
  442.                             // line 197
  443.                             echo "                                            ";
  444.                             // line 198
  445.                             echo "                                            ";
  446.                             // line 199
  447.                             echo "                                            ";
  448.                             // line 200
  449.                             echo "                                            ";
  450.                             // line 201
  451.                             echo "                                            ";
  452.                             // line 202
  453.                             echo "                                            ";
  454.                             // line 203
  455.                             echo "                                            ";
  456.                             // line 204
  457.                             echo "                                            ";
  458.                             // line 205
  459.                             echo "                                            ";
  460.                             // line 206
  461.                             echo "                                            ";
  462.                             // line 207
  463.                             echo "                                            ";
  464.                             // line 208
  465.                             echo "                                        </div>
  466. \t\t\t\t\t\t\t\t\t</p>
  467.                                     </a>
  468. \t\t\t\t\t\t\t\t\t<div class=\"list_detail_block\" style=\"line-height:1.7;\">
  469. \t\t\t\t\t\t\t\t\t\t";
  470.                             // line 212
  471.                             if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsetrue212)) {
  472.                                 // line 213
  473.                                 echo "\t\t\t\t\t\t\t\t\t\t\t<p>";
  474.                                 echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsetrue213), 213$this->source));
  475.                                 echo "</p>
  476. \t\t\t\t\t\t\t\t\t\t";
  477.                             }
  478.                             // line 215
  479.                             echo "\t\t\t\t\t\t\t\t\t\t
  480. \t\t\t\t\t\t\t\t\t\t<p class=\"price02-default price_default_text\" style=\"line-height:1.3;margin-bottom: 12px;\">
  481. \t\t\t\t\t\t\t\t\t\t\t<span class=\"web_price_text\">";
  482.                             // line 217
  483.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.product_list.web_member_price"), "html"nulltrue);
  484.                             echo "</span>
  485. \t\t\t\t\t\t\t\t\t\t\t";
  486.                             // line 218
  487.                             $context['_parent'] = $context;
  488.                             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "tags", [], "any"falsefalsetrue218));
  489.                             foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  490.                                 // line 219
  491.                                 echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  492.                                 if (((twig_get_attribute($this->env$this->source$context["tag"], "id", [], "any"falsefalsetrue219) != 1) && (twig_get_attribute($this->env$this->source$context["tag"], "id", [], "any"falsefalsetrue219) != 7))) {
  493.                                     // line 220
  494.                                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  495.                                     // line 221
  496.                                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  497.                                     // line 222
  498.                                     echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  499.                                 }
  500.                                 // line 223
  501.                                 echo "\t\t\t\t\t\t\t\t\t\t\t";
  502.                             }
  503.                             $_parent $context['_parent'];
  504.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  505.                             $context array_intersect_key($context$_parent) + $_parent;
  506.                             // line 224
  507.                             echo "\t\t\t\t\t\t\t\t\t\t\t<br>";
  508.                             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"falsefalsetrue224), 224$this->source)), "html"nulltrue);
  509.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.product_list.tax_included"), "html"nulltrue);
  510.                             echo "
  511. \t\t\t\t\t\t\t\t\t\t</p>
  512. \t\t\t\t\t\t\t\t\t\t";
  513.                             // line 227
  514.                             if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsetrue227)) {
  515.                                 // line 228
  516.                                 echo "\t\t\t\t\t\t\t\t\t\t\t";
  517.                                 $context["form"] = twig_get_attribute($this->env$this->source, (isset($context["forms"]) || array_key_exists("forms"$context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.'228$this->source); })()), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue228), [], "array"falsefalsetrue228);
  518.                                 // line 229
  519.                                 echo "\t\t\t\t\t\t\t\t\t\t\t<form class=\"add-cart-form\" name=\"form";
  520.                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue229), 229$this->source), "html"nulltrue);
  521.                                 echo "\" id=\"productForm";
  522.                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue229), 229$this->source), "html"nulltrue);
  523.                                 echo "\" action=\"";
  524.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue229)]), "html"nulltrue);
  525.                                 echo "\" method=\"post\" class=\"cart_form\">
  526. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__actions\">
  527. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  528.                                 // line 231
  529.                                 if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruetrue231)) {
  530.                                     // line 232
  531.                                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-select\">
  532. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  533.                                     // line 233
  534.                                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'233$this->source); })()), "classcategory_id1", [], "any"falsefalsetrue233), 233$this->source), 'widget');
  535.                                     echo "
  536. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  537.                                     // line 234
  538.                                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'234$this->source); })()), "classcategory_id1", [], "any"falsefalsetrue234), 234$this->source), 'errors');
  539.                                     echo "
  540. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  541. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  542.                                     // line 236
  543.                                     if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruetrue236)) {
  544.                                         // line 237
  545.                                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-select\">
  546. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  547.                                         // line 238
  548.                                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'238$this->source); })()), "classcategory_id2", [], "any"falsefalsetrue238), 238$this->source), 'widget');
  549.                                         echo "
  550. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  551.                                         // line 239
  552.                                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'239$this->source); })()), "classcategory_id2", [], "any"falsefalsetrue239), 239$this->source), 'errors');
  553.                                         echo "
  554. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  555. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  556.                                     }
  557.                                     // line 242
  558.                                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  559.                                 }
  560.                                 // line 243
  561.                                 echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-numberInput\">
  562. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"height:30px; display:inline-block;\">";
  563.                                 // line 244
  564.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.product_list.quantity"), "html"nulltrue);
  565.                                 echo "</span>
  566. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  567.                                 // line 245
  568.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'245$this->source); })()), "quantity", [], "any"falsefalsetrue245), 245$this->source), 'widget', ["attr" => ["class" => "quantity"]]);
  569.                                 echo "
  570. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  571.                                 // line 246
  572.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'246$this->source); })()), "quantity", [], "any"falsefalsetrue246), 246$this->source), 'errors');
  573.                                 echo "
  574. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  575. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  576. \t\t\t\t\t\t\t\t\t\t\t\t";
  577.                                 // line 249
  578.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'249$this->source); })()), 249$this->source), 'rest');
  579.                                 echo "
  580. \t\t\t\t\t\t\t\t\t\t\t</form>
  581. \t\t\t\t\t\t\t\t\t\t</div>
  582.                                         ";
  583.                                 // line 252
  584.                                 if ((twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue252) == 9)) {
  585.                                     // line 253
  586.                                     echo "                                        <div class=\"ec-productRole__btn\">
  587. \t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  588.                                     // line 254
  589.                                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bib_detail", ["id" => 9"id2" => 18]), "html"nulltrue);
  590.                                     echo "\" class=\"ec-blockBtn--action bib_detail_btn\">
  591. \t\t\t\t\t\t\t\t\t\t\t\t";
  592.                                     // line 255
  593.                                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.btn.detail"), "html"nulltrue);
  594.                                     echo "
  595. \t\t\t\t\t\t\t\t\t\t\t</a>
  596.                                         </div>
  597.                                         ";
  598.                                 } else {
  599.                                     // line 259
  600.                                     echo "\t\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
  601. \t\t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  602.                                     // line 260
  603.                                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue260), 260$this->source), "html"nulltrue);
  604.                                     echo "\" form=\"productForm";
  605.                                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue260), 260$this->source), "html"nulltrue);
  606.                                     echo "\">
  607. \t\t\t\t\t\t\t\t\t\t\t\t";
  608.                                     // line 261
  609.                                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart"), "html"nulltrue);
  610.                                     echo "
  611. \t\t\t\t\t\t\t\t\t\t\t</button>
  612. \t\t\t\t\t\t\t\t\t\t</div>
  613.                                         ";
  614.                                 }
  615.                                 // line 265
  616.                                 echo "\t\t\t\t\t\t\t\t";
  617.                             } else {
  618.                                 // line 266
  619.                                 echo "\t\t\t\t\t\t\t\t\t</div>
  620. \t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
  621. \t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  622. \t\t\t\t\t\t\t\t\t\t\t";
  623.                                 // line 269
  624.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.product_list.out_of_stock"), "html"nulltrue);
  625.                                 echo "
  626. \t\t\t\t\t\t\t\t\t\t</button>
  627. \t\t\t\t\t\t\t\t\t</div>
  628. \t\t\t\t\t\t\t\t";
  629.                             }
  630.                             // line 273
  631.                             echo "        \t\t\t\t\t</li>
  632.         \t\t\t\t\t";
  633.                         }
  634.                         // line 275
  635.                         echo "\t\t\t\t";
  636.                         ++$context['loop']['index0'];
  637.                         ++$context['loop']['index'];
  638.                         $context['loop']['first'] = false;
  639.                         if (isset($context['loop']['length'])) {
  640.                             --$context['loop']['revindex0'];
  641.                             --$context['loop']['revindex'];
  642.                             $context['loop']['last'] = === $context['loop']['revindex0'];
  643.                         }
  644.                     }
  645.                     $_parent $context['_parent'];
  646.                     unset($context['_seq'], $context['_iterated'], $context['key'], $context['Product'], $context['_parent'], $context['loop']);
  647.                     $context array_intersect_key($context$_parent) + $_parent;
  648.                     // line 276
  649.                     echo "\t\t\t</ul>
  650. \t";
  651.                     ++$context['loop']['index0'];
  652.                     ++$context['loop']['index'];
  653.                     $context['loop']['first'] = false;
  654.                     if (isset($context['loop']['length'])) {
  655.                         --$context['loop']['revindex0'];
  656.                         --$context['loop']['revindex'];
  657.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  658.                     }
  659.                 }
  660.                 $_parent $context['_parent'];
  661.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  662.                 $context array_intersect_key($context$_parent) + $_parent;
  663.                 // line 278
  664.                 echo "</div>
  665. <div class=\"ec-modal\">
  666. \t<div class=\"ec-modal-overlay\">
  667. \t\t<div class=\"ec-modal-wrap\">
  668. \t\t\t<span class=\"ec-modal-close\">
  669. \t\t\t\t<span class=\"ec-icon\"><img src=\"";
  670.                 // line 283
  671.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  672.                 echo "\" alt=\"\"/></span>
  673. \t\t\t</span>
  674. \t\t\t<div id=\"ec-modal-header\" class=\"text-center\">";
  675.                 // line 285
  676.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.btn.added_cart"), "html"nulltrue);
  677.                 echo "</div>
  678. \t\t\t<div class=\"ec-modal-box list-modal-box\">
  679. \t\t\t\t<div class=\"ec-role list-role\">
  680. \t\t\t\t    <span class=\"ec-blockBtn--cancel ec-inlineBtn--cancel\">";
  681.                 // line 288
  682.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.btn.continue_shopping"), "html"nulltrue);
  683.                 echo "</span>
  684. \t\t\t\t\t<a href=\"";
  685.                 // line 289
  686.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  687.                 echo "\" class=\"ec-blockBtn--action ec-inlineBtn--action\">";
  688.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  689.                 echo "</a>
  690. \t\t\t\t</div>
  691. \t\t\t</div>
  692. \t\t</div>
  693. \t</div>
  694. </div>
  695. <div class=\"ec-pagerRole\">
  696. \t";
  697.                 // line 296
  698.                 $this->loadTemplate("pager.twig""Product/list.twig"296)->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.'296$this->source); })()), "paginationData", [], "any"falsefalsetrue296)]));
  699.                 // line 297
  700.                 echo "</div>";
  701.             }
  702.         }
  703.         
  704.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  705.         
  706.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  707.     }
  708.     public function getTemplateName()
  709.     {
  710.         return "Product/list.twig";
  711.     }
  712.     public function isTraitable()
  713.     {
  714.         return false;
  715.     }
  716.     public function getDebugInfo()
  717.     {
  718.         return array (  731 => 297,  729 => 296,  717 => 289,  713 => 288,  707 => 285,  702 => 283,  695 => 278,  680 => 276,  666 => 275,  662 => 273,  655 => 269,  650 => 266,  647 => 265,  640 => 261,  634 => 260,  631 => 259,  624 => 255,  620 => 254,  617 => 253,  615 => 252,  609 => 249,  603 => 246,  599 => 245,  595 => 244,  592 => 243,  589 => 242,  583 => 239,  579 => 238,  576 => 237,  574 => 236,  569 => 234,  565 => 233,  562 => 232,  560 => 231,  550 => 229,  547 => 228,  545 => 227,  537 => 224,  531 => 223,  528 => 222,  526 => 221,  524 => 220,  521 => 219,  517 => 218,  513 => 217,  509 => 215,  503 => 213,  501 => 212,  495 => 208,  493 => 207,  491 => 206,  489 => 205,  487 => 204,  485 => 203,  483 => 202,  481 => 201,  479 => 200,  477 => 199,  475 => 198,  473 => 197,  470 => 196,  467 => 194,  461 => 193,  455 => 189,  452 => 188,  448 => 187,  442 => 185,  431 => 182,  426 => 180,  423 => 179,  419 => 177,  416 => 176,  413 => 174,  410 => 173,  407 => 171,  404 => 170,  401 => 168,  398 => 167,  395 => 165,  392 => 164,  390 => 163,  385 => 161,  382 => 160,  380 => 159,  378 => 158,  371 => 154,  367 => 153,  354 => 143,  345 => 141,  340 => 139,  337 => 138,  335 => 137,  328 => 133,  324 => 132,  317 => 128,  309 => 127,  304 => 125,  301 => 124,  298 => 123,  296 => 122,  279 => 121,  275 => 119,  272 => 118,  269 => 117,  262 => 115,  244 => 114,  241 => 113,  238 => 112,  234 => 110,  232 => 109,  222 => 108,  178 => 73,  171 => 69,  144 => 45,  118 => 21,  102 => 20,  95 => 19,  78 => 18,  74 => 16,  64 => 15,  53 => 11,  51 => 13,  38 => 11,);
  719.     }
  720.     public function getSourceContext()
  721.     {
  722.         return new Source("{#
  723. This file is part of EC-CUBE
  724. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  725. http://www.ec-cube.co.jp/
  726. For the full copyright and license information, please view the LICENSE
  727. file that was distributed with this source code.
  728. #}
  729. {% extends 'default_frame.twig' %}
  730. {% set body_class = 'product_page' %}
  731. {% block javascript %}
  732. \t<script>
  733. \t\teccube.productsClassCategories = {
  734. {% for Product in pagination %}
  735. \"{{ Product.id|escape('js') }}\" : {{ class_categories_as_json(Product)|raw }}
  736. {% if loop.last == false %},{% endif %}{% endfor %}
  737. };
  738. \$(function () { // 表示件数を変更
  739. \$('.disp-number').change(function () {
  740. var dispNumber = \$(this).val();
  741. \$('#disp_number').val(dispNumber);
  742. \$('#pageno').val(1);
  743. \$(\"#form1\").submit();
  744. });
  745. // 並び順を変更
  746. \$('.order-by').change(function () {
  747. var orderBy = \$(this).val();
  748. \$('#orderby').val(orderBy);
  749. \$('#pageno').val(1);
  750. \$(\"#form1\").submit();
  751. });
  752. \$('.add-cart').on('click', function (e) {
  753. var \$form = \$(this).parents('li').find('.cart_form');
  754. // 個数フォームのチェック
  755. var \$quantity = \$form.parent().find('.quantity');
  756. if (\$quantity.val() < 1) {
  757. \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  758. setTimeout(function () {
  759. loadingOverlay('hide');
  760. }, 100);
  761. return true;
  762. } else {
  763. \$quantity[0].setCustomValidity('');
  764. } e.preventDefault();
  765. \$.ajax({
  766. url: \$form.attr('action'),
  767. type: \$form.attr('method'),
  768. data: \$form.serialize(),
  769. dataType: 'json',
  770. beforeSend: function (xhr, settings) { // Buttonを無効にする
  771. \$('.add-cart').prop('disabled', true);
  772. }
  773. }).done(function (data) { // レスポンス内のメッセージをalertで表示
  774. \$.each(data.messages, function () {
  775. \$('#ec-modal-header').text(this);
  776. });
  777. \$('.ec-modal').show()
  778. // カートブロックを更新する
  779. \$.ajax({url: '{{ url('block_cart') }}', type: 'GET', dataType: 'html'}).done(function (html) {
  780. \$('.ec-headerRole__cart').html(html);
  781. });
  782. }).fail(function (data) {
  783. alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  784. }).always(function (data) { // Buttonを有効にする
  785. \$('.add-cart').prop('disabled', false);
  786. });
  787. });
  788. });
  789. \$('.ec-modal-wrap').on('click', function (e) { // モーダル内の処理は外側にバブリングさせない
  790. e.stopPropagation();
  791. });
  792. \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function () {
  793. \$('.ec-modal').hide()
  794. });
  795. window.onload = function() {
  796.     // product_nameクラスの要素を全て取得
  797.     var elements = document.getElementsByClassName('product_name');
  798.     var maxHeight = 0;
  799.     // 最大の高さを見つける
  800.     for (var i = 0; i < elements.length; i++) {
  801.         if (elements[i].offsetHeight > maxHeight) {
  802.             maxHeight = elements[i].offsetHeight;
  803.         }
  804.     }
  805.     // 全てのproduct_name要素の高さを最大の高さに設定
  806.     for (var i = 0; i < elements.length; i++) {
  807.         elements[i].style.height = maxHeight + 'px';
  808.     }
  809. };
  810. \t</script>
  811. {% endblock %}
  812. {% block main %}
  813. {% if search_form.category_id.vars.errors|length > 0 %}
  814. \t
  815. {% else %}
  816. \t\t{% if pagination.totalItemCount > 0 %}
  817. \t\t\t<div class=\"ec-shelfRole\"> {% set categories = repository('Eccube\\\\Entity\\\\Category').getList() %}
  818. \t\t\t{% for category in categories%}
  819. \t\t\t\t\t<h3 id=\"cat_{{ category.id }}\">{{ ('front.block.category.list_text.id.' ~ category.id)|trans }}</h3>
  820. \t\t\t\t\t{# カテゴリー名 #}
  821. \t\t\t\t\t{% set qb = repository(\"Eccube\\\\Entity\\\\Product\").getQueryBuilderBySearchData({'category_id': category}) %}
  822. \t\t\t\t\t{% set products = qb.orderBy('p.id', 'ASC').setMaxResults(99).getQuery().getResult() %}
  823. \t\t\t\t\t<ul
  824. \t\t\t\t\t\tclass=\"ec-shelfGrid\">
  825. \t\t\t\t\t\t{% for key, Product in products %}
  826.     \t\t\t\t\t\t{#定期商品は詳細画面へ移動#}
  827.                             {% if Product.id  == 18 %}
  828. \t\t\t\t\t\t\t<li class=\"ec-shelfGrid__item\">
  829.                                 <a href=\"{{ url('bib_detail', {'id': 40, 'id2': 18}) }}\">
  830. \t\t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
  831. \t\t\t\t\t\t\t\t\t\t<img src=\"/html/user_data/assets/img/item/bib_regular_set_100ppm.png\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\" {% endif %}>
  832.                                         <div class=\"product_name product-list_title\">{{ 'front.block.product_list.subscription_100ppm'|trans }}</div>
  833. \t\t\t\t\t\t\t\t\t</p>
  834.                                 </a>
  835. \t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
  836. \t\t\t\t\t\t\t\t\t\t<a href=\"{{ url('bib_detail', {'id': 40, 'id2': 18}) }}\" class=\"ec-blackBtn--custom ec-blockBtn--action bib_detail_btn\">
  837. \t\t\t\t\t\t\t\t\t\t\t{{ 'common.btn.detail'|trans }}
  838. \t\t\t\t\t\t\t\t\t\t</a>
  839.                                     </div>
  840.         \t\t\t\t\t</li>
  841.         \t\t\t\t\t{% elseif Product.id  == 42 %}
  842.         \t\t\t\t\t<li class=\"ec-shelfGrid__item\">
  843.                                 <a href=\"{{ url('bib_detail_200ppm', {'id': 38, 'id2': 42}) }}\">
  844. \t\t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
  845. \t\t\t\t\t\t\t\t\t\t<img src=\"/html/user_data/assets/img/item/bib_regular_set_200ppm.png\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\" {% endif %}>
  846.                                         <div class=\"product_name product-list_title\">
  847.                                             {{ 'front.block.product_list.subscription_200ppm'|trans }}
  848.                                             <div class=\"product-tags plus_tag\">
  849.                                                 <span class=\"tag tag_plus\">
  850.                                                     <img src=\"/html/user_data/assets/img/item/tag_pllus.png\" alt=\"plus badge\">
  851.                                                 </span>
  852.                                             </div>
  853.                                         </div>
  854. \t\t\t\t\t\t\t\t\t</p>
  855.                                 </a>
  856. \t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
  857. \t\t\t\t\t\t\t\t\t\t<a href=\"{{ url('bib_detail_200ppm', {'id': 38, 'id2': 42}) }}\" class=\"ec-blackBtn--custom ec-blockBtn--action bib_detail_btn\">
  858. \t\t\t\t\t\t\t\t\t\t\t{{ 'common.btn.detail'|trans }}
  859. \t\t\t\t\t\t\t\t\t\t</a>
  860.                                     </div>
  861.         \t\t\t\t\t</li>
  862.         \t\t\t\t\t{% elseif Product.id  == 9 or Product.id == 36 or Product.id == 38 or Product.id == 40 %}
  863.         \t\t\t\t\t{#通常定期アイテムは非表示#}
  864.         \t\t\t\t\t{% else %}
  865.         \t\t\t\t\t<li class=\"ec-shelfGrid__item ec-shelfGrid__item_category_{{category.id}}\"
  866.         \t\t\t\t\t{#表示順番制御#}
  867.         \t\t\t\t\t{#プラスパック#}
  868.         \t\t\t\t\t{% if Product.id  == 15 %}
  869.         \t\t\t\t\tstyle=\"order:-1\";
  870.         \t\t\t\t\t{#つめかえ用 BIB 10L(200ppm)#}
  871.         \t\t\t\t\t{% elseif Product.id  == 19 %}
  872.         \t\t\t\t\tstyle=\"order:-3\";
  873.         \t\t\t\t\t{#つめかえ用 パウチ 800mL(200ppm)#}
  874.         \t\t\t\t\t{% elseif Product.id  == 39 %}
  875.         \t\t\t\t\tstyle=\"order:-2\";
  876.         \t\t\t\t\t{#つめかえ用 BIB 10L#}
  877.         \t\t\t\t\t{% elseif Product.id  == 10%}
  878.         \t\t\t\t\tstyle=\"order:-2\";
  879.         \t\t\t\t\t{#つめかえ用 パウチ 800mL#}
  880.         \t\t\t\t\t{% elseif Product.id  == 41%}
  881.         \t\t\t\t\tstyle=\"order:-1\";
  882.         \t\t\t\t\t{% endif %}
  883.         \t\t\t\t\t>
  884.                                 <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  885. \t\t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
  886. \t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\" {% endif %}>
  887.                                         <div class=\"product_name product-list_title\">
  888.                                             {# {{ Product.name }} #}
  889.                                             {{ Product|trans_product_name }}
  890.                                             <div class=\"product-tags plus_tag\">
  891.                                                 {% for tag in Product.tags %}
  892.                                                         {% if tag.id == 7 %}
  893.                                                         <span class=\"tag tag_plus\">
  894.                                                             <img src=\"/html/user_data/assets/img/item/tag_pllus.png\" alt=\"plus badge\">
  895.                                                         </span>
  896.                                                         {% endif %}
  897.                                                 {% endfor %}
  898.                                             </div>
  899.                                             {# お気に入り状態を安全に判定する #}
  900.                                             {% set is_favorite = favorites[Product.id]|default(false) %}
  901.                                             {#<form action=\"{{ url('product_add_favorite_list', {id:Product.id}) }}\" method=\"post\" class=\"favorite_form\">#}
  902.                                             {#    {% if is_favorite %}#}
  903.                                             {#        <button type=\"submit\" id=\"favorite-{{ Product.id }}\" class=\"product_favorite_btn favorited\" disabled=\"disabled\">#}
  904.                                             {#            <i class=\"fas fa-heart\"></i>#}
  905.                                             {#        </button>#}
  906.                                             {#    {% else %}#}
  907.                                             {#        <button type=\"submit\" id=\"favorite-{{ Product.id }}\" class=\"product_favorite_btn\">#}
  908.                                             {#            <i class=\"far fa-heart\"></i>#}
  909.                                             {#        </button>#}
  910.                                             {#    {% endif %}#}
  911.                                             {#</form>#}
  912.                                         </div>
  913. \t\t\t\t\t\t\t\t\t</p>
  914.                                     </a>
  915. \t\t\t\t\t\t\t\t\t<div class=\"list_detail_block\" style=\"line-height:1.7;\">
  916. \t\t\t\t\t\t\t\t\t\t{% if Product.description_list %}
  917. \t\t\t\t\t\t\t\t\t\t\t<p>{{ Product.description_list|raw|nl2br }}</p>
  918. \t\t\t\t\t\t\t\t\t\t{% endif %}
  919. \t\t\t\t\t\t\t\t\t\t
  920. \t\t\t\t\t\t\t\t\t\t<p class=\"price02-default price_default_text\" style=\"line-height:1.3;margin-bottom: 12px;\">
  921. \t\t\t\t\t\t\t\t\t\t\t<span class=\"web_price_text\">{{ 'front.block.product_list.web_member_price'|trans }}</span>
  922. \t\t\t\t\t\t\t\t\t\t\t{% for tag in Product.tags %}
  923. \t\t\t\t\t\t\t\t\t\t\t\t{% if tag.id != 1 and tag.id != 7 %}
  924. \t\t\t\t\t\t\t\t\t\t\t\t\t{#タグは非表示#}
  925. \t\t\t\t\t\t\t\t\t\t\t\t\t{#<span class=\"product-tag-new\">{{ tag.name }}</span>#}
  926. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  927. \t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  928. \t\t\t\t\t\t\t\t\t\t\t<br>{{ Product.getPrice02IncTaxMin|price }}{{ 'front.block.product_list.tax_included'|trans }}
  929. \t\t\t\t\t\t\t\t\t\t</p>
  930. \t\t\t\t\t\t\t\t\t\t{% if Product.stock_find %}
  931. \t\t\t\t\t\t\t\t\t\t\t{% set form = forms[Product.id] %}
  932. \t\t\t\t\t\t\t\t\t\t\t<form class=\"add-cart-form\" name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" class=\"cart_form\">
  933. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__actions\">
  934. \t\t\t\t\t\t\t\t\t\t\t\t\t{% if form.classcategory_id1 is defined %}
  935. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-select\">
  936. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_widget(form.classcategory_id1) }}
  937. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_errors(form.classcategory_id1) }}
  938. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  939. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if form.classcategory_id2 is defined %}
  940. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-select\">
  941. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_widget(form.classcategory_id2) }}
  942. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_errors(form.classcategory_id2) }}
  943. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  944. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  945. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  946. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-numberInput\">
  947. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"height:30px; display:inline-block;\">{{ 'front.block.product_list.quantity'|trans }}</span>
  948. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  949. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_errors(form.quantity) }}
  950. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  951. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  952. \t\t\t\t\t\t\t\t\t\t\t\t{{ form_rest(form) }}
  953. \t\t\t\t\t\t\t\t\t\t\t</form>
  954. \t\t\t\t\t\t\t\t\t\t</div>
  955.                                         {% if Product.id  == 9 %}
  956.                                         <div class=\"ec-productRole__btn\">
  957. \t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ url('bib_detail', {'id': 9, 'id2': 18}) }}\" class=\"ec-blockBtn--action bib_detail_btn\">
  958. \t\t\t\t\t\t\t\t\t\t\t\t{{ 'common.btn.detail'|trans }}
  959. \t\t\t\t\t\t\t\t\t\t\t</a>
  960.                                         </div>
  961.                                         {% else %}
  962. \t\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
  963. \t\t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  964. \t\t\t\t\t\t\t\t\t\t\t\t{{ 'front.product.add_cart'|trans }}
  965. \t\t\t\t\t\t\t\t\t\t\t</button>
  966. \t\t\t\t\t\t\t\t\t\t</div>
  967.                                         {% endif %}
  968. \t\t\t\t\t\t\t\t{% else %}
  969. \t\t\t\t\t\t\t\t\t</div>
  970. \t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
  971. \t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  972. \t\t\t\t\t\t\t\t\t\t\t{{ 'front.block.product_list.out_of_stock'|trans }}
  973. \t\t\t\t\t\t\t\t\t\t</button>
  974. \t\t\t\t\t\t\t\t\t</div>
  975. \t\t\t\t\t\t\t\t{% endif %}
  976.         \t\t\t\t\t</li>
  977.         \t\t\t\t\t{% endif %}
  978. \t\t\t\t{% endfor %}
  979. \t\t\t</ul>
  980. \t{% endfor %}
  981. </div>
  982. <div class=\"ec-modal\">
  983. \t<div class=\"ec-modal-overlay\">
  984. \t\t<div class=\"ec-modal-wrap\">
  985. \t\t\t<span class=\"ec-modal-close\">
  986. \t\t\t\t<span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span>
  987. \t\t\t</span>
  988. \t\t\t<div id=\"ec-modal-header\" class=\"text-center\">{{ 'common.btn.added_cart'|trans }}</div>
  989. \t\t\t<div class=\"ec-modal-box list-modal-box\">
  990. \t\t\t\t<div class=\"ec-role list-role\">
  991. \t\t\t\t    <span class=\"ec-blockBtn--cancel ec-inlineBtn--cancel\">{{ 'common.btn.continue_shopping'|trans }}</span>
  992. \t\t\t\t\t<a href=\"{{ url('cart') }}\" class=\"ec-blockBtn--action ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  993. \t\t\t\t</div>
  994. \t\t\t</div>
  995. \t\t</div>
  996. \t</div>
  997. </div>
  998. <div class=\"ec-pagerRole\">
  999. \t{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  1000. </div>{% endif %}{% endif %}{% endblock %}""Product/list.twig""/home/aonchappy/aonchappy.xsrv.jp/public_html/app/template/default/Product/list.twig");
  1001.     }
  1002.     
  1003.     public function checkSecurity()
  1004.     {
  1005.         static $tags = array("set" => 13"for" => 18"if" => 20"include" => 296);
  1006.         static $filters = array("escape" => 19"raw" => 19"trans" => 45"length" => 109"no_image_product" => 182"trans_product_name" => 185"default" => 196"nl2br" => 213"price" => 224);
  1007.         static $functions = array("class_categories_as_json" => 19"url" => 69"repository" => 113"asset" => 182"form_widget" => 233"form_errors" => 234"form_rest" => 249);
  1008.         try {
  1009.             $this->sandbox->checkSecurity(
  1010.                 ['set''for''if''include'],
  1011.                 ['escape''raw''trans''length''no_image_product''trans_product_name''default''nl2br''price'],
  1012.                 ['class_categories_as_json''url''repository''asset''form_widget''form_errors''form_rest']
  1013.             );
  1014.         } catch (SecurityError $e) {
  1015.             $e->setSourceContext($this->source);
  1016.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1017.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1018.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1019.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1020.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1021.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1022.             }
  1023.             throw $e;
  1024.         }
  1025.     }
  1026. }