var/cache/dev/twig/d7/d747c4637a30f63e57933f7d1ddb0933c533b88e6c10b5d6d646b5b3d4cdbe29.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_61e063a7d11ce1e21b442d25fa2aeb1cb0926c41c43bd9a1c15a11a4c8c91565 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  48.         
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  50.     }
  51.     // line 15
  52.     public function block_javascript($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  59.         // line 16
  60.         echo "    <script>
  61.         eccube.productsClassCategories = {
  62.             ";
  63.         // line 18
  64.         $context['_parent'] = $context;
  65.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'18$this->source); })()));
  66.         $context['loop'] = [
  67.           'parent' => $context['_parent'],
  68.           'index0' => 0,
  69.           'index'  => 1,
  70.           'first'  => true,
  71.         ];
  72.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  73.             $length count($context['_seq']);
  74.             $context['loop']['revindex0'] = $length 1;
  75.             $context['loop']['revindex'] = $length;
  76.             $context['loop']['length'] = $length;
  77.             $context['loop']['last'] = === $length;
  78.         }
  79.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  80.             // line 19
  81.             echo "            \"";
  82.             echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue19), 19$this->source), "js"), "html"nulltrue);
  83.             echo "\": ";
  84.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 19$this->source));
  85.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue19) == false)) {
  86.                 echo ", ";
  87.             }
  88.             // line 20
  89.             echo "            ";
  90.             ++$context['loop']['index0'];
  91.             ++$context['loop']['index'];
  92.             $context['loop']['first'] = false;
  93.             if (isset($context['loop']['length'])) {
  94.                 --$context['loop']['revindex0'];
  95.                 --$context['loop']['revindex'];
  96.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  97.             }
  98.         }
  99.         $_parent $context['_parent'];
  100.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  101.         $context array_intersect_key($context$_parent) + $_parent;
  102.         // line 21
  103.         echo "        };
  104.         \$(function() {
  105.             // 表示件数を変更
  106.             \$('.disp-number').change(function() {
  107.                 var dispNumber = \$(this).val();
  108.                 \$('#disp_number').val(dispNumber);
  109.                 \$('#pageno').val(1);
  110.                 \$(\"#form1\").submit();
  111.             });
  112.             // 並び順を変更
  113.             \$('.order-by').change(function() {
  114.                 var orderBy = \$(this).val();
  115.                 \$('#orderby').val(orderBy);
  116.                 \$('#pageno').val(1);
  117.                 \$(\"#form1\").submit();
  118.             });
  119.             \$('.add-cart').on('click', function(e) {
  120.                 var \$form = \$(this).parents('li').find('form');
  121.                 // 個数フォームのチェック
  122.                 var \$quantity = \$form.parent().find('.quantity');
  123.                 if (\$quantity.val() < 1) {
  124.                     \$quantity[0].setCustomValidity('";
  125.         // line 47
  126.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  127.         echo "');
  128.                     setTimeout(function() {
  129.                         loadingOverlay('hide');
  130.                     }, 100);
  131.                     return true;
  132.                 } else {
  133.                     \$quantity[0].setCustomValidity('');
  134.                 }
  135.                 e.preventDefault();
  136.                 \$.ajax({
  137.                     url: \$form.attr('action'),
  138.                     type: \$form.attr('method'),
  139.                     data: \$form.serialize(),
  140.                     dataType: 'json',
  141.                     beforeSend: function(xhr, settings) {
  142.                         // Buttonを無効にする
  143.                         \$('.add-cart').prop('disabled', true);
  144.                     }
  145.                 }).done(function(data) {
  146.                     // レスポンス内のメッセージをalertで表示
  147.                     \$.each(data.messages, function() {
  148.                         \$('#ec-modal-header').text(this);
  149.                     });
  150.                     \$('.ec-modal').show()
  151.                     // カートブロックを更新する
  152.                     \$.ajax({
  153.                         url: '";
  154.         // line 75
  155.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  156.         echo "',
  157.                         type: 'GET',
  158.                         dataType: 'html'
  159.                     }).done(function(html) {
  160.                         \$('.ec-headerRole__cart').html(html);
  161.                     });
  162.                 }).fail(function(data) {
  163.                     alert('";
  164.         // line 82
  165.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  166.         echo "');
  167.                 }).always(function(data) {
  168.                     // Buttonを有効にする
  169.                     \$('.add-cart').prop('disabled', false);
  170.                 });
  171.             });
  172.         });
  173.         \$('.ec-modal-wrap').on('click', function(e) {
  174.             // モーダル内の処理は外側にバブリングさせない
  175.             e.stopPropagation();
  176.         });
  177.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  178.             \$('.ec-modal').hide()
  179.         });
  180.     </script>
  181. ";
  182.         
  183.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  184.         
  185.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  186.     }
  187.     // line 101
  188.     public function block_main($context, array $blocks = [])
  189.     {
  190.         $macros $this->macros;
  191.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  192.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  193.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  194.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  195.         // line 102
  196.         echo "    <!-- PAGE CONTENTS -->
  197.     <div class=\"products productsIndex\">
  198.         <section class=\"sub-container\">
  199.             <!-- H1 商品カテゴリーの見出し -->
  200.             <div class=\"sub-h1--products\">
  201.                 <h1 class=\"itemTitle\" style=\"color: #221613;\">
  202.                     ";
  203.         // line 108
  204.         if ((array_key_exists("subtitle"$context) &&  !twig_test_empty((isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'108$this->source); })())))) {
  205.             // line 109
  206.             echo "                        ";
  207.             // line 110
  208.             echo "                        ";
  209.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'110$this->source); })()))) {
  210.                 // line 111
  211.                 echo "                            ";
  212.                 // line 112
  213.                 echo "                            ";
  214.                 if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'112$this->source); })()), "Parent", [], "any"falsefalsetrue112))) {
  215.                     // line 113
  216.                     echo "                                ";
  217.                     // line 114
  218.                     echo "                                ";
  219.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'114$this->source); })()), "Parent", [], "any"falsefalsetrue114), "name", [], "any"falsefalsetrue114), 114$this->source), "html"nulltrue);
  220.                     echo "
  221.                             ";
  222.                 }
  223.                 // line 116
  224.                 echo "                        ";
  225.             }
  226.             // line 117
  227.             echo "
  228.                         ";
  229.             // line 118
  230.             if (((isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'118$this->source); })()) == "全商品")) {
  231.                 // line 119
  232.                 echo "                                商品一覧
  233.                             ";
  234.             } else {
  235.                 // line 121
  236.                 echo "                                ";
  237.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'121$this->source); })()), 121$this->source), "html"nulltrue);
  238.                 echo "
  239.                         ";
  240.             }
  241.             // line 123
  242.             echo "
  243.                     ";
  244.         } elseif ((        // line 124
  245. array_key_exists("title"$context) &&  !twig_test_empty((isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'124$this->source); })())))) {
  246.             // line 125
  247.             echo "                        ";
  248.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'125$this->source); })()), 125$this->source), "html"nulltrue);
  249.             echo "
  250.                     ";
  251.         }
  252.         // line 127
  253.         echo "                </h1>
  254.                 <div class=\"itemImg\">
  255.                     <div class=\"itemImgInner\">
  256.                         <img src=\"";
  257.         // line 130
  258.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/products/sub_h1_02.jpg"), "html"nulltrue);
  259.         echo "\" alt=\"香り芽本舗の商品一覧\" class=\"imgObjectFitCover\">
  260.                     </div>
  261.                 </div>
  262.             </div>
  263.             <!-- /H1 -->
  264.             <!-- CONTENTS -->
  265.             <div class=\"l-container l-2ColumnContainer\">
  266.                 <!-- MAIN-CONTENTS -->
  267.                 <div class=\"l-main\">
  268.                     <!-- BREAD CRUMBS -->
  269.                     <div class=\"sub-breadcrumbsWrap\">
  270.                         <ul class=\"sub-breadcrumbs\">
  271.                             <li><a href=\"#\">TOP</a></li>
  272.                             <li>商品一覧</li>
  273.                         </ul>
  274.                     </div>
  275.                     <!-- /BREAD CRUMBS -->
  276.                     <!-- MAIN CONTENTS -->
  277.                     <section>
  278.                         ";
  279.         // line 149
  280.         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.'149$this->source); })()), "category_id", [], "any"falsefalsetrue149), "vars", [], "any"falsefalsetrue149), "errors", [], "any"falsefalsetrue149)) > 0)) {
  281.             // line 150
  282.             echo "                        <div class=\"ec-searchnavRole\">
  283.                             <p class=\"errormsg text-danger\">";
  284.             // line 151
  285.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  286.             echo "</p>
  287.                         </div>
  288.                         ";
  289.         } else {
  290.             // line 154
  291.             echo "
  292.                             <div class=\"ec-searchnavRole\">
  293.                                 <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  294.                                     ";
  295.             // line 157
  296.             $context['_parent'] = $context;
  297.             $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.'157$this->source); })()));
  298.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  299.                 // line 158
  300.                 echo "                                        <input type=\"hidden\" id=\"";
  301.                 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"falsefalsetrue158), "id", [], "any"falsefalsetrue158), 158$this->source), "html"nulltrue);
  302.                 echo "\"
  303.                                                name=\"";
  304.                 // line 159
  305.                 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"falsefalsetrue159), "full_name", [], "any"falsefalsetrue159), 159$this->source), "html"nulltrue);
  306.                 echo "\"
  307.                                                ";
  308.                 // line 160
  309.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue160), "value", [], "any"falsefalsetrue160))) {
  310.                     echo "value=\"";
  311.                     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"falsefalsetrue160), "value", [], "any"falsefalsetrue160), 160$this->source), "html"nulltrue);
  312.                     echo "\" ";
  313.                 }
  314.                 echo "/>
  315.                                     ";
  316.             }
  317.             $_parent $context['_parent'];
  318.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  319.             $context array_intersect_key($context$_parent) + $_parent;
  320.             // line 162
  321.             echo "                                </form>
  322.                             </div>
  323.                         <!-- HED -->
  324.                         <div class=\"products-listHed\">
  325.                             <h2 class=\"mod-hl-01\">商品一覧</h2>
  326.                             <div class=\"boxSortBtnWrap\">
  327.                                 ";
  328.             // line 169
  329.             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.'169$this->source); })()), "totalItemCount", [], "any"falsefalsetrue169) > 0)) {
  330.                 // line 170
  331.                 echo "                                    <div class=\"boxSortBtn boxSortBtn-number\">
  332.                                         ";
  333.                 // line 171
  334.                 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.'171$this->source); })()), "disp_number", [], "any"falsefalsetrue171), 171$this->source), 'widget', ["id" => """attr" => ["class" => "disp-number mod-form-select form-control"]]);
  335.                 echo "
  336.                                     </div>
  337.                                     <div class=\"boxSortBtn boxSortBtn-orderBy\">
  338.                                         ";
  339.                 // line 174
  340.                 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 mod-form-select form-control"]]);
  341.                 echo "
  342.                                     </div>
  343.                                 ";
  344.             }
  345.             // line 177
  346.             echo "                            </div>
  347.                         </div>
  348.                         <!-- /HED -->
  349.                             <div class=\"ec-searchnavRole__infos marginBottom40\">
  350.                                 <div class=\"ec-searchnavRole__counter\">
  351.                                     ";
  352.             // line 183
  353.             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.'183$this->source); })()), "totalItemCount", [], "any"falsefalsetrue183) > 0)) {
  354.                 // line 184
  355.                 echo "                                        ";
  356.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>", ["%count%" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'184$this->source); })()), "totalItemCount", [], "any"falsefalsetrue184)]);
  357.                 echo "
  358.                                     ";
  359.             } else {
  360.                 // line 186
  361.                 echo "                                        <span>";
  362.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  363.                 echo "</span>
  364.                                     ";
  365.             }
  366.             // line 188
  367.             echo "                                </div>
  368.                             </div>
  369.                         <!-- LIST -->
  370.                         <div class=\"products-listList mod-productsBoxContainer\">
  371.                             ";
  372.             // line 195
  373.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'195$this->source); })()), "totalItemCount", [], "any"falsefalsetrue195) > 0)) {
  374.                 // line 196
  375.                 echo "
  376.                                         ";
  377.                 // line 197
  378.                 $context['_parent'] = $context;
  379.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'197$this->source); })()));
  380.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  381.                     // line 198
  382.                     echo "                                            <!-- BOX -->
  383.                                             <article class=\"mod-productsBox\">
  384.                                                 <a href=\"";
  385.                     // line 200
  386.                     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"falsefalsetrue200)]), "html"nulltrue);
  387.                     echo "\" class=\"mod-productsBoxInner\">
  388.                                                     <span class=\"boxImg\">
  389.                                                         <span class=\"boxImgInner\">
  390.                                                             <img src=\"";
  391.                     // line 203
  392.                     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"falsefalsetrue203), 203$this->source)), "save_image"), "html"nulltrue);
  393.                     echo "\" alt=\"";
  394.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue203), 203$this->source), "html"nulltrue);
  395.                     echo "\" class=\"imgObjectFitCover\" loading=\"lazy\">
  396.                                                         </span>
  397.                                                     </span>
  398.                                                     <div class=\"boxData\">
  399.                                                         <h3 class=\"name\">";
  400.                     // line 207
  401.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue207), 207$this->source), "html"nulltrue);
  402.                     echo "</h3>
  403.                                                         ";
  404.                     // line 210
  405.                     echo "                                                        <p class=\"price\">
  406.                                                             ";
  407.                     // line 211
  408.                     if ( !(null === twig_get_attribute($this->env$this->source$context["Product"], "getPrice01Min", [], "any"falsefalsetrue211))) {
  409.                         // line 212
  410.                         echo "                                                                ";
  411.                         $context["priceClass"] = "color: #f00;font-weight: bold;font-size: 17px;text-align:right;";
  412.                         // line 213
  413.                         echo "                                                            ";
  414.                     } else {
  415.                         // line 214
  416.                         echo "                                                                ";
  417.                         $context["priceClass"] = "";
  418.                         // line 215
  419.                         echo "                                                            ";
  420.                     }
  421.                     // line 216
  422.                     echo "                                                            <div style=\"";
  423.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["priceClass"]) || array_key_exists("priceClass"$context) ? $context["priceClass"] : (function () { throw new RuntimeError('Variable "priceClass" does not exist.'216$this->source); })()), 216$this->source), "html"nulltrue);
  424.                     echo "\">
  425.                                                                 ";
  426.                     // line 217
  427.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsetrue217)) {
  428.                         // line 218
  429.                         echo "                                                                    ";
  430.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsetrue218) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsetrue218))) {
  431.                             // line 219
  432.                             echo "                                                                        ";
  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"falsefalsetrue219), 219$this->source)), "html"nulltrue);
  434.                             echo "
  435.                                                                     ";
  436.                         } else {
  437.                             // line 221
  438.                             echo "                                                                        ";
  439.                             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"falsefalsetrue221), 221$this->source)), "html"nulltrue);
  440.                             echo "
  441.                                                                         ~
  442.                                                                         ";
  443.                             // line 223
  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"falsefalsetrue223), 223$this->source)), "html"nulltrue);
  445.                             echo "
  446.                                                                     ";
  447.                         }
  448.                         // line 225
  449.                         echo "                                                                    円
  450.                                                                     <small class=\"isSmall\" style=\"font-size: 15px;\">(税込)</small>
  451.                                                                 ";
  452.                     } else {
  453.                         // line 228
  454.                         echo "                                                                    ";
  455.                         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"falsefalsetrue228), 228$this->source)), "html"nulltrue);
  456.                         echo "
  457.                                                                     円
  458.                                                                     <small class=\"isSmall\" style=\"font-size: 15px;\">(税込)</small>
  459.                                                                 ";
  460.                     }
  461.                     // line 232
  462.                     echo "                                                            </div>
  463.                                                             <div class=\"font13 textRight\" style=\"margin-top:10px;text-decoration: line-through;\">
  464.                                                             ";
  465.                     // line 235
  466.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsetrue235)) {
  467.                         // line 236
  468.                         echo "                                                                <div>
  469.                                                                     ";
  470.                         // line 237
  471.                         if (( !(null === twig_get_attribute($this->env$this->source$context["Product"], "getPrice01Min", [], "any"falsefalsetrue237)) && (twig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMin", [], "any"falsefalsetrue237) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMax", [], "any"falsefalsetrue237)))) {
  472.                             // line 238
  473.                             echo "                                                                        ";
  474.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMin", [], "any"falsefalsetrue238), 238$this->source)), "html"nulltrue);
  475.                             echo "円
  476.                                                                         <span class=\"tax\">(税込)</span>
  477.                                                                     ";
  478.                         } elseif (( !(null === twig_get_attribute($this->env$this->source,                         // line 240
  479. $context["Product"], "getPrice01Min", [], "any"falsefalsetrue240)) &&  !(null === twig_get_attribute($this->env$this->source$context["Product"], "getPrice01Max", [], "any"falsefalsetrue240)))) {
  480.                             // line 241
  481.                             echo "                                                                        ";
  482.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMin", [], "any"falsefalsetrue241), 241$this->source)), "html"nulltrue);
  483.                             echo "~ ";
  484.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMax", [], "any"falsefalsetrue241), 241$this->source)), "html"nulltrue);
  485.                             echo "円
  486.                                                                         <span class=\"tax\">(税込)</span>
  487.                                                                     ";
  488.                         }
  489.                         // line 244
  490.                         echo "                                                                </div>
  491.                                                             ";
  492.                     } else {
  493.                         // line 246
  494.                         echo "                                                                ";
  495.                         if ( !(null === twig_get_attribute($this->env$this->source$context["Product"], "getPrice01Max", [], "any"falsefalsetrue246))) {
  496.                             // line 247
  497.                             echo "                                                                    ";
  498.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMin", [], "any"falsefalsetrue247), 247$this->source)), "html"nulltrue);
  499.                             echo "円
  500.                                                                     <span class=\"tax\">(税込)</span>
  501.                                                                 ";
  502.                         }
  503.                         // line 250
  504.                         echo "                                                            ";
  505.                     }
  506.                     // line 251
  507.                     echo "                                                            </div>
  508.                                                         </p>
  509.                                                         ";
  510.                     // line 255
  511.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsetrue255)) {
  512.                         // line 256
  513.                         echo "                                                        ";
  514.                     } else {
  515.                         // line 257
  516.                         echo "                                                            <div class=\"ec-productRole__btn\">
  517.                                                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  518.                                                                     ";
  519.                         // line 259
  520.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  521.                         echo "
  522.                                                                 </button>
  523.                                                             </div>
  524.                                                         ";
  525.                     }
  526.                     // line 263
  527.                     echo "                                                    </div>
  528.                                                 </a>
  529.                                             </article>
  530.                                             <!-- /BOX -->
  531.                                         ";
  532.                 }
  533.                 $_parent $context['_parent'];
  534.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  535.                 $context array_intersect_key($context$_parent) + $_parent;
  536.                 // line 268
  537.                 echo "
  538.                             ";
  539.             }
  540.             // line 270
  541.             echo "
  542.                         </div>
  543.                         <!-- /LIST -->
  544.                         <div class=\"ec-modal\">
  545.                             <div class=\"ec-modal-overlay\">
  546.                                 <div class=\"ec-modal-wrap\">
  547.                                     <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  548.             // line 277
  549.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  550.             echo "\" alt=\"\"/></span></span>
  551.                                     <div id=\"ec-modal-header\" class=\"text-center\">";
  552.             // line 278
  553.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  554.             echo "</div>
  555.                                     <div class=\"ec-modal-box\">
  556.                                         <div class=\"ec-role\">
  557.                                             <span class=\"ec-inlineBtn--cancel\">";
  558.             // line 281
  559.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  560.             echo "</span>
  561.                                             <a href=\"";
  562.             // line 282
  563.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  564.             echo "\" class=\"ec-inlineBtn--action\">";
  565.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  566.             echo "</a>
  567.                                         </div>
  568.                                     </div>
  569.                                 </div>
  570.                             </div>
  571.                         </div>
  572.                         ";
  573.         }
  574.         // line 289
  575.         echo "                    </section>
  576.                     <!-- /MAIN CONTENTS -->
  577.                     <!-- PAGINATION -->
  578.                     ";
  579.         // line 294
  580.         $this->loadTemplate("pager.twig""Product/list.twig"294)->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.'294$this->source); })()), "paginationData", [], "any"falsefalsetrue294)]));
  581.         // line 295
  582.         echo "                    <!-- /PAGINATION -->
  583.                     ";
  584.         // line 297
  585.         if (twig_get_attribute($this->env$this->source, (isset($context["Layout"]) || array_key_exists("Layout"$context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.'297$this->source); })()), "MainBottom", [], "any"falsefalsetrue297)) {
  586.             // line 298
  587.             echo "                            ";
  588.             echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"block.twig", ["Blocks" => twig_get_attribute($this->env$this->source, (isset($context["Layout"]) || array_key_exists("Layout"$context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.'298$this->source); })()), "MainBottom", [], "any"falsefalsetrue298)]);
  589.             echo "
  590.                     ";
  591.         }
  592.         // line 300
  593.         echo "
  594.                 </div>
  595.                 <!-- /MAIN-CONTENTS -->
  596.                 <!-- SIDE-CONTENTS -->
  597.                 ";
  598.         // line 305
  599.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/side_menu.twig");
  600.         echo "
  601.                 <!-- /SIDE-CONTENTS -->
  602.             </div>
  603.             <!-- /CONTENTS -->
  604.         </section>
  605.     </div>
  606.     <!-- /PAGE CONTENTS -->
  607.     <style>
  608.         .ec-blockBtn--action {
  609.             height: 30px;
  610.             line-height: 100%;
  611.             margin-top: 15px;
  612.             font-size: 12px;
  613.         }
  614.     </style>
  615. ";
  616.         
  617.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  618.         
  619.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  620.     }
  621.     public function getTemplateName()
  622.     {
  623.         return "Product/list.twig";
  624.     }
  625.     public function isTraitable()
  626.     {
  627.         return false;
  628.     }
  629.     public function getDebugInfo()
  630.     {
  631.         return array (  640 => 305,  633 => 300,  627 => 298,  625 => 297,  621 => 295,  619 => 294,  612 => 289,  600 => 282,  596 => 281,  590 => 278,  586 => 277,  577 => 270,  573 => 268,  563 => 263,  556 => 259,  552 => 257,  549 => 256,  547 => 255,  541 => 251,  538 => 250,  531 => 247,  528 => 246,  524 => 244,  515 => 241,  513 => 240,  507 => 238,  505 => 237,  502 => 236,  500 => 235,  495 => 232,  487 => 228,  482 => 225,  477 => 223,  471 => 221,  465 => 219,  462 => 218,  460 => 217,  455 => 216,  452 => 215,  449 => 214,  446 => 213,  443 => 212,  441 => 211,  438 => 210,  433 => 207,  424 => 203,  418 => 200,  414 => 198,  410 => 197,  407 => 196,  405 => 195,  396 => 188,  390 => 186,  384 => 184,  382 => 183,  374 => 177,  368 => 174,  362 => 171,  359 => 170,  357 => 169,  348 => 162,  336 => 160,  332 => 159,  327 => 158,  323 => 157,  318 => 154,  312 => 151,  309 => 150,  307 => 149,  285 => 130,  280 => 127,  274 => 125,  272 => 124,  269 => 123,  263 => 121,  259 => 119,  257 => 118,  254 => 117,  251 => 116,  245 => 114,  243 => 113,  240 => 112,  238 => 111,  235 => 110,  233 => 109,  231 => 108,  223 => 102,  213 => 101,  186 => 82,  176 => 75,  145 => 47,  117 => 21,  103 => 20,  95 => 19,  78 => 18,  74 => 16,  64 => 15,  53 => 11,  51 => 13,  38 => 11,);
  632.     }
  633.     public function getSourceContext()
  634.     {
  635.         return new Source("{#
  636. This file is part of EC-CUBE
  637. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  638. http://www.ec-cube.co.jp/
  639. For the full copyright and license information, please view the LICENSE
  640. file that was distributed with this source code.
  641. #}
  642. {% extends 'default_frame.twig' %}
  643. {% set body_class = 'product_page' %}
  644. {% block javascript %}
  645.     <script>
  646.         eccube.productsClassCategories = {
  647.             {% for Product in pagination %}
  648.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  649.             {% endfor %}
  650.         };
  651.         \$(function() {
  652.             // 表示件数を変更
  653.             \$('.disp-number').change(function() {
  654.                 var dispNumber = \$(this).val();
  655.                 \$('#disp_number').val(dispNumber);
  656.                 \$('#pageno').val(1);
  657.                 \$(\"#form1\").submit();
  658.             });
  659.             // 並び順を変更
  660.             \$('.order-by').change(function() {
  661.                 var orderBy = \$(this).val();
  662.                 \$('#orderby').val(orderBy);
  663.                 \$('#pageno').val(1);
  664.                 \$(\"#form1\").submit();
  665.             });
  666.             \$('.add-cart').on('click', function(e) {
  667.                 var \$form = \$(this).parents('li').find('form');
  668.                 // 個数フォームのチェック
  669.                 var \$quantity = \$form.parent().find('.quantity');
  670.                 if (\$quantity.val() < 1) {
  671.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  672.                     setTimeout(function() {
  673.                         loadingOverlay('hide');
  674.                     }, 100);
  675.                     return true;
  676.                 } else {
  677.                     \$quantity[0].setCustomValidity('');
  678.                 }
  679.                 e.preventDefault();
  680.                 \$.ajax({
  681.                     url: \$form.attr('action'),
  682.                     type: \$form.attr('method'),
  683.                     data: \$form.serialize(),
  684.                     dataType: 'json',
  685.                     beforeSend: function(xhr, settings) {
  686.                         // Buttonを無効にする
  687.                         \$('.add-cart').prop('disabled', true);
  688.                     }
  689.                 }).done(function(data) {
  690.                     // レスポンス内のメッセージをalertで表示
  691.                     \$.each(data.messages, function() {
  692.                         \$('#ec-modal-header').text(this);
  693.                     });
  694.                     \$('.ec-modal').show()
  695.                     // カートブロックを更新する
  696.                     \$.ajax({
  697.                         url: '{{ url('block_cart') }}',
  698.                         type: 'GET',
  699.                         dataType: 'html'
  700.                     }).done(function(html) {
  701.                         \$('.ec-headerRole__cart').html(html);
  702.                     });
  703.                 }).fail(function(data) {
  704.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  705.                 }).always(function(data) {
  706.                     // Buttonを有効にする
  707.                     \$('.add-cart').prop('disabled', false);
  708.                 });
  709.             });
  710.         });
  711.         \$('.ec-modal-wrap').on('click', function(e) {
  712.             // モーダル内の処理は外側にバブリングさせない
  713.             e.stopPropagation();
  714.         });
  715.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  716.             \$('.ec-modal').hide()
  717.         });
  718.     </script>
  719. {% endblock %}
  720. {% block main %}
  721.     <!-- PAGE CONTENTS -->
  722.     <div class=\"products productsIndex\">
  723.         <section class=\"sub-container\">
  724.             <!-- H1 商品カテゴリーの見出し -->
  725.             <div class=\"sub-h1--products\">
  726.                 <h1 class=\"itemTitle\" style=\"color: #221613;\">
  727.                     {% if subtitle is defined and subtitle is not empty %}
  728.                         {# 「全商品」を除外 #}
  729.                         {% if Category is not null %}
  730.                             {# 親カテゴリ(「個人印鑑」など)を除外 #}
  731.                             {% if Category.Parent is not null %}
  732.                                 {# 子カテゴリ(「実印」など)にのみ適用 #}
  733.                                 {{ Category.Parent.name }}
  734.                             {% endif %}
  735.                         {% endif %}
  736.                         {% if(subtitle == \"全商品\") %}
  737.                                 商品一覧
  738.                             {% else %}
  739.                                 {{ subtitle }}
  740.                         {% endif %}
  741.                     {% elseif title is defined and title is not empty %}
  742.                         {{ title }}
  743.                     {% endif %}
  744.                 </h1>
  745.                 <div class=\"itemImg\">
  746.                     <div class=\"itemImgInner\">
  747.                         <img src=\"{{ asset('assets/img/products/sub_h1_02.jpg') }}\" alt=\"香り芽本舗の商品一覧\" class=\"imgObjectFitCover\">
  748.                     </div>
  749.                 </div>
  750.             </div>
  751.             <!-- /H1 -->
  752.             <!-- CONTENTS -->
  753.             <div class=\"l-container l-2ColumnContainer\">
  754.                 <!-- MAIN-CONTENTS -->
  755.                 <div class=\"l-main\">
  756.                     <!-- BREAD CRUMBS -->
  757.                     <div class=\"sub-breadcrumbsWrap\">
  758.                         <ul class=\"sub-breadcrumbs\">
  759.                             <li><a href=\"#\">TOP</a></li>
  760.                             <li>商品一覧</li>
  761.                         </ul>
  762.                     </div>
  763.                     <!-- /BREAD CRUMBS -->
  764.                     <!-- MAIN CONTENTS -->
  765.                     <section>
  766.                         {% if search_form.category_id.vars.errors|length > 0 %}
  767.                         <div class=\"ec-searchnavRole\">
  768.                             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  769.                         </div>
  770.                         {% else %}
  771.                             <div class=\"ec-searchnavRole\">
  772.                                 <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  773.                                     {% for item in search_form %}
  774.                                         <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  775.                                                name=\"{{ item.vars.full_name }}\"
  776.                                                {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  777.                                     {% endfor %}
  778.                                 </form>
  779.                             </div>
  780.                         <!-- HED -->
  781.                         <div class=\"products-listHed\">
  782.                             <h2 class=\"mod-hl-01\">商品一覧</h2>
  783.                             <div class=\"boxSortBtnWrap\">
  784.                                 {% if pagination.totalItemCount > 0 %}
  785.                                     <div class=\"boxSortBtn boxSortBtn-number\">
  786.                                         {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number mod-form-select form-control'}}) }}
  787.                                     </div>
  788.                                     <div class=\"boxSortBtn boxSortBtn-orderBy\">
  789.                                         {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by mod-form-select form-control'}}) }}
  790.                                     </div>
  791.                                 {% endif %}
  792.                             </div>
  793.                         </div>
  794.                         <!-- /HED -->
  795.                             <div class=\"ec-searchnavRole__infos marginBottom40\">
  796.                                 <div class=\"ec-searchnavRole__counter\">
  797.                                     {% if pagination.totalItemCount > 0 %}
  798.                                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  799.                                     {% else %}
  800.                                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  801.                                     {% endif %}
  802.                                 </div>
  803.                             </div>
  804.                         <!-- LIST -->
  805.                         <div class=\"products-listList mod-productsBoxContainer\">
  806.                             {% if pagination.totalItemCount > 0 %}
  807.                                         {% for Product in pagination %}
  808.                                             <!-- BOX -->
  809.                                             <article class=\"mod-productsBox\">
  810.                                                 <a href=\"{{ url('product_detail', {'id': Product.id}) }}\" class=\"mod-productsBoxInner\">
  811.                                                     <span class=\"boxImg\">
  812.                                                         <span class=\"boxImgInner\">
  813.                                                             <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" class=\"imgObjectFitCover\" loading=\"lazy\">
  814.                                                         </span>
  815.                                                     </span>
  816.                                                     <div class=\"boxData\">
  817.                                                         <h3 class=\"name\">{{ Product.name }}</h3>
  818.                                                         {# 販売価格 #}
  819.                                                         <p class=\"price\">
  820.                                                             {% if Product.getPrice01Min is not null %}
  821.                                                                 {% set priceClass = \"color: #f00;font-weight: bold;font-size: 17px;text-align:right;\" %}
  822.                                                             {% else %}
  823.                                                                 {% set priceClass = \"\" %}
  824.                                                             {% endif %}
  825.                                                             <div style=\"{{ priceClass }}\">
  826.                                                                 {% if Product.hasProductClass %}
  827.                                                                     {% if Product.getPrice02Min == Product.getPrice02Max %}
  828.                                                                         {{ Product.getPrice02IncTaxMin|number_format }}
  829.                                                                     {% else %}
  830.                                                                         {{ Product.getPrice02IncTaxMin|number_format }}
  831.                                                                         ~
  832.                                                                         {{ Product.getPrice02IncTaxMax|number_format }}
  833.                                                                     {% endif %}
  834.                                                                     円
  835.                                                                     <small class=\"isSmall\" style=\"font-size: 15px;\">(税込)</small>
  836.                                                                 {% else %}
  837.                                                                     {{ Product.getPrice02IncTaxMin|number_format }}
  838.                                                                     円
  839.                                                                     <small class=\"isSmall\" style=\"font-size: 15px;\">(税込)</small>
  840.                                                                 {% endif %}
  841.                                                             </div>
  842.                                                             <div class=\"font13 textRight\" style=\"margin-top:10px;text-decoration: line-through;\">
  843.                                                             {% if Product.hasProductClass %}
  844.                                                                 <div>
  845.                                                                     {% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
  846.                                                                         {{ Product.getPrice01IncTaxMin|number_format }}円
  847.                                                                         <span class=\"tax\">(税込)</span>
  848.                                                                     {% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
  849.                                                                         {{ Product.getPrice01IncTaxMin|number_format }}~ {{ Product.getPrice01IncTaxMax|number_format }}円
  850.                                                                         <span class=\"tax\">(税込)</span>
  851.                                                                     {% endif %}
  852.                                                                 </div>
  853.                                                             {% else %}
  854.                                                                 {% if Product.getPrice01Max is not null %}
  855.                                                                     {{ Product.getPrice01IncTaxMin|number_format }}円
  856.                                                                     <span class=\"tax\">(税込)</span>
  857.                                                                 {% endif %}
  858.                                                             {% endif %}
  859.                                                             </div>
  860.                                                         </p>
  861.                                                         {% if Product.stock_find %}
  862.                                                         {% else %}
  863.                                                             <div class=\"ec-productRole__btn\">
  864.                                                                 <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  865.                                                                     {{ 'ただいま品切れ中です。'|trans }}
  866.                                                                 </button>
  867.                                                             </div>
  868.                                                         {% endif %}
  869.                                                     </div>
  870.                                                 </a>
  871.                                             </article>
  872.                                             <!-- /BOX -->
  873.                                         {% endfor %}
  874.                             {% endif %}
  875.                         </div>
  876.                         <!-- /LIST -->
  877.                         <div class=\"ec-modal\">
  878.                             <div class=\"ec-modal-overlay\">
  879.                                 <div class=\"ec-modal-wrap\">
  880.                                     <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  881.                                     <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  882.                                     <div class=\"ec-modal-box\">
  883.                                         <div class=\"ec-role\">
  884.                                             <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  885.                                             <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  886.                                         </div>
  887.                                     </div>
  888.                                 </div>
  889.                             </div>
  890.                         </div>
  891.                         {% endif %}
  892.                     </section>
  893.                     <!-- /MAIN CONTENTS -->
  894.                     <!-- PAGINATION -->
  895.                     {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  896.                     <!-- /PAGINATION -->
  897.                     {% if Layout.MainBottom %}
  898.                             {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  899.                     {% endif %}
  900.                 </div>
  901.                 <!-- /MAIN-CONTENTS -->
  902.                 <!-- SIDE-CONTENTS -->
  903.                 {{ include('Block/side_menu.twig') }}
  904.                 <!-- /SIDE-CONTENTS -->
  905.             </div>
  906.             <!-- /CONTENTS -->
  907.         </section>
  908.     </div>
  909.     <!-- /PAGE CONTENTS -->
  910.     <style>
  911.         .ec-blockBtn--action {
  912.             height: 30px;
  913.             line-height: 100%;
  914.             margin-top: 15px;
  915.             font-size: 12px;
  916.         }
  917.     </style>
  918. {% endblock %}""Product/list.twig""/home/kaorimehonpo/kaorime.co.jp/public_html/shop.kaorime.co.jp/app/template/kaorime/Product/list.twig");
  919.     }
  920.     
  921.     public function checkSecurity()
  922.     {
  923.         static $tags = array("set" => 13"for" => 18"if" => 19"include" => 294);
  924.         static $filters = array("escape" => 19"raw" => 19"trans" => 47"length" => 149"no_image_product" => 203"number_format" => 219);
  925.         static $functions = array("class_categories_as_json" => 19"url" => 75"asset" => 130"form_widget" => 171"include" => 298);
  926.         try {
  927.             $this->sandbox->checkSecurity(
  928.                 ['set''for''if''include'],
  929.                 ['escape''raw''trans''length''no_image_product''number_format'],
  930.                 ['class_categories_as_json''url''asset''form_widget''include']
  931.             );
  932.         } catch (SecurityError $e) {
  933.             $e->setSourceContext($this->source);
  934.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  935.                 $e->setTemplateLine($tags[$e->getTagName()]);
  936.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  937.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  938.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  939.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  940.             }
  941.             throw $e;
  942.         }
  943.     }
  944. }