var/cache/dev/twig/d0/d01fd5e8dec62ca78cbf8164bca422500a677f031f0cab48eeb7e5b0590e45d2.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_511cc2646943e54b67f44b36b3735f4bb609850ceb89f9f96721379a92149489 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.             'stylesheet' => [$this'block_stylesheet'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 15
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  40.         // line 11
  41.         $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "getList", [], "method"falsefalsefalse11);
  42.         // line 17
  43.         $context["body_class"] = "product_page";
  44.         // line 15
  45.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"15);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 19
  53.     public function block_javascript($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  60.         // line 20
  61.         echo "    <script>
  62.         eccube.productsClassCategories = {
  63.             ";
  64.         // line 22
  65.         $context['_parent'] = $context;
  66.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'22$this->source); })()));
  67.         $context['loop'] = [
  68.           'parent' => $context['_parent'],
  69.           'index0' => 0,
  70.           'index'  => 1,
  71.           'first'  => true,
  72.         ];
  73.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  74.             $length count($context['_seq']);
  75.             $context['loop']['revindex0'] = $length 1;
  76.             $context['loop']['revindex'] = $length;
  77.             $context['loop']['length'] = $length;
  78.             $context['loop']['last'] = === $length;
  79.         }
  80.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  81.             // line 23
  82.             echo "            \"";
  83.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse23), "js"), "html"nulltrue);
  84.             echo "\": ";
  85.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  86.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse23) == false)) {
  87.                 echo ", ";
  88.             }
  89.             // line 24
  90.             echo "            ";
  91.             ++$context['loop']['index0'];
  92.             ++$context['loop']['index'];
  93.             $context['loop']['first'] = false;
  94.             if (isset($context['loop']['length'])) {
  95.                 --$context['loop']['revindex0'];
  96.                 --$context['loop']['revindex'];
  97.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  98.             }
  99.         }
  100.         $_parent $context['_parent'];
  101.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  102.         $context array_intersect_key($context$_parent) + $_parent;
  103.         // line 25
  104.         echo "        };
  105.         \$(function() {
  106.             \$('.disp-number').change(function() {
  107.                 var dispNumber = \$(this).val();
  108.                 \$('#disp_number').val(dispNumber);
  109.                 \$('#pageno').val(1);
  110.                 \$(\"#form1\").submit();
  111.             });
  112.             \$('.order-by').change(function() {
  113.                 var orderBy = \$(this).val();
  114.                 \$('#orderby').val(orderBy);
  115.                 \$('#pageno').val(1);
  116.                 \$(\"#form1\").submit();
  117.             });
  118.             \$('.add-cart').on('click', function(e) {
  119.                 var \$form = \$(this).parents('li').find('form');
  120.                
  121.                 var \$quantity = \$form.parent().find('.quantity');
  122.                 if (\$quantity.val() < 1) {
  123.                     \$quantity[0].setCustomValidity('";
  124.         // line 49
  125.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  126.         echo "');
  127.                     setTimeout(function() {
  128.                         loadingOverlay('hide');
  129.                     }, 100);
  130.                     return true;
  131.                 } else {
  132.                     \$quantity[0].setCustomValidity('');
  133.                 }
  134.                 e.preventDefault();
  135.                 \$.ajax({
  136.                     url: \$form.attr('action'),
  137.                     type: \$form.attr('method'),
  138.                     data: \$form.serialize(),
  139.                     dataType: 'json',
  140.                     beforeSend: function(xhr, settings) {
  141.                         
  142.                         \$('.add-cart').prop('disabled', true);
  143.                     }
  144.                 }).done(function(data) {
  145.                     
  146.                     \$.each(data.messages, function() {
  147.                         \$('#ec-modal-header').text(this);
  148.                     });
  149.                     \$('.ec-modal').show()
  150.                     
  151.                     \$.ajax({
  152.                         url: '";
  153.         // line 77
  154.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  155.         echo "',
  156.                         type: 'GET',
  157.                         dataType: 'html'
  158.                     }).done(function(html) {
  159.                         \$('.ec-headerRole__cart').html(html);
  160.                     });
  161.                 }).fail(function(data) {
  162.                     alert('";
  163.         // line 84
  164.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  165.         echo "');
  166.                 }).always(function(data) {
  167.                     
  168.                     \$('.add-cart').prop('disabled', false);
  169.                 });
  170.             });
  171.         });
  172.         \$('.ec-modal-wrap').on('click', function(e) {
  173.             
  174.             e.stopPropagation();
  175.         });
  176.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  177.             \$('.ec-modal').hide()
  178.         });
  179.     </script>
  180. ";
  181.         
  182.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  183.         
  184.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  185.     }
  186.     // line 102
  187.     public function block_stylesheet($context, array $blocks = [])
  188.     {
  189.         $macros $this->macros;
  190.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  191.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  192.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  193.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  194.         // line 103
  195.         echo "    <link rel=\"stylesheet\" href=\"/test-ec-05/html/user_data/assets/css/recommend.min.css\">
  196.     <style>
  197.         .ec-layoutRole .ec-layoutRole__contents {
  198.             max-width: unset;
  199.         }
  200.         .p-top__merchandise .p-top__items__box .p-top__item {
  201.             padding: 20px 16px;
  202.         }
  203.         .ec-topicpath .ec-topicpath__item a {
  204.             color: #333;
  205.         }
  206.         .p-top__merchandise {
  207.             padding: 10% 0 20%;
  208.         }
  209.         
  210.         .p-top__merchandise .p-top__items__box {
  211.             margin-top: 0;
  212.         }
  213.         .p-top__item__title,
  214.         .p-top__item__price {
  215.             text-align: center;
  216.         }
  217.         .p-top__merchandise .absolute1 {
  218.             width: 22%;
  219.         }
  220.         .p-top__merchandise .absolute2 {
  221.             width: 30%;
  222.         }
  223.         .ec-pager .ec-pager__item--active,
  224.         .ec-pager .ec-pager__item:hover, {
  225.             background-color: inherit;
  226.         }
  227.         .ec-pager__item a {
  228.             background-color: #333;
  229.             color: #fefefe !important;
  230.             padding: 10px 20px !important;
  231.             border-radius: 50%;
  232.         }
  233.         .ec-pager__item .small{
  234.             padding: 10px 16px !important;
  235.         }
  236.         .ec-pager__item--active a {
  237.             background-color: #b72c11;
  238.             padding: 10px 20px !important;
  239.             border-radius: 50%;
  240.             color: #fefefe !important;
  241.         }
  242.         .ec-pager .ec-pager__item--active,
  243.         .ec-pager .ec-pager__item:hover{
  244.             background: unset;
  245.         }
  246.         .sale {
  247.             display: none;
  248.         }
  249.         .p-top__merchandise .p-top__items__box .p-top__item {
  250.             overflow: hidden;
  251.             position: relative;
  252.         }
  253.         .cart.absolute {
  254.             position: absolute;
  255.             z-index: 1;
  256.             transform: rotate(40deg);
  257.             right: -70px;
  258.             overflow: hidden;
  259.             top: 20px;
  260.         }
  261.         @media (max-width:768px) {
  262.             .p-top__items__box .p-top__item {
  263.              width: auto; 
  264.             min-width: 220px;
  265.             margin-left: 5%;
  266.             }
  267.             
  268.         }
  269.         @media only screen and (min-width: 768px) {
  270.         .ec-searchnavRole .ec-searchnavRole__infos {
  271.             border-top-color: #333;
  272.             }
  273.         }
  274.         @media screen and (max-width:1024px) {
  275.             .p-top__items__box .p-top__item__meet {
  276.             width: 200px !important;
  277.             }
  278.             .p-top__items__box .p-top__item {
  279.                 min-width: 230px;
  280.             }
  281.             .cart.absolute {
  282.                 right: -55px;
  283.                 top: 12px;
  284.             }
  285.         }
  286.         
  287.     </style>
  288. ";
  289.         
  290.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  291.         
  292.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  293.     }
  294.     // line 198
  295.     public function block_main($context, array $blocks = [])
  296.     {
  297.         $macros $this->macros;
  298.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  299.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  300.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  301.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  302.         // line 199
  303.         echo "
  304. <section class=\"p-ranking__fv\">
  305.             <div class=\"p-ranking__fv__inner\">
  306.                 <div class=\"section__title top__fix\">
  307.                     <h2 >商品一覧</h2>
  308.                 </div>
  309.                 
  310.             </div>
  311.             <!-- banner -->
  312.             ";
  313.         // line 208
  314.         echo twig_include($this->env$context"Block/banner.twig");
  315.         echo "
  316.             <!-- banner -->
  317. </section>
  318. <section class=\"p-top__merchandise\">
  319.             <img class=\"absolute1\" src=\"";
  320.         // line 212
  321.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-05/html/user_data/assets/img/common/cloud__gl2.webp"), "html"nulltrue);
  322.         echo "\" alt=\"雲\">
  323.             <img class=\"absolute2\" src=\"";
  324.         // line 213
  325.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-05/html/user_data/assets/img/common/cloud_gl1.webp"), "html"nulltrue);
  326.         echo "\" alt=\"雲\">
  327.             <img class=\"absolute3\" src=\"";
  328.         // line 214
  329.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-05/html/user_data/assets/img/common/meetbox.webp"), "html"nulltrue);
  330.         echo "\" alt=\"お肉BOX\">
  331.             <img class=\"absolute4\" src=\"";
  332.         // line 215
  333.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-05/html/user_data/assets/img/common/nabe.webp"), "html"nulltrue);
  334.         echo "\" alt=\"鍋\">
  335.             <div class=\"section__title\">
  336.                 <img src=\"";
  337.         // line 217
  338.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-04/html/user_data/assets/img/common/cow.webp"), "html"nulltrue);
  339.         echo "\" alt=\"牛のイラスト\">
  340.                 <h2>商品一覧</h2>
  341.                 
  342.             </div>
  343.             
  344.         ";
  345.         // line 237
  346.         echo "
  347. ";
  348.         // line 239
  349.         $macros["__internal_parse_1"] = $this;
  350.         // line 240
  351.         echo "
  352. <div class=\"p-top__merchandise__category\" id=\"page_anchor\">
  353.         <p>カテゴリー選択<span>|</span></p>
  354.         <div class=\"p-top__merchandise__category__items\">
  355.                 ";
  356.         // line 244
  357.         $context['_parent'] = $context;
  358.         $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'244$this->source); })()));
  359.         foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  360.             // line 245
  361.             echo "                        ";
  362.             echo twig_call_macro($macros["__internal_parse_1"], "macro_tree", [$context["Category"]], 245$context$this->getSourceContext());
  363.             echo "
  364.                 ";
  365.         }
  366.         $_parent $context['_parent'];
  367.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  368.         $context array_intersect_key($context$_parent) + $_parent;
  369.         // line 247
  370.         echo "        </div>
  371.     </div>
  372.     <p style=\"text-align: center; margin-top:20px;\">※当店の商品は全て税込となっております。</p>
  373.     ";
  374.         // line 250
  375.         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.'250$this->source); })()), "category_id", [], "any"falsefalsefalse250), "vars", [], "any"falsefalsefalse250), "errors", [], "any"falsefalsefalse250)) > 0)) {
  376.             // line 251
  377.             echo "        <div class=\"ec-searchnavRole\">
  378.             <p class=\"errormsg text-danger\">";
  379.             // line 252
  380.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  381.             echo "</p>
  382.         </div>
  383.     ";
  384.         } else {
  385.             // line 255
  386.             echo "        <div class=\"ec-searchnavRole\">
  387.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  388.                 ";
  389.             // line 257
  390.             $context['_parent'] = $context;
  391.             $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.'257$this->source); })()));
  392.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  393.                 // line 258
  394.                 echo "                    <input type=\"hidden\" id=\"";
  395.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse258), "id", [], "any"falsefalsefalse258), "html"nulltrue);
  396.                 echo "\"
  397.                            name=\"";
  398.                 // line 259
  399.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse259), "full_name", [], "any"falsefalsefalse259), "html"nulltrue);
  400.                 echo "\"
  401.                            ";
  402.                 // line 260
  403.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse260), "value", [], "any"falsefalsefalse260))) {
  404.                     echo "value=\"";
  405.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse260), "value", [], "any"falsefalsefalse260), "html"nulltrue);
  406.                     echo "\" ";
  407.                 }
  408.                 echo "/>
  409.                 ";
  410.             }
  411.             $_parent $context['_parent'];
  412.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  413.             $context array_intersect_key($context$_parent) + $_parent;
  414.             // line 262
  415.             echo "            </form>
  416.             <div class=\"ec-searchnavRole__topicpath\">
  417.                 <ol class=\"ec-topicpath\">
  418.                     <li class=\"ec-topicpath__item\"><a href=\"";
  419.             // line 265
  420.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  421.             echo "\">";
  422.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  423.             echo "</a>
  424.                     </li>
  425.                     ";
  426.             // line 267
  427.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'267$this->source); })()))) {
  428.                 // line 268
  429.                 echo "                        ";
  430.                 $context['_parent'] = $context;
  431.                 $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.'268$this->source); })()), "path", [], "any"falsefalsefalse268));
  432.                 $context['loop'] = [
  433.                   'parent' => $context['_parent'],
  434.                   'index0' => 0,
  435.                   'index'  => 1,
  436.                   'first'  => true,
  437.                 ];
  438.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  439.                     $length count($context['_seq']);
  440.                     $context['loop']['revindex0'] = $length 1;
  441.                     $context['loop']['revindex'] = $length;
  442.                     $context['loop']['length'] = $length;
  443.                     $context['loop']['last'] = === $length;
  444.                 }
  445.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  446.                     // line 269
  447.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  448.                             <li class=\"ec-topicpath__item";
  449.                     // line 270
  450.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse270)) {
  451.                         echo "--active";
  452.                     }
  453.                     echo "\"><a
  454.                                         href=\"";
  455.                     // line 271
  456.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  457.                     echo "?category_id=";
  458.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse271), "html"nulltrue);
  459.                     echo "\">";
  460.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse271), "html"nulltrue);
  461.                     echo "</a>
  462.                             </li>
  463.                         ";
  464.                     ++$context['loop']['index0'];
  465.                     ++$context['loop']['index'];
  466.                     $context['loop']['first'] = false;
  467.                     if (isset($context['loop']['length'])) {
  468.                         --$context['loop']['revindex0'];
  469.                         --$context['loop']['revindex'];
  470.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  471.                     }
  472.                 }
  473.                 $_parent $context['_parent'];
  474.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  475.                 $context array_intersect_key($context$_parent) + $_parent;
  476.                 // line 274
  477.                 echo "                    ";
  478.             }
  479.             // line 275
  480.             echo "                    ";
  481.             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.'275$this->source); })()), "vars", [], "any"falsefalsefalse275), "value", [], "any"falsefalsefalse275) && 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.'275$this->source); })()), "vars", [], "any"falsefalsefalse275), "value", [], "any"falsefalsefalse275), "name", [], "any"falsefalsefalse275))) {
  482.                 // line 276
  483.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  484.                         <li class=\"ec-topicpath__item\">";
  485.                 // line 277
  486.                 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.'277$this->source); })()), "vars", [], "any"falsefalsefalse277), "value", [], "any"falsefalsefalse277), "name", [], "any"falsefalsefalse277)]), "html"nulltrue);
  487.                 echo "</li>
  488.                     ";
  489.             }
  490.             // line 279
  491.             echo "                </ol>
  492.             </div>
  493.             <div class=\"ec-searchnavRole__infos\">
  494.                 <div class=\"ec-searchnavRole__counter\">
  495.                     ";
  496.             // line 283
  497.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'283$this->source); })()), "totalItemCount", [], "any"falsefalsefalse283) > 0)) {
  498.                 // line 284
  499.                 echo "                        ";
  500.                 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.'284$this->source); })()), "totalItemCount", [], "any"falsefalsefalse284)]);
  501.                 echo "
  502.                     ";
  503.             } else {
  504.                 // line 286
  505.                 echo "                        <span>";
  506.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  507.                 echo "</span>
  508.                     ";
  509.             }
  510.             // line 288
  511.             echo "                </div>
  512.                 ";
  513.             // line 289
  514.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'289$this->source); })()), "totalItemCount", [], "any"falsefalsefalse289) > 0)) {
  515.                 // line 290
  516.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  517.                         <div class=\"ec-select\">
  518.                             ";
  519.                 // line 292
  520.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'292$this->source); })()), "disp_number", [], "any"falsefalsefalse292), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  521.                 echo "
  522.                             ";
  523.                 // line 293
  524.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'293$this->source); })()), "orderby", [], "any"falsefalsefalse293), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  525.                 echo "
  526.                         </div>
  527.                     </div>
  528.                 ";
  529.             }
  530.             // line 297
  531.             echo "            </div>
  532.         </div>
  533.         ";
  534.             // line 299
  535.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'299$this->source); })()), "totalItemCount", [], "any"falsefalsefalse299) > 0)) {
  536.                 // line 300
  537.                 echo "            <div class=\"ec-shelfRole\">
  538.                 <ul class=\"ec-shelfGrid p-top__items__box\">
  539.                     ";
  540.                 // line 302
  541.                 $context['_parent'] = $context;
  542.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'302$this->source); })()));
  543.                 $context['loop'] = [
  544.                   'parent' => $context['_parent'],
  545.                   'index0' => 0,
  546.                   'index'  => 1,
  547.                   'first'  => true,
  548.                 ];
  549.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  550.                     $length count($context['_seq']);
  551.                     $context['loop']['revindex0'] = $length 1;
  552.                     $context['loop']['revindex'] = $length;
  553.                     $context['loop']['length'] = $length;
  554.                     $context['loop']['last'] = === $length;
  555.                 }
  556.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  557.                     // line 303
  558.                     echo "                        <li class=\"ec-shelfGrid__item p-top__item\">
  559.                             <a href=\"";
  560.                     // line 304
  561.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse304)]), "html"nulltrue);
  562.                     echo "\">
  563.                                 ";
  564.                     // line 305
  565.                     $context['_parent'] = $context;
  566.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["Product"], "Tags", [], "any"falsefalsefalse305));
  567.                     foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  568.                         // line 306
  569.                         echo "                                    <p class=\"cart absolute\">";
  570.                         echo twig_escape_filter($this->env$context["Tag"], "html"nulltrue);
  571.                         echo "</p>
  572.                                     ";
  573.                     }
  574.                     $_parent $context['_parent'];
  575.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  576.                     $context array_intersect_key($context$_parent) + $_parent;
  577.                     // line 308
  578.                     echo "                                <p class=\"ec-shelfGrid__item-image\">
  579.                                     <img class=\"p-top__item__meet\" src=\"";
  580.                     // line 309
  581.                     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"falsefalsefalse309)), "save_image"), "html"nulltrue);
  582.                     echo "\" alt=\"";
  583.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse309), "html"nulltrue);
  584.                     echo "\" ";
  585.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse309) > 5)) {
  586.                         echo " loading=\"lazy\"";
  587.                     }
  588.                     echo ">
  589.                                 </p>
  590.                                 <p class=\"p-top__item__title\">";
  591.                     // line 311
  592.                     echo twig_include($this->env$contexttwig_template_from_string($this->envtwig_get_attribute($this->env$this->source$context["Product"], "freearea", [], "any"falsefalsefalse311)));
  593.                     echo "</p>
  594.                                 ";
  595.                     // line 312
  596.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse312)) {
  597.                         // line 313
  598.                         echo "                                    <p>";
  599.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse313));
  600.                         echo "</p>
  601.                                 ";
  602.                     }
  603.                     // line 315
  604.                     echo "                                <p class=\"price02-default p-top__item__price\">
  605.                                     ";
  606.                     // line 316
  607.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse316)) {
  608.                         // line 317
  609.                         echo "                                        ";
  610.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse317) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse317))) {
  611.                             // line 318
  612.                             echo "                                            ";
  613.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse318)), "html"nulltrue);
  614.                             echo "
  615.                                         ";
  616.                         } else {
  617.                             // line 320
  618.                             echo "                                            ";
  619.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse320)), "html"nulltrue);
  620.                             echo " ~ ";
  621.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse320)), "html"nulltrue);
  622.                             echo "
  623.                                         ";
  624.                         }
  625.                         // line 322
  626.                         echo "                                    ";
  627.                     } else {
  628.                         // line 323
  629.                         echo "                                        ";
  630.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse323)), "html"nulltrue);
  631.                         echo "
  632.                                     ";
  633.                     }
  634.                     // line 325
  635.                     echo "                                    ";
  636.                     // line 326
  637.                     echo "                                    ";
  638.                     // line 327
  639.                     echo "                                    ";
  640.                     // line 328
  641.                     echo "                                    ";
  642.                     // line 329
  643.                     echo "                                    ";
  644.                     // line 330
  645.                     echo "                                    ";
  646.                     // line 331
  647.                     echo "                                    ";
  648.                     // line 332
  649.                     echo "                                    ";
  650.                     // line 333
  651.                     echo "                                    ";
  652.                     // line 334
  653.                     echo "                                </p>
  654.                             </a>
  655.                             ";
  656.                     // line 337
  657.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse337)) {
  658.                         // line 338
  659.                         echo "                                ";
  660.                         // line 339
  661.                         echo "                                ";
  662.                         // line 340
  663.                         echo "                                ";
  664.                         // line 341
  665.                         echo "                                ";
  666.                         // line 342
  667.                         echo "                                ";
  668.                         // line 343
  669.                         echo "                                ";
  670.                         // line 344
  671.                         echo "                                ";
  672.                         // line 345
  673.                         echo "                                ";
  674.                         // line 346
  675.                         echo "                                ";
  676.                         // line 347
  677.                         echo "                                ";
  678.                         // line 348
  679.                         echo "                                ";
  680.                         // line 349
  681.                         echo "                                ";
  682.                         // line 350
  683.                         echo "                                ";
  684.                         // line 351
  685.                         echo "                                ";
  686.                         // line 352
  687.                         echo "                                ";
  688.                         // line 353
  689.                         echo "                                        ";
  690.                         // line 354
  691.                         echo "                                        ";
  692.                         // line 355
  693.                         echo "                                        ";
  694.                         // line 356
  695.                         echo "                                        ";
  696.                         // line 357
  697.                         echo "                                ";
  698.                         // line 358
  699.                         echo "                                ";
  700.                         // line 359
  701.                         echo "                                </form>
  702.                                 <div class=\"ec-productRole__btn\">
  703.                                     <a class=\"detail-buttons cart\" href=\"";
  704.                         // line 361
  705.                         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"falsefalsefalse361)]), "html"nulltrue);
  706.                         echo "\">詳細を見る</a>
  707.                                     ";
  708.                         // line 363
  709.                         echo "                                    ";
  710.                         // line 364
  711.                         echo "                                    ";
  712.                         // line 365
  713.                         echo "                                </div>
  714.                             ";
  715.                     } else {
  716.                         // line 367
  717.                         echo "                                <div class=\"ec-productRole__btn\">
  718.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  719.                                         ";
  720.                         // line 369
  721.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  722.                         echo "
  723.                                     </button>
  724.                                 </div>
  725.                             ";
  726.                     }
  727.                     // line 373
  728.                     echo "                        </li>
  729.                     ";
  730.                     ++$context['loop']['index0'];
  731.                     ++$context['loop']['index'];
  732.                     $context['loop']['first'] = false;
  733.                     if (isset($context['loop']['length'])) {
  734.                         --$context['loop']['revindex0'];
  735.                         --$context['loop']['revindex'];
  736.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  737.                     }
  738.                 }
  739.                 $_parent $context['_parent'];
  740.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  741.                 $context array_intersect_key($context$_parent) + $_parent;
  742.                 // line 375
  743.                 echo "                </ul>
  744.             </div>
  745.             <div class=\"ec-modal\">
  746.                 <div class=\"ec-modal-overlay\">
  747.                     <div class=\"ec-modal-wrap\">
  748.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  749.                 // line 380
  750.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  751.                 echo "\" alt=\"\"/></span></span>
  752.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  753.                 // line 381
  754.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  755.                 echo "</div>
  756.                         <div class=\"ec-modal-box\">
  757.                             <div class=\"ec-role\">
  758.                                 <span class=\"ec-inlineBtn--cancel\">";
  759.                 // line 384
  760.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  761.                 echo "</span>
  762.                                 <a href=\"";
  763.                 // line 385
  764.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  765.                 echo "\" class=\"ec-inlineBtn--action\">";
  766.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  767.                 echo "</a>
  768.                             </div>
  769.                         </div>
  770.                     </div>
  771.                 </div>
  772.             </div>
  773.             <div class=\"ec-pagerRole\">
  774.                 ";
  775.                 // line 392
  776.                 $this->loadTemplate("pager.twig""Product/list.twig"392)->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.'392$this->source); })()), "paginationData", [], "any"falsefalsefalse392)]));
  777.                 // line 393
  778.                 echo "            </div>
  779.         ";
  780.             }
  781.             // line 395
  782.             echo "    ";
  783.         }
  784.         // line 396
  785.         echo "</section>
  786. ";
  787.         
  788.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  789.         
  790.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  791.     }
  792.     // line 222
  793.     public function macro_tree($__Category__ null, ...$__varargs__)
  794.     {
  795.         $macros $this->macros;
  796.         $context $this->env->mergeGlobals([
  797.             "Category" => $__Category__,
  798.             "varargs" => $__varargs__,
  799.         ]);
  800.         $blocks = [];
  801.         ob_start();
  802.         try {
  803.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  804.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  805.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  806.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  807.             // line 223
  808.             echo "    ";
  809.             $macros["__internal_parse_0"] = $this;
  810.             // line 224
  811.             echo "    <a class=\"more__page\" href=\"";
  812.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  813.             echo "?category_id=";
  814.             echo twig_escape_filter($this->envtwig_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.'224$this->source); })()), "id", [], "any"falsefalsefalse224), "html"nulltrue);
  815.             echo "#page_anchor\">
  816.         ";
  817.             // line 225
  818.             echo twig_escape_filter($this->envtwig_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.'225$this->source); })()), "name", [], "any"falsefalsefalse225), "html"nulltrue);
  819.             echo "
  820.     </a>
  821.     ";
  822.             // line 228
  823.             echo "    ";
  824.             // line 229
  825.             echo "    ";
  826.             // line 230
  827.             echo "    ";
  828.             // line 231
  829.             echo "    ";
  830.             // line 232
  831.             echo "    ";
  832.             // line 233
  833.             echo "    ";
  834.             // line 234
  835.             echo "    ";
  836.             // line 235
  837.             echo "    ";
  838.             
  839.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  840.             
  841.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  842.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  843.         } finally {
  844.             ob_end_clean();
  845.         }
  846.     }
  847.     public function getTemplateName()
  848.     {
  849.         return "Product/list.twig";
  850.     }
  851.     public function isTraitable()
  852.     {
  853.         return false;
  854.     }
  855.     public function getDebugInfo()
  856.     {
  857.         return array (  877 => 235,  875 => 234,  873 => 233,  871 => 232,  869 => 231,  867 => 230,  865 => 229,  863 => 228,  858 => 225,  851 => 224,  848 => 223,  829 => 222,  818 => 396,  815 => 395,  811 => 393,  809 => 392,  797 => 385,  793 => 384,  787 => 381,  783 => 380,  776 => 375,  761 => 373,  754 => 369,  750 => 367,  746 => 365,  744 => 364,  742 => 363,  738 => 361,  734 => 359,  732 => 358,  730 => 357,  728 => 356,  726 => 355,  724 => 354,  722 => 353,  720 => 352,  718 => 351,  716 => 350,  714 => 349,  712 => 348,  710 => 347,  708 => 346,  706 => 345,  704 => 344,  702 => 343,  700 => 342,  698 => 341,  696 => 340,  694 => 339,  692 => 338,  690 => 337,  685 => 334,  683 => 333,  681 => 332,  679 => 331,  677 => 330,  675 => 329,  673 => 328,  671 => 327,  669 => 326,  667 => 325,  661 => 323,  658 => 322,  650 => 320,  644 => 318,  641 => 317,  639 => 316,  636 => 315,  630 => 313,  628 => 312,  624 => 311,  613 => 309,  610 => 308,  601 => 306,  597 => 305,  593 => 304,  590 => 303,  573 => 302,  569 => 300,  567 => 299,  563 => 297,  556 => 293,  552 => 292,  548 => 290,  546 => 289,  543 => 288,  537 => 286,  531 => 284,  529 => 283,  523 => 279,  518 => 277,  515 => 276,  512 => 275,  509 => 274,  488 => 271,  482 => 270,  479 => 269,  461 => 268,  459 => 267,  452 => 265,  447 => 262,  435 => 260,  431 => 259,  426 => 258,  422 => 257,  418 => 255,  412 => 252,  409 => 251,  407 => 250,  402 => 247,  393 => 245,  389 => 244,  383 => 240,  381 => 239,  378 => 237,  370 => 217,  365 => 215,  361 => 214,  357 => 213,  353 => 212,  346 => 208,  335 => 199,  325 => 198,  222 => 103,  212 => 102,  185 => 84,  175 => 77,  144 => 49,  118 => 25,  104 => 24,  96 => 23,  79 => 22,  75 => 20,  65 => 19,  54 => 15,  52 => 17,  50 => 11,  37 => 15,);
  858.     }
  859.     public function getSourceContext()
  860.     {
  861.         return new Source("{#
  862. This file is part of EC-CUBE
  863. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  864. http://www.ec-cube.co.jp/
  865. For the full copyright and license information, please view the LICENSE
  866. file that was distributed with this source code.
  867. #}
  868. {% set Categories = repository('Eccube\\\\Entity\\\\Category').getList() %}
  869. {% extends 'default_frame.twig' %}
  870. {% set body_class = 'product_page' %}
  871. {% block javascript %}
  872.     <script>
  873.         eccube.productsClassCategories = {
  874.             {% for Product in pagination %}
  875.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  876.             {% endfor %}
  877.         };
  878.         \$(function() {
  879.             \$('.disp-number').change(function() {
  880.                 var dispNumber = \$(this).val();
  881.                 \$('#disp_number').val(dispNumber);
  882.                 \$('#pageno').val(1);
  883.                 \$(\"#form1\").submit();
  884.             });
  885.             \$('.order-by').change(function() {
  886.                 var orderBy = \$(this).val();
  887.                 \$('#orderby').val(orderBy);
  888.                 \$('#pageno').val(1);
  889.                 \$(\"#form1\").submit();
  890.             });
  891.             \$('.add-cart').on('click', function(e) {
  892.                 var \$form = \$(this).parents('li').find('form');
  893.                
  894.                 var \$quantity = \$form.parent().find('.quantity');
  895.                 if (\$quantity.val() < 1) {
  896.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  897.                     setTimeout(function() {
  898.                         loadingOverlay('hide');
  899.                     }, 100);
  900.                     return true;
  901.                 } else {
  902.                     \$quantity[0].setCustomValidity('');
  903.                 }
  904.                 e.preventDefault();
  905.                 \$.ajax({
  906.                     url: \$form.attr('action'),
  907.                     type: \$form.attr('method'),
  908.                     data: \$form.serialize(),
  909.                     dataType: 'json',
  910.                     beforeSend: function(xhr, settings) {
  911.                         
  912.                         \$('.add-cart').prop('disabled', true);
  913.                     }
  914.                 }).done(function(data) {
  915.                     
  916.                     \$.each(data.messages, function() {
  917.                         \$('#ec-modal-header').text(this);
  918.                     });
  919.                     \$('.ec-modal').show()
  920.                     
  921.                     \$.ajax({
  922.                         url: '{{ url('block_cart') }}',
  923.                         type: 'GET',
  924.                         dataType: 'html'
  925.                     }).done(function(html) {
  926.                         \$('.ec-headerRole__cart').html(html);
  927.                     });
  928.                 }).fail(function(data) {
  929.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  930.                 }).always(function(data) {
  931.                     
  932.                     \$('.add-cart').prop('disabled', false);
  933.                 });
  934.             });
  935.         });
  936.         \$('.ec-modal-wrap').on('click', function(e) {
  937.             
  938.             e.stopPropagation();
  939.         });
  940.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  941.             \$('.ec-modal').hide()
  942.         });
  943.     </script>
  944. {% endblock %}
  945. {% block stylesheet %}
  946.     <link rel=\"stylesheet\" href=\"/test-ec-05/html/user_data/assets/css/recommend.min.css\">
  947.     <style>
  948.         .ec-layoutRole .ec-layoutRole__contents {
  949.             max-width: unset;
  950.         }
  951.         .p-top__merchandise .p-top__items__box .p-top__item {
  952.             padding: 20px 16px;
  953.         }
  954.         .ec-topicpath .ec-topicpath__item a {
  955.             color: #333;
  956.         }
  957.         .p-top__merchandise {
  958.             padding: 10% 0 20%;
  959.         }
  960.         
  961.         .p-top__merchandise .p-top__items__box {
  962.             margin-top: 0;
  963.         }
  964.         .p-top__item__title,
  965.         .p-top__item__price {
  966.             text-align: center;
  967.         }
  968.         .p-top__merchandise .absolute1 {
  969.             width: 22%;
  970.         }
  971.         .p-top__merchandise .absolute2 {
  972.             width: 30%;
  973.         }
  974.         .ec-pager .ec-pager__item--active,
  975.         .ec-pager .ec-pager__item:hover, {
  976.             background-color: inherit;
  977.         }
  978.         .ec-pager__item a {
  979.             background-color: #333;
  980.             color: #fefefe !important;
  981.             padding: 10px 20px !important;
  982.             border-radius: 50%;
  983.         }
  984.         .ec-pager__item .small{
  985.             padding: 10px 16px !important;
  986.         }
  987.         .ec-pager__item--active a {
  988.             background-color: #b72c11;
  989.             padding: 10px 20px !important;
  990.             border-radius: 50%;
  991.             color: #fefefe !important;
  992.         }
  993.         .ec-pager .ec-pager__item--active,
  994.         .ec-pager .ec-pager__item:hover{
  995.             background: unset;
  996.         }
  997.         .sale {
  998.             display: none;
  999.         }
  1000.         .p-top__merchandise .p-top__items__box .p-top__item {
  1001.             overflow: hidden;
  1002.             position: relative;
  1003.         }
  1004.         .cart.absolute {
  1005.             position: absolute;
  1006.             z-index: 1;
  1007.             transform: rotate(40deg);
  1008.             right: -70px;
  1009.             overflow: hidden;
  1010.             top: 20px;
  1011.         }
  1012.         @media (max-width:768px) {
  1013.             .p-top__items__box .p-top__item {
  1014.              width: auto; 
  1015.             min-width: 220px;
  1016.             margin-left: 5%;
  1017.             }
  1018.             
  1019.         }
  1020.         @media only screen and (min-width: 768px) {
  1021.         .ec-searchnavRole .ec-searchnavRole__infos {
  1022.             border-top-color: #333;
  1023.             }
  1024.         }
  1025.         @media screen and (max-width:1024px) {
  1026.             .p-top__items__box .p-top__item__meet {
  1027.             width: 200px !important;
  1028.             }
  1029.             .p-top__items__box .p-top__item {
  1030.                 min-width: 230px;
  1031.             }
  1032.             .cart.absolute {
  1033.                 right: -55px;
  1034.                 top: 12px;
  1035.             }
  1036.         }
  1037.         
  1038.     </style>
  1039. {% endblock %}
  1040. {% block main %}
  1041. <section class=\"p-ranking__fv\">
  1042.             <div class=\"p-ranking__fv__inner\">
  1043.                 <div class=\"section__title top__fix\">
  1044.                     <h2 >商品一覧</h2>
  1045.                 </div>
  1046.                 
  1047.             </div>
  1048.             <!-- banner -->
  1049.             {{include('Block/banner.twig')}}
  1050.             <!-- banner -->
  1051. </section>
  1052. <section class=\"p-top__merchandise\">
  1053.             <img class=\"absolute1\" src=\"{{asset ('/test-ec-05/html/user_data/assets/img/common/cloud__gl2.webp')}}\" alt=\"雲\">
  1054.             <img class=\"absolute2\" src=\"{{asset ('/test-ec-05/html/user_data/assets/img/common/cloud_gl1.webp')}}\" alt=\"雲\">
  1055.             <img class=\"absolute3\" src=\"{{asset ('/test-ec-05/html/user_data/assets/img/common/meetbox.webp')}}\" alt=\"お肉BOX\">
  1056.             <img class=\"absolute4\" src=\"{{asset ('/test-ec-05/html/user_data/assets/img/common/nabe.webp')}}\" alt=\"鍋\">
  1057.             <div class=\"section__title\">
  1058.                 <img src=\"{{asset ('/test-ec-04/html/user_data/assets/img/common/cow.webp')}}\" alt=\"牛のイラスト\">
  1059.                 <h2>商品一覧</h2>
  1060.                 
  1061.             </div>
  1062.             
  1063.         {% macro tree(Category) %}
  1064.     {% from _self import tree %}
  1065.     <a class=\"more__page\" href=\"{{ url('product_list') }}?category_id={{ Category.id }}#page_anchor\">
  1066.         {{ Category.name }}
  1067.     </a>
  1068.     {#{% if Category.children|length > 0 %}#}
  1069.     {#    <ul>#}
  1070.     {#        {% for ChildCategory in Category.children %}#}
  1071.     {#            <li>#}
  1072.     {#                {{ tree(ChildCategory) }}#}
  1073.     {#            </li>#}
  1074.     {#        {% endfor %}#}
  1075.     {#    </ul>#}
  1076.     {#{% endif %}#}
  1077. {% endmacro %}
  1078. {# @see https://github.com/bolt/bolt/pull/2388 #}
  1079. {% from _self import tree %}
  1080. <div class=\"p-top__merchandise__category\" id=\"page_anchor\">
  1081.         <p>カテゴリー選択<span>|</span></p>
  1082.         <div class=\"p-top__merchandise__category__items\">
  1083.                 {% for Category in Categories %}
  1084.                         {{ tree(Category) }}
  1085.                 {% endfor %}
  1086.         </div>
  1087.     </div>
  1088.     <p style=\"text-align: center; margin-top:20px;\">※当店の商品は全て税込となっております。</p>
  1089.     {% if search_form.category_id.vars.errors|length > 0 %}
  1090.         <div class=\"ec-searchnavRole\">
  1091.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  1092.         </div>
  1093.     {% else %}
  1094.         <div class=\"ec-searchnavRole\">
  1095.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  1096.                 {% for item in search_form %}
  1097.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  1098.                            name=\"{{ item.vars.full_name }}\"
  1099.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  1100.                 {% endfor %}
  1101.             </form>
  1102.             <div class=\"ec-searchnavRole__topicpath\">
  1103.                 <ol class=\"ec-topicpath\">
  1104.                     <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  1105.                     </li>
  1106.                     {% if Category is not null %}
  1107.                         {% for Path in Category.path %}
  1108.                             <li class=\"ec-topicpath__divider\">|</li>
  1109.                             <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
  1110.                                         href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  1111.                             </li>
  1112.                         {% endfor %}
  1113.                     {% endif %}
  1114.                     {% if search_form.vars.value and search_form.vars.value.name %}
  1115.                         <li class=\"ec-topicpath__divider\">|</li>
  1116.                         <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  1117.                     {% endif %}
  1118.                 </ol>
  1119.             </div>
  1120.             <div class=\"ec-searchnavRole__infos\">
  1121.                 <div class=\"ec-searchnavRole__counter\">
  1122.                     {% if pagination.totalItemCount > 0 %}
  1123.                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  1124.                     {% else %}
  1125.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  1126.                     {% endif %}
  1127.                 </div>
  1128.                 {% if pagination.totalItemCount > 0 %}
  1129.                     <div class=\"ec-searchnavRole__actions\">
  1130.                         <div class=\"ec-select\">
  1131.                             {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  1132.                             {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  1133.                         </div>
  1134.                     </div>
  1135.                 {% endif %}
  1136.             </div>
  1137.         </div>
  1138.         {% if pagination.totalItemCount > 0 %}
  1139.             <div class=\"ec-shelfRole\">
  1140.                 <ul class=\"ec-shelfGrid p-top__items__box\">
  1141.                     {% for Product in pagination %}
  1142.                         <li class=\"ec-shelfGrid__item p-top__item\">
  1143.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  1144.                                 {% for Tag in Product.Tags %}
  1145.                                     <p class=\"cart absolute\">{{ Tag }}</p>
  1146.                                     {% endfor %}
  1147.                                 <p class=\"ec-shelfGrid__item-image\">
  1148.                                     <img class=\"p-top__item__meet\" src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  1149.                                 </p>
  1150.                                 <p class=\"p-top__item__title\">{{ include(template_from_string(Product.freearea)) }}</p>
  1151.                                 {% if Product.description_list %}
  1152.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  1153.                                 {% endif %}
  1154.                                 <p class=\"price02-default p-top__item__price\">
  1155.                                     {% if Product.hasProductClass %}
  1156.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  1157.                                             {{ Product.getPrice02IncTaxMin|price }}
  1158.                                         {% else %}
  1159.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  1160.                                         {% endif %}
  1161.                                     {% else %}
  1162.                                         {{ Product.getPrice02IncTaxMin|price }}
  1163.                                     {% endif %}
  1164.                                     {#{% if Product.hasProductClass %}#}
  1165.                                     {#    {% if Product.getPrice02Min == Product.getPrice02Max %}#}
  1166.                                     {#        {{ Product.getPrice02IMin|price }}#}
  1167.                                     {#    {% else %}#}
  1168.                                     {#        {{ Product.getPrice02Min|price }} ~ {{ Product.getPrice02Max|price }}#}
  1169.                                     {#    {% endif %}#}
  1170.                                     {#{% else %}#}
  1171.                                     {#    {{ Product.getPrice02Min|price }}#}
  1172.                                     {#{% endif %}#}
  1173.                                 </p>
  1174.                             </a>
  1175.                             {% if Product.stock_find %}
  1176.                                 {#{% set form = forms[Product.id] %}#}
  1177.                                 {#<form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">#}
  1178.                                 {#    <div class=\"ec-productRole__actions\">#}
  1179.                                 {#        {% if form.classcategory_id1 is defined %}#}
  1180.                                 {#            <div class=\"ec-select\">#}
  1181.                                 {#                {{ form_widget(form.classcategory_id1) }}#}
  1182.                                 {#                {{ form_errors(form.classcategory_id1) }}#}
  1183.                                 {#            </div>#}
  1184.                                 {#            {% if form.classcategory_id2 is defined %}#}
  1185.                                 {#                <div class=\"ec-select\">#}
  1186.                                 {#                    {{ form_widget(form.classcategory_id2) }}#}
  1187.                                 {#                    {{ form_errors(form.classcategory_id2) }}#}
  1188.                                 {#                </div>#}
  1189.                                 {#            {% endif %}#}
  1190.                                 {#        {% endif %}#}
  1191.                                         {#<div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>#}
  1192.                                         {#    {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}#}
  1193.                                         {#    {{ form_errors(form.quantity) }}#}
  1194.                                         {#</div>#}
  1195.                                 {#    </div>#}
  1196.                                 {#    {{ form_rest(form) }}#}
  1197.                                 </form>
  1198.                                 <div class=\"ec-productRole__btn\">
  1199.                                     <a class=\"detail-buttons cart\" href=\"{{ url('product_detail', {'id': Product.id}) }}\">詳細を見る</a>
  1200.                                     {#<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">#}
  1201.                                     {#    {{ '詳細を見る'|trans }}#}
  1202.                                     {#</button>#}
  1203.                                 </div>
  1204.                             {% else %}
  1205.                                 <div class=\"ec-productRole__btn\">
  1206.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1207.                                         {{ 'ただいま品切れ中です。'|trans }}
  1208.                                     </button>
  1209.                                 </div>
  1210.                             {% endif %}
  1211.                         </li>
  1212.                     {% endfor %}
  1213.                 </ul>
  1214.             </div>
  1215.             <div class=\"ec-modal\">
  1216.                 <div class=\"ec-modal-overlay\">
  1217.                     <div class=\"ec-modal-wrap\">
  1218.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  1219.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  1220.                         <div class=\"ec-modal-box\">
  1221.                             <div class=\"ec-role\">
  1222.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  1223.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  1224.                             </div>
  1225.                         </div>
  1226.                     </div>
  1227.                 </div>
  1228.             </div>
  1229.             <div class=\"ec-pagerRole\">
  1230.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  1231.             </div>
  1232.         {% endif %}
  1233.     {% endif %}
  1234. </section>
  1235. {% endblock %}""Product/list.twig""/home/xb579178/xb579178.xbiz.jp/public_html/test-ec-05/app/template/default/Product/list.twig");
  1236.     }
  1237. }