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