var/cache/dev/twig/d8/d88182d2cd7696b64c6a5c63392d875467d858006f294baffaa8697478ad3f16.php line 16

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Product/list.twig */
  14. class __TwigTemplate_c3281ba6cd28a96f54dabf9c6d74f6cda2945468f063483a794b9d78fafd9610 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 11
  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.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.twig"));
  39.         // line 13
  40.         $context["body_class"] = "product_page";
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  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 15
  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 16
  58.         echo "    <script>
  59.         eccube.productsClassCategories = {
  60.             ";
  61.         // line 18
  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.'18$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 19
  79.             echo "            \"";
  80.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse19), "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"falsefalsefalse19) == false)) {
  84.                 echo ", ";
  85.             }
  86.             // line 20
  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 21
  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 47
  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').html(this);
  147.                     });
  148.                     \$('.ec-modal').show()
  149.                     // カートブロックを更新する
  150.                     \$.ajax({
  151.                         url: '";
  152.         // line 75
  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 82
  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 100
  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 101
  194.         echo "
  195.     ";
  196.         // line 102
  197.         echo twig_include($this->env$context"JoolenCategoryBannerText42/Resource/template/default/banner_text.twig", array(), truetrue);
  198.         // line 103
  199.         echo "
  200.     ";
  201.         // line 104
  202.         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.'104$this->source); })()), "category_id", [], "any"falsefalsefalse104), "vars", [], "any"falsefalsefalse104), "errors", [], "any"falsefalsefalse104)) > 0)) {
  203.             // line 105
  204.             echo "        <div class=\"ec-searchnavRole\">
  205.             <p class=\"errormsg text-danger\">";
  206.             // line 106
  207.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  208.             echo "</p>
  209.         </div>
  210.     ";
  211.         } else {
  212.             // line 109
  213.             echo "        <div class=\"ec-searchnavRole\">
  214.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  215.                 ";
  216.             // line 111
  217.             $context['_parent'] = $context;
  218.             $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.'111$this->source); })()));
  219.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  220.                 // line 112
  221.                 echo "                    <input type=\"hidden\" id=\"";
  222.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse112), "id", [], "any"falsefalsefalse112), "html"nulltrue);
  223.                 echo "\"
  224.                            name=\"";
  225.                 // line 113
  226.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse113), "full_name", [], "any"falsefalsefalse113), "html"nulltrue);
  227.                 echo "\"
  228.                            ";
  229.                 // line 114
  230.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse114), "value", [], "any"falsefalsefalse114))) {
  231.                     echo "value=\"";
  232.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse114), "value", [], "any"falsefalsefalse114), "html"nulltrue);
  233.                     echo "\" ";
  234.                 }
  235.                 echo "/>
  236.                 ";
  237.             }
  238.             $_parent $context['_parent'];
  239.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  240.             $context array_intersect_key($context$_parent) + $_parent;
  241.             // line 116
  242.             echo "            </form>
  243.             <div class=\"ec-searchnavRole__topicpath\">
  244.                 <ol class=\"ec-topicpath\">
  245.                     <li class=\"ec-topicpath__item\"><a href=\"";
  246.             // line 119
  247.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  248.             echo "\">";
  249.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  250.             echo "</a>
  251.                     </li>
  252.                     ";
  253.             // line 121
  254.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'121$this->source); })()))) {
  255.                 // line 122
  256.                 echo "                        ";
  257.                 $context['_parent'] = $context;
  258.                 $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.'122$this->source); })()), "path", [], "any"falsefalsefalse122));
  259.                 $context['loop'] = [
  260.                   'parent' => $context['_parent'],
  261.                   'index0' => 0,
  262.                   'index'  => 1,
  263.                   'first'  => true,
  264.                 ];
  265.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  266.                     $length count($context['_seq']);
  267.                     $context['loop']['revindex0'] = $length 1;
  268.                     $context['loop']['revindex'] = $length;
  269.                     $context['loop']['length'] = $length;
  270.                     $context['loop']['last'] = === $length;
  271.                 }
  272.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  273.                     // line 123
  274.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  275.                             <li class=\"ec-topicpath__item";
  276.                     // line 124
  277.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse124)) {
  278.                         echo "--active";
  279.                     }
  280.                     echo "\"><a
  281.                                         href=\"";
  282.                     // line 125
  283.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  284.                     echo "?category_id=";
  285.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse125), "html"nulltrue);
  286.                     echo "\">";
  287.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse125), "html"nulltrue);
  288.                     echo "</a>
  289.                             </li>
  290.                         ";
  291.                     ++$context['loop']['index0'];
  292.                     ++$context['loop']['index'];
  293.                     $context['loop']['first'] = false;
  294.                     if (isset($context['loop']['length'])) {
  295.                         --$context['loop']['revindex0'];
  296.                         --$context['loop']['revindex'];
  297.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  298.                     }
  299.                 }
  300.                 $_parent $context['_parent'];
  301.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  302.                 $context array_intersect_key($context$_parent) + $_parent;
  303.                 // line 128
  304.                 echo "                    ";
  305.             }
  306.             // line 129
  307.             echo "                    ";
  308.             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.'129$this->source); })()), "vars", [], "any"falsefalsefalse129), "value", [], "any"falsefalsefalse129) && 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.'129$this->source); })()), "vars", [], "any"falsefalsefalse129), "value", [], "any"falsefalsefalse129), "name", [], "any"falsefalsefalse129))) {
  309.                 // line 130
  310.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  311.                         <li class=\"ec-topicpath__item\">";
  312.                 // line 131
  313.                 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.'131$this->source); })()), "vars", [], "any"falsefalsefalse131), "value", [], "any"falsefalsefalse131), "name", [], "any"falsefalsefalse131)]), "html"nulltrue);
  314.                 echo "</li>
  315.                     ";
  316.             }
  317.             // line 133
  318.             echo "                </ol>
  319.             </div>
  320.             <div class=\"ec-searchnavRole__infos\">
  321.                 <div class=\"ec-searchnavRole__counter\">
  322.                     ";
  323.             // line 137
  324.             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.'137$this->source); })()), "totalItemCount", [], "any"falsefalsefalse137) > 0)) {
  325.                 // line 138
  326.                 echo "                        ";
  327.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>", ["%count%" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'138$this->source); })()), "totalItemCount", [], "any"falsefalsefalse138)]);
  328.                 echo "
  329.                     ";
  330.             } else {
  331.                 // line 140
  332.                 echo "                        <span>";
  333.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  334.                 echo "</span>
  335.                     ";
  336.             }
  337.             // line 142
  338.             echo "                </div>
  339.                 ";
  340.             // line 143
  341.             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.'143$this->source); })()), "totalItemCount", [], "any"falsefalsefalse143) > 0)) {
  342.                 // line 144
  343.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  344.                         <div class=\"ec-select\">
  345.                             ";
  346.                 // line 146
  347.                 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.'146$this->source); })()), "disp_number", [], "any"falsefalsefalse146), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  348.                 echo "
  349.                             ";
  350.                 // line 147
  351.                 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.'147$this->source); })()), "orderby", [], "any"falsefalsefalse147), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  352.                 echo "
  353.                         </div>
  354.                     </div>
  355.                 ";
  356.             }
  357.             // line 151
  358.             echo "            </div>
  359.         </div>
  360.         ";
  361.             // line 153
  362.             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.'153$this->source); })()), "totalItemCount", [], "any"falsefalsefalse153) > 0)) {
  363.                 // line 154
  364.                 echo "            <div class=\"ec-shelfRole\">
  365.                 <ul class=\"ec-shelfGrid\">
  366.                     ";
  367.                 // line 156
  368.                 $context['_parent'] = $context;
  369.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'156$this->source); })()));
  370.                 $context['loop'] = [
  371.                   'parent' => $context['_parent'],
  372.                   'index0' => 0,
  373.                   'index'  => 1,
  374.                   'first'  => true,
  375.                 ];
  376.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  377.                     $length count($context['_seq']);
  378.                     $context['loop']['revindex0'] = $length 1;
  379.                     $context['loop']['revindex'] = $length;
  380.                     $context['loop']['length'] = $length;
  381.                     $context['loop']['last'] = === $length;
  382.                 }
  383.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  384.                     // line 157
  385.                     echo "                        <li class=\"ec-shelfGrid__item\">
  386.                             <a href=\"";
  387.                     // line 158
  388.                     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"falsefalsefalse158)]), "html"nulltrue);
  389.                     echo "\">
  390.                                 <p class=\"ec-shelfGrid__item-image\">
  391.                                     <img src=\"";
  392.                     // line 160
  393.                     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"falsefalsefalse160)), "save_image"), "html"nulltrue);
  394.                     echo "\" alt=\"";
  395.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse160), "html"nulltrue);
  396.                     echo "\" ";
  397.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse160) > 5)) {
  398.                         echo " loading=\"lazy\"";
  399.                     }
  400.                     echo ">
  401.                                 </p>
  402.                                 <p>";
  403.                     // line 162
  404.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse162), "html"nulltrue);
  405.                     echo "</p>
  406.                                 ";
  407.                     // line 163
  408.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse163)) {
  409.                         // line 164
  410.                         echo "                                    <p>";
  411.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse164));
  412.                         echo "</p>
  413.                                 ";
  414.                     }
  415.                     // line 166
  416.                     echo "                                <p class=\"price02-default\">
  417.                                     ";
  418.                     // line 167
  419.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse167)) {
  420.                         // line 168
  421.                         echo "                                        ";
  422.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse168) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse168))) {
  423.                             // line 169
  424.                             echo "                                            ";
  425.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse169)), "html"nulltrue);
  426.                             echo "
  427.                                         ";
  428.                         } else {
  429.                             // line 171
  430.                             echo "                                            ";
  431.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse171)), "html"nulltrue);
  432.                             echo " ~ ";
  433.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse171)), "html"nulltrue);
  434.                             echo "
  435.                                         ";
  436.                         }
  437.                         // line 173
  438.                         echo "                                    ";
  439.                     } else {
  440.                         // line 174
  441.                         echo "                                        ";
  442.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse174)), "html"nulltrue);
  443.                         echo "
  444.                                     ";
  445.                     }
  446.                     // line 176
  447.                     echo "                                </p>
  448.                             </a>
  449.                             ";
  450.                     // line 214
  451.                     echo "                        </li>
  452.                     ";
  453.                     ++$context['loop']['index0'];
  454.                     ++$context['loop']['index'];
  455.                     $context['loop']['first'] = false;
  456.                     if (isset($context['loop']['length'])) {
  457.                         --$context['loop']['revindex0'];
  458.                         --$context['loop']['revindex'];
  459.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  460.                     }
  461.                 }
  462.                 $_parent $context['_parent'];
  463.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  464.                 $context array_intersect_key($context$_parent) + $_parent;
  465.                 // line 216
  466.                 echo "                </ul>
  467.             </div>
  468.             <div class=\"ec-modal\">
  469.                 <div class=\"ec-modal-overlay\">
  470.                     <div class=\"ec-modal-wrap\">
  471.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  472.                 // line 221
  473.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  474.                 echo "\" alt=\"\"/></span></span>
  475.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  476.                 // line 222
  477.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  478.                 echo "</div>
  479.                         <div class=\"ec-modal-box\">
  480.                             <div class=\"ec-role\">
  481.                                 <span class=\"ec-inlineBtn--cancel\">";
  482.                 // line 225
  483.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  484.                 echo "</span>
  485.                                 <a href=\"";
  486.                 // line 226
  487.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  488.                 echo "\" class=\"ec-inlineBtn--action\">";
  489.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  490.                 echo "</a>
  491.                             </div>
  492.                         </div>
  493.                     </div>
  494.                 </div>
  495.             </div>
  496.             <div class=\"ec-pagerRole\">
  497.                 ";
  498.                 // line 233
  499.                 $this->loadTemplate("pager.twig""Product/list.twig"233)->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.'233$this->source); })()), "paginationData", [], "any"falsefalsefalse233)]));
  500.                 // line 234
  501.                 echo "            </div>
  502.         ";
  503.             }
  504.             // line 236
  505.             echo "    ";
  506.         }
  507.         
  508.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  509.         
  510.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  511.     }
  512.     public function getTemplateName()
  513.     {
  514.         return "Product/list.twig";
  515.     }
  516.     public function isTraitable()
  517.     {
  518.         return false;
  519.     }
  520.     public function getDebugInfo()
  521.     {
  522.         return array (  533 => 236,  529 => 234,  527 => 233,  515 => 226,  511 => 225,  505 => 222,  501 => 221,  494 => 216,  479 => 214,  474 => 176,  468 => 174,  465 => 173,  457 => 171,  451 => 169,  448 => 168,  446 => 167,  443 => 166,  437 => 164,  435 => 163,  431 => 162,  420 => 160,  415 => 158,  412 => 157,  395 => 156,  391 => 154,  389 => 153,  385 => 151,  378 => 147,  374 => 146,  370 => 144,  368 => 143,  365 => 142,  359 => 140,  353 => 138,  351 => 137,  345 => 133,  340 => 131,  337 => 130,  334 => 129,  331 => 128,  310 => 125,  304 => 124,  301 => 123,  283 => 122,  281 => 121,  274 => 119,  269 => 116,  257 => 114,  253 => 113,  248 => 112,  244 => 111,  240 => 109,  234 => 106,  231 => 105,  229 => 104,  226 => 103,  224 => 102,  221 => 101,  211 => 100,  184 => 82,  174 => 75,  143 => 47,  115 => 21,  101 => 20,  93 => 19,  76 => 18,  72 => 16,  62 => 15,  51 => 11,  49 => 13,  36 => 11,);
  523.     }
  524.     public function getSourceContext()
  525.     {
  526.         return new Source("{#
  527. This file is part of EC-CUBE
  528. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  529. http://www.ec-cube.co.jp/
  530. For the full copyright and license information, please view the LICENSE
  531. file that was distributed with this source code.
  532. #}
  533. {% extends 'default_frame.twig' %}
  534. {% set body_class = 'product_page' %}
  535. {% block javascript %}
  536.     <script>
  537.         eccube.productsClassCategories = {
  538.             {% for Product in pagination %}
  539.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  540.             {% endfor %}
  541.         };
  542.         \$(function() {
  543.             // 表示件数を変更
  544.             \$('.disp-number').change(function() {
  545.                 var dispNumber = \$(this).val();
  546.                 \$('#disp_number').val(dispNumber);
  547.                 \$('#pageno').val(1);
  548.                 \$(\"#form1\").submit();
  549.             });
  550.             // 並び順を変更
  551.             \$('.order-by').change(function() {
  552.                 var orderBy = \$(this).val();
  553.                 \$('#orderby').val(orderBy);
  554.                 \$('#pageno').val(1);
  555.                 \$(\"#form1\").submit();
  556.             });
  557.             \$('.add-cart').on('click', function(e) {
  558.                 var \$form = \$(this).parents('li').find('form');
  559.                 // 個数フォームのチェック
  560.                 var \$quantity = \$form.parent().find('.quantity');
  561.                 if (\$quantity.val() < 1) {
  562.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  563.                     setTimeout(function() {
  564.                         loadingOverlay('hide');
  565.                     }, 100);
  566.                     return true;
  567.                 } else {
  568.                     \$quantity[0].setCustomValidity('');
  569.                 }
  570.                 e.preventDefault();
  571.                 \$.ajax({
  572.                     url: \$form.attr('action'),
  573.                     type: \$form.attr('method'),
  574.                     data: \$form.serialize(),
  575.                     dataType: 'json',
  576.                     beforeSend: function(xhr, settings) {
  577.                         // Buttonを無効にする
  578.                         \$('.add-cart').prop('disabled', true);
  579.                     }
  580.                 }).done(function(data) {
  581.                     // レスポンス内のメッセージをalertで表示
  582.                     \$.each(data.messages, function() {
  583.                         \$('#ec-modal-header').html(this);
  584.                     });
  585.                     \$('.ec-modal').show()
  586.                     // カートブロックを更新する
  587.                     \$.ajax({
  588.                         url: '{{ url('block_cart') }}',
  589.                         type: 'GET',
  590.                         dataType: 'html'
  591.                     }).done(function(html) {
  592.                         \$('.ec-headerRole__cart').html(html);
  593.                     });
  594.                 }).fail(function(data) {
  595.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  596.                 }).always(function(data) {
  597.                     // Buttonを有効にする
  598.                     \$('.add-cart').prop('disabled', false);
  599.                 });
  600.             });
  601.         });
  602.         \$('.ec-modal-wrap').on('click', function(e) {
  603.             // モーダル内の処理は外側にバブリングさせない
  604.             e.stopPropagation();
  605.         });
  606.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  607.             \$('.ec-modal').hide()
  608.         });
  609.     </script>
  610. {% endblock %}
  611. {% block main %}
  612.     {{ include('JoolenCategoryBannerText42/Resource/template/default/banner_text.twig', ignore_missing = true) }}{# カテゴリーバナーコンテンツプラグインのコード デコパワー船戸が追加 #}
  613.     {% if search_form.category_id.vars.errors|length > 0 %}
  614.         <div class=\"ec-searchnavRole\">
  615.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  616.         </div>
  617.     {% else %}
  618.         <div class=\"ec-searchnavRole\">
  619.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  620.                 {% for item in search_form %}
  621.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  622.                            name=\"{{ item.vars.full_name }}\"
  623.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  624.                 {% endfor %}
  625.             </form>
  626.             <div class=\"ec-searchnavRole__topicpath\">
  627.                 <ol class=\"ec-topicpath\">
  628.                     <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  629.                     </li>
  630.                     {% if Category is not null %}
  631.                         {% for Path in Category.path %}
  632.                             <li class=\"ec-topicpath__divider\">|</li>
  633.                             <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
  634.                                         href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  635.                             </li>
  636.                         {% endfor %}
  637.                     {% endif %}
  638.                     {% if search_form.vars.value and search_form.vars.value.name %}
  639.                         <li class=\"ec-topicpath__divider\">|</li>
  640.                         <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  641.                     {% endif %}
  642.                 </ol>
  643.             </div>
  644.             <div class=\"ec-searchnavRole__infos\">
  645.                 <div class=\"ec-searchnavRole__counter\">
  646.                     {% if pagination.totalItemCount > 0 %}
  647.                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  648.                     {% else %}
  649.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  650.                     {% endif %}
  651.                 </div>
  652.                 {% if pagination.totalItemCount > 0 %}
  653.                     <div class=\"ec-searchnavRole__actions\">
  654.                         <div class=\"ec-select\">
  655.                             {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  656.                             {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  657.                         </div>
  658.                     </div>
  659.                 {% endif %}
  660.             </div>
  661.         </div>
  662.         {% if pagination.totalItemCount > 0 %}
  663.             <div class=\"ec-shelfRole\">
  664.                 <ul class=\"ec-shelfGrid\">
  665.                     {% for Product in pagination %}
  666.                         <li class=\"ec-shelfGrid__item\">
  667.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  668.                                 <p class=\"ec-shelfGrid__item-image\">
  669.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  670.                                 </p>
  671.                                 <p>{{ Product.name }}</p>
  672.                                 {% if Product.description_list %}
  673.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  674.                                 {% endif %}
  675.                                 <p class=\"price02-default\">
  676.                                     {% if Product.hasProductClass %}
  677.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  678.                                             {{ Product.getPrice02IncTaxMin|price }}
  679.                                         {% else %}
  680.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  681.                                         {% endif %}
  682.                                     {% else %}
  683.                                         {{ Product.getPrice02IncTaxMin|price }}
  684.                                     {% endif %}
  685.                                 </p>
  686.                             </a>
  687.                             {# {% if Product.stock_find %}
  688.                                 {% set form = forms[Product.id] %}
  689.                                 <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  690.                                     <div class=\"ec-productRole__actions\">
  691.                                         {% if form.classcategory_id1 is defined %}
  692.                                             <div class=\"ec-select\">
  693.                                                 {{ form_widget(form.classcategory_id1) }}
  694.                                                 {{ form_errors(form.classcategory_id1) }}
  695.                                             </div>
  696.                                             {% if form.classcategory_id2 is defined %}
  697.                                                 <div class=\"ec-select\">
  698.                                                     {{ form_widget(form.classcategory_id2) }}
  699.                                                     {{ form_errors(form.classcategory_id2) }}
  700.                                                 </div>
  701.                                             {% endif %}
  702.                                         {% endif %}
  703.                                         <div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
  704.                                             {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  705.                                             {{ form_errors(form.quantity) }}
  706.                                         </div>
  707.                                     </div>
  708.                                     {{ form_rest(form) }}
  709.                                 </form>
  710.                                 <div class=\"ec-productRole__btn\">
  711.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  712.                                         {{ 'カートに入れる'|trans }}
  713.                                     </button>
  714.                                 </div>
  715.                             {% else %}
  716.                                 <div class=\"ec-productRole__btn\">
  717.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  718.                                         {{ 'ただいま品切れ中です。'|trans }}
  719.                                     </button>
  720.                                 </div>
  721.                             {% endif %} #}
  722.                         </li>
  723.                     {% endfor %}
  724.                 </ul>
  725.             </div>
  726.             <div class=\"ec-modal\">
  727.                 <div class=\"ec-modal-overlay\">
  728.                     <div class=\"ec-modal-wrap\">
  729.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  730.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  731.                         <div class=\"ec-modal-box\">
  732.                             <div class=\"ec-role\">
  733.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  734.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  735.                             </div>
  736.                         </div>
  737.                     </div>
  738.                 </div>
  739.             </div>
  740.             <div class=\"ec-pagerRole\">
  741.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  742.             </div>
  743.         {% endif %}
  744.     {% endif %}
  745. {% endblock %}""Product/list.twig""/home/sinwa/changer.fun/public_html/www2.changer.fun/app/template/default/Product/list.twig");
  746.     }
  747. }