var/cache/dev/twig/6a/6a50c243283ff197567554cf08e0388ceaedb54b634e524fd63bc0094e07dd07.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_category.twig */
  14. class __TwigTemplate_7b2c7f5d0946102898d561bdc46a904616af50d11eac6e11cfd98db43080c6fe 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 1
  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_category.twig"));
  37.         // line 2
  38.         $context["body_class"] = "product_page";
  39.         // line 1
  40.         $this->parent $this->loadTemplate("default_frame.twig""Product/list_category.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.     }
  45.     // line 4
  46.     public function block_javascript($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  51.         // line 5
  52.         echo "    <script>
  53.         eccube.productsClassCategories = {
  54.             ";
  55.         // line 7
  56.         $context['_parent'] = $context;
  57.         $context['_seq'] = twig_ensure_traversable(($context["pagination"] ?? null));
  58.         $context['loop'] = [
  59.           'parent' => $context['_parent'],
  60.           'index0' => 0,
  61.           'index'  => 1,
  62.           'first'  => true,
  63.         ];
  64.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  65.             $length count($context['_seq']);
  66.             $context['loop']['revindex0'] = $length 1;
  67.             $context['loop']['revindex'] = $length;
  68.             $context['loop']['length'] = $length;
  69.             $context['loop']['last'] = === $length;
  70.         }
  71.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  72.             // line 8
  73.             echo "            \"";
  74.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse8), "js"), "html"nulltrue);
  75.             echo "\": ";
  76.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  77.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse8) == false)) {
  78.                 echo ", ";
  79.             }
  80.             // line 9
  81.             echo "            ";
  82.             ++$context['loop']['index0'];
  83.             ++$context['loop']['index'];
  84.             $context['loop']['first'] = false;
  85.             if (isset($context['loop']['length'])) {
  86.                 --$context['loop']['revindex0'];
  87.                 --$context['loop']['revindex'];
  88.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  89.             }
  90.         }
  91.         $_parent $context['_parent'];
  92.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  93.         $context array_intersect_key($context$_parent) + $_parent;
  94.         // line 10
  95.         echo "        };
  96.         \$(function() {
  97.             // 表示件数を変更
  98.             \$('.disp-number').change(function() {
  99.                 var dispNumber = \$(this).val();
  100.                 \$('#disp_number').val(dispNumber);
  101.                 \$('#pageno').val(1);
  102.                 \$(\"#form1\").submit();
  103.             });
  104.             // 並び順を変更
  105.             \$('.order-by').change(function() {
  106.                 var orderBy = \$(this).val();
  107.                 \$('#orderby').val(orderBy);
  108.                 \$('#pageno').val(1);
  109.                 \$(\"#form1\").submit();
  110.             });
  111.             \$('.add-cart').on('click', function(e) {
  112.                 var \$form = \$(this).parents('li').find('form');
  113.                 // 個数フォームのチェック
  114.                 var \$quantity = \$form.parent().find('.quantity');
  115.                 if (\$quantity.val() < 1) {
  116.                     \$quantity[0].setCustomValidity('";
  117.         // line 36
  118.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  119.         echo "');
  120.                     setTimeout(function() {
  121.                         loadingOverlay('hide');
  122.                     }, 100);
  123.                     return true;
  124.                 } else {
  125.                     \$quantity[0].setCustomValidity('');
  126.                 }
  127.                 e.preventDefault();
  128.                 \$.ajax({
  129.                     url: \$form.attr('action'),
  130.                     type: \$form.attr('method'),
  131.                     data: \$form.serialize(),
  132.                     dataType: 'json',
  133.                     beforeSend: function(xhr, settings) {
  134.                         // Buttonを無効にする
  135.                         \$('.add-cart').prop('disabled', true);
  136.                     }
  137.                 }).done(function(data) {
  138.                     // レスポンス内のメッセージをalertで表示
  139.                     \$.each(data.messages, function() {
  140.                         \$('#ec-modal-header').text(this);
  141.                     });
  142.                     \$('.ec-modal').show()
  143.                     // カートブロックを更新する
  144.                     \$.ajax({
  145.                         url: '";
  146.         // line 64
  147.         echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("block_cart");
  148.         echo "',
  149.                         type: 'GET',
  150.                         dataType: 'html'
  151.                     }).done(function(html) {
  152.                         \$('.ec-headerRole__cart').html(html);
  153.                     });
  154.                 }).fail(function(data) {
  155.                     alert('";
  156.         // line 71
  157.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  158.         echo "');
  159.                 }).always(function(data) {
  160.                     // Buttonを有効にする
  161.                     \$('.add-cart').prop('disabled', false);
  162.                 });
  163.             });
  164.         });
  165.         \$('.ec-modal-wrap').on('click', function(e) {
  166.             // モーダル内の処理は外側にバブリングさせない
  167.             e.stopPropagation();
  168.         });
  169.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  170.             \$('.ec-modal').hide()
  171.         });
  172.     </script>
  173. ";
  174.         
  175.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  176.     }
  177.     // line 89
  178.     public function block_main($context, array $blocks = [])
  179.     {
  180.         $macros $this->macros;
  181.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  182.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  183.         // line 90
  184.         echo "
  185.     ";
  186.         // line 92
  187.         echo "    <div class=\"seach_resutl seach_resutl__sp\">
  188.         <ul class=\"seach_resutl__list\">
  189.             ";
  190.         // line 95
  191.         echo "            ";
  192.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsefalse95), "value", [], "any"falsefalsefalse95) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsefalse95), "value", [], "any"falsefalsefalse95), "name", [], "any"falsefalsefalse95))) {
  193.             // line 96
  194.             echo "                <li class=\"ec-topicpath__item\">";
  195.             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, ($context["search_form"] ?? null), "vars", [], "any"falsefalsefalse96), "value", [], "any"falsefalsefalse96), "name", [], "any"falsefalsefalse96)]), "html"nulltrue);
  196.             echo "</li>
  197.             ";
  198.         }
  199.         // line 98
  200.         echo "
  201.             ";
  202.         // line 100
  203.         echo "            ";
  204.         if ( !(null === ($context["Category"] ?? null))) {
  205.             // line 101
  206.             echo "                ";
  207.             $context['_parent'] = $context;
  208.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, ($context["Category"] ?? null), "path", [], "any"falsefalsefalse101));
  209.             foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  210.                 // line 102
  211.                 echo "                    ";
  212.                 // line 103
  213.                 echo "                    ";
  214.                 if (((twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse103) != 34) && (twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse103) != 7))) {
  215.                     // line 104
  216.                     echo "                        ";
  217.                     $context["current_id"] = twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse104);
  218.                     // line 105
  219.                     echo "                        ";
  220.                     $context["current_name"] = twig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse105);
  221.                     // line 106
  222.                     echo "                        <li>";
  223.                     echo twig_escape_filter($this->env, ($context["current_name"] ?? null), "html"nulltrue);
  224.                     echo "</li>
  225.                     ";
  226.                 }
  227.                 // line 108
  228.                 echo "                ";
  229.             }
  230.             $_parent $context['_parent'];
  231.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  232.             $context array_intersect_key($context$_parent) + $_parent;
  233.             // line 109
  234.             echo "            ";
  235.         }
  236.         // line 110
  237.         echo "
  238.             ";
  239.         // line 112
  240.         echo "            ";
  241.         if (array_key_exists("ProductItems"$context)) {
  242.             // line 113
  243.             echo "                ";
  244.             $context['_parent'] = $context;
  245.             $context['_seq'] = twig_ensure_traversable(($context["ProductItems"] ?? null));
  246.             foreach ($context['_seq'] as $context["_key"] => $context["ProductItem"]) {
  247.                 // line 114
  248.                 echo "                    ";
  249.                 $context["name"] = ("productplus_" twig_get_attribute($this->env$this->source$context["ProductItem"], "id", [], "any"falsefalsefalse114));
  250.                 // line 115
  251.                 echo "
  252.                     ";
  253.                 // line 116
  254.                 if ((twig_get_attribute($this->env$this->source$context["ProductItem"], "input_type", [], "any"falsefalsefalse116) >= twig_constant("Plugin\\ProductPlus42\\Entity\\ProductItem::SELECT_TYPE"))) {
  255.                     // line 117
  256.                     echo "
  257.                         ";
  258.                     // line 118
  259.                     $context['_parent'] = $context;
  260.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (($__internal_compile_0 = ($context["form"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[($context["name"] ?? null)] ?? null) : null), "vars", [], "any"falsefalsefalse118), "choices", [], "any"falsefalsefalse118));
  261.                     foreach ($context['_seq'] as $context["_key"] => $context["choice"]) {
  262.                         // line 119
  263.                         echo "                            ";
  264.                         if (twig_in_filter(twig_get_attribute($this->env$this->source$context["choice"], "value", [], "any"falsefalsefalse119), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (($__internal_compile_1 = ($context["form"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[($context["name"] ?? null)] ?? null) : null), "vars", [], "any"falsefalsefalse119), "data", [], "any"falsefalsefalse119))) {
  265.                             // line 120
  266.                             echo "                                <li>";
  267.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["choice"], "label", [], "any"falsefalsefalse120), "html"nulltrue);
  268.                             echo "</li>
  269.                             ";
  270.                         }
  271.                         // line 122
  272.                         echo "                        ";
  273.                     }
  274.                     $_parent $context['_parent'];
  275.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['choice'], $context['_parent'], $context['loop']);
  276.                     $context array_intersect_key($context$_parent) + $_parent;
  277.                     // line 123
  278.                     echo "
  279.                     ";
  280.                 } else {
  281.                     // line 125
  282.                     echo "
  283.                     ";
  284.                 }
  285.                 // line 127
  286.                 echo "                ";
  287.             }
  288.             $_parent $context['_parent'];
  289.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductItem'], $context['_parent'], $context['loop']);
  290.             $context array_intersect_key($context$_parent) + $_parent;
  291.             // line 128
  292.             echo "            ";
  293.         }
  294.         // line 129
  295.         echo "
  296.             ";
  297.         // line 131
  298.         echo "            ";
  299.         if ((twig_get_attribute($this->env$this->source, ($context["searchData"] ?? null), "hmin", [], "any"falsefalsefalse131) || twig_get_attribute($this->env$this->source, ($context["searchData"] ?? null), "hmax", [], "any"falsefalsefalse131))) {
  300.             // line 132
  301.             echo "                <li>
  302.                     高さ
  303.                     ";
  304.             // line 134
  305.             if (twig_get_attribute($this->env$this->source, ($context["searchData"] ?? null), "hmin", [], "any"falsefalsefalse134)) {
  306.                 // line 135
  307.                 echo "                        ";
  308.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, ($context["searchData"] ?? null), "hmin", [], "any"falsefalsefalse135), "html"nulltrue);
  309.                 echo "mm
  310.                     ";
  311.             }
  312.             // line 137
  313.             echo "                    <span>~</span>
  314.                     ";
  315.             // line 138
  316.             if (twig_get_attribute($this->env$this->source, ($context["searchData"] ?? null), "hmax", [], "any"falsefalsefalse138)) {
  317.                 // line 139
  318.                 echo "                        ";
  319.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, ($context["searchData"] ?? null), "hmax", [], "any"falsefalsefalse139), "html"nulltrue);
  320.                 echo "mm
  321.                     ";
  322.             }
  323.             // line 141
  324.             echo "                </li>
  325.             ";
  326.         }
  327.         // line 143
  328.         echo "
  329.             ";
  330.         // line 145
  331.         echo "            ";
  332.         if ((twig_get_attribute($this->env$this->source, ($context["searchData"] ?? null), "wmin", [], "any"falsefalsefalse145) || twig_get_attribute($this->env$this->source, ($context["searchData"] ?? null), "wmax", [], "any"falsefalsefalse145))) {
  333.             // line 146
  334.             echo "                <li>
  335.                     幅
  336.                     ";
  337.             // line 148
  338.             if (twig_get_attribute($this->env$this->source, ($context["searchData"] ?? null), "wmin", [], "any"falsefalsefalse148)) {
  339.                 // line 149
  340.                 echo "                        ";
  341.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, ($context["searchData"] ?? null), "wmin", [], "any"falsefalsefalse149), "html"nulltrue);
  342.                 echo "mm
  343.                     ";
  344.             }
  345.             // line 151
  346.             echo "                    <span>~</span>
  347.                     ";
  348.             // line 152
  349.             if (twig_get_attribute($this->env$this->source, ($context["searchData"] ?? null), "wmax", [], "any"falsefalsefalse152)) {
  350.                 // line 153
  351.                 echo "                        ";
  352.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, ($context["searchData"] ?? null), "wmax", [], "any"falsefalsefalse153), "html"nulltrue);
  353.                 echo "mm
  354.                     ";
  355.             }
  356.             // line 155
  357.             echo "                </li>
  358.             ";
  359.         }
  360.         // line 157
  361.         echo "
  362.             ";
  363.         // line 159
  364.         echo "            ";
  365.         if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["form"] ?? null), "pmin", [], "any"falsefalsefalse159), "vars", [], "any"falsefalsefalse159), "value", [], "any"falsefalsefalse159) != "") || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["form"] ?? null), "pmax", [], "any"falsefalsefalse159), "vars", [], "any"falsefalsefalse159), "value", [], "any"falsefalsefalse159) != ""))) {
  366.             // line 160
  367.             echo "                <li>
  368.                     ";
  369.             // line 161
  370.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["form"] ?? null), "pmin", [], "any"falsefalsefalse161), "vars", [], "any"falsefalsefalse161), "value", [], "any"falsefalsefalse161) != "")) {
  371.                 // line 162
  372.                 echo "                        ";
  373.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["form"] ?? null), "pmin", [], "any"falsefalsefalse162), "vars", [], "any"falsefalsefalse162), "value", [], "any"falsefalsefalse162)), "html"nulltrue);
  374.                 echo "円
  375.                     ";
  376.             }
  377.             // line 164
  378.             echo "                    <span>~</span>
  379.                     ";
  380.             // line 165
  381.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["form"] ?? null), "pmax", [], "any"falsefalsefalse165), "vars", [], "any"falsefalsefalse165), "value", [], "any"falsefalsefalse165) != "")) {
  382.                 // line 166
  383.                 echo "                        ";
  384.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["form"] ?? null), "pmax", [], "any"falsefalsefalse166), "vars", [], "any"falsefalsefalse166), "value", [], "any"falsefalsefalse166)), "html"nulltrue);
  385.                 echo "円
  386.                     ";
  387.             }
  388.             // line 168
  389.             echo "                </li>
  390.             ";
  391.         }
  392.         // line 170
  393.         echo "        </ul>
  394.         ";
  395.         // line 172
  396.         echo "        <a class=\"searchResetLink\">検索クリア</a>
  397.     </div><!--/.seach_resutl-->
  398.     ";
  399.         // line 177
  400.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "category_id", [], "any"falsefalsefalse177), "vars", [], "any"falsefalsefalse177), "errors", [], "any"falsefalsefalse177)) > 0)) {
  401.             // line 178
  402.             echo "        <div class=\"ec-searchnavRole\">
  403.             <p class=\"errormsg text-danger\">";
  404.             // line 179
  405.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  406.             echo "</p>
  407.         </div>
  408.     ";
  409.         } else {
  410.             // line 182
  411.             echo "
  412.         <div class=\"ec-searchnavRole\">
  413.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  414.                 ";
  415.             // line 185
  416.             $context['_parent'] = $context;
  417.             $context['_seq'] = twig_ensure_traversable(($context["search_form"] ?? null));
  418.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  419.                 // line 186
  420.                 echo "                    <input type=\"hidden\" id=\"";
  421.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse186), "id", [], "any"falsefalsefalse186), "html"nulltrue);
  422.                 echo "\"
  423.                            name=\"";
  424.                 // line 187
  425.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse187), "full_name", [], "any"falsefalsefalse187), "html"nulltrue);
  426.                 echo "\"
  427.                             ";
  428.                 // line 188
  429.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse188), "value", [], "any"falsefalsefalse188))) {
  430.                     // line 189
  431.                     echo "                                ";
  432.                     if (twig_test_iterable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse189), "value", [], "any"falsefalsefalse189))) {
  433.                         // line 190
  434.                         echo "                                    value=\"";
  435.                         echo twig_escape_filter($this->envtwig_join_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse190), "value", [], "any"falsefalsefalse190), ","), "html"nulltrue);
  436.                         echo "\"
  437.                                 ";
  438.                     } else {
  439.                         // line 192
  440.                         echo "                                    value=\"";
  441.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse192), "value", [], "any"falsefalsefalse192), "html"nulltrue);
  442.                         echo "\"
  443.                                 ";
  444.                     }
  445.                     // line 194
  446.                     echo "                            ";
  447.                 }
  448.                 // line 195
  449.                 echo "                    />
  450.                 ";
  451.             }
  452.             $_parent $context['_parent'];
  453.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  454.             $context array_intersect_key($context$_parent) + $_parent;
  455.             // line 197
  456.             echo "            </form>
  457.             <div class=\"ec-searchnavRole__infos\">
  458.                 <div class=\"ec-searchnavRole__counter\">
  459.                     ";
  460.             // line 201
  461.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsefalse201) > 0)) {
  462.                 // line 202
  463.                 echo "                        ";
  464.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">対象商品 <span>%count%</span> 件</span>", ["%count%" => twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsefalse202)]);
  465.                 echo "
  466.                     ";
  467.             } else {
  468.                 // line 204
  469.                 echo "                        <span>";
  470.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  471.                 echo "</span>
  472.                     ";
  473.             }
  474.             // line 206
  475.             echo "                </div>
  476.                 ";
  477.             // line 207
  478.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsefalse207) > 0)) {
  479.                 // line 208
  480.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  481.                         <div class=\"ec-select\">
  482.                             ";
  483.                 // line 211
  484.                 echo "                            ";
  485.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "orderby", [], "any"falsefalsefalse211), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  486.                 echo "
  487.                         </div>
  488.                     </div>
  489.                 ";
  490.             }
  491.             // line 215
  492.             echo "            </div>
  493.         </div>
  494.         ";
  495.             // line 218
  496.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsefalse218) > 0)) {
  497.                 // line 219
  498.                 echo "            <div class=\"ec-shelfRole\">
  499.                 <ul class=\"ec-shelfGrid\">
  500.                     ";
  501.                 // line 221
  502.                 $context['_parent'] = $context;
  503.                 $context['_seq'] = twig_ensure_traversable(($context["pagination"] ?? null));
  504.                 $context['loop'] = [
  505.                   'parent' => $context['_parent'],
  506.                   'index0' => 0,
  507.                   'index'  => 1,
  508.                   'first'  => true,
  509.                 ];
  510.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  511.                     $length count($context['_seq']);
  512.                     $context['loop']['revindex0'] = $length 1;
  513.                     $context['loop']['revindex'] = $length;
  514.                     $context['loop']['length'] = $length;
  515.                     $context['loop']['last'] = === $length;
  516.                 }
  517.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  518.                     // line 222
  519.                     echo "                        <li class=\"ec-shelfGrid__item\">
  520.                             <a href=\"";
  521.                     // line 223
  522.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse223)]), "html"nulltrue);
  523.                     echo "\">
  524.                                 <p class=\"ec-shelfGrid__item-image\">
  525.                                     <img src=\"";
  526.                     // line 225
  527.                     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"falsefalsefalse225)), "save_image"), "html"nulltrue);
  528.                     echo "\" alt=\"";
  529.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse225), "html"nulltrue);
  530.                     echo "\" ";
  531.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse225) > 5)) {
  532.                         echo " loading=\"lazy\"";
  533.                     }
  534.                     echo ">
  535.                                 </p>
  536.                                 ";
  537.                     // line 230
  538.                     echo "                                ";
  539.                     $context["parentId"] = 34;
  540.                     // line 231
  541.                     echo "                                ";
  542.                     $context["childCategories"] = [];
  543.                     // line 232
  544.                     echo "                                ";
  545.                     // line 233
  546.                     echo "                                ";
  547.                     $context['_parent'] = $context;
  548.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse233));
  549.                     foreach ($context['_seq'] as $context["_key"] => $context["productCategory"]) {
  550.                         // line 234
  551.                         echo "                                    ";
  552.                         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["productCategory"], "Category", [], "any"falsefalsefalse234), "Parent", [], "any"falsefalsefalse234) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["productCategory"], "Category", [], "any"falsefalsefalse234), "Parent", [], "any"falsefalsefalse234), "id", [], "any"falsefalsefalse234) == ($context["parentId"] ?? null)))) {
  553.                             // line 235
  554.                             echo "                                        ";
  555.                             $context["childCategories"] = twig_array_merge(($context["childCategories"] ?? null), [=> twig_get_attribute($this->env$this->source$context["productCategory"], "Category", [], "any"falsefalsefalse235)]);
  556.                             // line 236
  557.                             echo "                                    ";
  558.                         }
  559.                         // line 237
  560.                         echo "                                ";
  561.                     }
  562.                     $_parent $context['_parent'];
  563.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productCategory'], $context['_parent'], $context['loop']);
  564.                     $context array_intersect_key($context$_parent) + $_parent;
  565.                     // line 238
  566.                     echo "                                <div class=\"ec-productRole__title_brand\">";
  567.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (($__internal_compile_2 = ($context["childCategories"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[0] ?? null) : null), "japaneseText", [], "any"falsefalsefalse238), "html"nulltrue);
  568.                     echo "</div>
  569.                                 <p>";
  570.                     // line 240
  571.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse240), "html"nulltrue);
  572.                     echo "</p>
  573.                                 ";
  574.                     // line 241
  575.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse241)) {
  576.                         // line 242
  577.                         echo "                                    <p>";
  578.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse242));
  579.                         echo "</p>
  580.                                 ";
  581.                     }
  582.                     // line 244
  583.                     echo "
  584.                                 <p class=\"price02-default\">
  585.                                     ";
  586.                     // line 246
  587.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse246)) {
  588.                         // line 247
  589.                         echo "                                        ";
  590.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse247) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse247))) {
  591.                             // line 248
  592.                             echo "                                            ";
  593.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse248)), "html"nulltrue);
  594.                             echo "
  595.                                         ";
  596.                         } else {
  597.                             // line 250
  598.                             echo "                                            ";
  599.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse250)), "html"nulltrue);
  600.                             echo " ~ ";
  601.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse250)), "html"nulltrue);
  602.                             echo "
  603.                                         ";
  604.                         }
  605.                         // line 252
  606.                         echo "                                    ";
  607.                     } else {
  608.                         // line 253
  609.                         echo "                                        ";
  610.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse253)), "html"nulltrue);
  611.                         echo "
  612.                                     ";
  613.                     }
  614.                     // line 255
  615.                     echo "                                    <span class=\"zeikomi\">(税込)</span>
  616.                                 </p>
  617.                             </a>
  618.                             ";
  619.                     // line 298
  620.                     echo "                        </li>
  621.                     ";
  622.                     ++$context['loop']['index0'];
  623.                     ++$context['loop']['index'];
  624.                     $context['loop']['first'] = false;
  625.                     if (isset($context['loop']['length'])) {
  626.                         --$context['loop']['revindex0'];
  627.                         --$context['loop']['revindex'];
  628.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  629.                     }
  630.                 }
  631.                 $_parent $context['_parent'];
  632.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  633.                 $context array_intersect_key($context$_parent) + $_parent;
  634.                 // line 300
  635.                 echo "                </ul>
  636.             </div>
  637.             <div class=\"ec-modal\">
  638.                 <div class=\"ec-modal-overlay\">
  639.                     <div class=\"ec-modal-wrap\">
  640.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  641.                 // line 305
  642.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  643.                 echo "\" alt=\"\"/></span></span>
  644.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  645.                 // line 306
  646.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  647.                 echo "</div>
  648.                         <div class=\"ec-modal-box\">
  649.                             <div class=\"ec-role\">
  650.                                 <span class=\"ec-inlineBtn--cancel\">";
  651.                 // line 309
  652.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  653.                 echo "</span>
  654.                                 <a href=\"";
  655.                 // line 310
  656.                 echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("cart");
  657.                 echo "\" class=\"ec-inlineBtn--action\">";
  658.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  659.                 echo "</a>
  660.                             </div>
  661.                         </div>
  662.                     </div>
  663.                 </div>
  664.             </div>
  665.             <div class=\"ec-pagerRole\">
  666.                 ";
  667.                 // line 317
  668.                 $this->loadTemplate("pager.twig""Product/list_category.twig"317)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "paginationData", [], "any"falsefalsefalse317)]));
  669.                 // line 318
  670.                 echo "            </div>
  671.         ";
  672.             }
  673.             // line 320
  674.             echo "    ";
  675.         }
  676.         // line 321
  677.         echo "
  678.     <a class=\"sp_filtter_btn\">
  679.         <img src=\"";
  680.         // line 324
  681.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/plus_icon.png"), "html"nulltrue);
  682.         echo "\">
  683.         <span class=\"txt\">絞り込み</span>
  684.     </a>
  685. ";
  686.         
  687.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  688.     }
  689.     public function getTemplateName()
  690.     {
  691.         return "Product/list_category.twig";
  692.     }
  693.     public function isTraitable()
  694.     {
  695.         return false;
  696.     }
  697.     public function getDebugInfo()
  698.     {
  699.         return array (  713 => 324,  708 => 321,  705 => 320,  701 => 318,  699 => 317,  687 => 310,  683 => 309,  677 => 306,  673 => 305,  666 => 300,  651 => 298,  645 => 255,  639 => 253,  636 => 252,  628 => 250,  622 => 248,  619 => 247,  617 => 246,  613 => 244,  607 => 242,  605 => 241,  601 => 240,  595 => 238,  589 => 237,  586 => 236,  583 => 235,  580 => 234,  575 => 233,  573 => 232,  570 => 231,  567 => 230,  554 => 225,  549 => 223,  546 => 222,  529 => 221,  525 => 219,  523 => 218,  518 => 215,  510 => 211,  506 => 208,  504 => 207,  501 => 206,  495 => 204,  489 => 202,  487 => 201,  481 => 197,  474 => 195,  471 => 194,  465 => 192,  459 => 190,  456 => 189,  454 => 188,  450 => 187,  445 => 186,  441 => 185,  436 => 182,  430 => 179,  427 => 178,  425 => 177,  418 => 172,  415 => 170,  411 => 168,  405 => 166,  403 => 165,  400 => 164,  394 => 162,  392 => 161,  389 => 160,  386 => 159,  383 => 157,  379 => 155,  373 => 153,  371 => 152,  368 => 151,  362 => 149,  360 => 148,  356 => 146,  353 => 145,  350 => 143,  346 => 141,  340 => 139,  338 => 138,  335 => 137,  329 => 135,  327 => 134,  323 => 132,  320 => 131,  317 => 129,  314 => 128,  308 => 127,  304 => 125,  300 => 123,  294 => 122,  288 => 120,  285 => 119,  281 => 118,  278 => 117,  276 => 116,  273 => 115,  270 => 114,  265 => 113,  262 => 112,  259 => 110,  256 => 109,  250 => 108,  244 => 106,  241 => 105,  238 => 104,  235 => 103,  233 => 102,  228 => 101,  225 => 100,  222 => 98,  216 => 96,  213 => 95,  209 => 92,  206 => 90,  199 => 89,  175 => 71,  165 => 64,  134 => 36,  106 => 10,  92 => 9,  84 => 8,  67 => 7,  63 => 5,  56 => 4,  48 => 1,  46 => 2,  36 => 1,);
  700.     }
  701.     public function getSourceContext()
  702.     {
  703.         return new Source("""Product/list_category.twig""/home/xs626321/ikus.furniture/public_html/online/app/template/default/Product/list_category.twig");
  704.     }
  705. }