var/cache/dev/twig/11/1150a28bfe15a325a6f5b43e9236c1e178877ad1751214db8367cb8b2056bcfa.php line 501

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_86887ef9f7987e83c8e88e4e2c22034d536ee918f2941e3a8dffbe1f13d6d6ae 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 15
  42.         $context["main_class"] = "l-main l-main--products";
  43.         // line 11
  44.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  48.         
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  50.     }
  51.     // line 17
  52.     public function block_javascript($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  59.         // line 18
  60.         echo "    <script>
  61.         eccube.productsClassCategories = {
  62.             ";
  63.         // line 20
  64.         $context['_parent'] = $context;
  65.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'20$this->source); })()));
  66.         $context['loop'] = [
  67.           'parent' => $context['_parent'],
  68.           'index0' => 0,
  69.           'index'  => 1,
  70.           'first'  => true,
  71.         ];
  72.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  73.             $length count($context['_seq']);
  74.             $context['loop']['revindex0'] = $length 1;
  75.             $context['loop']['revindex'] = $length;
  76.             $context['loop']['length'] = $length;
  77.             $context['loop']['last'] = === $length;
  78.         }
  79.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  80.             // line 21
  81.             echo "            \"";
  82.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse21), "js"), "html"nulltrue);
  83.             echo "\": ";
  84.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  85.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse21) == false)) {
  86.                 echo ", ";
  87.             }
  88.             // line 22
  89.             echo "            ";
  90.             ++$context['loop']['index0'];
  91.             ++$context['loop']['index'];
  92.             $context['loop']['first'] = false;
  93.             if (isset($context['loop']['length'])) {
  94.                 --$context['loop']['revindex0'];
  95.                 --$context['loop']['revindex'];
  96.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  97.             }
  98.         }
  99.         $_parent $context['_parent'];
  100.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  101.         $context array_intersect_key($context$_parent) + $_parent;
  102.         // line 23
  103.         echo "        };
  104.         \$(function() {
  105.             // 表示件数を変更
  106.             \$('.disp-number').change(function() {
  107.                 var dispNumber = \$(this).val();
  108.                 \$('#disp_number').val(dispNumber);
  109.                 \$('#pageno').val(1);
  110.                 \$(\"#form1\").submit();
  111.             });
  112.             // 並び順を変更
  113.             \$('.order-by').change(function() {
  114.                 var orderBy = \$(this).val();
  115.                 \$('#orderby').val(orderBy);
  116.                 \$('#pageno').val(1);
  117.                 \$(\"#form1\").submit();
  118.             });
  119.             \$('.add-cart').on('click', function(e) {
  120.                 var \$form = \$(this).parents('li').find('form');
  121.                 // 個数フォームのチェック
  122.                 var \$quantity = \$form.parent().find('.quantity');
  123.                 if (\$quantity.val() < 1) {
  124.                     \$quantity[0].setCustomValidity('";
  125.         // line 49
  126.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  127.         echo "');
  128.                     setTimeout(function() {
  129.                         loadingOverlay('hide');
  130.                     }, 100);
  131.                     return true;
  132.                 } else {
  133.                     \$quantity[0].setCustomValidity('');
  134.                 }
  135.                 e.preventDefault();
  136.                 \$.ajax({
  137.                     url: \$form.attr('action'),
  138.                     type: \$form.attr('method'),
  139.                     data: \$form.serialize(),
  140.                     dataType: 'json',
  141.                     beforeSend: function(xhr, settings) {
  142.                         // Buttonを無効にする
  143.                         \$('.add-cart').prop('disabled', true);
  144.                     }
  145.                 }).done(function(data) {
  146.                     // レスポンス内のメッセージをalertで表示
  147.                     \$.each(data.messages, function() {
  148.                         \$('#ec-modal-header').html(this);
  149.                     });
  150.                     \$('.ec-modal').show()
  151.                     // カートブロックを更新する
  152.                     \$.ajax({
  153.                         url: '";
  154.         // line 77
  155.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  156.         echo "',
  157.                         type: 'GET',
  158.                         dataType: 'html'
  159.                     }).done(function(html) {
  160.                         \$('.ec-headerRole__cart').html(html);
  161.                     });
  162.                 }).fail(function(data) {
  163.                     alert('";
  164.         // line 84
  165.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  166.         echo "');
  167.                 }).always(function(data) {
  168.                     // Buttonを有効にする
  169.                     \$('.add-cart').prop('disabled', false);
  170.                 });
  171.             });
  172.         });
  173.         \$('.ec-modal-wrap').on('click', function(e) {
  174.             // モーダル内の処理は外側にバブリングさせない
  175.             e.stopPropagation();
  176.         });
  177.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  178.             \$('.ec-modal').hide()
  179.         });
  180.     </script>
  181. ";
  182.         
  183.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  184.         
  185.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  186.     }
  187.     // line 102
  188.     public function block_main($context, array $blocks = [])
  189.     {
  190.         $macros $this->macros;
  191.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  192.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  193.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  194.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  195.         // line 103
  196.         echo "
  197.     <div class=\"l-page-heading\">
  198.         <ul class=\"c-breadcrumb\">
  199.             <li class=\"c-breadcrumb__item\"><a href=\"";
  200.         // line 106
  201.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  202.         echo "\" class=\"c-breadcrumb__link c-btn-txt\">TOP</a></li>
  203.             <li class=\"c-breadcrumb__item\"><span class=\"c-breadcrumb__txt\">商品リスト</span></li>
  204.         </ul>
  205.         <h1 class=\"l-page-heading__ttl\">
  206.             <span class=\"l-page-heading__ttl-jp\">商品リスト</span>
  207.             <span class=\"l-page-heading__ttl-en\">PRODUCTS</span>
  208.         </h1>
  209.     </div>
  210.     ";
  211.         // line 115
  212.         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.'115$this->source); })()), "category_id", [], "any"falsefalsefalse115), "vars", [], "any"falsefalsefalse115), "errors", [], "any"falsefalsefalse115)) > 0)) {
  213.             // line 116
  214.             echo "        <div class=\"ec-searchnavRole\">
  215.             <p class=\"errormsg text-danger\">";
  216.             // line 117
  217.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  218.             echo "</p>
  219.         </div>
  220.     ";
  221.         } else {
  222.             // line 120
  223.             echo "        <div class=\"ec-searchnavRole\">
  224.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  225.                 ";
  226.             // line 123
  227.             $context['_parent'] = $context;
  228.             $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.'123$this->source); })()));
  229.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  230.                 // line 124
  231.                 echo "                    <input type=\"hidden\" id=\"";
  232.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse124), "id", [], "any"falsefalsefalse124), "html"nulltrue);
  233.                 echo "\"
  234.                            name=\"";
  235.                 // line 125
  236.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse125), "full_name", [], "any"falsefalsefalse125), "html"nulltrue);
  237.                 echo "\"
  238.                            ";
  239.                 // line 126
  240.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse126), "value", [], "any"falsefalsefalse126))) {
  241.                     echo "value=\"";
  242.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse126), "value", [], "any"falsefalsefalse126), "html"nulltrue);
  243.                     echo "\" ";
  244.                 }
  245.                 echo "/>
  246.                 ";
  247.             }
  248.             $_parent $context['_parent'];
  249.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  250.             $context array_intersect_key($context$_parent) + $_parent;
  251.             // line 128
  252.             echo "            </form>
  253.             ";
  254.             // line 130
  255.             if (((null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'130$this->source); })())) || ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'130$this->source); })())) && (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.'130$this->source); })()), "id", [], "any"falsefalsefalse130) != "11")))) {
  256.                 // line 131
  257.                 echo "
  258.                 <ul class=\"p-products-cat\">
  259.                     <li class=\"p-products-cat__item";
  260.                 // line 133
  261.                 if ((null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'133$this->source); })()))) {
  262.                     echo " current";
  263.                 }
  264.                 echo "\">
  265.                         <a href=\"";
  266.                 // line 134
  267.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  268.                 echo "\" class=\"p-products-cat__link\">
  269.                             <span class=\"p-products-cat__large\">すべて</span>
  270.                             <span class=\"p-products-cat__small\">(ALL)</span>
  271.                         </a>
  272.                     </li>
  273.                     <li class=\"p-products-cat__item";
  274.                 // line 139
  275.                 if (( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'139$this->source); })())) && (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.'139$this->source); })()), "id", [], "any"falsefalsefalse139) == "8"))) {
  276.                     echo " current";
  277.                 }
  278.                 echo "\">
  279.                         <a href=\"";
  280.                 // line 140
  281.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  282.                 echo "?category_id=8\" class=\"p-products-cat__link\">
  283.                             <span class=\"p-products-cat__large\">MUYU-SEN Nature.</span>
  284.                             <span class=\"p-products-cat__small\">(むゆうせんナチュレ)</span>
  285.                         </a>
  286.                     </li>
  287.                     <li class=\"p-products-cat__item";
  288.                 // line 145
  289.                 if ((((( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'145$this->source); })())) && (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.'145$this->source); })()), "id", [], "any"falsefalsefalse145) == "9")) || ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'145$this->source); })())) && (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.'145$this->source); })()), "id", [], "any"falsefalsefalse145) == "13"))) || ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'145$this->source); })())) && (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.'145$this->source); })()), "id", [], "any"falsefalsefalse145) == "14"))) || ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'145$this->source); })())) && (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.'145$this->source); })()), "id", [], "any"falsefalsefalse145) == "15")))) {
  290.                     echo " current";
  291.                 }
  292.                 echo "\">
  293.                         <a href=\"";
  294.                 // line 146
  295.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  296.                 echo "?category_id=9\" class=\"p-products-cat__link\">
  297.                             <span class=\"p-products-cat__large\">Nature.Dog</span>
  298.                             <span class=\"p-products-cat__small\">(ナチュレドッグ)</span>
  299.                         </a>
  300.                     </li>
  301.                     ";
  302.                 // line 152
  303.                 $context["group1"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\CustomerGroup42\\Entity\\Group"), "find", [=> 1], "method"falsefalsefalse152);
  304.                 // line 153
  305.                 echo "                    ";
  306.                 $context["group2"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\CustomerGroup42\\Entity\\Group"), "find", [=> 2], "method"falsefalsefalse153);
  307.                 // line 154
  308.                 echo "                    ";
  309.                 $context["group3"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\CustomerGroup42\\Entity\\Group"), "find", [=> 3], "method"falsefalsefalse154);
  310.                 // line 155
  311.                 echo "                    ";
  312.                 $context["group4"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\CustomerGroup42\\Entity\\Group"), "find", [=> 4], "method"falsefalsefalse155);
  313.                 // line 156
  314.                 echo "
  315.                     ";
  316.                 // line 157
  317.                 if ((((( !(null === (isset($context["group1"]) || array_key_exists("group1"$context) ? $context["group1"] : (function () { throw new RuntimeError('Variable "group1" does not exist.'157$this->source); })())) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("view", (isset($context["group1"]) || array_key_exists("group1"$context) ? $context["group1"] : (function () { throw new RuntimeError('Variable "group1" does not exist.'157$this->source); })()))) || ( !(null === (isset($context["group2"]) || array_key_exists("group2"$context) ? $context["group2"] : (function () { throw new RuntimeError('Variable "group2" does not exist.'157$this->source); })())) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("view", (isset($context["group2"]) || array_key_exists("group2"$context) ? $context["group2"] : (function () { throw new RuntimeError('Variable "group2" does not exist.'157$this->source); })())))) || ( !(null === (isset($context["group3"]) || array_key_exists("group3"$context) ? $context["group3"] : (function () { throw new RuntimeError('Variable "group3" does not exist.'157$this->source); })())) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("view", (isset($context["group3"]) || array_key_exists("group3"$context) ? $context["group3"] : (function () { throw new RuntimeError('Variable "group3" does not exist.'157$this->source); })())))) || ( !(null === (isset($context["group4"]) || array_key_exists("group4"$context) ? $context["group4"] : (function () { throw new RuntimeError('Variable "group4" does not exist.'157$this->source); })())) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("view", (isset($context["group4"]) || array_key_exists("group4"$context) ? $context["group4"] : (function () { throw new RuntimeError('Variable "group4" does not exist.'157$this->source); })()))))) {
  318.                     // line 158
  319.                     echo "                        <li class=\"p-products-cat__item";
  320.                     if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'158$this->source); })()))) {
  321.                         if ((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.'158$this->source); })()), "id", [], "any"falsefalsefalse158) == "10")) {
  322.                             echo " current";
  323.                         }
  324.                     }
  325.                     echo "\">
  326.                             <a href=\"";
  327.                     // line 159
  328.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  329.                     echo "?category_id=10\" class=\"p-products-cat__link\">
  330.                                 <span class=\"p-products-cat__large\">Heat therapy Member</span>
  331.                                 <span class=\"p-products-cat__small\">(ヒートセラピー会員専⽤)</span>
  332.                             </a>
  333.                         </li>
  334.                     ";
  335.                 }
  336.                 // line 165
  337.                 echo "                </ul>
  338.                 ";
  339.                 // line 167
  340.                 if ((((( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'167$this->source); })())) && (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.'167$this->source); })()), "id", [], "any"falsefalsefalse167) == "9")) || ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'167$this->source); })())) && (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.'167$this->source); })()), "id", [], "any"falsefalsefalse167) == "13"))) || ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'167$this->source); })())) && (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.'167$this->source); })()), "id", [], "any"falsefalsefalse167) == "14"))) || ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'167$this->source); })())) && (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.'167$this->source); })()), "id", [], "any"falsefalsefalse167) == "15")))) {
  341.                     // line 168
  342.                     echo "                    <ul class=\"p-products-cat p-products-cat--child\">
  343.                         <li class=\"p-products-cat__item";
  344.                     // line 169
  345.                     if (( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'169$this->source); })())) && (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.'169$this->source); })()), "id", [], "any"falsefalsefalse169) == "13"))) {
  346.                         echo " current";
  347.                     }
  348.                     echo "\">
  349.                             <a href=\"";
  350.                     // line 170
  351.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  352.                     echo "?category_id=13\" class=\"p-products-cat__link\">
  353.                                 <span class=\"p-products-cat__small\">ワンコケア用品</span>
  354.                             </a>
  355.                         </li>
  356.                         <li class=\"p-products-cat__item";
  357.                     // line 174
  358.                     if (( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'174$this->source); })())) && (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.'174$this->source); })()), "id", [], "any"falsefalsefalse174) == "14"))) {
  359.                         echo " current";
  360.                     }
  361.                     echo "\">
  362.                             <a href=\"";
  363.                     // line 175
  364.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  365.                     echo "?category_id=14\" class=\"p-products-cat__link\">
  366.                                 <span class=\"p-products-cat__small\">ワンコのおやつとご飯</span>
  367.                             </a>
  368.                         </li>
  369.                         <li class=\"p-products-cat__item";
  370.                     // line 179
  371.                     if (( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'179$this->source); })())) && (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.'179$this->source); })()), "id", [], "any"falsefalsefalse179) == "15"))) {
  372.                         echo " current";
  373.                     }
  374.                     echo "\">
  375.                             <a href=\"";
  376.                     // line 180
  377.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  378.                     echo "?category_id=15\" class=\"p-products-cat__link\">
  379.                                 <span class=\"p-products-cat__small\">ワンコのグッズ</span>
  380.                             </a>
  381.                         </li>
  382.                     </ul>
  383.                 ";
  384.                 }
  385.                 // line 186
  386.                 echo "
  387.             ";
  388.             }
  389.             // line 188
  390.             echo "
  391.             <div class=\"ec-searchnavRole__infos p-products-infos\">
  392.                 ";
  393.             // line 190
  394.             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.'190$this->source); })()), "totalItemCount", [], "any"falsefalsefalse190) > 0)) {
  395.                 // line 191
  396.                 echo "                    <div class=\"ec-searchnavRole__actions p-products-infos__actions\">
  397.                         ";
  398.                 // line 192
  399.                 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.'192$this->source); })()), "disp_number", [], "any"falsefalsefalse192), 'widget', ["id" => """attr" => ["class" => "disp-number p-products-infos__select"]]);
  400.                 echo "
  401.                         ";
  402.                 // line 193
  403.                 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.'193$this->source); })()), "orderby", [], "any"falsefalsefalse193), 'widget', ["id" => """attr" => ["class" => "order-by p-products-infos__select"]]);
  404.                 echo "
  405.                     </div>
  406.                 ";
  407.             } else {
  408.                 // line 196
  409.                 echo "                    <p class=\"p-products-infos__none\">";
  410.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  411.                 echo "</p>
  412.                 ";
  413.             }
  414.             // line 198
  415.             echo "            </div>
  416.         </div>
  417.         ";
  418.             // line 202
  419.             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.'202$this->source); })()), "totalItemCount", [], "any"falsefalsefalse202) > 0)) {
  420.                 // line 203
  421.                 echo "            <div class=\"ec-shelfRole\">
  422.                 <ul class=\"ec-shelfGrid p-products-list\">
  423.                     ";
  424.                 // line 205
  425.                 $context['_parent'] = $context;
  426.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'205$this->source); })()));
  427.                 $context['loop'] = [
  428.                   'parent' => $context['_parent'],
  429.                   'index0' => 0,
  430.                   'index'  => 1,
  431.                   'first'  => true,
  432.                 ];
  433.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  434.                     $length count($context['_seq']);
  435.                     $context['loop']['revindex0'] = $length 1;
  436.                     $context['loop']['revindex'] = $length;
  437.                     $context['loop']['length'] = $length;
  438.                     $context['loop']['last'] = === $length;
  439.                 }
  440.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  441.                     // line 206
  442.                     echo "                        <li class=\"ec-shelfGrid__item p-products-list__item\">
  443.                             ";
  444.                     // line 209
  445.                     echo "                            ";
  446.                     if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  447.                         // line 210
  448.                         echo "                                ";
  449.                         echo twig_include($this->env$context"Block/product_list_favorite_block.twig");
  450.                         echo "
  451.                             ";
  452.                     }
  453.                     // line 212
  454.                     echo "
  455.                             <a href=\"";
  456.                     // line 213
  457.                     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"falsefalsefalse213)]), "html"nulltrue);
  458.                     echo "\" class=\" p-products-list__link\">
  459.                                 ";
  460.                     // line 216
  461.                     echo "                                ";
  462.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse216))) {
  463.                         // line 217
  464.                         echo "                                    ";
  465.                         if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "Tags", [], "any"falsefalsefalse217))) {
  466.                             // line 218
  467.                             echo "                                        <ul class=\"c-tags p-products-list__tags\">
  468.                                             ";
  469.                             // line 219
  470.                             $context['_parent'] = $context;
  471.                             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "Tags", [], "any"falsefalsefalse219));
  472.                             foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  473.                                 // line 220
  474.                                 echo "                                                <li class=\"c-tags__tag p-products-list__tags-tag tag_";
  475.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "id", [], "any"falsefalsefalse220), "html"nulltrue);
  476.                                 echo "\">";
  477.                                 echo twig_escape_filter($this->env$context["Tag"], "html"nulltrue);
  478.                                 echo "</li>
  479.                                             ";
  480.                             }
  481.                             $_parent $context['_parent'];
  482.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  483.                             $context array_intersect_key($context$_parent) + $_parent;
  484.                             // line 222
  485.                             echo "                                            ";
  486.                             $context['_parent'] = $context;
  487.                             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse222));
  488.                             foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  489.                                 // line 223
  490.                                 echo "                                                ";
  491.                                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse223), "path", [], "any"falsefalsefalse223), 0, [], "array"falsefalsefalse223), "id", [], "any"falsefalsefalse223) == "11")) {
  492.                                     // line 224
  493.                                     echo "                                                    ";
  494.                                     $context['_parent'] = $context;
  495.                                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse224), "path", [], "any"falsefalsefalse224));
  496.                                     foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  497.                                         // line 225
  498.                                         echo "                                                        <li class=\"c-tags__tag p-products-list__tags-tag tag_cat";
  499.                                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "id", [], "any"falsefalsefalse225), "html"nulltrue);
  500.                                         echo "\">";
  501.                                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsefalse225), "html"nulltrue);
  502.                                         echo "</li>
  503.                                                     ";
  504.                                     }
  505.                                     $_parent $context['_parent'];
  506.                                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  507.                                     $context array_intersect_key($context$_parent) + $_parent;
  508.                                     // line 227
  509.                                     echo "                                                ";
  510.                                 }
  511.                                 // line 228
  512.                                 echo "                                            ";
  513.                             }
  514.                             $_parent $context['_parent'];
  515.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  516.                             $context array_intersect_key($context$_parent) + $_parent;
  517.                             // line 229
  518.                             echo "                                        </ul>
  519.                                     ";
  520.                         } elseif (twig_test_empty(twig_get_attribute($this->env$this->source,                         // line 230
  521. $context["Product"], "Tags", [], "any"falsefalsefalse230))) {
  522.                             // line 231
  523.                             echo "                                        ";
  524.                             $context['_parent'] = $context;
  525.                             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse231));
  526.                             foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  527.                                 // line 232
  528.                                 echo "                                            ";
  529.                                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse232), "path", [], "any"falsefalsefalse232), 0, [], "array"falsefalsefalse232), "id", [], "any"falsefalsefalse232) == "11")) {
  530.                                     // line 233
  531.                                     echo "                                                <ul class=\"c-tags p-products-list__tags\">
  532.                                                     ";
  533.                                     // line 234
  534.                                     $context['_parent'] = $context;
  535.                                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse234), "path", [], "any"falsefalsefalse234));
  536.                                     foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  537.                                         // line 235
  538.                                         echo "                                                        <li class=\"c-tags__tag p-products-list__tags-tag tag_cat";
  539.                                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "id", [], "any"falsefalsefalse235), "html"nulltrue);
  540.                                         echo "\">";
  541.                                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsefalse235), "html"nulltrue);
  542.                                         echo "</li>
  543.                                                     ";
  544.                                     }
  545.                                     $_parent $context['_parent'];
  546.                                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  547.                                     $context array_intersect_key($context$_parent) + $_parent;
  548.                                     // line 237
  549.                                     echo "                                                </ul>
  550.                                             ";
  551.                                 }
  552.                                 // line 239
  553.                                 echo "                                        ";
  554.                             }
  555.                             $_parent $context['_parent'];
  556.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  557.                             $context array_intersect_key($context$_parent) + $_parent;
  558.                             // line 240
  559.                             echo "                                    ";
  560.                         }
  561.                         // line 241
  562.                         echo "                                ";
  563.                     } elseif ((twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse241)) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "Tags", [], "any"falsefalsefalse241)))) {
  564.                         // line 242
  565.                         echo "                                    <ul class=\"c-tags p-products-list__tags\">
  566.                                         ";
  567.                         // line 243
  568.                         $context['_parent'] = $context;
  569.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "Tags", [], "any"falsefalsefalse243));
  570.                         foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  571.                             // line 244
  572.                             echo "                                            <li class=\"c-tags__tag p-products-list__tags-tag tag_";
  573.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "id", [], "any"falsefalsefalse244), "html"nulltrue);
  574.                             echo "\">";
  575.                             echo twig_escape_filter($this->env$context["Tag"], "html"nulltrue);
  576.                             echo "</li>
  577.                                         ";
  578.                         }
  579.                         $_parent $context['_parent'];
  580.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  581.                         $context array_intersect_key($context$_parent) + $_parent;
  582.                         // line 246
  583.                         echo "                                    </ul>
  584.                                 ";
  585.                     }
  586.                     // line 248
  587.                     echo "                                ";
  588.                     // line 249
  589.                     echo "
  590.                                 ";
  591.                     // line 251
  592.                     echo "                                ";
  593.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse251))) {
  594.                         // line 252
  595.                         echo "                                    ";
  596.                         $context['_parent'] = $context;
  597.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsefalse252));
  598.                         foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
  599.                             // line 253
  600.                             echo "                                        ";
  601.                             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse253), "path", [], "any"falsefalsefalse253), 0, [], "array"falsefalsefalse253), "id", [], "any"falsefalsefalse253) != "11")) {
  602.                                 // line 254
  603.                                 echo "                                            <ul class=\"c-cats p-products-list__cats\">
  604.                                                 <li class=\"c-cats__cat p-products-list__cats-cat\">
  605.                                                     ";
  606.                                 // line 256
  607.                                 $context['_parent'] = $context;
  608.                                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ProductCategory"], "Category", [], "any"falsefalsefalse256), "path", [], "any"falsefalsefalse256));
  609.                                 $context['loop'] = [
  610.                                   'parent' => $context['_parent'],
  611.                                   'index0' => 0,
  612.                                   'index'  => 1,
  613.                                   'first'  => true,
  614.                                 ];
  615.                                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  616.                                     $length count($context['_seq']);
  617.                                     $context['loop']['revindex0'] = $length 1;
  618.                                     $context['loop']['revindex'] = $length;
  619.                                     $context['loop']['length'] = $length;
  620.                                     $context['loop']['last'] = === $length;
  621.                                 }
  622.                                 foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  623.                                     // line 257
  624.                                     echo "                                                        <span class=\"c-cats__cat-txt\">";
  625.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsefalse257), "html"nulltrue);
  626.                                     echo "</span>";
  627.                                     if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse257) == false)) {
  628.                                         // line 258
  629.                                         echo "                                                            <span class=\"c-cats__cat-arrow\">></span>";
  630.                                     }
  631.                                     ++$context['loop']['index0'];
  632.                                     ++$context['loop']['index'];
  633.                                     $context['loop']['first'] = false;
  634.                                     if (isset($context['loop']['length'])) {
  635.                                         --$context['loop']['revindex0'];
  636.                                         --$context['loop']['revindex'];
  637.                                         $context['loop']['last'] = === $context['loop']['revindex0'];
  638.                                     }
  639.                                 }
  640.                                 $_parent $context['_parent'];
  641.                                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  642.                                 $context array_intersect_key($context$_parent) + $_parent;
  643.                                 // line 260
  644.                                 echo "                                                </li>
  645.                                             </ul>
  646.                                         ";
  647.                             }
  648.                             // line 263
  649.                             echo "                                    ";
  650.                         }
  651.                         $_parent $context['_parent'];
  652.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
  653.                         $context array_intersect_key($context$_parent) + $_parent;
  654.                         // line 264
  655.                         echo "                                ";
  656.                     }
  657.                     // line 265
  658.                     echo "                                ";
  659.                     // line 266
  660.                     echo "
  661.                                 <p class=\"ec-shelfGrid__item-image p-products-list__img-wrap\">
  662.                                     <img src=\"";
  663.                     // line 268
  664.                     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"falsefalsefalse268)), "save_image"), "html"nulltrue);
  665.                     echo "\" alt=\"";
  666.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse268), "html"nulltrue);
  667.                     echo "\" ";
  668.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse268) > 5)) {
  669.                         echo " loading=\"lazy\"";
  670.                     }
  671.                     echo ">
  672.                                 </p>
  673.                                 <p class=\" p-products-list__name\">";
  674.                     // line 271
  675.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse271), "html"nulltrue);
  676.                     echo "</p>
  677.                                 <div class=\"p-products-list__info\">
  678.                                     ";
  679.                     // line 275
  680.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "production_capacity", [], "any"falsefalsefalse275))) {
  681.                         // line 276
  682.                         echo "                                        <p class=\" p-products-list__capacity\">";
  683.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "production_capacity", [], "any"falsefalsefalse276), "html"nulltrue);
  684.                         echo "</p>
  685.                                     ";
  686.                     }
  687.                     // line 278
  688.                     echo "
  689.                                     <p class=\"price02-default p-products-list__price\">
  690.                                         ";
  691.                     // line 280
  692.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse280)) {
  693.                         // line 281
  694.                         echo "                                            ";
  695.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse281) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse281))) {
  696.                             // line 282
  697.                             echo "                                                ";
  698.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse282)), "html"nulltrue);
  699.                             echo "
  700.                                             ";
  701.                         } else {
  702.                             // line 284
  703.                             echo "                                                ";
  704.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse284)), "html"nulltrue);
  705.                             echo " ~ ";
  706.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse284)), "html"nulltrue);
  707.                             echo "
  708.                                             ";
  709.                         }
  710.                         // line 286
  711.                         echo "                                        ";
  712.                     } else {
  713.                         // line 287
  714.                         echo "                                            ";
  715.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse287)), "html"nulltrue);
  716.                         echo "
  717.                                         ";
  718.                     }
  719.                     // line 288
  720.                     echo "円(税込)
  721.                                     </p>
  722.                                 </div>
  723.                             </a>
  724.                         </li>
  725.                     ";
  726.                     ++$context['loop']['index0'];
  727.                     ++$context['loop']['index'];
  728.                     $context['loop']['first'] = false;
  729.                     if (isset($context['loop']['length'])) {
  730.                         --$context['loop']['revindex0'];
  731.                         --$context['loop']['revindex'];
  732.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  733.                     }
  734.                 }
  735.                 $_parent $context['_parent'];
  736.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  737.                 $context array_intersect_key($context$_parent) + $_parent;
  738.                 // line 295
  739.                 echo "                </ul>
  740.             </div>
  741.             <div class=\"ec-pagerRole l-pagination\">
  742.                 ";
  743.                 // line 299
  744.                 $this->loadTemplate("pager.twig""Product/list.twig"299)->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.'299$this->source); })()), "paginationData", [], "any"falsefalsefalse299)]));
  745.                 // line 300
  746.                 echo "            </div>
  747.         ";
  748.             }
  749.             // line 302
  750.             echo "    ";
  751.         }
  752.         
  753.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  754.         
  755.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  756.     }
  757.     public function getTemplateName()
  758.     {
  759.         return "Product/list.twig";
  760.     }
  761.     public function isTraitable()
  762.     {
  763.         return false;
  764.     }
  765.     public function getDebugInfo()
  766.     {
  767.         return array (  791 => 302,  787 => 300,  785 => 299,  779 => 295,  759 => 288,  753 => 287,  750 => 286,  742 => 284,  736 => 282,  733 => 281,  731 => 280,  727 => 278,  721 => 276,  719 => 275,  712 => 271,  700 => 268,  696 => 266,  694 => 265,  691 => 264,  685 => 263,  680 => 260,  665 => 258,  660 => 257,  643 => 256,  639 => 254,  636 => 253,  631 => 252,  628 => 251,  625 => 249,  623 => 248,  619 => 246,  608 => 244,  604 => 243,  601 => 242,  598 => 241,  595 => 240,  589 => 239,  585 => 237,  574 => 235,  570 => 234,  567 => 233,  564 => 232,  559 => 231,  557 => 230,  554 => 229,  548 => 228,  545 => 227,  534 => 225,  529 => 224,  526 => 223,  521 => 222,  510 => 220,  506 => 219,  503 => 218,  500 => 217,  497 => 216,  492 => 213,  489 => 212,  483 => 210,  480 => 209,  476 => 206,  459 => 205,  455 => 203,  453 => 202,  447 => 198,  441 => 196,  435 => 193,  431 => 192,  428 => 191,  426 => 190,  422 => 188,  418 => 186,  409 => 180,  403 => 179,  396 => 175,  390 => 174,  383 => 170,  377 => 169,  374 => 168,  372 => 167,  368 => 165,  359 => 159,  350 => 158,  348 => 157,  345 => 156,  342 => 155,  339 => 154,  336 => 153,  334 => 152,  325 => 146,  319 => 145,  311 => 140,  305 => 139,  297 => 134,  291 => 133,  287 => 131,  285 => 130,  281 => 128,  269 => 126,  265 => 125,  260 => 124,  256 => 123,  251 => 120,  245 => 117,  242 => 116,  240 => 115,  228 => 106,  223 => 103,  213 => 102,  186 => 84,  176 => 77,  145 => 49,  117 => 23,  103 => 22,  95 => 21,  78 => 20,  74 => 18,  64 => 17,  53 => 11,  51 => 15,  49 => 13,  36 => 11,);
  768.     }
  769.     public function getSourceContext()
  770.     {
  771.         return new Source("{#
  772. This file is part of EC-CUBE
  773. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  774. http://www.ec-cube.co.jp/
  775. For the full copyright and license information, please view the LICENSE
  776. file that was distributed with this source code.
  777. #}
  778. {% extends 'default_frame.twig' %}
  779. {% set body_class = 'product_page' %}
  780. {% set main_class = 'l-main l-main--products' %}
  781. {% block javascript %}
  782.     <script>
  783.         eccube.productsClassCategories = {
  784.             {% for Product in pagination %}
  785.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  786.             {% endfor %}
  787.         };
  788.         \$(function() {
  789.             // 表示件数を変更
  790.             \$('.disp-number').change(function() {
  791.                 var dispNumber = \$(this).val();
  792.                 \$('#disp_number').val(dispNumber);
  793.                 \$('#pageno').val(1);
  794.                 \$(\"#form1\").submit();
  795.             });
  796.             // 並び順を変更
  797.             \$('.order-by').change(function() {
  798.                 var orderBy = \$(this).val();
  799.                 \$('#orderby').val(orderBy);
  800.                 \$('#pageno').val(1);
  801.                 \$(\"#form1\").submit();
  802.             });
  803.             \$('.add-cart').on('click', function(e) {
  804.                 var \$form = \$(this).parents('li').find('form');
  805.                 // 個数フォームのチェック
  806.                 var \$quantity = \$form.parent().find('.quantity');
  807.                 if (\$quantity.val() < 1) {
  808.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  809.                     setTimeout(function() {
  810.                         loadingOverlay('hide');
  811.                     }, 100);
  812.                     return true;
  813.                 } else {
  814.                     \$quantity[0].setCustomValidity('');
  815.                 }
  816.                 e.preventDefault();
  817.                 \$.ajax({
  818.                     url: \$form.attr('action'),
  819.                     type: \$form.attr('method'),
  820.                     data: \$form.serialize(),
  821.                     dataType: 'json',
  822.                     beforeSend: function(xhr, settings) {
  823.                         // Buttonを無効にする
  824.                         \$('.add-cart').prop('disabled', true);
  825.                     }
  826.                 }).done(function(data) {
  827.                     // レスポンス内のメッセージをalertで表示
  828.                     \$.each(data.messages, function() {
  829.                         \$('#ec-modal-header').html(this);
  830.                     });
  831.                     \$('.ec-modal').show()
  832.                     // カートブロックを更新する
  833.                     \$.ajax({
  834.                         url: '{{ url('block_cart') }}',
  835.                         type: 'GET',
  836.                         dataType: 'html'
  837.                     }).done(function(html) {
  838.                         \$('.ec-headerRole__cart').html(html);
  839.                     });
  840.                 }).fail(function(data) {
  841.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  842.                 }).always(function(data) {
  843.                     // Buttonを有効にする
  844.                     \$('.add-cart').prop('disabled', false);
  845.                 });
  846.             });
  847.         });
  848.         \$('.ec-modal-wrap').on('click', function(e) {
  849.             // モーダル内の処理は外側にバブリングさせない
  850.             e.stopPropagation();
  851.         });
  852.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  853.             \$('.ec-modal').hide()
  854.         });
  855.     </script>
  856. {% endblock %}
  857. {% block main %}
  858.     <div class=\"l-page-heading\">
  859.         <ul class=\"c-breadcrumb\">
  860.             <li class=\"c-breadcrumb__item\"><a href=\"{{ url('homepage') }}\" class=\"c-breadcrumb__link c-btn-txt\">TOP</a></li>
  861.             <li class=\"c-breadcrumb__item\"><span class=\"c-breadcrumb__txt\">商品リスト</span></li>
  862.         </ul>
  863.         <h1 class=\"l-page-heading__ttl\">
  864.             <span class=\"l-page-heading__ttl-jp\">商品リスト</span>
  865.             <span class=\"l-page-heading__ttl-en\">PRODUCTS</span>
  866.         </h1>
  867.     </div>
  868.     {% if search_form.category_id.vars.errors|length > 0 %}
  869.         <div class=\"ec-searchnavRole\">
  870.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  871.         </div>
  872.     {% else %}
  873.         <div class=\"ec-searchnavRole\">
  874.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  875.                 {% for item in search_form %}
  876.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  877.                            name=\"{{ item.vars.full_name }}\"
  878.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  879.                 {% endfor %}
  880.             </form>
  881.             {% if Category is null or Category is not null and Category.id != '11' %}
  882.                 <ul class=\"p-products-cat\">
  883.                     <li class=\"p-products-cat__item{% if Category is null %} current{% endif %}\">
  884.                         <a href=\"{{ url('product_list') }}\" class=\"p-products-cat__link\">
  885.                             <span class=\"p-products-cat__large\">すべて</span>
  886.                             <span class=\"p-products-cat__small\">(ALL)</span>
  887.                         </a>
  888.                     </li>
  889.                     <li class=\"p-products-cat__item{% if Category is not null and Category.id == '8' %} current{% endif %}\">
  890.                         <a href=\"{{ url('product_list') }}?category_id=8\" class=\"p-products-cat__link\">
  891.                             <span class=\"p-products-cat__large\">MUYU-SEN Nature.</span>
  892.                             <span class=\"p-products-cat__small\">(むゆうせんナチュレ)</span>
  893.                         </a>
  894.                     </li>
  895.                     <li class=\"p-products-cat__item{% if Category is not null and Category.id == '9' or Category is not null and Category.id == '13' or Category is not null and Category.id == '14' or Category is not null and Category.id == '15' %} current{% endif %}\">
  896.                         <a href=\"{{ url('product_list') }}?category_id=9\" class=\"p-products-cat__link\">
  897.                             <span class=\"p-products-cat__large\">Nature.Dog</span>
  898.                             <span class=\"p-products-cat__small\">(ナチュレドッグ)</span>
  899.                         </a>
  900.                     </li>
  901.                     {% set group1 = repository(\"Plugin\\\\CustomerGroup42\\\\Entity\\\\Group\").find(1) %}
  902.                     {% set group2 = repository(\"Plugin\\\\CustomerGroup42\\\\Entity\\\\Group\").find(2) %}
  903.                     {% set group3 = repository(\"Plugin\\\\CustomerGroup42\\\\Entity\\\\Group\").find(3) %}
  904.                     {% set group4 = repository(\"Plugin\\\\CustomerGroup42\\\\Entity\\\\Group\").find(4) %}
  905.                     {% if group1 is not null and is_granted('view', group1) or group2 is not null and is_granted('view', group2) or group3 is not null and is_granted('view', group3) or group4 is not null and is_granted('view', group4) %}
  906.                         <li class=\"p-products-cat__item{% if Category is not null %}{% if Category.id == '10' %} current{% endif %}{% endif %}\">
  907.                             <a href=\"{{ url('product_list') }}?category_id=10\" class=\"p-products-cat__link\">
  908.                                 <span class=\"p-products-cat__large\">Heat therapy Member</span>
  909.                                 <span class=\"p-products-cat__small\">(ヒートセラピー会員専⽤)</span>
  910.                             </a>
  911.                         </li>
  912.                     {% endif %}
  913.                 </ul>
  914.                 {% if Category is not null and Category.id == '9' or Category is not null and Category.id == '13' or Category is not null and Category.id == '14' or Category is not null and Category.id == '15' %}
  915.                     <ul class=\"p-products-cat p-products-cat--child\">
  916.                         <li class=\"p-products-cat__item{% if Category is not null and Category.id == '13' %} current{% endif %}\">
  917.                             <a href=\"{{ url('product_list') }}?category_id=13\" class=\"p-products-cat__link\">
  918.                                 <span class=\"p-products-cat__small\">ワンコケア用品</span>
  919.                             </a>
  920.                         </li>
  921.                         <li class=\"p-products-cat__item{% if Category is not null and Category.id == '14' %} current{% endif %}\">
  922.                             <a href=\"{{ url('product_list') }}?category_id=14\" class=\"p-products-cat__link\">
  923.                                 <span class=\"p-products-cat__small\">ワンコのおやつとご飯</span>
  924.                             </a>
  925.                         </li>
  926.                         <li class=\"p-products-cat__item{% if Category is not null and Category.id == '15' %} current{% endif %}\">
  927.                             <a href=\"{{ url('product_list') }}?category_id=15\" class=\"p-products-cat__link\">
  928.                                 <span class=\"p-products-cat__small\">ワンコのグッズ</span>
  929.                             </a>
  930.                         </li>
  931.                     </ul>
  932.                 {% endif %}
  933.             {% endif %}
  934.             <div class=\"ec-searchnavRole__infos p-products-infos\">
  935.                 {% if pagination.totalItemCount > 0 %}
  936.                     <div class=\"ec-searchnavRole__actions p-products-infos__actions\">
  937.                         {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number p-products-infos__select'}}) }}
  938.                         {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by p-products-infos__select'}}) }}
  939.                     </div>
  940.                 {% else %}
  941.                     <p class=\"p-products-infos__none\">{{ 'お探しの商品は見つかりませんでした'|trans }}</p>
  942.                 {% endif %}
  943.             </div>
  944.         </div>
  945.         {% if pagination.totalItemCount > 0 %}
  946.             <div class=\"ec-shelfRole\">
  947.                 <ul class=\"ec-shelfGrid p-products-list\">
  948.                     {% for Product in pagination %}
  949.                         <li class=\"ec-shelfGrid__item p-products-list__item\">
  950.                             {# お気に入り #}
  951.                             {% if is_granted('ROLE_USER') %}{# ログインしている場合 #}
  952.                                 {{ include('Block/product_list_favorite_block.twig') }}
  953.                             {% endif %}
  954.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\" class=\" p-products-list__link\">
  955.                                 {# タグと「定期便対応」カテゴリを出力 ここから #}
  956.                                 {% if Product.ProductCategories is not empty %}
  957.                                     {% if Product.Tags is not empty %}
  958.                                         <ul class=\"c-tags p-products-list__tags\">
  959.                                             {% for Tag in Product.Tags %}
  960.                                                 <li class=\"c-tags__tag p-products-list__tags-tag tag_{{ Tag.id }}\">{{ Tag }}</li>
  961.                                             {% endfor %}
  962.                                             {% for ProductCategory in Product.ProductCategories %}
  963.                                                 {% if ProductCategory.Category.path[0].id == '11' %}
  964.                                                     {% for Category in ProductCategory.Category.path %}
  965.                                                         <li class=\"c-tags__tag p-products-list__tags-tag tag_cat{{ Category.id }}\">{{ Category.name }}</li>
  966.                                                     {% endfor %}
  967.                                                 {% endif %}
  968.                                             {% endfor %}
  969.                                         </ul>
  970.                                     {% elseif Product.Tags is empty %}
  971.                                         {% for ProductCategory in Product.ProductCategories %}
  972.                                             {% if ProductCategory.Category.path[0].id == '11' %}
  973.                                                 <ul class=\"c-tags p-products-list__tags\">
  974.                                                     {% for Category in ProductCategory.Category.path %}
  975.                                                         <li class=\"c-tags__tag p-products-list__tags-tag tag_cat{{ Category.id }}\">{{ Category.name }}</li>
  976.                                                     {% endfor %}
  977.                                                 </ul>
  978.                                             {% endif %}
  979.                                         {% endfor %}
  980.                                     {% endif %}
  981.                                 {% elseif Product.ProductCategories is empty and Product.Tags is not empty %}
  982.                                     <ul class=\"c-tags p-products-list__tags\">
  983.                                         {% for Tag in Product.Tags %}
  984.                                             <li class=\"c-tags__tag p-products-list__tags-tag tag_{{ Tag.id }}\">{{ Tag }}</li>
  985.                                         {% endfor %}
  986.                                     </ul>
  987.                                 {% endif %}
  988.                                 {# タグと「定期便対応」カテゴリを出力 ここまで #}
  989.                                 {# 「定期便対応」以外のカテゴリを出力 ここから #}
  990.                                 {% if Product.ProductCategories is not empty %}
  991.                                     {% for ProductCategory in Product.ProductCategories %}
  992.                                         {% if ProductCategory.Category.path[0].id != '11' %}
  993.                                             <ul class=\"c-cats p-products-list__cats\">
  994.                                                 <li class=\"c-cats__cat p-products-list__cats-cat\">
  995.                                                     {% for Category in ProductCategory.Category.path %}
  996.                                                         <span class=\"c-cats__cat-txt\">{{ Category.name }}</span>{%- if loop.last == false %}
  997.                                                             <span class=\"c-cats__cat-arrow\">></span>{% endif -%}
  998.                                                     {% endfor %}
  999.                                                 </li>
  1000.                                             </ul>
  1001.                                         {% endif %}
  1002.                                     {% endfor %}
  1003.                                 {% endif %}
  1004.                                 {# 「定期便対応」以外のカテゴリを出力 ここまで #}
  1005.                                 <p class=\"ec-shelfGrid__item-image p-products-list__img-wrap\">
  1006.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  1007.                                 </p>
  1008.                                 <p class=\" p-products-list__name\">{{ Product.name }}</p>
  1009.                                 <div class=\"p-products-list__info\">
  1010.                                     {% if Product.production_capacity is not empty %}
  1011.                                         <p class=\" p-products-list__capacity\">{{ Product.production_capacity }}</p>
  1012.                                     {% endif %}
  1013.                                     <p class=\"price02-default p-products-list__price\">
  1014.                                         {% if Product.hasProductClass %}
  1015.                                             {% if Product.getPrice02Min == Product.getPrice02Max %}
  1016.                                                 {{ Product.getPrice02IncTaxMin|number_format }}
  1017.                                             {% else %}
  1018.                                                 {{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }}
  1019.                                             {% endif %}
  1020.                                         {% else %}
  1021.                                             {{ Product.getPrice02IncTaxMin|number_format }}
  1022.                                         {% endif %}円(税込)
  1023.                                     </p>
  1024.                                 </div>
  1025.                             </a>
  1026.                         </li>
  1027.                     {% endfor %}
  1028.                 </ul>
  1029.             </div>
  1030.             <div class=\"ec-pagerRole l-pagination\">
  1031.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  1032.             </div>
  1033.         {% endif %}
  1034.     {% endif %}
  1035. {% endblock %}
  1036. ""Product/list.twig""/home/indigomole988/www/muyu-sen.com/app/template/default/Product/list.twig");
  1037.     }
  1038. }