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

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Product/list.twig */
  14. class __TwigTemplate_bc6d773d6475bc3fa2bf348778e40dfc extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'breadcrumb' => [$this'block_breadcrumb'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 11
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  42.         // line 14
  43.         $context["body_class"] = "product_page";
  44.         // line 92
  45.         $context["category_id"] = 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.'92$this->source); })()), "request", [], "any"falsefalsetrue92), "query", [], "any"falsefalsetrue92), "get", [=> "category_id"], "method"falsefalsetrue92);
  46.         // line 94
  47.         $context["page_type_name"] = (((isset($context["category_id"]) || array_key_exists("category_id"$context) ? $context["category_id"] : (function () { throw new RuntimeError('Variable "category_id" does not exist.'94$this->source); })())) ? (twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "find", [=> (isset($context["category_id"]) || array_key_exists("category_id"$context) ? $context["category_id"] : (function () { throw new RuntimeError('Variable "category_id" does not exist.'94$this->source); })())], "method"falsefalsetrue94)) : (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.'94$this->source); })()), "request", [], "any"falsefalsetrue94), "query", [], "any"falsefalsetrue94), "get", [=> "name"], "method"falsefalsetrue94)));
  48.         // line 11
  49.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  50.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  53.         
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  55.     }
  56.     // line 16
  57.     public function block_javascript($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  64.         // line 17
  65.         echo "\t<script>
  66. \t\teccube.productsClassCategories = {
  67. ";
  68.         // line 19
  69.         $context['_parent'] = $context;
  70.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'19$this->source); })()));
  71.         $context['loop'] = [
  72.           'parent' => $context['_parent'],
  73.           'index0' => 0,
  74.           'index'  => 1,
  75.           'first'  => true,
  76.         ];
  77.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  78.             $length count($context['_seq']);
  79.             $context['loop']['revindex0'] = $length 1;
  80.             $context['loop']['revindex'] = $length;
  81.             $context['loop']['length'] = $length;
  82.             $context['loop']['last'] = === $length;
  83.         }
  84.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  85.             // line 20
  86.             echo "\"";
  87.             echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue20), 20$this->source), "js"), "html"nulltrue);
  88.             echo "\" : ";
  89.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 20$this->source));
  90.             echo "
  91. ";
  92.             // line 21
  93.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue21) == false)) {
  94.                 echo ",";
  95.             }
  96.             ++$context['loop']['index0'];
  97.             ++$context['loop']['index'];
  98.             $context['loop']['first'] = false;
  99.             if (isset($context['loop']['length'])) {
  100.                 --$context['loop']['revindex0'];
  101.                 --$context['loop']['revindex'];
  102.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  103.             }
  104.         }
  105.         $_parent $context['_parent'];
  106.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  107.         $context array_intersect_key($context$_parent) + $_parent;
  108.         // line 22
  109.         echo "};
  110. \$(function () { // 表示件数を変更
  111. \$('.disp-number').change(function () {
  112. var dispNumber = \$(this).val();
  113. \$('#disp_number').val(dispNumber);
  114. \$('#pageno').val(1);
  115. \$(\"#form1\").submit();
  116. });
  117. // 並び順を変更
  118. \$('.order-by').change(function () {
  119. var orderBy = \$(this).val();
  120. \$('#orderby').val(orderBy);
  121. \$('#pageno').val(1);
  122. \$(\"#form1\").submit();
  123. });
  124. \$('.add-cart').on('click', function (e) {
  125. var \$form = \$(this).parents('li').find('form');
  126. // 個数フォームのチェック
  127. var \$quantity = \$form.parent().find('.quantity');
  128. if (\$quantity.val() < 1) {
  129. \$quantity[0].setCustomValidity('";
  130.         // line 46
  131.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  132.         echo "');
  133. setTimeout(function () {
  134. loadingOverlay('hide');
  135. }, 100);
  136. return true;
  137. } else {
  138. \$quantity[0].setCustomValidity('');
  139. } e.preventDefault();
  140. \$.ajax({
  141. url: \$form.attr('action'),
  142. type: \$form.attr('method'),
  143. data: \$form.serialize(),
  144. dataType: 'json',
  145. beforeSend: function (xhr, settings) { // Buttonを無効にする
  146. \$('.add-cart').prop('disabled', true);
  147. }
  148. }).done(function (data) { // レスポンス内のメッセージをalertで表示
  149. \$.each(data.messages, function () {
  150. \$('#ec-modal-header').text(this);
  151. });
  152. \$('.ec-modal').show()
  153. // カートブロックを更新する
  154. \$.ajax({url: '";
  155.         // line 70
  156.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  157.         echo "', type: 'GET', dataType: 'html'}).done(function (html) {
  158. \$('.ec-headerRole__cart').html(html);
  159. });
  160. }).fail(function (data) {
  161. alert('";
  162.         // line 74
  163.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  164.         echo "');
  165. }).always(function (data) { // Buttonを有効にする
  166. \$('.add-cart').prop('disabled', false);
  167. });
  168. });
  169. });
  170. \$('.ec-modal-wrap').on('click', function (e) { // モーダル内の処理は外側にバブリングさせない
  171. e.stopPropagation();
  172. });
  173. \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function () {
  174. \$('.ec-modal').hide()
  175. });
  176. \t</script>
  177. ";
  178.         
  179.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  180.         
  181.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  182.     }
  183.     // line 97
  184.     public function block_breadcrumb($context, array $blocks = [])
  185.     {
  186.         $macros $this->macros;
  187.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  188.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  189.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  191.         // line 98
  192.         echo "\t<div class=\"breadcrumb-root\">
  193. \t\t<div class=\"breadcrumb-wrapper container\">
  194. \t\t\t<ul>
  195. \t\t\t\t<li>
  196. \t\t\t\t\t<a href=\"";
  197.         // line 102
  198.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  199.         echo "\">
  200. \t\t\t\t\t\tトップ
  201. \t\t\t\t\t</a>
  202. \t\t\t\t\t<svg width=\"5\" height=\"8\" viewbox=\"0 0 5 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
  203. \t\t\t\t\t\t<path d=\"M0.90918 1L3.63645 4L0.90918 7\" stroke=\"#1A1A1A\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>
  204. \t\t\t\t\t</svg>
  205. \t\t\t\t\t<span>
  206. \t\t\t\t\t\t";
  207.         // line 109
  208.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["page_type_name"]) || array_key_exists("page_type_name"$context) ? $context["page_type_name"] : (function () { throw new RuntimeError('Variable "page_type_name" does not exist.'109$this->source); })()), 109$this->source), "html"nulltrue);
  209.         echo "
  210. \t\t\t\t\t</span>
  211. \t\t\t\t</li>
  212. \t\t\t</ul>
  213. \t\t</div>
  214. \t</div>
  215. ";
  216.         
  217.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  218.         
  219.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  220.     }
  221.     // line 117
  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 118
  230.         echo "\t<div class=\"xs-gutter\">
  231. \t\t<h2 class=\"product-list-page-title\">
  232. \t\t\t";
  233.         // line 120
  234.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["page_type_name"]) || array_key_exists("page_type_name"$context) ? $context["page_type_name"] : (function () { throw new RuntimeError('Variable "page_type_name" does not exist.'120$this->source); })()), 120$this->source), "html"nulltrue);
  235.         echo "
  236. \t\t</h2>
  237. \t\t";
  238.         // line 122
  239.         if ((isset($context["category_id"]) || array_key_exists("category_id"$context) ? $context["category_id"] : (function () { throw new RuntimeError('Variable "category_id" does not exist.'122$this->source); })())) {
  240.             // line 123
  241.             echo "\t\t\t<p class=\"product-list-page-description\">
  242. \t\t\t\t";
  243.             // line 124
  244.             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["page_type_name"]) || array_key_exists("page_type_name"$context) ? $context["page_type_name"] : (function () { throw new RuntimeError('Variable "page_type_name" does not exist.'124$this->source); })()), "description", [], "any"falsefalsetrue124), 124$this->source);
  245.             echo "
  246. \t\t\t</p>
  247. \t\t";
  248.         }
  249.         // line 127
  250.         echo "\t</div>
  251. \t";
  252.         // line 130
  253.         echo "\t<div class=\"d-lg-none mt-6\">
  254. \t\t<img src=\"";
  255.         // line 131
  256.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/sm-toujitu-banner2.png""user_data"), "html"nulltrue);
  257.         echo "\" alt=\"12時までのご注文で当日発送\" width=\"390\" height=\"auto\" class=\"w-100\"/>
  258. \t</div>
  259. \t";
  260.         // line 135
  261.         echo "\t<div
  262. \t\tclass=\"page-content-root mt-9 mt-md-15\">
  263. \t\t";
  264.         // line 138
  265.         echo "\t\t";
  266.         if ( !twig_test_empty((isset($context["category_id"]) || array_key_exists("category_id"$context) ? $context["category_id"] : (function () { throw new RuntimeError('Variable "category_id" does not exist.'138$this->source); })()))) {
  267.             // line 139
  268.             echo "\t\t\t";
  269.             echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/category_list_child.twig", ["category" =>             // line 140
  270. (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'140$this->source); })())]);
  271.             echo "
  272. \t\t";
  273.         } else {
  274.             // line 142
  275.             echo "\t\t\t";
  276.             // line 143
  277.             echo "\t\t\t";
  278.             echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/category_list.twig", ["label" => "カテゴリーから探す""href_label" => "すべてのカテゴリーを見る"]);
  279.             echo "
  280. \t\t";
  281.         }
  282.         // line 145
  283.         echo "\t\t<div>
  284. \t\t\t";
  285.         // line 146
  286.         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.'146$this->source); })()), "category_id", [], "any"falsefalsetrue146), "vars", [], "any"falsefalsetrue146), "errors", [], "any"falsefalsetrue146)) > 0)) {
  287.             // line 147
  288.             echo "\t\t\t\t<div class=\"ec-searchnavRole xs-gutter\">
  289. \t\t\t\t\t<p class=\"errormsg text-danger\">";
  290.             // line 148
  291.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  292.             echo "</p>
  293. \t\t\t\t</div>
  294. \t\t\t";
  295.         } else {
  296.             // line 151
  297.             echo "\t\t\t\t<div>
  298. \t\t\t\t\t<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  299. \t\t\t\t\t\t";
  300.             // line 153
  301.             $context['_parent'] = $context;
  302.             $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.'153$this->source); })()));
  303.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  304.                 // line 154
  305.                 echo "\t\t\t\t\t\t\t<input type=\"hidden\" id=\"";
  306.                 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), "id", [], "any"falsefalsetrue154), 154$this->source), "html"nulltrue);
  307.                 echo "\" name=\"";
  308.                 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), "full_name", [], "any"falsefalsetrue154), 154$this->source), "html"nulltrue);
  309.                 echo "\" ";
  310.                 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))) {
  311.                     echo " value=\"";
  312.                     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);
  313.                     echo "\" ";
  314.                 }
  315.                 echo "/>
  316. \t\t\t\t\t\t";
  317.             }
  318.             $_parent $context['_parent'];
  319.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  320.             $context array_intersect_key($context$_parent) + $_parent;
  321.             // line 156
  322.             echo "\t\t\t\t\t</form>
  323. \t\t\t\t\t";
  324.             // line 159
  325.             echo "\t\t\t\t\t<div>
  326. \t\t\t\t\t\t<h2 class=\"section-heading mb-4 xs-gutter\">";
  327.             // line 160
  328.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["page_type_name"]) || array_key_exists("page_type_name"$context) ? $context["page_type_name"] : (function () { throw new RuntimeError('Variable "page_type_name" does not exist.'160$this->source); })()), 160$this->source), "html"nulltrue);
  329.             echo "商品一覧</h2>
  330. \t\t\t\t\t\t<div class=\"product-list-page-list-header\">
  331. \t\t\t\t\t\t\t<div>
  332. \t\t\t\t\t\t\t\t検索結果
  333. \t\t\t\t\t\t\t\t";
  334.             // line 164
  335.             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.'164$this->source); })()), "category_id", [], "any"falsefalsetrue164), "vars", [], "any"falsefalsetrue164), "errors", [], "any"falsefalsetrue164)) > 0)) {
  336.                 // line 165
  337.                 echo "\t\t\t\t\t\t\t\t\t<span class=\"product-list-page-list-header-label\">0</span>
  338. \t\t\t\t\t\t\t\t";
  339.             } else {
  340.                 // line 167
  341.                 echo "\t\t\t\t\t\t\t\t\t<span class=\"product-list-page-list-header-label\">";
  342.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'167$this->source); })()), "totalItemCount", [], "any"falsefalsetrue167), 167$this->source), "html"nulltrue);
  343.                 echo "</span>
  344. \t\t\t\t\t\t\t\t";
  345.             }
  346.             // line 169
  347.             echo "\t\t\t\t\t\t\t\t件
  348. \t\t\t\t\t\t\t</div>
  349. \t\t\t\t\t\t\t";
  350.             // line 171
  351.             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.'171$this->source); })()), "totalItemCount", [], "any"falsefalsetrue171) > 0)) {
  352.                 // line 172
  353.                 echo "\t\t\t\t\t\t\t\t<div class=\"ec-select-custom\">
  354. \t\t\t\t\t\t\t\t\t";
  355.                 // line 173
  356.                 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.'173$this->source); })()), "disp_number", [], "any"falsefalsetrue173), 173$this->source), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  357.                 echo "
  358. \t\t\t\t\t\t\t\t\t";
  359.                 // line 174
  360.                 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.'174$this->source); })()), "orderby", [], "any"falsefalsetrue174), 174$this->source), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  361.                 echo "
  362. \t\t\t\t\t\t\t\t</div>
  363. \t\t\t\t\t\t\t";
  364.             }
  365.             // line 177
  366.             echo "\t\t\t\t\t\t</div>
  367. \t\t\t\t\t</div>
  368. \t\t\t\t</div>
  369. \t\t\t\t";
  370.             // line 180
  371.             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)) {
  372.                 // line 181
  373.                 echo "\t\t\t\t\t<div class=\"product-list-page-products-container\">
  374. \t\t\t\t\t\t";
  375.                 // line 182
  376.                 $context['_parent'] = $context;
  377.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'182$this->source); })()));
  378.                 $context['loop'] = [
  379.                   'parent' => $context['_parent'],
  380.                   'index0' => 0,
  381.                   'index'  => 1,
  382.                   'first'  => true,
  383.                 ];
  384.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  385.                     $length count($context['_seq']);
  386.                     $context['loop']['revindex0'] = $length 1;
  387.                     $context['loop']['revindex'] = $length;
  388.                     $context['loop']['length'] = $length;
  389.                     $context['loop']['last'] = === $length;
  390.                 }
  391.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  392.                     // line 183
  393.                     echo "\t\t\t\t\t\t\t<a href=\"";
  394.                     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"falsefalsetrue183)]), "html"nulltrue);
  395.                     echo "\" class=\"product-list-page-products-item\">
  396. \t\t\t\t\t\t\t\t<div class=\"product-list-page-products-item__image\">
  397. \t\t\t\t\t\t\t\t\t<img src=\"";
  398.                     // line 185
  399.                     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"falsefalsetrue185), 185$this->source)), "save_image"), "html"nulltrue);
  400.                     echo "\" alt=\"";
  401.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue185), 185$this->source), "html"nulltrue);
  402.                     echo "\" ";
  403.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue185) > 5)) {
  404.                         echo " loading=\"lazy\" ";
  405.                     }
  406.                     echo ">
  407. \t\t\t\t\t\t\t\t</div>
  408. \t\t\t\t\t\t\t\t<div class=\"flex-1\">
  409. \t\t\t\t\t\t\t\t\t<p class=\"product-list-page-products-item__name\">";
  410.                     // line 188
  411.                     echo twig_escape_filter($this->envtwig_striptags($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue188), 188$this->source)), "html"nulltrue);
  412.                     echo "</p>
  413. \t\t\t\t\t\t\t\t\t";
  414.                     // line 189
  415.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsetrue189)) {
  416.                         // line 190
  417.                         echo "\t\t\t\t\t\t\t\t\t\t<p class=\"product-list-page-products-item__description_list\">";
  418.                         echo twig_escape_filter($this->envtwig_striptags($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsetrue190), 190$this->source)), "html"nulltrue);
  419.                         echo "</p>
  420. \t\t\t\t\t\t\t\t\t";
  421.                     }
  422.                     // line 193
  423.                     echo "\t\t\t\t\t\t\t\t\t<div class=\"product-list-page-products-item-price\">
  424. \t\t\t\t\t\t\t\t\t\t<p class=\"product-list-page-products-item-price__number \">
  425. \t\t\t\t\t\t\t\t\t\t\t";
  426.                     // line 195
  427.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsetrue195)) {
  428.                         // line 196
  429.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  430.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsetrue196) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsetrue196))) {
  431.                             // line 197
  432.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  433.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue197), 197$this->source)), "html"nulltrue);
  434.                             echo "
  435. \t\t\t\t\t\t\t\t\t\t\t\t";
  436.                         } else {
  437.                             // line 199
  438.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  439.                             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"falsefalsetrue199), 199$this->source)), "html"nulltrue);
  440.                             echo "
  441. \t\t\t\t\t\t\t\t\t\t\t\t\t~
  442. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  443.                             // line 201
  444.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsetrue201), 201$this->source)), "html"nulltrue);
  445.                             echo "
  446. \t\t\t\t\t\t\t\t\t\t\t\t";
  447.                         }
  448.                         // line 203
  449.                         echo "\t\t\t\t\t\t\t\t\t\t\t";
  450.                     } else {
  451.                         // line 204
  452.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  453.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue204), 204$this->source)), "html"nulltrue);
  454.                         echo "
  455. \t\t\t\t\t\t\t\t\t\t\t";
  456.                     }
  457.                     // line 206
  458.                     echo "\t\t\t\t\t\t\t\t\t\t</p>
  459. \t\t\t\t\t\t\t\t\t\t<p class=\"product-list-page-products-item-price__yen\">
  460. \t\t\t\t\t\t\t\t\t\t\t円
  461. \t\t\t\t\t\t\t\t\t\t</p>
  462. \t\t\t\t\t\t\t\t\t\t";
  463.                     // line 211
  464.                     echo "\t\t\t\t\t\t\t\t\t\t";
  465.                     if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue211) > twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'211$this->source); })()), "delivery_free_amount", [], "any"falsefalsetrue211))) {
  466.                         // line 212
  467.                         echo "\t\t\t\t\t\t\t\t\t\t\t<p class=\"product-list-page-products-item-price__freeship\">
  468. \t\t\t\t\t\t\t\t\t\t\t\t送料無料
  469. \t\t\t\t\t\t\t\t\t\t\t</p>
  470. \t\t\t\t\t\t\t\t\t\t";
  471.                     }
  472.                     // line 216
  473.                     echo "\t\t\t\t\t\t\t\t\t</div>
  474. \t\t\t\t\t\t\t\t</div>
  475. \t\t\t\t\t\t\t</a>
  476. \t\t\t\t\t\t";
  477.                     ++$context['loop']['index0'];
  478.                     ++$context['loop']['index'];
  479.                     $context['loop']['first'] = false;
  480.                     if (isset($context['loop']['length'])) {
  481.                         --$context['loop']['revindex0'];
  482.                         --$context['loop']['revindex'];
  483.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  484.                     }
  485.                 }
  486.                 $_parent $context['_parent'];
  487.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  488.                 $context array_intersect_key($context$_parent) + $_parent;
  489.                 // line 220
  490.                 echo "\t\t\t\t\t</div>
  491. \t\t\t\t\t<div class=\"ec-pagerRole mt-7 mt-lg-10\">
  492. \t\t\t\t\t\t";
  493.                 // line 223
  494.                 $this->loadTemplate("Block/pager.twig""Product/list.twig"223)->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.'223$this->source); })()), "paginationData", [], "any"falsefalsetrue223)]));
  495.                 // line 224
  496.                 echo "\t\t\t\t\t</div>
  497. \t\t\t\t";
  498.             } else {
  499.                 // line 226
  500.                 echo "\t\t\t\t\t<div class=\"ec-searchnavRole xs-gutter\">
  501. \t\t\t\t\t\t<p class=\"errormsg text-danger mt-4\">";
  502.                 // line 227
  503.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("検索条件に該当する商品はありませんでした。"), "html"nulltrue);
  504.                 echo "</p>
  505. \t\t\t\t\t</div>
  506. \t\t\t\t";
  507.             }
  508.             // line 230
  509.             echo "\t\t\t";
  510.         }
  511.         // line 231
  512.         echo "\t\t</div>
  513. \t\t";
  514.         // line 234
  515.         echo "\t\t<div class=\"d-none d-md-block\">
  516. \t\t\t";
  517.         // line 235
  518.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/large-banners.twig");
  519.         echo "
  520. \t\t</div>
  521. \t\t";
  522.         // line 238
  523.         echo "\t\t";
  524.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/recommend_list.twig", ["label" => "おすすめ当店在庫品""category_id" => 32]);
  525.         echo "
  526. \t\t";
  527.         // line 240
  528.         echo "\t\t<div class=\"d-none d-md-block\">
  529. \t\t\t";
  530.         // line 241
  531.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/makers.twig");
  532.         echo "
  533. \t\t</div>
  534. \t\t<div class=\"d-md-none\">
  535. \t\t\t";
  536.         // line 245
  537.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/large-banners.twig");
  538.         echo "
  539. \t\t</div>
  540. \t</div>
  541. ";
  542.         
  543.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  544.         
  545.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  546.     }
  547.     public function getTemplateName()
  548.     {
  549.         return "Product/list.twig";
  550.     }
  551.     public function isTraitable()
  552.     {
  553.         return false;
  554.     }
  555.     public function getDebugInfo()
  556.     {
  557.         return array (  575 => 245,  568 => 241,  565 => 240,  560 => 238,  555 => 235,  552 => 234,  548 => 231,  545 => 230,  539 => 227,  536 => 226,  532 => 224,  530 => 223,  525 => 220,  508 => 216,  502 => 212,  499 => 211,  493 => 206,  487 => 204,  484 => 203,  479 => 201,  473 => 199,  467 => 197,  464 => 196,  462 => 195,  458 => 193,  451 => 190,  449 => 189,  445 => 188,  433 => 185,  427 => 183,  410 => 182,  407 => 181,  405 => 180,  400 => 177,  394 => 174,  390 => 173,  387 => 172,  385 => 171,  381 => 169,  375 => 167,  371 => 165,  369 => 164,  362 => 160,  359 => 159,  355 => 156,  338 => 154,  334 => 153,  330 => 151,  324 => 148,  321 => 147,  319 => 146,  316 => 145,  310 => 143,  308 => 142,  303 => 140,  301 => 139,  298 => 138,  294 => 135,  288 => 131,  285 => 130,  281 => 127,  275 => 124,  272 => 123,  270 => 122,  265 => 120,  261 => 118,  251 => 117,  234 => 109,  224 => 102,  218 => 98,  208 => 97,  183 => 74,  176 => 70,  149 => 46,  123 => 22,  107 => 21,  100 => 20,  83 => 19,  79 => 17,  69 => 16,  58 => 11,  56 => 94,  54 => 92,  52 => 14,  39 => 11,);
  558.     }
  559.     public function getSourceContext()
  560.     {
  561.         return new Source("{#
  562. This file is part of EC-CUBE
  563. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  564. http://www.ec-cube.co.jp/
  565. For the full copyright and license information, please view the LICENSE
  566. file that was distributed with this source code.
  567. #}
  568. {% extends 'default_frame.twig' %}
  569. {% set body_class = 'product_page' %}
  570. {% block javascript %}
  571. \t<script>
  572. \t\teccube.productsClassCategories = {
  573. {% for Product in pagination %}
  574. \"{{ Product.id|escape('js') }}\" : {{ class_categories_as_json(Product)|raw }}
  575. {% if loop.last == false %},{% endif %}{% endfor %}
  576. };
  577. \$(function () { // 表示件数を変更
  578. \$('.disp-number').change(function () {
  579. var dispNumber = \$(this).val();
  580. \$('#disp_number').val(dispNumber);
  581. \$('#pageno').val(1);
  582. \$(\"#form1\").submit();
  583. });
  584. // 並び順を変更
  585. \$('.order-by').change(function () {
  586. var orderBy = \$(this).val();
  587. \$('#orderby').val(orderBy);
  588. \$('#pageno').val(1);
  589. \$(\"#form1\").submit();
  590. });
  591. \$('.add-cart').on('click', function (e) {
  592. var \$form = \$(this).parents('li').find('form');
  593. // 個数フォームのチェック
  594. var \$quantity = \$form.parent().find('.quantity');
  595. if (\$quantity.val() < 1) {
  596. \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  597. setTimeout(function () {
  598. loadingOverlay('hide');
  599. }, 100);
  600. return true;
  601. } else {
  602. \$quantity[0].setCustomValidity('');
  603. } e.preventDefault();
  604. \$.ajax({
  605. url: \$form.attr('action'),
  606. type: \$form.attr('method'),
  607. data: \$form.serialize(),
  608. dataType: 'json',
  609. beforeSend: function (xhr, settings) { // Buttonを無効にする
  610. \$('.add-cart').prop('disabled', true);
  611. }
  612. }).done(function (data) { // レスポンス内のメッセージをalertで表示
  613. \$.each(data.messages, function () {
  614. \$('#ec-modal-header').text(this);
  615. });
  616. \$('.ec-modal').show()
  617. // カートブロックを更新する
  618. \$.ajax({url: '{{ url('block_cart') }}', type: 'GET', dataType: 'html'}).done(function (html) {
  619. \$('.ec-headerRole__cart').html(html);
  620. });
  621. }).fail(function (data) {
  622. alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  623. }).always(function (data) { // Buttonを有効にする
  624. \$('.add-cart').prop('disabled', false);
  625. });
  626. });
  627. });
  628. \$('.ec-modal-wrap').on('click', function (e) { // モーダル内の処理は外側にバブリングさせない
  629. e.stopPropagation();
  630. });
  631. \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function () {
  632. \$('.ec-modal').hide()
  633. });
  634. \t</script>
  635. {% endblock %}
  636. {# カテゴリページ #}
  637. {% set category_id = app.request.query.get('category_id') %}
  638. {# カテゴリまたは検索クエリ #}
  639. {% set page_type_name = category_id ? repository('Eccube\\\\Entity\\\\Category').find(category_id) : app.request.query.get('name')  %}
  640. {% block breadcrumb %}
  641. \t<div class=\"breadcrumb-root\">
  642. \t\t<div class=\"breadcrumb-wrapper container\">
  643. \t\t\t<ul>
  644. \t\t\t\t<li>
  645. \t\t\t\t\t<a href=\"{{ url('homepage') }}\">
  646. \t\t\t\t\t\tトップ
  647. \t\t\t\t\t</a>
  648. \t\t\t\t\t<svg width=\"5\" height=\"8\" viewbox=\"0 0 5 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
  649. \t\t\t\t\t\t<path d=\"M0.90918 1L3.63645 4L0.90918 7\" stroke=\"#1A1A1A\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>
  650. \t\t\t\t\t</svg>
  651. \t\t\t\t\t<span>
  652. \t\t\t\t\t\t{{ page_type_name }}
  653. \t\t\t\t\t</span>
  654. \t\t\t\t</li>
  655. \t\t\t</ul>
  656. \t\t</div>
  657. \t</div>
  658. {% endblock %}
  659. {% block main %}
  660. \t<div class=\"xs-gutter\">
  661. \t\t<h2 class=\"product-list-page-title\">
  662. \t\t\t{{ page_type_name }}
  663. \t\t</h2>
  664. \t\t{% if category_id  %}
  665. \t\t\t<p class=\"product-list-page-description\">
  666. \t\t\t\t{{ page_type_name.description|raw }}
  667. \t\t\t</p>
  668. \t\t{% endif %}
  669. \t</div>
  670. \t{# SP用バナー #}
  671. \t<div class=\"d-lg-none mt-6\">
  672. \t\t<img src=\"{{ asset('assets/img/sm-toujitu-banner2.png','user_data') }}\" alt=\"12時までのご注文で当日発送\" width=\"390\" height=\"auto\" class=\"w-100\"/>
  673. \t</div>
  674. \t{# コンテンツ #}
  675. \t<div
  676. \t\tclass=\"page-content-root mt-9 mt-md-15\">
  677. \t\t{# カテゴリページなら子カテゴリ用のテンプレートを読み込む - カテゴリページならばcategory_idがURLに含まれている #}
  678. \t\t{% if category_id is not empty %}
  679. \t\t\t{{ include('Block/category_list_child.twig', {
  680.             category: Category}) }}
  681. \t\t{% else %}
  682. \t\t\t{# 検索結果ページの場合はデフォルトのカテゴリリストを表示 #}
  683. \t\t\t{{ include('Block/category_list.twig', {label: 'カテゴリーから探す', href_label: 'すべてのカテゴリーを見る'}) }}
  684. \t\t{% endif %}
  685. \t\t<div>
  686. \t\t\t{% if search_form.category_id.vars.errors|length > 0 %}
  687. \t\t\t\t<div class=\"ec-searchnavRole xs-gutter\">
  688. \t\t\t\t\t<p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  689. \t\t\t\t</div>
  690. \t\t\t{% else %}
  691. \t\t\t\t<div>
  692. \t\t\t\t\t<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  693. \t\t\t\t\t\t{% for item in search_form %}
  694. \t\t\t\t\t\t\t<input type=\"hidden\" id=\"{{ item.vars.id }}\" name=\"{{ item.vars.full_name }}\" {% if item.vars.value is not empty %} value=\"{{ item.vars.value }}\" {% endif %}/>
  695. \t\t\t\t\t\t{% endfor %}
  696. \t\t\t\t\t</form>
  697. \t\t\t\t\t{# 商品一覧のタイトルと件数とSelect #}
  698. \t\t\t\t\t<div>
  699. \t\t\t\t\t\t<h2 class=\"section-heading mb-4 xs-gutter\">{{ page_type_name }}商品一覧</h2>
  700. \t\t\t\t\t\t<div class=\"product-list-page-list-header\">
  701. \t\t\t\t\t\t\t<div>
  702. \t\t\t\t\t\t\t\t検索結果
  703. \t\t\t\t\t\t\t\t{% if search_form.category_id.vars.errors|length > 0 %}
  704. \t\t\t\t\t\t\t\t\t<span class=\"product-list-page-list-header-label\">0</span>
  705. \t\t\t\t\t\t\t\t{% else %}
  706. \t\t\t\t\t\t\t\t\t<span class=\"product-list-page-list-header-label\">{{ pagination.totalItemCount }}</span>
  707. \t\t\t\t\t\t\t\t{% endif %}
  708. \t\t\t\t\t\t\t\t件
  709. \t\t\t\t\t\t\t</div>
  710. \t\t\t\t\t\t\t{% if pagination.totalItemCount > 0 %}
  711. \t\t\t\t\t\t\t\t<div class=\"ec-select-custom\">
  712. \t\t\t\t\t\t\t\t\t{{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  713. \t\t\t\t\t\t\t\t\t{{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  714. \t\t\t\t\t\t\t\t</div>
  715. \t\t\t\t\t\t\t{% endif %}
  716. \t\t\t\t\t\t</div>
  717. \t\t\t\t\t</div>
  718. \t\t\t\t</div>
  719. \t\t\t\t{% if pagination.totalItemCount > 0 %}
  720. \t\t\t\t\t<div class=\"product-list-page-products-container\">
  721. \t\t\t\t\t\t{% for Product in pagination %}
  722. \t\t\t\t\t\t\t<a href=\"{{ url('product_detail', {'id': Product.id}) }}\" class=\"product-list-page-products-item\">
  723. \t\t\t\t\t\t\t\t<div class=\"product-list-page-products-item__image\">
  724. \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 %}>
  725. \t\t\t\t\t\t\t\t</div>
  726. \t\t\t\t\t\t\t\t<div class=\"flex-1\">
  727. \t\t\t\t\t\t\t\t\t<p class=\"product-list-page-products-item__name\">{{  Product.name|striptags  }}</p>
  728. \t\t\t\t\t\t\t\t\t{% if Product.description_list %}
  729. \t\t\t\t\t\t\t\t\t\t<p class=\"product-list-page-products-item__description_list\">{{ Product.description_list|striptags }}</p>
  730. \t\t\t\t\t\t\t\t\t{% endif %}
  731. \t\t\t\t\t\t\t\t\t<div class=\"product-list-page-products-item-price\">
  732. \t\t\t\t\t\t\t\t\t\t<p class=\"product-list-page-products-item-price__number \">
  733. \t\t\t\t\t\t\t\t\t\t\t{% if Product.hasProductClass %}
  734. \t\t\t\t\t\t\t\t\t\t\t\t{% if Product.getPrice02Min == Product.getPrice02Max %}
  735. \t\t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMin|number_format }}
  736. \t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  737. \t\t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMin|price }}
  738. \t\t\t\t\t\t\t\t\t\t\t\t\t~
  739. \t\t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMax|number_format }}
  740. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  741. \t\t\t\t\t\t\t\t\t\t\t{% else %}
  742. \t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMin|number_format }}
  743. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  744. \t\t\t\t\t\t\t\t\t\t</p>
  745. \t\t\t\t\t\t\t\t\t\t<p class=\"product-list-page-products-item-price__yen\">
  746. \t\t\t\t\t\t\t\t\t\t\t円
  747. \t\t\t\t\t\t\t\t\t\t</p>
  748. \t\t\t\t\t\t\t\t\t\t{# 送料無料条件よりも商品価格が上だったら表示 9,800 #}
  749. \t\t\t\t\t\t\t\t\t\t{% if Product.getPrice02IncTaxMin > BaseInfo.delivery_free_amount  %}
  750. \t\t\t\t\t\t\t\t\t\t\t<p class=\"product-list-page-products-item-price__freeship\">
  751. \t\t\t\t\t\t\t\t\t\t\t\t送料無料
  752. \t\t\t\t\t\t\t\t\t\t\t</p>
  753. \t\t\t\t\t\t\t\t\t\t{% endif %}
  754. \t\t\t\t\t\t\t\t\t</div>
  755. \t\t\t\t\t\t\t\t</div>
  756. \t\t\t\t\t\t\t</a>
  757. \t\t\t\t\t\t{% endfor %}
  758. \t\t\t\t\t</div>
  759. \t\t\t\t\t<div class=\"ec-pagerRole mt-7 mt-lg-10\">
  760. \t\t\t\t\t\t{% include \"Block/pager.twig\" with {'pages': pagination.paginationData} %}
  761. \t\t\t\t\t</div>
  762. \t\t\t\t{% else %}
  763. \t\t\t\t\t<div class=\"ec-searchnavRole xs-gutter\">
  764. \t\t\t\t\t\t<p class=\"errormsg text-danger mt-4\">{{ '検索条件に該当する商品はありませんでした。'|trans }}</p>
  765. \t\t\t\t\t</div>
  766. \t\t\t\t{% endif %}
  767. \t\t\t{% endif %}
  768. \t\t</div>
  769. \t\t{# 当日発送・送料無料 PC only #}
  770. \t\t<div class=\"d-none d-md-block\">
  771. \t\t\t{{ include('Block/large-banners.twig') }}
  772. \t\t</div>
  773. \t\t{# おすすめ当店在庫品 #}
  774. \t\t{{ include('Block/recommend_list.twig', {label: 'おすすめ当店在庫品', category_id: 32}) }}
  775. \t\t{# 取り扱いメーカー #}
  776. \t\t<div class=\"d-none d-md-block\">
  777. \t\t\t{{ include('Block/makers.twig') }}
  778. \t\t</div>
  779. \t\t<div class=\"d-md-none\">
  780. \t\t\t{{ include('Block/large-banners.twig') }}
  781. \t\t</div>
  782. \t</div>
  783. {% endblock %}
  784. ""Product/list.twig""/home/xs804421/stg.denzai-bluewood.com/public_html/app/template/default/Product/list.twig");
  785.     }
  786.     
  787.     public function checkSecurity()
  788.     {
  789.         static $tags = array("set" => 14"for" => 19"if" => 21"include" => 223);
  790.         static $filters = array("escape" => 20"raw" => 20"trans" => 46"length" => 146"no_image_product" => 185"striptags" => 188"number_format" => 197"price" => 199);
  791.         static $functions = array("repository" => 94"class_categories_as_json" => 20"url" => 70"asset" => 131"include" => 139"form_widget" => 173);
  792.         try {
  793.             $this->sandbox->checkSecurity(
  794.                 ['set''for''if''include'],
  795.                 ['escape''raw''trans''length''no_image_product''striptags''number_format''price'],
  796.                 ['repository''class_categories_as_json''url''asset''include''form_widget'],
  797.                 $this->source
  798.             );
  799.         } catch (SecurityError $e) {
  800.             $e->setSourceContext($this->source);
  801.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  802.                 $e->setTemplateLine($tags[$e->getTagName()]);
  803.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  804.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  805.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  806.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  807.             }
  808.             throw $e;
  809.         }
  810.     }
  811. }