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