var/cache/dev/twig/87/87fe8bcbdd67fb474b4c843a38e5b5d4c6be1be24f0608d8f7612bbacda7ac79.php line 39

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_a2bed9b600e050cc94fa7620d6b7ef974566ddb6d4b9845eeaf2d3e9ca67100c extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 11
  30.         return "default_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  39.         // line 13
  40.         $context["body_class"] = "product_page";
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 15
  50.     public function block_javascript($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         // line 16
  58.         echo "    <script>
  59.         eccube.productsClassCategories = {
  60.             ";
  61.         // line 18
  62.         $context['_parent'] = $context;
  63.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'18$this->source); })()));
  64.         $context['loop'] = [
  65.           'parent' => $context['_parent'],
  66.           'index0' => 0,
  67.           'index'  => 1,
  68.           'first'  => true,
  69.         ];
  70.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  71.             $length count($context['_seq']);
  72.             $context['loop']['revindex0'] = $length 1;
  73.             $context['loop']['revindex'] = $length;
  74.             $context['loop']['length'] = $length;
  75.             $context['loop']['last'] = === $length;
  76.         }
  77.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  78.             // line 19
  79.             echo "            \"";
  80.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse19), "js"), "html"nulltrue);
  81.             echo "\": ";
  82.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  83.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse19) == false)) {
  84.                 echo ", ";
  85.             }
  86.             // line 20
  87.             echo "            ";
  88.             ++$context['loop']['index0'];
  89.             ++$context['loop']['index'];
  90.             $context['loop']['first'] = false;
  91.             if (isset($context['loop']['length'])) {
  92.                 --$context['loop']['revindex0'];
  93.                 --$context['loop']['revindex'];
  94.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  95.             }
  96.         }
  97.         $_parent $context['_parent'];
  98.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  99.         $context array_intersect_key($context$_parent) + $_parent;
  100.         // line 21
  101.         echo "        };
  102.         \$(function() {
  103.             表示件数を変更
  104.             \$('.disp-number').change(function() {
  105.                 var dispNumber = \$(this).val();
  106.                 \$('#disp_number').val(dispNumber);
  107.                 \$('#pageno').val(1);
  108.                 \$(\"#form1\").submit();
  109.             });
  110.             並び順を変更
  111.             \$('.order-by').change(function() {
  112.                 var orderBy = \$(this).val();
  113.                 \$('#orderby').val(orderBy);
  114.                 \$('#pageno').val(1);
  115.                 \$(\"#form1\").submit();
  116.             });
  117.             \$('.add-cart').on('click', function(e) {
  118.                 var \$form = \$(this).parents('li').find('form');
  119.                 // 個数フォームのチェック
  120.                 var \$quantity = \$form.parent().find('.quantity');
  121.                 if (\$quantity.val() < 1) {
  122.                     \$quantity[0].setCustomValidity('";
  123.         // line 47
  124.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  125.         echo "');
  126.                     setTimeout(function() {
  127.                         loadingOverlay('hide');
  128.                     }, 100);
  129.                     return true;
  130.                 } else {
  131.                     \$quantity[0].setCustomValidity('');
  132.                 }
  133.                 e.preventDefault();
  134.                 \$.ajax({
  135.                     url: \$form.attr('action'),
  136.                     type: \$form.attr('method'),
  137.                     data: \$form.serialize(),
  138.                     dataType: 'json',
  139.                     beforeSend: function(xhr, settings) {
  140.                         // Buttonを無効にする
  141.                         \$('.add-cart').prop('disabled', true);
  142.                     }
  143.                 }).done(function(data) {
  144.                     // レスポンス内のメッセージをalertで表示
  145.                     \$.each(data.messages, function() {
  146.                         \$('#ec-modal-header').text(this);
  147.                     });
  148.                     \$('.ec-modal').show()
  149.                     // カートブロックを更新する
  150.                     \$.ajax({
  151.                         url: '";
  152.         // line 75
  153.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  154.         echo "',
  155.                         type: 'GET',
  156.                         dataType: 'html'
  157.                     }).done(function(html) {
  158.                         \$('.ec-headerRole__cart').html(html);
  159.                     });
  160.                 }).fail(function(data) {
  161.                     alert('";
  162.         // line 82
  163.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  164.         echo "');
  165.                 }).always(function(data) {
  166.                     // Buttonを有効にする
  167.                     \$('.add-cart').prop('disabled', false);
  168.                 });
  169.             });
  170.         });
  171.         \$('.ec-modal-wrap').on('click', function(e) {
  172.             // モーダル内の処理は外側にバブリングさせない
  173.             e.stopPropagation();
  174.         });
  175.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  176.             \$('.ec-modal').hide()
  177.         });
  178.     </script>
  179. ";
  180.         
  181.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  182.         
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  184.     }
  185.     // line 100
  186.     public function block_main($context, array $blocks = [])
  187.     {
  188.         $macros $this->macros;
  189.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  190.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  191.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  192.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  193.         // line 101
  194.         echo "    ";
  195.         // line 102
  196.         echo "    <div class=\"ec-role mt-1\">
  197.         <div class=\"d-flex flex-column flex-md-row justify-content-between\">
  198.             <div class=\"ec-secHeading\">
  199.                 <span class=\"ec-secHeading__en\">PRODUCTS</span>
  200.                 <span class=\"ec-secHeading__line\"></span>
  201.                 <span class=\"ec-secHeading__ja\">製品一覧</span>
  202.             </div>
  203.             <div class=\"d-none d-md-block ec-headerNaviRole__search\">
  204.                 ";
  205.         // line 110
  206.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  207.         echo "
  208.             </div>
  209.         </div>
  210.         ";
  211.         // line 114
  212.         echo "        ";
  213.         $context["tags"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Tag"), "findAll", [], "method"falsefalsefalse114);
  214.         // line 115
  215.         echo "        ";
  216.         if ((twig_length_filter($this->env, (isset($context["tags"]) || array_key_exists("tags"$context) ? $context["tags"] : (function () { throw new RuntimeError('Variable "tags" does not exist.'115$this->source); })())) > 0)) {
  217.             // line 116
  218.             echo "          <div class=\"tag-list mt-2\">
  219.             <ul class=\"d-flex gap-1\" style=\"padding-left:0\">
  220.               ";
  221.             // line 118
  222.             $context['_parent'] = $context;
  223.             $context['_seq'] = twig_ensure_traversable((isset($context["tags"]) || array_key_exists("tags"$context) ? $context["tags"] : (function () { throw new RuntimeError('Variable "tags" does not exist.'118$this->source); })()));
  224.             foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  225.                 // line 119
  226.                 echo "                ";
  227.                 $context["isActive"] = (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'119$this->source); })()), "request", [], "any"falsefalsefalse119), "get", [=> "tag_id"], "method"falsefalsefalse119) == twig_get_attribute($this->env$this->source$context["tag"], "id", [], "any"falsefalsefalse119));
  228.                 // line 120
  229.                 echo "                <li class=\"\">
  230.                   <a class=\"btn btn-sm btn-outline-secondary";
  231.                 // line 121
  232.                 if ((isset($context["isActive"]) || array_key_exists("isActive"$context) ? $context["isActive"] : (function () { throw new RuntimeError('Variable "isActive" does not exist.'121$this->source); })())) {
  233.                     echo " btn-primary";
  234.                 }
  235.                 echo "\" href=\"";
  236.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list", ["tag_id" => twig_get_attribute($this->env$this->source$context["tag"], "id", [], "any"falsefalsefalse121)]), "html"nulltrue);
  237.                 echo "\">";
  238.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["tag"], "name", [], "any"falsefalsefalse121), "html"nulltrue);
  239.                 echo "</a>
  240.                 </li>
  241.               ";
  242.             }
  243.             $_parent $context['_parent'];
  244.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  245.             $context array_intersect_key($context$_parent) + $_parent;
  246.             // line 124
  247.             echo "            </ul>
  248.           </div>
  249.         ";
  250.         }
  251.         // line 127
  252.         echo "    </div>
  253.     
  254.     ";
  255.         // line 129
  256.         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.'129$this->source); })()), "category_id", [], "any"falsefalsefalse129), "vars", [], "any"falsefalsefalse129), "errors", [], "any"falsefalsefalse129)) > 0)) {
  257.             // line 130
  258.             echo "        <div class=\"ec-searchnavRole\">
  259.             <p class=\"errormsg text-danger\">";
  260.             // line 131
  261.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  262.             echo "</p>
  263.         </div>
  264.     ";
  265.         } else {
  266.             // line 134
  267.             echo "        <div class=\"ec-searchnavRole mt-2\">
  268.             ";
  269.             // line 135
  270.             if (((twig_date_format_filter($this->env"now""H") > 11) && (twig_date_format_filter($this->env"now""H") < 19))) {
  271.                 // line 136
  272.                 echo "            ";
  273.             } else {
  274.                 // line 137
  275.                 echo "                <p style=\"margin-top:20px;\">ご注文の受付は<span style=\"font-weight:bold;color:#ff0000;\">11時から19時まで</span>となっており、19時以降の注文の受付はできかねます。<br>
  276.                 翌11時より改めてご注文手続きをしていただきますようよろしくお願いいたします。</p>
  277.             ";
  278.             }
  279.             // line 140
  280.             echo "
  281.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  282.                 ";
  283.             // line 142
  284.             $context['_parent'] = $context;
  285.             $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); })()));
  286.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  287.                 // line 143
  288.                 echo "                    <input type=\"hidden\" id=\"";
  289.                 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);
  290.                 echo "\"
  291.                            name=\"";
  292.                 // line 144
  293.                 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);
  294.                 echo "\"
  295.                            ";
  296.                 // line 145
  297.                 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))) {
  298.                     echo "value=\"";
  299.                     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);
  300.                     echo "\" ";
  301.                 }
  302.                 echo "/>
  303.                 ";
  304.             }
  305.             $_parent $context['_parent'];
  306.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  307.             $context array_intersect_key($context$_parent) + $_parent;
  308.             // line 147
  309.             echo "            </form>
  310.             <div class=\"ec-searchnavRole__topicpath\">
  311.                 <ol class=\"ec-topicpath\">
  312.                     <li class=\"ec-topicpath__item\"><a href=\"";
  313.             // line 150
  314.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  315.             echo "\">";
  316.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  317.             echo "</a>
  318.                     </li>
  319.                     ";
  320.             // line 152
  321.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'152$this->source); })()))) {
  322.                 // line 153
  323.                 echo "                        ";
  324.                 $context['_parent'] = $context;
  325.                 $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.'153$this->source); })()), "path", [], "any"falsefalsefalse153));
  326.                 $context['loop'] = [
  327.                   'parent' => $context['_parent'],
  328.                   'index0' => 0,
  329.                   'index'  => 1,
  330.                   'first'  => true,
  331.                 ];
  332.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  333.                     $length count($context['_seq']);
  334.                     $context['loop']['revindex0'] = $length 1;
  335.                     $context['loop']['revindex'] = $length;
  336.                     $context['loop']['length'] = $length;
  337.                     $context['loop']['last'] = === $length;
  338.                 }
  339.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  340.                     // line 154
  341.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  342.                             <li class=\"ec-topicpath__item";
  343.                     // line 155
  344.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse155)) {
  345.                         echo "--active";
  346.                     }
  347.                     echo "\"><a
  348.                                         href=\"";
  349.                     // line 156
  350.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  351.                     echo "?category_id=";
  352.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse156), "html"nulltrue);
  353.                     echo "\">";
  354.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse156), "html"nulltrue);
  355.                     echo "</a>
  356.                             </li>
  357.                         ";
  358.                     ++$context['loop']['index0'];
  359.                     ++$context['loop']['index'];
  360.                     $context['loop']['first'] = false;
  361.                     if (isset($context['loop']['length'])) {
  362.                         --$context['loop']['revindex0'];
  363.                         --$context['loop']['revindex'];
  364.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  365.                     }
  366.                 }
  367.                 $_parent $context['_parent'];
  368.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  369.                 $context array_intersect_key($context$_parent) + $_parent;
  370.                 // line 159
  371.                 echo "                    ";
  372.             }
  373.             // line 160
  374.             echo "                    
  375. ";
  376.             // line 170
  377.             echo "                    
  378.                     ";
  379.             // line 171
  380.             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.'171$this->source); })()), "vars", [], "any"falsefalsefalse171), "value", [], "any"falsefalsefalse171) && 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.'171$this->source); })()), "vars", [], "any"falsefalsefalse171), "value", [], "any"falsefalsefalse171), "name", [], "any"falsefalsefalse171))) {
  381.                 // line 172
  382.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  383.                         <li class=\"ec-topicpath__item\">";
  384.                 // line 173
  385.                 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.'173$this->source); })()), "vars", [], "any"falsefalsefalse173), "value", [], "any"falsefalsefalse173), "name", [], "any"falsefalsefalse173)]), "html"nulltrue);
  386.                 echo "</li>
  387.                     ";
  388.             }
  389.             // line 175
  390.             echo "                </ol>
  391.             </div>
  392.             <div class=\"ec-searchnavRole__infos\">
  393.                 <div class=\"ec-searchnavRole__counter\">
  394.                     ";
  395.             // line 179
  396.             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)) {
  397.                 // line 180
  398.                 echo "                        ";
  399.                 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.'180$this->source); })()), "totalItemCount", [], "any"falsefalsefalse180)]);
  400.                 echo "
  401.                     ";
  402.             } else {
  403.                 // line 182
  404.                 echo "                        <span>";
  405.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  406.                 echo "</span>
  407.                     ";
  408.             }
  409.             // line 184
  410.             echo "                </div>
  411.                 ";
  412.             // line 186
  413.             echo "                ";
  414.             // line 187
  415.             echo "                ";
  416.             // line 188
  417.             echo "                ";
  418.             // line 189
  419.             echo "                ";
  420.             // line 190
  421.             echo "                ";
  422.             // line 191
  423.             echo "                ";
  424.             // line 192
  425.             echo "                ";
  426.             // line 193
  427.             echo "            </div>
  428.         </div>
  429.         
  430.         ";
  431.             // line 196
  432.             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.'196$this->source); })()), "totalItemCount", [], "any"falsefalsefalse196) > 0)) {
  433.                 // line 197
  434.                 echo "            <div class=\"ec-role\">
  435.                 <div class=\"ec-shelfRole ec-newItemRole pt-2\">
  436.                     <ul class=\"ec-shelfGrid\">
  437.                     ";
  438.                 // line 200
  439.                 $context['_parent'] = $context;
  440.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'200$this->source); })()));
  441.                 $context['loop'] = [
  442.                   'parent' => $context['_parent'],
  443.                   'index0' => 0,
  444.                   'index'  => 1,
  445.                   'first'  => true,
  446.                 ];
  447.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  448.                     $length count($context['_seq']);
  449.                     $context['loop']['revindex0'] = $length 1;
  450.                     $context['loop']['revindex'] = $length;
  451.                     $context['loop']['length'] = $length;
  452.                     $context['loop']['last'] = === $length;
  453.                 }
  454.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  455.                     // line 201
  456.                     echo "                        <li class=\"ec-shelfGrid__item\">
  457.                             <a href=\"";
  458.                     // line 202
  459.                     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"falsefalsefalse202)]), "html"nulltrue);
  460.                     echo "\">
  461.                                 <p class=\"ec-shelfGrid__item-image\">
  462.                                     <img src=\"";
  463.                     // line 204
  464.                     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"falsefalsefalse204)), "save_image"), "html"nulltrue);
  465.                     echo "\" alt=\"";
  466.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse204), "html"nulltrue);
  467.                     echo "\" ";
  468.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse204) > 5)) {
  469.                         echo " loading=\"lazy\"";
  470.                     }
  471.                     echo ">
  472.                                 </p>
  473.                                 <p class=\"ec-newItemRole__listItemTitle\">";
  474.                     // line 206
  475.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse206), "html"nulltrue);
  476.                     echo "</p>
  477.                                 ";
  478.                     // line 207
  479.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse207)) {
  480.                         // line 208
  481.                         echo "                                    <p>";
  482.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse208));
  483.                         echo "</p>
  484.                                 ";
  485.                     }
  486.                     // line 210
  487.                     echo "                                <p class=\"ec-newItemRole__listItemPrice\">
  488.                                     ";
  489.                     // line 211
  490.                     if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  491.                         // line 212
  492.                         echo "                                        ";
  493.                         if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse212)) {
  494.                             // line 213
  495.                             echo "                                            ";
  496.                             if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse213) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse213))) {
  497.                                 // line 214
  498.                                 echo "                                                ";
  499.                                 $context["getPrice02NoTaxMin"] = ceil((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse214) / 1.100000000000000088817841970012523233890533447265625));
  500.                                 // line 215
  501.                                 echo "                                                ";
  502.                                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse215)), "html"nulltrue);
  503.                                 echo "(税込)/
  504.                                                 ";
  505.                                 // line 216
  506.                                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter((isset($context["getPrice02NoTaxMin"]) || array_key_exists("getPrice02NoTaxMin"$context) ? $context["getPrice02NoTaxMin"] : (function () { throw new RuntimeError('Variable "getPrice02NoTaxMin" does not exist.'216$this->source); })())), "html"nulltrue);
  507.                                 echo "(税抜)
  508.                                             ";
  509.                             } else {
  510.                                 // line 218
  511.                                 echo "                                                ";
  512.                                 $context["getPrice02NoTaxMin"] = ceil((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse218) / 1.100000000000000088817841970012523233890533447265625));
  513.                                 // line 219
  514.                                 echo "                                                ";
  515.                                 $context["getPrice02NoTaxMax"] = ceil((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse219) / 1.100000000000000088817841970012523233890533447265625));
  516.                                 // line 220
  517.                                 echo "                                                ";
  518.                                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse220)), "html"nulltrue);
  519.                                 echo " ~ ";
  520.                                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse220)), "html"nulltrue);
  521.                                 echo "(税込)/<br>
  522.                                                 ";
  523.                                 // line 221
  524.                                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter((isset($context["getPrice02NoTaxMin"]) || array_key_exists("getPrice02NoTaxMin"$context) ? $context["getPrice02NoTaxMin"] : (function () { throw new RuntimeError('Variable "getPrice02NoTaxMin" does not exist.'221$this->source); })())), "html"nulltrue);
  525.                                 echo " ~ ";
  526.                                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter((isset($context["getPrice02NoTaxMax"]) || array_key_exists("getPrice02NoTaxMax"$context) ? $context["getPrice02NoTaxMax"] : (function () { throw new RuntimeError('Variable "getPrice02NoTaxMax" does not exist.'221$this->source); })())), "html"nulltrue);
  527.                                 echo "(税抜)
  528.                                             ";
  529.                             }
  530.                             // line 223
  531.                             echo "                                        ";
  532.                         } else {
  533.                             // line 224
  534.                             echo "                                            ";
  535.                             $context["getPrice02NoTaxMin"] = ceil((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse224) / 1.100000000000000088817841970012523233890533447265625));
  536.                             // line 225
  537.                             echo "                                            ";
  538.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse225)), "html"nulltrue);
  539.                             echo "(税込)/
  540.                                             ";
  541.                             // line 226
  542.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter((isset($context["getPrice02NoTaxMin"]) || array_key_exists("getPrice02NoTaxMin"$context) ? $context["getPrice02NoTaxMin"] : (function () { throw new RuntimeError('Variable "getPrice02NoTaxMin" does not exist.'226$this->source); })())), "html"nulltrue);
  543.                             echo "(税抜)
  544.                                         ";
  545.                         }
  546.                         // line 228
  547.                         echo "                                    ";
  548.                     } else {
  549.                         // line 229
  550.                         echo "                                        価格:お問い合わせください
  551.                                     ";
  552.                     }
  553.                     // line 231
  554.                     echo "                                </p>
  555.                                 ";
  556.                     // line 232
  557.                     $context['_parent'] = $context;
  558.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductClasses", [], "any"falsefalsefalse232));
  559.                     foreach ($context['_seq'] as $context["_key"] => $context["productClass"]) {
  560.                         // line 233
  561.                         echo "                                    <p class=\"ec-newItemRole__listItemPrice\">在庫数:";
  562.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["productClass"], "getSaleLimit", [], "method"falsefalsefalse233), "html"nulltrue);
  563.                         echo "</p>
  564.                                 ";
  565.                     }
  566.                     $_parent $context['_parent'];
  567.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productClass'], $context['_parent'], $context['loop']);
  568.                     $context array_intersect_key($context$_parent) + $_parent;
  569.                     // line 235
  570.                     echo "                            </a>
  571.                             ";
  572.                     // line 236
  573.                     if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  574.                         // line 237
  575.                         echo "                                ";
  576.                         if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse237)) {
  577.                             // line 238
  578.                             echo "                                    ";
  579.                             $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.'238$this->source); })()), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse238), [], "array"falsefalsefalse238);
  580.                             // line 239
  581.                             echo "                                    <form name=\"form";
  582.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse239), "html"nulltrue);
  583.                             echo "\" id=\"productForm";
  584.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse239), "html"nulltrue);
  585.                             echo "\" action=\"";
  586.                             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"falsefalsefalse239)]), "html"nulltrue);
  587.                             echo "\" method=\"post\">
  588.                                         <div class=\"ec-productRole__actions\">
  589.                                             ";
  590.                             // line 241
  591.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse241)) {
  592.                                 // line 242
  593.                                 echo "                                                <div class=\"ec-select\">
  594.                                                     ";
  595.                                 // line 243
  596.                                 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.'243$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse243), 'widget');
  597.                                 echo "
  598.                                                     ";
  599.                                 // line 244
  600.                                 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); })()), "classcategory_id1", [], "any"falsefalsefalse244), 'errors');
  601.                                 echo "
  602.                                                 </div>
  603.                                                 ";
  604.                                 // line 246
  605.                                 if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse246)) {
  606.                                     // line 247
  607.                                     echo "                                                    <div class=\"ec-select\">
  608.                                                         ";
  609.                                     // line 248
  610.                                     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.'248$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse248), 'widget');
  611.                                     echo "
  612.                                                         ";
  613.                                     // line 249
  614.                                     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.'249$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse249), 'errors');
  615.                                     echo "
  616.                                                     </div>
  617.                                                 ";
  618.                                 }
  619.                                 // line 252
  620.                                 echo "                                            ";
  621.                             }
  622.                             // line 253
  623.                             echo "                                            <div class=\"ec-numberInput\"><span>";
  624.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  625.                             echo "</span>
  626.                                                 ";
  627.                             // line 254
  628.                             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.'254$this->source); })()), "quantity", [], "any"falsefalsefalse254), 'widget', ["attr" => ["class" => "quantity"]]);
  629.                             echo "
  630.                                                 ";
  631.                             // line 255
  632.                             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.'255$this->source); })()), "quantity", [], "any"falsefalsefalse255), 'errors');
  633.                             echo "
  634.                                             </div>
  635.                                         </div>
  636.                                         ";
  637.                             // line 258
  638.                             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.'258$this->source); })()), 'rest');
  639.                             echo "
  640.                                     </form>
  641.                                     <div class=\"ec-productRole__btn\">
  642.                                         <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  643.                             // line 261
  644.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse261), "html"nulltrue);
  645.                             echo "\" form=\"productForm";
  646.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse261), "html"nulltrue);
  647.                             echo "\">
  648.                                             ";
  649.                             // line 262
  650.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  651.                             echo "
  652.                                         </button>
  653.                                     </div>
  654.                                 ";
  655.                         } else {
  656.                             // line 266
  657.                             echo "                                    <div class=\"ec-productRole__btn\">
  658.                                         <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  659.                                             ";
  660.                             // line 268
  661.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  662.                             echo "
  663.                                         </button>
  664.                                     </div>
  665.                                 ";
  666.                         }
  667.                         // line 272
  668.                         echo "                            ";
  669.                     }
  670.                     // line 273
  671.                     echo "                        </li>
  672.                     ";
  673.                     ++$context['loop']['index0'];
  674.                     ++$context['loop']['index'];
  675.                     $context['loop']['first'] = false;
  676.                     if (isset($context['loop']['length'])) {
  677.                         --$context['loop']['revindex0'];
  678.                         --$context['loop']['revindex'];
  679.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  680.                     }
  681.                 }
  682.                 $_parent $context['_parent'];
  683.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  684.                 $context array_intersect_key($context$_parent) + $_parent;
  685.                 // line 275
  686.                 echo "                </ul>
  687.                 </div>  
  688.             </div>
  689.             <div class=\"ec-modal\">
  690.                 <div class=\"ec-modal-overlay\">
  691.                     <div class=\"ec-modal-wrap\">
  692.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  693.                 // line 281
  694.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  695.                 echo "\" alt=\"\"/></span></span>
  696.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  697.                 // line 282
  698.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  699.                 echo "</div>
  700.                         <div class=\"ec-modal-box\">
  701.                             <div class=\"ec-role\">
  702.                                 <span class=\"ec-inlineBtn--cancel\">";
  703.                 // line 285
  704.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  705.                 echo "</span>
  706.                                 <a href=\"";
  707.                 // line 286
  708.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  709.                 echo "\" class=\"ec-inlineBtn--action\">";
  710.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  711.                 echo "</a>
  712.                             </div>
  713.                         </div>
  714.                     </div>
  715.                 </div>
  716.             </div>
  717.             <div class=\"ec-pagerRole\">
  718.                 ";
  719.                 // line 293
  720.                 $this->loadTemplate("pager.twig""Product/list.twig"293)->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.'293$this->source); })()), "paginationData", [], "any"falsefalsefalse293)]));
  721.                 // line 294
  722.                 echo "            </div>
  723.         ";
  724.             }
  725.             // line 296
  726.             echo "        
  727.         <div class=\"ec-role\">
  728.             ";
  729.             // line 299
  730.             echo "            <div class=\"d-md-none ec-headerNaviRole__search\">
  731.                 ";
  732.             // line 300
  733.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  734.             echo "
  735.             </div>
  736.         </div>
  737.     ";
  738.         }
  739.         
  740.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  741.         
  742.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  743.     }
  744.     public function getTemplateName()
  745.     {
  746.         return "Product/list.twig";
  747.     }
  748.     public function isTraitable()
  749.     {
  750.         return false;
  751.     }
  752.     public function getDebugInfo()
  753.     {
  754.         return array (  760 => 300,  757 => 299,  753 => 296,  749 => 294,  747 => 293,  735 => 286,  731 => 285,  725 => 282,  721 => 281,  713 => 275,  698 => 273,  695 => 272,  688 => 268,  684 => 266,  677 => 262,  671 => 261,  665 => 258,  659 => 255,  655 => 254,  650 => 253,  647 => 252,  641 => 249,  637 => 248,  634 => 247,  632 => 246,  627 => 244,  623 => 243,  620 => 242,  618 => 241,  608 => 239,  605 => 238,  602 => 237,  600 => 236,  597 => 235,  588 => 233,  584 => 232,  581 => 231,  577 => 229,  574 => 228,  569 => 226,  564 => 225,  561 => 224,  558 => 223,  551 => 221,  544 => 220,  541 => 219,  538 => 218,  533 => 216,  528 => 215,  525 => 214,  522 => 213,  519 => 212,  517 => 211,  514 => 210,  508 => 208,  506 => 207,  502 => 206,  491 => 204,  486 => 202,  483 => 201,  466 => 200,  461 => 197,  459 => 196,  454 => 193,  452 => 192,  450 => 191,  448 => 190,  446 => 189,  444 => 188,  442 => 187,  440 => 186,  437 => 184,  431 => 182,  425 => 180,  423 => 179,  417 => 175,  412 => 173,  409 => 172,  407 => 171,  404 => 170,  401 => 160,  398 => 159,  377 => 156,  371 => 155,  368 => 154,  350 => 153,  348 => 152,  341 => 150,  336 => 147,  324 => 145,  320 => 144,  315 => 143,  311 => 142,  307 => 140,  302 => 137,  299 => 136,  297 => 135,  294 => 134,  288 => 131,  285 => 130,  283 => 129,  279 => 127,  274 => 124,  259 => 121,  256 => 120,  253 => 119,  249 => 118,  245 => 116,  242 => 115,  239 => 114,  233 => 110,  223 => 102,  221 => 101,  211 => 100,  184 => 82,  174 => 75,  143 => 47,  115 => 21,  101 => 20,  93 => 19,  76 => 18,  72 => 16,  62 => 15,  51 => 11,  49 => 13,  36 => 11,);
  755.     }
  756.     public function getSourceContext()
  757.     {
  758.         return new Source("{#
  759. This file is part of EC-CUBE
  760. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  761. http://www.ec-cube.co.jp/
  762. For the full copyright and license information, please view the LICENSE
  763. file that was distributed with this source code.
  764. #}
  765. {% extends 'default_frame.twig' %}
  766. {% set body_class = 'product_page' %}
  767. {% block javascript %}
  768.     <script>
  769.         eccube.productsClassCategories = {
  770.             {% for Product in pagination %}
  771.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  772.             {% endfor %}
  773.         };
  774.         \$(function() {
  775.             表示件数を変更
  776.             \$('.disp-number').change(function() {
  777.                 var dispNumber = \$(this).val();
  778.                 \$('#disp_number').val(dispNumber);
  779.                 \$('#pageno').val(1);
  780.                 \$(\"#form1\").submit();
  781.             });
  782.             並び順を変更
  783.             \$('.order-by').change(function() {
  784.                 var orderBy = \$(this).val();
  785.                 \$('#orderby').val(orderBy);
  786.                 \$('#pageno').val(1);
  787.                 \$(\"#form1\").submit();
  788.             });
  789.             \$('.add-cart').on('click', function(e) {
  790.                 var \$form = \$(this).parents('li').find('form');
  791.                 // 個数フォームのチェック
  792.                 var \$quantity = \$form.parent().find('.quantity');
  793.                 if (\$quantity.val() < 1) {
  794.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  795.                     setTimeout(function() {
  796.                         loadingOverlay('hide');
  797.                     }, 100);
  798.                     return true;
  799.                 } else {
  800.                     \$quantity[0].setCustomValidity('');
  801.                 }
  802.                 e.preventDefault();
  803.                 \$.ajax({
  804.                     url: \$form.attr('action'),
  805.                     type: \$form.attr('method'),
  806.                     data: \$form.serialize(),
  807.                     dataType: 'json',
  808.                     beforeSend: function(xhr, settings) {
  809.                         // Buttonを無効にする
  810.                         \$('.add-cart').prop('disabled', true);
  811.                     }
  812.                 }).done(function(data) {
  813.                     // レスポンス内のメッセージをalertで表示
  814.                     \$.each(data.messages, function() {
  815.                         \$('#ec-modal-header').text(this);
  816.                     });
  817.                     \$('.ec-modal').show()
  818.                     // カートブロックを更新する
  819.                     \$.ajax({
  820.                         url: '{{ url('block_cart') }}',
  821.                         type: 'GET',
  822.                         dataType: 'html'
  823.                     }).done(function(html) {
  824.                         \$('.ec-headerRole__cart').html(html);
  825.                     });
  826.                 }).fail(function(data) {
  827.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  828.                 }).always(function(data) {
  829.                     // Buttonを有効にする
  830.                     \$('.add-cart').prop('disabled', false);
  831.                 });
  832.             });
  833.         });
  834.         \$('.ec-modal-wrap').on('click', function(e) {
  835.             // モーダル内の処理は外側にバブリングさせない
  836.             e.stopPropagation();
  837.         });
  838.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  839.             \$('.ec-modal').hide()
  840.         });
  841.     </script>
  842. {% endblock %}
  843. {% block main %}
  844.     {# headline #}
  845.     <div class=\"ec-role mt-1\">
  846.         <div class=\"d-flex flex-column flex-md-row justify-content-between\">
  847.             <div class=\"ec-secHeading\">
  848.                 <span class=\"ec-secHeading__en\">PRODUCTS</span>
  849.                 <span class=\"ec-secHeading__line\"></span>
  850.                 <span class=\"ec-secHeading__ja\">製品一覧</span>
  851.             </div>
  852.             <div class=\"d-none d-md-block ec-headerNaviRole__search\">
  853.                 {{ render(path('block_search_product')) }}
  854.             </div>
  855.         </div>
  856.         {# tag list #}
  857.         {% set tags = repository('Eccube\\\\Entity\\\\Tag').findAll() %}
  858.         {% if tags|length > 0 %}
  859.           <div class=\"tag-list mt-2\">
  860.             <ul class=\"d-flex gap-1\" style=\"padding-left:0\">
  861.               {% for tag in tags %}
  862.                 {% set isActive = app.request.get('tag_id') == tag.id %}
  863.                 <li class=\"\">
  864.                   <a class=\"btn btn-sm btn-outline-secondary{% if isActive %} btn-primary{% endif %}\" href=\"{{ url('product_list', {'tag_id': tag.id}) }}\">{{ tag.name }}</a>
  865.                 </li>
  866.               {% endfor %}
  867.             </ul>
  868.           </div>
  869.         {% endif %}
  870.     </div>
  871.     
  872.     {% if search_form.category_id.vars.errors|length > 0 %}
  873.         <div class=\"ec-searchnavRole\">
  874.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  875.         </div>
  876.     {% else %}
  877.         <div class=\"ec-searchnavRole mt-2\">
  878.             {% if \"now\"|date(\"H\") > 11 and \"now\"|date(\"H\") < 19 %}
  879.             {% else %}
  880.                 <p style=\"margin-top:20px;\">ご注文の受付は<span style=\"font-weight:bold;color:#ff0000;\">11時から19時まで</span>となっており、19時以降の注文の受付はできかねます。<br>
  881.                 翌11時より改めてご注文手続きをしていただきますようよろしくお願いいたします。</p>
  882.             {% endif %}
  883.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  884.                 {% for item in search_form %}
  885.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  886.                            name=\"{{ item.vars.full_name }}\"
  887.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  888.                 {% endfor %}
  889.             </form>
  890.             <div class=\"ec-searchnavRole__topicpath\">
  891.                 <ol class=\"ec-topicpath\">
  892.                     <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  893.                     </li>
  894.                     {% if Category is not null %}
  895.                         {% for Path in Category.path %}
  896.                             <li class=\"ec-topicpath__divider\">|</li>
  897.                             <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
  898.                                         href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  899.                             </li>
  900.                         {% endfor %}
  901.                     {% endif %}
  902.                     
  903. {#{% set tagId = app.request.get('tag_id')|force_to_int  %}#}
  904. {#{% if tagId is not null %}#}
  905. {#    <li class=\"ec-topicpath__divider\">|</li>#}
  906. {#    <li class=\"ec-topicpath__item--active\">#}
  907. {#        <a href=\"{{ url('product_list', {'tag_id': app.request.get('tag_id')}) }}\">#}
  908. {#            {{ tags[tagId].name }}#}
  909. {#        </a>#}
  910. {#    </li>#}
  911. {#{% endif %}#}
  912.                     
  913.                     {% if search_form.vars.value and search_form.vars.value.name %}
  914.                         <li class=\"ec-topicpath__divider\">|</li>
  915.                         <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  916.                     {% endif %}
  917.                 </ol>
  918.             </div>
  919.             <div class=\"ec-searchnavRole__infos\">
  920.                 <div class=\"ec-searchnavRole__counter\">
  921.                     {% if pagination.totalItemCount > 0 %}
  922.                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  923.                     {% else %}
  924.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  925.                     {% endif %}
  926.                 </div>
  927.                 {#{% if pagination.totalItemCount > 0 %}#}
  928.                 {#    <div class=\"ec-searchnavRole__actions\">#}
  929.                 {#        <div class=\"ec-select\">#}
  930.                 {#            {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}#}
  931.                 {#            {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}#}
  932.                 {#        </div>#}
  933.                 {#    </div>#}
  934.                 {#{% endif %}#}
  935.             </div>
  936.         </div>
  937.         
  938.         {% if pagination.totalItemCount > 0 %}
  939.             <div class=\"ec-role\">
  940.                 <div class=\"ec-shelfRole ec-newItemRole pt-2\">
  941.                     <ul class=\"ec-shelfGrid\">
  942.                     {% for Product in pagination %}
  943.                         <li class=\"ec-shelfGrid__item\">
  944.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  945.                                 <p class=\"ec-shelfGrid__item-image\">
  946.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  947.                                 </p>
  948.                                 <p class=\"ec-newItemRole__listItemTitle\">{{ Product.name }}</p>
  949.                                 {% if Product.description_list %}
  950.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  951.                                 {% endif %}
  952.                                 <p class=\"ec-newItemRole__listItemPrice\">
  953.                                     {% if is_granted('ROLE_USER') %}
  954.                                         {% if Product.hasProductClass %}
  955.                                             {% if Product.getPrice02Min == Product.getPrice02Max %}
  956.                                                 {% set getPrice02NoTaxMin = ceil(Product.getPrice02IncTaxMin / 1.1) %}
  957.                                                 {{ Product.getPrice02IncTaxMin|price }}(税込)/
  958.                                                 {{ getPrice02NoTaxMin|price }}(税抜)
  959.                                             {% else %}
  960.                                                 {% set getPrice02NoTaxMin = ceil(Product.getPrice02IncTaxMin / 1.1) %}
  961.                                                 {% set getPrice02NoTaxMax = ceil(Product.getPrice02IncTaxMax / 1.1) %}
  962.                                                 {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}(税込)/<br>
  963.                                                 {{ getPrice02NoTaxMin|price }} ~ {{ getPrice02NoTaxMax|price }}(税抜)
  964.                                             {% endif %}
  965.                                         {% else %}
  966.                                             {% set getPrice02NoTaxMin = ceil(Product.getPrice02IncTaxMin / 1.1) %}
  967.                                             {{ Product.getPrice02IncTaxMin|price }}(税込)/
  968.                                             {{ getPrice02NoTaxMin|price }}(税抜)
  969.                                         {% endif %}
  970.                                     {% else %}
  971.                                         価格:お問い合わせください
  972.                                     {% endif %}
  973.                                 </p>
  974.                                 {% for productClass in Product.ProductClasses %}
  975.                                     <p class=\"ec-newItemRole__listItemPrice\">在庫数:{{ productClass.getSaleLimit() }}</p>
  976.                                 {% endfor %}
  977.                             </a>
  978.                             {% if is_granted('ROLE_USER') %}
  979.                                 {% if Product.stock_find %}
  980.                                     {% set form = forms[Product.id] %}
  981.                                     <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  982.                                         <div class=\"ec-productRole__actions\">
  983.                                             {% if form.classcategory_id1 is defined %}
  984.                                                 <div class=\"ec-select\">
  985.                                                     {{ form_widget(form.classcategory_id1) }}
  986.                                                     {{ form_errors(form.classcategory_id1) }}
  987.                                                 </div>
  988.                                                 {% if form.classcategory_id2 is defined %}
  989.                                                     <div class=\"ec-select\">
  990.                                                         {{ form_widget(form.classcategory_id2) }}
  991.                                                         {{ form_errors(form.classcategory_id2) }}
  992.                                                     </div>
  993.                                                 {% endif %}
  994.                                             {% endif %}
  995.                                             <div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
  996.                                                 {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  997.                                                 {{ form_errors(form.quantity) }}
  998.                                             </div>
  999.                                         </div>
  1000.                                         {{ form_rest(form) }}
  1001.                                     </form>
  1002.                                     <div class=\"ec-productRole__btn\">
  1003.                                         <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  1004.                                             {{ 'カートに入れる'|trans }}
  1005.                                         </button>
  1006.                                     </div>
  1007.                                 {% else %}
  1008.                                     <div class=\"ec-productRole__btn\">
  1009.                                         <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1010.                                             {{ 'ただいま品切れ中です。'|trans }}
  1011.                                         </button>
  1012.                                     </div>
  1013.                                 {% endif %}
  1014.                             {% endif %}
  1015.                         </li>
  1016.                     {% endfor %}
  1017.                 </ul>
  1018.                 </div>  
  1019.             </div>
  1020.             <div class=\"ec-modal\">
  1021.                 <div class=\"ec-modal-overlay\">
  1022.                     <div class=\"ec-modal-wrap\">
  1023.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  1024.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  1025.                         <div class=\"ec-modal-box\">
  1026.                             <div class=\"ec-role\">
  1027.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  1028.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  1029.                             </div>
  1030.                         </div>
  1031.                     </div>
  1032.                 </div>
  1033.             </div>
  1034.             <div class=\"ec-pagerRole\">
  1035.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  1036.             </div>
  1037.         {% endif %}
  1038.         
  1039.         <div class=\"ec-role\">
  1040.             {# search box #}
  1041.             <div class=\"d-md-none ec-headerNaviRole__search\">
  1042.                 {{ render(path('block_search_product')) }}
  1043.             </div>
  1044.         </div>
  1045.     {% endif %}
  1046. {% endblock %}""Product/list.twig""/home/wai2cojp/sysdemo.pro/public_html/kinpara.sysdemo.pro/shop/app/template/default/Product/list.twig");
  1047.     }
  1048. }