var/cache/dev/twig/78/78c2715aa92b7dc243f4d58005ed583b3d9ccd1295fdce438f0497c735ddab17.php line 53

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