var/cache/dev/twig/52/52489126847d3ac457589eb3ff24c5cd512479ecf938f2684e408770b0924ce1.php line 16

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