var/cache/dev/twig/89/896e52cba2952a9776e2c5ae2aba0b79.php line 52

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