var/cache/dev/twig/c3/c3aac29c1225d668505cfb88c853cd5fa477be71b53c9db091b5eb44361f65c0.php line 54

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