var/cache/dev/twig/08/08e5cbda9a7247bb726eb0dbfcc83c5778e0f280a50af7c34ef23370fe6c638b.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_fa8909f9b6c7789cea834957ed264b4df2eb600bb093ea48a49ec44b2fda8c18 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 11
  30.         return "default_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  39.         // line 13
  40.         $context["body_class"] = "product_page";
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 15
  50.     public function block_javascript($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         // line 16
  58.         echo "    <script>
  59.         eccube.productsClassCategories = {
  60.             ";
  61.         // line 18
  62.         $context['_parent'] = $context;
  63.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'18$this->source); })()));
  64.         $context['loop'] = [
  65.           'parent' => $context['_parent'],
  66.           'index0' => 0,
  67.           'index'  => 1,
  68.           'first'  => true,
  69.         ];
  70.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  71.             $length count($context['_seq']);
  72.             $context['loop']['revindex0'] = $length 1;
  73.             $context['loop']['revindex'] = $length;
  74.             $context['loop']['length'] = $length;
  75.             $context['loop']['last'] = === $length;
  76.         }
  77.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  78.             // line 19
  79.             echo "            \"";
  80.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse19), "js"), "html"nulltrue);
  81.             echo "\": ";
  82.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  83.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse19) == false)) {
  84.                 echo ", ";
  85.             }
  86.             // line 20
  87.             echo "            ";
  88.             ++$context['loop']['index0'];
  89.             ++$context['loop']['index'];
  90.             $context['loop']['first'] = false;
  91.             if (isset($context['loop']['length'])) {
  92.                 --$context['loop']['revindex0'];
  93.                 --$context['loop']['revindex'];
  94.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  95.             }
  96.         }
  97.         $_parent $context['_parent'];
  98.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  99.         $context array_intersect_key($context$_parent) + $_parent;
  100.         // line 21
  101.         echo "        };
  102.         \$(function() {
  103.             // 表示件数を変更
  104.             \$('.disp-number').change(function() {
  105.                 var dispNumber = \$(this).val();
  106.                 \$('#disp_number').val(dispNumber);
  107.                 \$('#pageno').val(1);
  108.                 \$(\"#form1\").submit();
  109.             });
  110.             // 並び順を変更
  111.             \$('.order-by').change(function() {
  112.                 var orderBy = \$(this).val();
  113.                 \$('#orderby').val(orderBy);
  114.                 \$('#pageno').val(1);
  115.                 \$(\"#form1\").submit();
  116.             });
  117.             \$('.add-cart').on('click', function(e) {
  118.                 var \$form = \$(this).parents('li').find('form');
  119.                 // 個数フォームのチェック
  120.                 var \$quantity = \$form.parent().find('.quantity');
  121.                 if (\$quantity.val() < 1) {
  122.                     \$quantity[0].setCustomValidity('";
  123.         // line 47
  124.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  125.         echo "');
  126.                     setTimeout(function() {
  127.                         loadingOverlay('hide');
  128.                     }, 100);
  129.                     return true;
  130.                 } else {
  131.                     \$quantity[0].setCustomValidity('');
  132.                 }
  133.                 e.preventDefault();
  134.                 \$.ajax({
  135.                     url: \$form.attr('action'),
  136.                     type: \$form.attr('method'),
  137.                     data: \$form.serialize(),
  138.                     dataType: 'json',
  139.                     beforeSend: function(xhr, settings) {
  140.                         // Buttonを無効にする
  141.                         \$('.add-cart').prop('disabled', true);
  142.                     }
  143.                 }).done(function(data) {
  144.                     // レスポンス内のメッセージをalertで表示
  145.                     \$.each(data.messages, function() {
  146.                         \$('#ec-modal-header').html(this);
  147.                     });
  148.                     \$('.ec-modal').show()
  149.                     // カートブロックを更新する
  150.                     \$.ajax({
  151.                         url: '";
  152.         // line 75
  153.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  154.         echo "',
  155.                         type: 'GET',
  156.                         dataType: 'html'
  157.                     }).done(function(html) {
  158.                         \$('.ec-headerRole__cart').html(html);
  159.                     });
  160.                 }).fail(function(data) {
  161.                     alert('";
  162.         // line 82
  163.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  164.         echo "');
  165.                 }).always(function(data) {
  166.                     // Buttonを有効にする
  167.                     \$('.add-cart').prop('disabled', false);
  168.                 });
  169.             });
  170.         });
  171.         \$('.ec-modal-wrap').on('click', function(e) {
  172.             // モーダル内の処理は外側にバブリングさせない
  173.             e.stopPropagation();
  174.         });
  175.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  176.             \$('.ec-modal').hide()
  177.         });
  178.     </script>
  179. ";
  180.         
  181.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  182.         
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  184.     }
  185.     // line 100
  186.     public function block_main($context, array $blocks = [])
  187.     {
  188.         $macros $this->macros;
  189.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  190.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  191.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  192.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  193.         // line 101
  194.         echo "<div class=\"ec-searchnavRole\">
  195. <div id=\"cate_list\">
  196. <h1 class=\"cate_h1\">";
  197.         // line 103
  198.         echo twig_escape_filter($this->env, (isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'103$this->source); })()), "html"nulltrue);
  199.         echo "</h1>
  200. <ul class=\"cate_list\">
  201.                     <li class=\"ec-topicpath__item\"><a href=\"";
  202.         // line 105
  203.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  204.         echo "\">";
  205.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  206.         echo "</a>
  207.                     </li>
  208.                     ";
  209.         // line 107
  210.         if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'107$this->source); })()))) {
  211.             // line 108
  212.             echo "                        ";
  213.             $context['_parent'] = $context;
  214.             $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.'108$this->source); })()), "path", [], "any"falsefalsefalse108));
  215.             $context['loop'] = [
  216.               'parent' => $context['_parent'],
  217.               'index0' => 0,
  218.               'index'  => 1,
  219.               'first'  => true,
  220.             ];
  221.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  222.                 $length count($context['_seq']);
  223.                 $context['loop']['revindex0'] = $length 1;
  224.                 $context['loop']['revindex'] = $length;
  225.                 $context['loop']['length'] = $length;
  226.                 $context['loop']['last'] = === $length;
  227.             }
  228.             foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  229.                 // line 109
  230.                 echo "                            <li class=\"ec-topicpath__divider\">|</li>
  231.                             <li class=\"ec-topicpath__item";
  232.                 // line 110
  233.                 if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse110)) {
  234.                     echo "--active";
  235.                 }
  236.                 echo "\"><a
  237.                                         href=\"";
  238.                 // line 111
  239.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  240.                 echo "?category_id=";
  241.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse111), "html"nulltrue);
  242.                 echo "\">";
  243.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse111), "html"nulltrue);
  244.                 echo "</a>
  245.                             </li>
  246.                         ";
  247.                 ++$context['loop']['index0'];
  248.                 ++$context['loop']['index'];
  249.                 $context['loop']['first'] = false;
  250.                 if (isset($context['loop']['length'])) {
  251.                     --$context['loop']['revindex0'];
  252.                     --$context['loop']['revindex'];
  253.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  254.                 }
  255.             }
  256.             $_parent $context['_parent'];
  257.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  258.             $context array_intersect_key($context$_parent) + $_parent;
  259.             // line 114
  260.             echo "                    ";
  261.         }
  262.         // line 115
  263.         echo "                    ";
  264.         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.'115$this->source); })()), "vars", [], "any"falsefalsefalse115), "value", [], "any"falsefalsefalse115) && 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.'115$this->source); })()), "vars", [], "any"falsefalsefalse115), "value", [], "any"falsefalsefalse115), "name", [], "any"falsefalsefalse115))) {
  265.             // line 116
  266.             echo "                        <li class=\"ec-topicpath__divider\">|</li>
  267.                         <li class=\"ec-topicpath__item\">";
  268.             // line 117
  269.             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.'117$this->source); })()), "vars", [], "any"falsefalsefalse117), "value", [], "any"falsefalsefalse117), "name", [], "any"falsefalsefalse117)]), "html"nulltrue);
  270.             echo "</li>
  271.                     ";
  272.         }
  273.         // line 119
  274.         echo "
  275. </ul>
  276. </div>
  277. </div>
  278. ";
  279.         // line 125
  280.         if ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'125$this->source); })())) {
  281.             // line 126
  282.             echo "       
  283. <div class=\"ec-searchnavRole\">
  284. <div class=\"category wrap\">
  285.        
  286. <div class=\"pic\">
  287.     ";
  288.             // line 131
  289.             $context["num"] = $this->extensions['Customize\Twig\Extension\MyExtension']->sprintf_tow(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.'131$this->source); })()), "id", [], "any"falsefalsefalse131));
  290.             // line 132
  291.             echo "    ";
  292.             $context["imgs"] = (("assets/images/cat" . (isset($context["num"]) || array_key_exists("num"$context) ? $context["num"] : (function () { throw new RuntimeError('Variable "num" does not exist.'132$this->source); })())) . ".png");
  293.             // line 133
  294.             echo "    
  295.     ";
  296.             // line 134
  297.             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.'134$this->source); })()), "category_image", [], "any"falsefalsefalse134)) {
  298.                 // line 135
  299.                 echo "    <img src=\"";
  300.                 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, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'135$this->source); })()), "category_image", [], "any"falsefalsefalse135)), "save_image"), "html"nulltrue);
  301.                 echo "\" alt=\"";
  302.                 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.'135$this->source); })()), "name", [], "any"falsefalsefalse135), "html"nulltrue);
  303.                 echo "\">
  304.     ";
  305.             } else {
  306.                 // line 137
  307.                 echo "    <img src=\"";
  308.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["imgs"]) || array_key_exists("imgs"$context) ? $context["imgs"] : (function () { throw new RuntimeError('Variable "imgs" does not exist.'137$this->source); })()), "user_data"), "html"nulltrue);
  309.                 echo "\" alt=\"\">
  310.     ";
  311.             }
  312.             // line 139
  313.             echo "</div>    
  314. ";
  315.             // line 141
  316.             if (((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'141$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.'141$this->source); })()), "free_area", [], "any"falsefalsefalse141))) {
  317.                 // line 142
  318.                 echo "    <div class=\"read\">
  319.         ";
  320.                 // line 143
  321.                 echo nl2br(twig_include($this->env$contexttwig_template_from_string($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.'143$this->source); })()), "free_area", [], "any"falsefalsefalse143))));
  322.                 echo "
  323.     </div>
  324. ";
  325.             }
  326.             // line 146
  327.             echo "
  328. </div>
  329. </div>
  330. ";
  331.         }
  332.         // line 150
  333.         echo "
  334.     ";
  335.         // line 151
  336.         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.'151$this->source); })()), "category_id", [], "any"falsefalsefalse151), "vars", [], "any"falsefalsefalse151), "errors", [], "any"falsefalsefalse151)) > 0)) {
  337.             // line 152
  338.             echo "        <div class=\"ec-searchnavRole\">
  339.             <p class=\"errormsg text-danger\" style=\"padding: 5em 0;\">";
  340.             // line 153
  341.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  342.             echo "</p>
  343.         </div>
  344.     ";
  345.         } else {
  346.             // line 156
  347.             echo "        <div class=\"ec-searchnavRole\">
  348.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  349.                 ";
  350.             // line 158
  351.             $context['_parent'] = $context;
  352.             $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.'158$this->source); })()));
  353.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  354.                 // line 159
  355.                 echo "                    <input type=\"hidden\" id=\"";
  356.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse159), "id", [], "any"falsefalsefalse159), "html"nulltrue);
  357.                 echo "\"
  358.                            name=\"";
  359.                 // line 160
  360.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse160), "full_name", [], "any"falsefalsefalse160), "html"nulltrue);
  361.                 echo "\"
  362.                            ";
  363.                 // line 161
  364.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse161), "value", [], "any"falsefalsefalse161))) {
  365.                     echo "value=\"";
  366.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse161), "value", [], "any"falsefalsefalse161), "html"nulltrue);
  367.                     echo "\" ";
  368.                 }
  369.                 echo "/>
  370.                 ";
  371.             }
  372.             $_parent $context['_parent'];
  373.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  374.             $context array_intersect_key($context$_parent) + $_parent;
  375.             // line 163
  376.             echo "            </form>
  377.             <div class=\"ec-searchnavRole__infos\">
  378.                 <div class=\"ec-searchnavRole__counter\">
  379.                     ";
  380.             // line 167
  381.             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.'167$this->source); })()), "totalItemCount", [], "any"falsefalsefalse167) > 0)) {
  382.                 // line 168
  383.                 echo "                        ";
  384.                 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.'168$this->source); })()), "totalItemCount", [], "any"falsefalsefalse168)]);
  385.                 echo "
  386.                     ";
  387.             } else {
  388.                 // line 170
  389.                 echo "                       <p style=\"padding: 5em 0;\"> <span>";
  390.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  391.                 echo "</span></p>
  392.                     ";
  393.             }
  394.             // line 172
  395.             echo "                </div>
  396.                 ";
  397.             // line 173
  398.             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.'173$this->source); })()), "totalItemCount", [], "any"falsefalsefalse173) > 0)) {
  399.                 // line 174
  400.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  401.                         <div class=\"ec-select\">
  402.                             ";
  403.                 // line 176
  404.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["disp_number_form"]) || array_key_exists("disp_number_form"$context) ? $context["disp_number_form"] : (function () { throw new RuntimeError('Variable "disp_number_form" does not exist.'176$this->source); })()), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  405.                 echo "
  406.                             ";
  407.                 // line 177
  408.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["order_by_form"]) || array_key_exists("order_by_form"$context) ? $context["order_by_form"] : (function () { throw new RuntimeError('Variable "order_by_form" does not exist.'177$this->source); })()), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  409.                 echo "
  410.                         </div>
  411.                     </div>
  412.                 ";
  413.             }
  414.             // line 181
  415.             echo "            </div>
  416.         </div>
  417.         ";
  418.             // line 183
  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.'183$this->source); })()), "totalItemCount", [], "any"falsefalsefalse183) > 0)) {
  420.                 // line 184
  421.                 echo "            <div class=\"ec-shelfRole\">
  422.                 <ul class=\"ec-shelfGrid\">
  423.                     ";
  424.                 // line 186
  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.'186$this->source); })()));
  427.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  428.                     // line 187
  429.                     echo "                        <li class=\"ec-shelfGrid__item\">
  430.                             <a href=\"";
  431.                     // line 188
  432.                     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"falsefalsefalse188)]), "html"nulltrue);
  433.                     echo "\">
  434.                                 <p class=\"ec-shelfGrid__item-image\">
  435.                                     <img src=\"";
  436.                     // line 190
  437.                     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"falsefalsefalse190)), "save_image"), "html"nulltrue);
  438.                     echo "\" alt=\"";
  439.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse190), "html"nulltrue);
  440.                     echo "\" loading=\"lazy\">
  441.                                 </p>
  442.                                 <p>";
  443.                     // line 192
  444.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse192), "html"nulltrue);
  445.                     echo "</p>
  446.                                 ";
  447.                     // line 193
  448.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse193)) {
  449.                         // line 194
  450.                         echo "                                    <p>";
  451.                         echo nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse194));
  452.                         echo "</p>
  453.                                 ";
  454.                     }
  455.                     // line 196
  456.                     echo "                                <p class=\"price02-default\">
  457.                                     ";
  458.                     // line 197
  459.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse197)) {
  460.                         // line 198
  461.                         echo "                                        ";
  462.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse198) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse198))) {
  463.                             // line 199
  464.                             echo "                                            ";
  465.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse199)), "html"nulltrue);
  466.                             echo "
  467.                                         ";
  468.                         } else {
  469.                             // line 201
  470.                             echo "                                            ";
  471.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse201)), "html"nulltrue);
  472.                             echo " ~ ";
  473.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse201)), "html"nulltrue);
  474.                             echo "
  475.                                         ";
  476.                         }
  477.                         // line 203
  478.                         echo "                                    ";
  479.                     } else {
  480.                         // line 204
  481.                         echo "                                        ";
  482.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse204)), "html"nulltrue);
  483.                         echo "
  484.                                     ";
  485.                     }
  486.                     // line 206
  487.                     echo "                                </p>
  488.                             </a>
  489.                             ";
  490.                     // line 209
  491.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse209)) {
  492.                         // line 210
  493.                         echo "                                ";
  494.                         $context["form"] = twig_get_attribute($this->env$this->source, (isset($context["forms"]) || array_key_exists("forms"$context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.'210$this->source); })()), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse210), [], "array"falsefalsefalse210);
  495.                         // line 211
  496.                         echo "                                <form name=\"form";
  497.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse211), "html"nulltrue);
  498.                         echo "\" id=\"productForm";
  499.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse211), "html"nulltrue);
  500.                         echo "\" action=\"";
  501.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse211)]), "html"nulltrue);
  502.                         echo "\" method=\"post\">
  503.                                     <div class=\"ec-productRole__actions\">
  504.                                         ";
  505.                         // line 213
  506.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse213)) {
  507.                             // line 214
  508.                             echo "                                            <div class=\"ec-select\">
  509.                                                 ";
  510.                             // line 215
  511.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'215$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse215), 'widget');
  512.                             echo "
  513.                                                 ";
  514.                             // line 216
  515.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'216$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse216), 'errors');
  516.                             echo "
  517.                                             </div>
  518.                                             ";
  519.                             // line 218
  520.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse218)) {
  521.                                 // line 219
  522.                                 echo "                                                <div class=\"ec-select\">
  523.                                                     ";
  524.                                 // line 220
  525.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'220$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse220), 'widget');
  526.                                 echo "
  527.                                                     ";
  528.                                 // line 221
  529.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'221$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse221), 'errors');
  530.                                 echo "
  531.                                                 </div>
  532.                                             ";
  533.                             }
  534.                             // line 224
  535.                             echo "                                        ";
  536.                         }
  537.                         // line 225
  538.                         echo "                                        <div class=\"ec-numberInput\"><span>";
  539.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  540.                         echo "</span>
  541.                                             ";
  542.                         // line 226
  543.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'226$this->source); })()), "quantity", [], "any"falsefalsefalse226), 'widget', ["attr" => ["class" => "quantity"]]);
  544.                         echo "
  545.                                             ";
  546.                         // line 227
  547.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'227$this->source); })()), "quantity", [], "any"falsefalsefalse227), 'errors');
  548.                         echo "
  549.                                         </div>
  550.                                     </div>
  551.                                     ";
  552.                         // line 230
  553.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'230$this->source); })()), 'rest');
  554.                         echo "
  555.                                 </form>
  556.                                 <div class=\"ec-productRole__btn\">
  557.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  558.                         // line 233
  559.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse233), "html"nulltrue);
  560.                         echo "\" form=\"productForm";
  561.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse233), "html"nulltrue);
  562.                         echo "\">
  563.                                         ";
  564.                         // line 234
  565.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  566.                         echo "
  567.                                     </button>
  568.                                 </div>
  569.                             ";
  570.                     } else {
  571.                         // line 238
  572.                         echo "                                <div class=\"ec-productRole__btn\">
  573.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  574.                                         ";
  575.                         // line 240
  576.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  577.                         echo "
  578.                                     </button>
  579.                                 </div>
  580.                             ";
  581.                     }
  582.                     // line 244
  583.                     echo "                        </li>
  584.                     ";
  585.                 }
  586.                 $_parent $context['_parent'];
  587.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  588.                 $context array_intersect_key($context$_parent) + $_parent;
  589.                 // line 246
  590.                 echo "                </ul>
  591.             </div>
  592.             <div class=\"ec-modal\">
  593.                 <div class=\"ec-modal-overlay\">
  594.                     <div class=\"ec-modal-wrap\">
  595.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  596.                 // line 251
  597.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  598.                 echo "\" alt=\"\"/></span></span>
  599.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  600.                 // line 252
  601.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  602.                 echo "</div>
  603.                         <div class=\"ec-modal-box\">
  604.                             <div class=\"ec-role\">
  605.                                 <span class=\"ec-inlineBtn--cancel\">";
  606.                 // line 255
  607.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  608.                 echo "</span>
  609.                                 <a href=\"";
  610.                 // line 256
  611.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  612.                 echo "\" class=\"ec-inlineBtn--action\">";
  613.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  614.                 echo "</a>
  615.                             </div>
  616.                         </div>
  617.                     </div>
  618.                 </div>
  619.             </div>
  620.             
  621.             <div class=\"ec-pagerRole\">
  622.                 ";
  623.                 // line 267
  624.                 $this->loadTemplate("pager.twig""Product/list.twig"267)->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.'267$this->source); })()), "paginationData", [], "any"falsefalsefalse267)]));
  625.                 // line 268
  626.                 echo "            </div>
  627.         ";
  628.             }
  629.             // line 270
  630.             echo "    ";
  631.         }
  632.         // line 271
  633.         echo "
  634. ";
  635.         // line 273
  636.         $context["Products"] = $this->extensions['Customize\Twig\Extension\TwigExtension']->getCustomizeCatProduct();
  637.         // line 274
  638.         echo "<section class=\"categories white\">
  639. <div class=\"wrap\">
  640. <p class=\"clear\">&nbsp;</p>
  641. <h2 class=\"subtitle\"><strong class=\"fadein active\"><i>C</i>ategories</strong>カテゴリー一覧</h2>
  642. <ul>
  643. ";
  644.         // line 280
  645.         if ((twig_length_filter($this->env, (isset($context["Products"]) || array_key_exists("Products"$context) ? $context["Products"] : (function () { throw new RuntimeError('Variable "Products" does not exist.'280$this->source); })())) > 0)) {
  646.             // line 281
  647.             echo "
  648.     ";
  649.             // line 282
  650.             $context['_parent'] = $context;
  651.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Products"]) || array_key_exists("Products"$context) ? $context["Products"] : (function () { throw new RuntimeError('Variable "Products" does not exist.'282$this->source); })()), "category", [], "any"falsefalsefalse282));
  652.             foreach ($context['_seq'] as $context["_key"] => $context["categorys"]) {
  653.                 // line 283
  654.                 echo "    
  655.     ";
  656.                 // line 284
  657.                 if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["categorys"], "ProductCategories", [], "any"falsefalsefalse284)) != "0")) {
  658.                     // line 285
  659.                     echo "    
  660.     ";
  661.                     // line 287
  662.                     echo "    <li>
  663.     <a href=\"";
  664.                     // line 288
  665.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  666.                     echo "?category_id=";
  667.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["categorys"], "id", [], "any"falsefalsefalse288), "html"nulltrue);
  668.                     echo "\">
  669.     <div class=\"pic\">
  670.     ";
  671.                     // line 290
  672.                     $context["num"] = $this->extensions['Customize\Twig\Extension\MyExtension']->sprintf_tow(twig_get_attribute($this->env$this->source$context["categorys"], "id", [], "any"falsefalsefalse290));
  673.                     // line 291
  674.                     echo "    ";
  675.                     $context["imgs"] = (("assets/images/cat" . (isset($context["num"]) || array_key_exists("num"$context) ? $context["num"] : (function () { throw new RuntimeError('Variable "num" does not exist.'291$this->source); })())) . ".png");
  676.                     // line 292
  677.                     echo "    
  678.     ";
  679.                     // line 293
  680.                     if (twig_get_attribute($this->env$this->source$context["categorys"], "category_image", [], "any"falsefalsefalse293)) {
  681.                         // line 294
  682.                         echo "    <img src=\"";
  683.                         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["categorys"], "category_image", [], "any"falsefalsefalse294)), "save_image"), "html"nulltrue);
  684.                         echo "\" alt=\"";
  685.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["categorys"], "name", [], "any"falsefalsefalse294), "html"nulltrue);
  686.                         echo "\" style=\"width:auto; height:100%;\">
  687.     ";
  688.                     } else {
  689.                         // line 296
  690.                         echo "    <img src=\"";
  691.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["imgs"]) || array_key_exists("imgs"$context) ? $context["imgs"] : (function () { throw new RuntimeError('Variable "imgs" does not exist.'296$this->source); })()), "user_data"), "html"nulltrue);
  692.                         echo "\" alt=\"\">
  693.     ";
  694.                     }
  695.                     // line 298
  696.                     echo "    </div>
  697.     <p>";
  698.                     // line 299
  699.                     echo twig_get_attribute($this->env$this->source$context["categorys"], "name", [], "any"falsefalsefalse299);
  700.                     echo "</p>
  701.     </a>
  702.     ";
  703.                     // line 302
  704.                     echo "    
  705.     </li>
  706.     ";
  707.                     // line 305
  708.                     echo "    ";
  709.                 }
  710.                 // line 306
  711.                 echo "    
  712.     ";
  713.             }
  714.             $_parent $context['_parent'];
  715.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['categorys'], $context['_parent'], $context['loop']);
  716.             $context array_intersect_key($context$_parent) + $_parent;
  717.             // line 308
  718.             echo "
  719. ";
  720.         }
  721.         // line 310
  722.         echo "</ul>
  723. </div>
  724. </section>
  725. ";
  726.         
  727.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  728.         
  729.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  730.     }
  731.     public function getTemplateName()
  732.     {
  733.         return "Product/list.twig";
  734.     }
  735.     public function isTraitable()
  736.     {
  737.         return false;
  738.     }
  739.     public function getDebugInfo()
  740.     {
  741.         return array (  759 => 310,  755 => 308,  748 => 306,  745 => 305,  741 => 302,  736 => 299,  733 => 298,  727 => 296,  719 => 294,  717 => 293,  714 => 292,  711 => 291,  709 => 290,  702 => 288,  699 => 287,  696 => 285,  694 => 284,  691 => 283,  687 => 282,  684 => 281,  682 => 280,  674 => 274,  672 => 273,  668 => 271,  665 => 270,  661 => 268,  659 => 267,  643 => 256,  639 => 255,  633 => 252,  629 => 251,  622 => 246,  615 => 244,  608 => 240,  604 => 238,  597 => 234,  591 => 233,  585 => 230,  579 => 227,  575 => 226,  570 => 225,  567 => 224,  561 => 221,  557 => 220,  554 => 219,  552 => 218,  547 => 216,  543 => 215,  540 => 214,  538 => 213,  528 => 211,  525 => 210,  523 => 209,  518 => 206,  512 => 204,  509 => 203,  501 => 201,  495 => 199,  492 => 198,  490 => 197,  487 => 196,  481 => 194,  479 => 193,  475 => 192,  468 => 190,  463 => 188,  460 => 187,  456 => 186,  452 => 184,  450 => 183,  446 => 181,  439 => 177,  435 => 176,  431 => 174,  429 => 173,  426 => 172,  420 => 170,  414 => 168,  412 => 167,  406 => 163,  394 => 161,  390 => 160,  385 => 159,  381 => 158,  377 => 156,  371 => 153,  368 => 152,  366 => 151,  363 => 150,  357 => 146,  351 => 143,  348 => 142,  346 => 141,  342 => 139,  336 => 137,  328 => 135,  326 => 134,  323 => 133,  320 => 132,  318 => 131,  311 => 126,  309 => 125,  301 => 119,  296 => 117,  293 => 116,  290 => 115,  287 => 114,  266 => 111,  260 => 110,  257 => 109,  239 => 108,  237 => 107,  230 => 105,  225 => 103,  221 => 101,  211 => 100,  184 => 82,  174 => 75,  143 => 47,  115 => 21,  101 => 20,  93 => 19,  76 => 18,  72 => 16,  62 => 15,  51 => 11,  49 => 13,  36 => 11,);
  742.     }
  743.     public function getSourceContext()
  744.     {
  745.         return new Source("{#
  746. This file is part of EC-CUBE
  747. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  748. http://www.ec-cube.co.jp/
  749. For the full copyright and license information, please view the LICENSE
  750. file that was distributed with this source code.
  751. #}
  752. {% extends 'default_frame.twig' %}
  753. {% set body_class = 'product_page' %}
  754. {% block javascript %}
  755.     <script>
  756.         eccube.productsClassCategories = {
  757.             {% for Product in pagination %}
  758.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  759.             {% endfor %}
  760.         };
  761.         \$(function() {
  762.             // 表示件数を変更
  763.             \$('.disp-number').change(function() {
  764.                 var dispNumber = \$(this).val();
  765.                 \$('#disp_number').val(dispNumber);
  766.                 \$('#pageno').val(1);
  767.                 \$(\"#form1\").submit();
  768.             });
  769.             // 並び順を変更
  770.             \$('.order-by').change(function() {
  771.                 var orderBy = \$(this).val();
  772.                 \$('#orderby').val(orderBy);
  773.                 \$('#pageno').val(1);
  774.                 \$(\"#form1\").submit();
  775.             });
  776.             \$('.add-cart').on('click', function(e) {
  777.                 var \$form = \$(this).parents('li').find('form');
  778.                 // 個数フォームのチェック
  779.                 var \$quantity = \$form.parent().find('.quantity');
  780.                 if (\$quantity.val() < 1) {
  781.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  782.                     setTimeout(function() {
  783.                         loadingOverlay('hide');
  784.                     }, 100);
  785.                     return true;
  786.                 } else {
  787.                     \$quantity[0].setCustomValidity('');
  788.                 }
  789.                 e.preventDefault();
  790.                 \$.ajax({
  791.                     url: \$form.attr('action'),
  792.                     type: \$form.attr('method'),
  793.                     data: \$form.serialize(),
  794.                     dataType: 'json',
  795.                     beforeSend: function(xhr, settings) {
  796.                         // Buttonを無効にする
  797.                         \$('.add-cart').prop('disabled', true);
  798.                     }
  799.                 }).done(function(data) {
  800.                     // レスポンス内のメッセージをalertで表示
  801.                     \$.each(data.messages, function() {
  802.                         \$('#ec-modal-header').html(this);
  803.                     });
  804.                     \$('.ec-modal').show()
  805.                     // カートブロックを更新する
  806.                     \$.ajax({
  807.                         url: '{{ url('block_cart') }}',
  808.                         type: 'GET',
  809.                         dataType: 'html'
  810.                     }).done(function(html) {
  811.                         \$('.ec-headerRole__cart').html(html);
  812.                     });
  813.                 }).fail(function(data) {
  814.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  815.                 }).always(function(data) {
  816.                     // Buttonを有効にする
  817.                     \$('.add-cart').prop('disabled', false);
  818.                 });
  819.             });
  820.         });
  821.         \$('.ec-modal-wrap').on('click', function(e) {
  822.             // モーダル内の処理は外側にバブリングさせない
  823.             e.stopPropagation();
  824.         });
  825.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  826.             \$('.ec-modal').hide()
  827.         });
  828.     </script>
  829. {% endblock %}
  830. {% block main %}
  831. <div class=\"ec-searchnavRole\">
  832. <div id=\"cate_list\">
  833. <h1 class=\"cate_h1\">{{ subtitle }}</h1>
  834. <ul class=\"cate_list\">
  835.                     <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  836.                     </li>
  837.                     {% if Category is not null %}
  838.                         {% for Path in Category.path %}
  839.                             <li class=\"ec-topicpath__divider\">|</li>
  840.                             <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
  841.                                         href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  842.                             </li>
  843.                         {% endfor %}
  844.                     {% endif %}
  845.                     {% if search_form.vars.value and search_form.vars.value.name %}
  846.                         <li class=\"ec-topicpath__divider\">|</li>
  847.                         <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  848.                     {% endif %}
  849. </ul>
  850. </div>
  851. </div>
  852. {% if Category%}
  853.        
  854. <div class=\"ec-searchnavRole\">
  855. <div class=\"category wrap\">
  856.        
  857. <div class=\"pic\">
  858.     {% set num = Category.id|sprintf_tow %}
  859.     {% set imgs = \"assets/images/cat\" ~ num ~ \".png\" %}
  860.     
  861.     {%if Category.category_image%}
  862.     <img src=\"{{ asset(Category.category_image|no_image_product, 'save_image') }}\" alt=\"{{ Category.name }}\">
  863.     {%else%}
  864.     <img src=\"{{ asset(imgs, 'user_data') }}\" alt=\"\">
  865.     {%endif%}
  866. </div>    
  867. {% if Category and Category.free_area %}
  868.     <div class=\"read\">
  869.         {{ include(template_from_string(Category. free_area))|nl2br }}
  870.     </div>
  871. {% endif %}
  872. </div>
  873. </div>
  874. {% endif %}
  875.     {% if search_form.category_id.vars.errors|length > 0 %}
  876.         <div class=\"ec-searchnavRole\">
  877.             <p class=\"errormsg text-danger\" style=\"padding: 5em 0;\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  878.         </div>
  879.     {% else %}
  880.         <div class=\"ec-searchnavRole\">
  881.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  882.                 {% for item in search_form %}
  883.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  884.                            name=\"{{ item.vars.full_name }}\"
  885.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  886.                 {% endfor %}
  887.             </form>
  888.             <div class=\"ec-searchnavRole__infos\">
  889.                 <div class=\"ec-searchnavRole__counter\">
  890.                     {% if pagination.totalItemCount > 0 %}
  891.                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  892.                     {% else %}
  893.                        <p style=\"padding: 5em 0;\"> <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span></p>
  894.                     {% endif %}
  895.                 </div>
  896.                 {% if pagination.totalItemCount > 0 %}
  897.                     <div class=\"ec-searchnavRole__actions\">
  898.                         <div class=\"ec-select\">
  899.                             {{ form_widget(disp_number_form, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  900.                             {{ form_widget(order_by_form, {'id': '', 'attr': {'class': 'order-by'}}) }}
  901.                         </div>
  902.                     </div>
  903.                 {% endif %}
  904.             </div>
  905.         </div>
  906.         {% if pagination.totalItemCount > 0 %}
  907.             <div class=\"ec-shelfRole\">
  908.                 <ul class=\"ec-shelfGrid\">
  909.                     {% for Product in pagination %}
  910.                         <li class=\"ec-shelfGrid__item\">
  911.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  912.                                 <p class=\"ec-shelfGrid__item-image\">
  913.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" loading=\"lazy\">
  914.                                 </p>
  915.                                 <p>{{ Product.name }}</p>
  916.                                 {% if Product.description_list %}
  917.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  918.                                 {% endif %}
  919.                                 <p class=\"price02-default\">
  920.                                     {% if Product.hasProductClass %}
  921.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  922.                                             {{ Product.getPrice02IncTaxMin|price }}
  923.                                         {% else %}
  924.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  925.                                         {% endif %}
  926.                                     {% else %}
  927.                                         {{ Product.getPrice02IncTaxMin|price }}
  928.                                     {% endif %}
  929.                                 </p>
  930.                             </a>
  931.                             {% if Product.stock_find %}
  932.                                 {% set form = forms[Product.id] %}
  933.                                 <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  934.                                     <div class=\"ec-productRole__actions\">
  935.                                         {% if form.classcategory_id1 is defined %}
  936.                                             <div class=\"ec-select\">
  937.                                                 {{ form_widget(form.classcategory_id1) }}
  938.                                                 {{ form_errors(form.classcategory_id1) }}
  939.                                             </div>
  940.                                             {% if form.classcategory_id2 is defined %}
  941.                                                 <div class=\"ec-select\">
  942.                                                     {{ form_widget(form.classcategory_id2) }}
  943.                                                     {{ form_errors(form.classcategory_id2) }}
  944.                                                 </div>
  945.                                             {% endif %}
  946.                                         {% endif %}
  947.                                         <div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
  948.                                             {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  949.                                             {{ form_errors(form.quantity) }}
  950.                                         </div>
  951.                                     </div>
  952.                                     {{ form_rest(form) }}
  953.                                 </form>
  954.                                 <div class=\"ec-productRole__btn\">
  955.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  956.                                         {{ 'カートに入れる'|trans }}
  957.                                     </button>
  958.                                 </div>
  959.                             {% else %}
  960.                                 <div class=\"ec-productRole__btn\">
  961.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  962.                                         {{ 'ただいま品切れ中です。'|trans }}
  963.                                     </button>
  964.                                 </div>
  965.                             {% endif %}
  966.                         </li>
  967.                     {% endfor %}
  968.                 </ul>
  969.             </div>
  970.             <div class=\"ec-modal\">
  971.                 <div class=\"ec-modal-overlay\">
  972.                     <div class=\"ec-modal-wrap\">
  973.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  974.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  975.                         <div class=\"ec-modal-box\">
  976.                             <div class=\"ec-role\">
  977.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  978.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  979.                             </div>
  980.                         </div>
  981.                     </div>
  982.                 </div>
  983.             </div>
  984.             
  985.             <div class=\"ec-pagerRole\">
  986.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  987.             </div>
  988.         {% endif %}
  989.     {% endif %}
  990. {% set Products = CustomizeCatProduct() %}
  991. <section class=\"categories white\">
  992. <div class=\"wrap\">
  993. <p class=\"clear\">&nbsp;</p>
  994. <h2 class=\"subtitle\"><strong class=\"fadein active\"><i>C</i>ategories</strong>カテゴリー一覧</h2>
  995. <ul>
  996. {% if Products|length > 0 %}
  997.     {% for categorys in Products.category %}
  998.     
  999.     {%if categorys.ProductCategories|length != '0'%}
  1000.     
  1001.     {#% if categorys.Parent is same as(null)%#}
  1002.     <li>
  1003.     <a href=\"{{ url('product_list') }}?category_id={{categorys.id}}\">
  1004.     <div class=\"pic\">
  1005.     {% set num = categorys.id|sprintf_tow %}
  1006.     {% set imgs = \"assets/images/cat\" ~ num ~ \".png\" %}
  1007.     
  1008.     {%if categorys.category_image%}
  1009.     <img src=\"{{ asset(categorys.category_image|no_image_product, 'save_image') }}\" alt=\"{{ categorys.name }}\" style=\"width:auto; height:100%;\">
  1010.     {%else%}
  1011.     <img src=\"{{ asset(imgs, 'user_data') }}\" alt=\"\">
  1012.     {%endif%}
  1013.     </div>
  1014.     <p>{{categorys.name|raw}}</p>
  1015.     </a>
  1016.     {#{dump(categorys)}#}
  1017.     
  1018.     </li>
  1019.     {#% endif %#}
  1020.     {% endif %}
  1021.     
  1022.     {% endfor %}
  1023. {% endif %}
  1024. </ul>
  1025. </div>
  1026. </section>
  1027. {% endblock %}
  1028. ""Product/list.twig""/home/ny-paradisa/public_html/app/template/default/Product/list.twig");
  1029.     }
  1030. }