var/cache/dev/twig/df/dfe9c3cbcb314de79f2a1e86962864cbf714af6d2aab36f341708937616414eb.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_brand.twig */
  14. class __TwigTemplate_19ad15acc71a350ba4aed09673729c3941d396287ead9aa8d9b491d27219c4cf 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_brand.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_brand.twig"));
  39.         // line 3
  40.         $context["body_class"] = "product_page";
  41.         // line 1
  42.         $this->parent $this->loadTemplate("default_frame.twig""Product/list_brand.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 5
  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 6
  58.         echo "    <script>
  59.         eccube.productsClassCategories = {
  60.             ";
  61.         // line 8
  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.'8$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 9
  79.             echo "            \"";
  80.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse9), "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"falsefalsefalse9) == false)) {
  84.                 echo ", ";
  85.             }
  86.             // line 10
  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 11
  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 37
  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 65
  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 72
  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 90
  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 91
  194.         echo "
  195.     ";
  196.         // line 93
  197.         echo "    <div class=\"seach_resutl seach_resutl__sp\">
  198.         <ul class=\"seach_resutl__list\">
  199.             ";
  200.         // line 96
  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.'96$this->source); })()), "vars", [], "any"falsefalsefalse96), "value", [], "any"falsefalsefalse96) && 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))) {
  203.             // line 97
  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.'97$this->source); })()), "vars", [], "any"falsefalsefalse97), "value", [], "any"falsefalsefalse97), "name", [], "any"falsefalsefalse97)]), "html"nulltrue);
  206.             echo "</li>
  207.             ";
  208.         }
  209.         // line 99
  210.         echo "
  211.             ";
  212.         // line 101
  213.         echo "            ";
  214.         if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'101$this->source); })()))) {
  215.             // line 102
  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.'102$this->source); })()), "path", [], "any"falsefalsefalse102));
  219.             foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  220.                 // line 103
  221.                 echo "                    ";
  222.                 // line 104
  223.                 echo "                    ";
  224.                 if (((twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse104) != 34) && (twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse104) != 7))) {
  225.                     // line 105
  226.                     echo "                        ";
  227.                     $context["current_id"] = twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse105);
  228.                     // line 106
  229.                     echo "                        ";
  230.                     $context["current_name"] = twig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse106);
  231.                     // line 107
  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.'107$this->source); })()), "html"nulltrue);
  234.                     echo "</li>
  235.                     ";
  236.                 }
  237.                 // line 109
  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 110
  244.             echo "            ";
  245.         }
  246.         // line 111
  247.         echo "
  248.             ";
  249.         // line 113
  250.         echo "            ";
  251.         if (array_key_exists("ProductItems"$context)) {
  252.             // line 114
  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.'114$this->source); })()));
  256.             foreach ($context['_seq'] as $context["_key"] => $context["ProductItem"]) {
  257.                 // line 115
  258.                 echo "                    ";
  259.                 $context["name"] = ("productplus_" twig_get_attribute($this->env$this->source$context["ProductItem"], "id", [], "any"falsefalsefalse115));
  260.                 // line 116
  261.                 echo "
  262.                     ";
  263.                 // line 117
  264.                 if ((twig_get_attribute($this->env$this->source$context["ProductItem"], "input_type", [], "any"falsefalsefalse117) >= twig_constant("Plugin\\ProductPlus42\\Entity\\ProductItem::SELECT_TYPE"))) {
  265.                     // line 118
  266.                     echo "
  267.                         ";
  268.                     // line 119
  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.'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), "choices", [], "any"falsefalsefalse119));
  271.                     foreach ($context['_seq'] as $context["_key"] => $context["choice"]) {
  272.                         // line 120
  273.                         echo "                            ";
  274.                         if (twig_in_filter(twig_get_attribute($this->env$this->source$context["choice"], "value", [], "any"falsefalsefalse120), 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.'120$this->source); })()), (isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'120$this->source); })()), [], "array"falsefalsefalse120), "vars", [], "any"falsefalsefalse120), "data", [], "any"falsefalsefalse120))) {
  275.                             // line 121
  276.                             echo "                                <li>";
  277.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["choice"], "label", [], "any"falsefalsefalse121), "html"nulltrue);
  278.                             echo "</li>
  279.                             ";
  280.                         }
  281.                         // line 123
  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 124
  288.                     echo "
  289.                     ";
  290.                 } else {
  291.                     // line 126
  292.                     echo "
  293.                     ";
  294.                 }
  295.                 // line 128
  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 129
  302.             echo "            ";
  303.         }
  304.         // line 130
  305.         echo "
  306.             ";
  307.         // line 132
  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.'132$this->source); })()), "hmin", [], "any"falsefalsefalse132) || 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.'132$this->source); })()), "hmax", [], "any"falsefalsefalse132))) {
  310.             // line 133
  311.             echo "                <li>
  312.                     高さ
  313.                     ";
  314.             // line 135
  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.'135$this->source); })()), "hmin", [], "any"falsefalsefalse135)) {
  316.                 // line 136
  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.'136$this->source); })()), "hmin", [], "any"falsefalsefalse136), "html"nulltrue);
  319.                 echo "mm
  320.                     ";
  321.             }
  322.             // line 138
  323.             echo "                    <span>~</span>
  324.                     ";
  325.             // line 139
  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.'139$this->source); })()), "hmax", [], "any"falsefalsefalse139)) {
  327.                 // line 140
  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.'140$this->source); })()), "hmax", [], "any"falsefalsefalse140), "html"nulltrue);
  330.                 echo "mm
  331.                     ";
  332.             }
  333.             // line 142
  334.             echo "                </li>
  335.             ";
  336.         }
  337.         // line 144
  338.         echo "
  339.             ";
  340.         // line 146
  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.'146$this->source); })()), "wmin", [], "any"falsefalsefalse146) || 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.'146$this->source); })()), "wmax", [], "any"falsefalsefalse146))) {
  343.             // line 147
  344.             echo "                <li>
  345.                     幅
  346.                     ";
  347.             // line 149
  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.'149$this->source); })()), "wmin", [], "any"falsefalsefalse149)) {
  349.                 // line 150
  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.'150$this->source); })()), "wmin", [], "any"falsefalsefalse150), "html"nulltrue);
  352.                 echo "mm
  353.                     ";
  354.             }
  355.             // line 152
  356.             echo "                    <span>~</span>
  357.                     ";
  358.             // line 153
  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.'153$this->source); })()), "wmax", [], "any"falsefalsefalse153)) {
  360.                 // line 154
  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.'154$this->source); })()), "wmax", [], "any"falsefalsefalse154), "html"nulltrue);
  363.                 echo "mm
  364.                     ";
  365.             }
  366.             // line 156
  367.             echo "                </li>
  368.             ";
  369.         }
  370.         // line 158
  371.         echo "
  372.             ";
  373.         // line 160
  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.'160$this->source); })()), "pmin", [], "any"falsefalsefalse160), "vars", [], "any"falsefalsefalse160), "value", [], "any"falsefalsefalse160) != "") || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'160$this->source); })()), "pmax", [], "any"falsefalsefalse160), "vars", [], "any"falsefalsefalse160), "value", [], "any"falsefalsefalse160) != ""))) {
  376.             // line 161
  377.             echo "                <li>
  378.                     ";
  379.             // line 162
  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.'162$this->source); })()), "pmin", [], "any"falsefalsefalse162), "vars", [], "any"falsefalsefalse162), "value", [], "any"falsefalsefalse162) != "")) {
  381.                 // line 163
  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.'163$this->source); })()), "pmin", [], "any"falsefalsefalse163), "vars", [], "any"falsefalsefalse163), "value", [], "any"falsefalsefalse163)), "html"nulltrue);
  384.                 echo "円
  385.                     ";
  386.             }
  387.             // line 165
  388.             echo "                    <span>~</span>
  389.                     ";
  390.             // line 166
  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.'166$this->source); })()), "pmax", [], "any"falsefalsefalse166), "vars", [], "any"falsefalsefalse166), "value", [], "any"falsefalsefalse166) != "")) {
  392.                 // line 167
  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.'167$this->source); })()), "pmax", [], "any"falsefalsefalse167), "vars", [], "any"falsefalsefalse167), "value", [], "any"falsefalsefalse167)), "html"nulltrue);
  395.                 echo "円
  396.                     ";
  397.             }
  398.             // line 169
  399.             echo "                </li>
  400.             ";
  401.         }
  402.         // line 171
  403.         echo "        </ul>
  404.         ";
  405.         // line 173
  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.                     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"falsefalsefalse188), "value", [], "any"falsefalsefalse188), "html"nulltrue);
  442.                     echo "\" ";
  443.                 }
  444.                 echo "/>
  445.                 ";
  446.             }
  447.             $_parent $context['_parent'];
  448.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  449.             $context array_intersect_key($context$_parent) + $_parent;
  450.             // line 190
  451.             echo "            </form>
  452.             <div class=\"ec-searchnavRole__infos\">
  453.                 <div class=\"ec-searchnavRole__counter\">
  454.                     ";
  455.             // line 194
  456.             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.'194$this->source); })()), "totalItemCount", [], "any"falsefalsefalse194) > 0)) {
  457.                 // line 195
  458.                 echo "                        ";
  459.                 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.'195$this->source); })()), "totalItemCount", [], "any"falsefalsefalse195)]);
  460.                 echo "
  461.                     ";
  462.             } else {
  463.                 // line 197
  464.                 echo "                        <span>";
  465.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  466.                 echo "</span>
  467.                     ";
  468.             }
  469.             // line 199
  470.             echo "                </div>
  471.                 ";
  472.             // line 200
  473.             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.'200$this->source); })()), "totalItemCount", [], "any"falsefalsefalse200) > 0)) {
  474.                 // line 201
  475.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  476.                         <div class=\"ec-select\">
  477.                             ";
  478.                 // line 203
  479.                 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.'203$this->source); })()), "disp_number", [], "any"falsefalsefalse203), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  480.                 echo "
  481.                             ";
  482.                 // line 204
  483.                 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.'204$this->source); })()), "orderby", [], "any"falsefalsefalse204), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  484.                 echo "
  485.                         </div>
  486.                     </div>
  487.                 ";
  488.             }
  489.             // line 208
  490.             echo "            </div>
  491.         </div>
  492.         ";
  493.             // line 211
  494.             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.'211$this->source); })()), "totalItemCount", [], "any"falsefalsefalse211) > 0)) {
  495.                 // line 212
  496.                 echo "            <div class=\"ec-shelfRole\">
  497.                 <ul class=\"ec-shelfGrid\">
  498.                     ";
  499.                 // line 214
  500.                 $context['_parent'] = $context;
  501.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'214$this->source); })()));
  502.                 $context['loop'] = [
  503.                   'parent' => $context['_parent'],
  504.                   'index0' => 0,
  505.                   'index'  => 1,
  506.                   'first'  => true,
  507.                 ];
  508.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  509.                     $length count($context['_seq']);
  510.                     $context['loop']['revindex0'] = $length 1;
  511.                     $context['loop']['revindex'] = $length;
  512.                     $context['loop']['length'] = $length;
  513.                     $context['loop']['last'] = === $length;
  514.                 }
  515.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  516.                     // line 215
  517.                     echo "                        <li class=\"ec-shelfGrid__item\">
  518.                             <a href=\"";
  519.                     // line 216
  520.                     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"falsefalsefalse216)]), "html"nulltrue);
  521.                     echo "\">
  522.                                 <p class=\"ec-shelfGrid__item-image\">
  523.                                     <img src=\"";
  524.                     // line 218
  525.                     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"falsefalsefalse218)), "save_image"), "html"nulltrue);
  526.                     echo "\" alt=\"";
  527.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse218), "html"nulltrue);
  528.                     echo "\" ";
  529.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse218) > 5)) {
  530.                         echo " loading=\"lazy\"";
  531.                     }
  532.                     echo ">
  533.                                 </p>
  534.                                 <p>";
  535.                     // line 220
  536.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse220), "html"nulltrue);
  537.                     echo "</p>
  538.                                 ";
  539.                     // line 221
  540.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse221)) {
  541.                         // line 222
  542.                         echo "                                    <p>";
  543.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse222));
  544.                         echo "</p>
  545.                                 ";
  546.                     }
  547.                     // line 224
  548.                     echo "                                <p class=\"price02-default\">
  549.                                     ";
  550.                     // line 225
  551.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse225)) {
  552.                         // line 226
  553.                         echo "                                        ";
  554.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse226) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse226))) {
  555.                             // line 227
  556.                             echo "                                            ";
  557.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse227)), "html"nulltrue);
  558.                             echo "
  559.                                         ";
  560.                         } else {
  561.                             // line 229
  562.                             echo "                                            ";
  563.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse229)), "html"nulltrue);
  564.                             echo " ~ ";
  565.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse229)), "html"nulltrue);
  566.                             echo "
  567.                                         ";
  568.                         }
  569.                         // line 231
  570.                         echo "                                    ";
  571.                     } else {
  572.                         // line 232
  573.                         echo "                                        ";
  574.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse232)), "html"nulltrue);
  575.                         echo "
  576.                                     ";
  577.                     }
  578.                     // line 234
  579.                     echo "                                </p>
  580.                             </a>
  581.                         </li>
  582.                     ";
  583.                     ++$context['loop']['index0'];
  584.                     ++$context['loop']['index'];
  585.                     $context['loop']['first'] = false;
  586.                     if (isset($context['loop']['length'])) {
  587.                         --$context['loop']['revindex0'];
  588.                         --$context['loop']['revindex'];
  589.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  590.                     }
  591.                 }
  592.                 $_parent $context['_parent'];
  593.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  594.                 $context array_intersect_key($context$_parent) + $_parent;
  595.                 // line 238
  596.                 echo "                </ul>
  597.             </div>
  598.             <div class=\"ec-modal\">
  599.                 <div class=\"ec-modal-overlay\">
  600.                     <div class=\"ec-modal-wrap\">
  601.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  602.                 // line 243
  603.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  604.                 echo "\" alt=\"\"/></span></span>
  605.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  606.                 // line 244
  607.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  608.                 echo "</div>
  609.                         <div class=\"ec-modal-box\">
  610.                             <div class=\"ec-role\">
  611.                                 <span class=\"ec-inlineBtn--cancel\">";
  612.                 // line 247
  613.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  614.                 echo "</span>
  615.                                 <a href=\"";
  616.                 // line 248
  617.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  618.                 echo "\" class=\"ec-inlineBtn--action\">";
  619.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  620.                 echo "</a>
  621.                             </div>
  622.                         </div>
  623.                     </div>
  624.                 </div>
  625.             </div>
  626.             <div class=\"ec-pagerRole\">
  627.                 ";
  628.                 // line 255
  629.                 $this->loadTemplate("pager.twig""Product/list_brand.twig"255)->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.'255$this->source); })()), "paginationData", [], "any"falsefalsefalse255)]));
  630.                 // line 256
  631.                 echo "            </div>
  632.         ";
  633.             }
  634.             // line 258
  635.             echo "    ";
  636.         }
  637.         // line 259
  638.         echo "
  639.     <a class=\"sp_filtter_btn\">
  640.         <img src=\"";
  641.         // line 261
  642.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/plus_icon.png"), "html"nulltrue);
  643.         echo "\">
  644.         <span class=\"txt\">絞り込み</span>
  645.     </a>
  646. ";
  647.         
  648.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  649.         
  650.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  651.     }
  652.     public function getTemplateName()
  653.     {
  654.         return "Product/list_brand.twig";
  655.     }
  656.     public function isTraitable()
  657.     {
  658.         return false;
  659.     }
  660.     public function getDebugInfo()
  661.     {
  662.         return array (  673 => 261,  669 => 259,  666 => 258,  662 => 256,  660 => 255,  648 => 248,  644 => 247,  638 => 244,  634 => 243,  627 => 238,  610 => 234,  604 => 232,  601 => 231,  593 => 229,  587 => 227,  584 => 226,  582 => 225,  579 => 224,  573 => 222,  571 => 221,  567 => 220,  556 => 218,  551 => 216,  548 => 215,  531 => 214,  527 => 212,  525 => 211,  520 => 208,  513 => 204,  509 => 203,  505 => 201,  503 => 200,  500 => 199,  494 => 197,  488 => 195,  486 => 194,  480 => 190,  468 => 188,  464 => 187,  459 => 186,  455 => 185,  450 => 182,  444 => 179,  441 => 178,  439 => 177,  433 => 173,  430 => 171,  426 => 169,  420 => 167,  418 => 166,  415 => 165,  409 => 163,  407 => 162,  404 => 161,  401 => 160,  398 => 158,  394 => 156,  388 => 154,  386 => 153,  383 => 152,  377 => 150,  375 => 149,  371 => 147,  368 => 146,  365 => 144,  361 => 142,  355 => 140,  353 => 139,  350 => 138,  344 => 136,  342 => 135,  338 => 133,  335 => 132,  332 => 130,  329 => 129,  323 => 128,  319 => 126,  315 => 124,  309 => 123,  303 => 121,  300 => 120,  296 => 119,  293 => 118,  291 => 117,  288 => 116,  285 => 115,  280 => 114,  277 => 113,  274 => 111,  271 => 110,  265 => 109,  259 => 107,  256 => 106,  253 => 105,  250 => 104,  248 => 103,  243 => 102,  240 => 101,  237 => 99,  231 => 97,  228 => 96,  224 => 93,  221 => 91,  211 => 90,  184 => 72,  174 => 65,  143 => 37,  115 => 11,  101 => 10,  93 => 9,  76 => 8,  72 => 6,  62 => 5,  51 => 1,  49 => 3,  36 => 1,);
  663.     }
  664.     public function getSourceContext()
  665.     {
  666.         return new Source("{% extends 'default_frame.twig' %}
  667. {% set body_class = 'product_page' %}
  668. {% block javascript %}
  669.     <script>
  670.         eccube.productsClassCategories = {
  671.             {% for Product in pagination %}
  672.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  673.             {% endfor %}
  674.         };
  675.         \$(function() {
  676.             // 表示件数を変更
  677.             \$('.disp-number').change(function() {
  678.                 var dispNumber = \$(this).val();
  679.                 \$('#disp_number').val(dispNumber);
  680.                 \$('#pageno').val(1);
  681.                 \$(\"#form1\").submit();
  682.             });
  683.             // 並び順を変更
  684.             \$('.order-by').change(function() {
  685.                 var orderBy = \$(this).val();
  686.                 \$('#orderby').val(orderBy);
  687.                 \$('#pageno').val(1);
  688.                 \$(\"#form1\").submit();
  689.             });
  690.             \$('.add-cart').on('click', function(e) {
  691.                 var \$form = \$(this).parents('li').find('form');
  692.                 // 個数フォームのチェック
  693.                 var \$quantity = \$form.parent().find('.quantity');
  694.                 if (\$quantity.val() < 1) {
  695.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  696.                     setTimeout(function() {
  697.                         loadingOverlay('hide');
  698.                     }, 100);
  699.                     return true;
  700.                 } else {
  701.                     \$quantity[0].setCustomValidity('');
  702.                 }
  703.                 e.preventDefault();
  704.                 \$.ajax({
  705.                     url: \$form.attr('action'),
  706.                     type: \$form.attr('method'),
  707.                     data: \$form.serialize(),
  708.                     dataType: 'json',
  709.                     beforeSend: function(xhr, settings) {
  710.                         // Buttonを無効にする
  711.                         \$('.add-cart').prop('disabled', true);
  712.                     }
  713.                 }).done(function(data) {
  714.                     // レスポンス内のメッセージをalertで表示
  715.                     \$.each(data.messages, function() {
  716.                         \$('#ec-modal-header').text(this);
  717.                     });
  718.                     \$('.ec-modal').show()
  719.                     // カートブロックを更新する
  720.                     \$.ajax({
  721.                         url: '{{ url('block_cart') }}',
  722.                         type: 'GET',
  723.                         dataType: 'html'
  724.                     }).done(function(html) {
  725.                         \$('.ec-headerRole__cart').html(html);
  726.                     });
  727.                 }).fail(function(data) {
  728.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  729.                 }).always(function(data) {
  730.                     // Buttonを有効にする
  731.                     \$('.add-cart').prop('disabled', false);
  732.                 });
  733.             });
  734.         });
  735.         \$('.ec-modal-wrap').on('click', function(e) {
  736.             // モーダル内の処理は外側にバブリングさせない
  737.             e.stopPropagation();
  738.         });
  739.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  740.             \$('.ec-modal').hide()
  741.         });
  742.     </script>
  743. {% endblock %}
  744. {% block main %}
  745.     {# SP 検索項目表示エリア #}
  746.     <div class=\"seach_resutl seach_resutl__sp\">
  747.         <ul class=\"seach_resutl__list\">
  748.             {# 検索ワード #}
  749.             {% if search_form.vars.value and search_form.vars.value.name %}
  750.                 <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  751.             {% endif %}
  752.             {# カテゴリ名 #}
  753.             {% if Category is not null %}
  754.                 {% for Path in Category.path %}
  755.                     {# 親カテゴリは非表示 #}
  756.                     {% if Path.id != 34 and Path.id != 7 %}
  757.                         {% set current_id = Path.id %}
  758.                         {% set current_name = Path.name %}
  759.                         <li>{{ current_name }}</li>
  760.                     {% endif %}
  761.                 {% endfor %}
  762.             {% endif %}
  763.             {# 検索項目 #}
  764.             {% if ProductItems is defined %}
  765.                 {% for ProductItem in ProductItems %}
  766.                     {% set name = 'productplus_' ~ ProductItem.id %}
  767.                     {% if  ProductItem.input_type >= constant('Plugin\\\\ProductPlus42\\\\Entity\\\\ProductItem::SELECT_TYPE') %}
  768.                         {% for choice in form[name].vars.choices %}
  769.                             {% if choice.value in form[name].vars.data %}
  770.                                 <li>{{ choice.label }}</li>
  771.                             {% endif %}
  772.                         {% endfor %}
  773.                     {% else %}
  774.                     {% endif %}
  775.                 {% endfor %}
  776.             {% endif %}
  777.             {# 高さ #}
  778.             {% if searchData.hmin or searchData.hmax %}
  779.                 <li>
  780.                     高さ
  781.                     {% if searchData.hmin %}
  782.                         {{ searchData.hmin }}mm
  783.                     {% endif %}
  784.                     <span>~</span>
  785.                     {% if searchData.hmax %}
  786.                         {{ searchData.hmax }}mm
  787.                     {% endif %}
  788.                 </li>
  789.             {% endif %}
  790.             {# 幅 #}
  791.             {% if searchData.wmin or searchData.wmax %}
  792.                 <li>
  793.                     幅
  794.                     {% if searchData.wmin %}
  795.                         {{ searchData.wmin }}mm
  796.                     {% endif %}
  797.                     <span>~</span>
  798.                     {% if searchData.wmax %}
  799.                         {{ searchData.wmax }}mm
  800.                     {% endif %}
  801.                 </li>
  802.             {% endif %}
  803.             {# 価格帯 #}
  804.             {% if form.pmin.vars.value != '' or form.pmax.vars.value != '' %}
  805.                 <li>
  806.                     {% if form.pmin.vars.value != '' %}
  807.                         {{ form.pmin.vars.value|number_format }}円
  808.                     {% endif %}
  809.                     <span>~</span>
  810.                     {% if form.pmax.vars.value != '' %}
  811.                         {{ form.pmax.vars.value|number_format }}円
  812.                     {% endif %}
  813.                 </li>
  814.             {% endif %}
  815.         </ul>
  816.         {# リセットボタン #}
  817.         <a class=\"searchResetLink\">検索クリア</a>
  818.     </div><!--/.seach_resutl-->
  819.     {% if search_form.category_id.vars.errors|length > 0 %}
  820.         <div class=\"ec-searchnavRole\">
  821.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  822.         </div>
  823.     {% else %}
  824.         <div class=\"ec-searchnavRole\">
  825.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  826.                 {% for item in search_form %}
  827.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  828.                            name=\"{{ item.vars.full_name }}\"
  829.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  830.                 {% endfor %}
  831.             </form>
  832.             <div class=\"ec-searchnavRole__infos\">
  833.                 <div class=\"ec-searchnavRole__counter\">
  834.                     {% if pagination.totalItemCount > 0 %}
  835.                         {{ '<span class=\"ec-font-bold\">対象商品 <span>%count%</span> 件</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  836.                     {% else %}
  837.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  838.                     {% endif %}
  839.                 </div>
  840.                 {% if pagination.totalItemCount > 0 %}
  841.                     <div class=\"ec-searchnavRole__actions\">
  842.                         <div class=\"ec-select\">
  843.                             {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  844.                             {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  845.                         </div>
  846.                     </div>
  847.                 {% endif %}
  848.             </div>
  849.         </div>
  850.         {% if pagination.totalItemCount > 0 %}
  851.             <div class=\"ec-shelfRole\">
  852.                 <ul class=\"ec-shelfGrid\">
  853.                     {% for Product in pagination %}
  854.                         <li class=\"ec-shelfGrid__item\">
  855.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  856.                                 <p class=\"ec-shelfGrid__item-image\">
  857.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  858.                                 </p>
  859.                                 <p>{{ Product.name }}</p>
  860.                                 {% if Product.description_list %}
  861.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  862.                                 {% endif %}
  863.                                 <p class=\"price02-default\">
  864.                                     {% if Product.hasProductClass %}
  865.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  866.                                             {{ Product.getPrice02IncTaxMin|price }}
  867.                                         {% else %}
  868.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  869.                                         {% endif %}
  870.                                     {% else %}
  871.                                         {{ Product.getPrice02IncTaxMin|price }}
  872.                                     {% endif %}
  873.                                 </p>
  874.                             </a>
  875.                         </li>
  876.                     {% endfor %}
  877.                 </ul>
  878.             </div>
  879.             <div class=\"ec-modal\">
  880.                 <div class=\"ec-modal-overlay\">
  881.                     <div class=\"ec-modal-wrap\">
  882.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  883.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  884.                         <div class=\"ec-modal-box\">
  885.                             <div class=\"ec-role\">
  886.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  887.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  888.                             </div>
  889.                         </div>
  890.                     </div>
  891.                 </div>
  892.             </div>
  893.             <div class=\"ec-pagerRole\">
  894.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  895.             </div>
  896.         {% endif %}
  897.     {% endif %}
  898.     <a class=\"sp_filtter_btn\">
  899.         <img src=\"{{ asset('assets/img/common/plus_icon.png') }}\">
  900.         <span class=\"txt\">絞り込み</span>
  901.     </a>
  902. {% endblock %}
  903. ""Product/list_brand.twig""/home/xs626321/ikus.furniture/public_html/dev/app/template/default/Product/list_brand.twig");
  904.     }
  905. }