var/cache/dev/twig/7b/7baba54d7fa7c6e7acde31b30b2475f0b23875d392d448685e5f149753c5d263.php line 40

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