var/cache/dev/twig/b4/b4afb98248e8146e864a4d58741925c8b622bf3c73645eb92461539c7d355e64.php line 40

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_58b4e739ac6cb7f65de3b3d173d3d9a5a642eba2ac54b716179d7c39f7285b2d 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.             'tracking_script' => [$this'block_tracking_script'],
  24.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 11
  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 13
  41.         $context["body_class"] = "product_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 15
  51.     public function block_tracking_script($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tracking_script"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tracking_script"));
  58.         // line 16
  59.         $context["item_list_name"] = "すべての商品";
  60.         // line 17
  61.         $context["item_list_id"] = "all";
  62.         // line 18
  63.         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.'18$this->source); })()), "category_id", [], "any"falsefalsefalse18), "vars", [], "any"falsefalsefalse18), "errors", [], "any"falsefalsefalse18)) == 0)) {
  64.             // line 19
  65.             echo "    ";
  66.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'19$this->source); })()))) {
  67.                 // line 20
  68.                 echo "        ";
  69.                 $context['_parent'] = $context;
  70.                 $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.'20$this->source); })()), "path", [], "any"falsefalsefalse20));
  71.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  72.                     // line 21
  73.                     echo "            ";
  74.                     $context["item_list_name"] = twig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse21);
  75.                     // line 22
  76.                     echo "            ";
  77.                     $context["item_list_id"] = ("category_" twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse22));
  78.                     // line 23
  79.                     echo "        ";
  80.                 }
  81.                 $_parent $context['_parent'];
  82.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  83.                 $context array_intersect_key($context$_parent) + $_parent;
  84.                 // line 24
  85.                 echo "    ";
  86.             }
  87.             // line 25
  88.             echo "    ";
  89.             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.'25$this->source); })()), "vars", [], "any"falsefalsefalse25), "value", [], "any"falsefalsefalse25) && 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.'25$this->source); })()), "vars", [], "any"falsefalsefalse25), "value", [], "any"falsefalsefalse25), "name", [], "any"falsefalsefalse25))) {
  90.                 // line 26
  91.                 echo "        ";
  92.                 $context["item_list_name"] = "検索結果";
  93.                 // line 27
  94.                 echo "        ";
  95.                 $context["item_list_id"] = "search";
  96.                 // line 28
  97.                 echo "    ";
  98.             }
  99.             // line 29
  100.             echo "    <script>
  101.     gtag('event', 'view_item_list', {
  102.     items: [";
  103.             // line 31
  104.             $context['_parent'] = $context;
  105.             $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'31$this->source); })()));
  106.             $context['loop'] = [
  107.               'parent' => $context['_parent'],
  108.               'index0' => 0,
  109.               'index'  => 1,
  110.               'first'  => true,
  111.             ];
  112.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  113.                 $length count($context['_seq']);
  114.                 $context['loop']['revindex0'] = $length 1;
  115.                 $context['loop']['revindex'] = $length;
  116.                 $context['loop']['length'] = $length;
  117.                 $context['loop']['last'] = === $length;
  118.             }
  119.             foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  120.                 echo "{
  121.     item_id: '";
  122.                 // line 32
  123.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse32), "html"nulltrue);
  124.                 echo "',
  125.     item_name: '";
  126.                 // line 33
  127.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse33), "html"nulltrue);
  128.                 echo "',
  129.     index: ";
  130.                 // line 34
  131.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse34), "html"nulltrue);
  132.                 echo ",
  133.     item_list_name: '";
  134.                 // line 35
  135.                 echo twig_escape_filter($this->env, (isset($context["item_list_name"]) || array_key_exists("item_list_name"$context) ? $context["item_list_name"] : (function () { throw new RuntimeError('Variable "item_list_name" does not exist.'35$this->source); })()), "html"nulltrue);
  136.                 echo "',
  137.     item_list_id: '";
  138.                 // line 36
  139.                 echo twig_escape_filter($this->env, (isset($context["item_list_id"]) || array_key_exists("item_list_id"$context) ? $context["item_list_id"] : (function () { throw new RuntimeError('Variable "item_list_id" does not exist.'36$this->source); })()), "html"nulltrue);
  140.                 echo "',
  141.     price: ";
  142.                 // line 37
  143.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse37), "html"nulltrue);
  144.                 echo ",
  145.     currency: 'JPY'
  146.     },
  147.     ";
  148.                 ++$context['loop']['index0'];
  149.                 ++$context['loop']['index'];
  150.                 $context['loop']['first'] = false;
  151.                 if (isset($context['loop']['length'])) {
  152.                     --$context['loop']['revindex0'];
  153.                     --$context['loop']['revindex'];
  154.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  155.                 }
  156.             }
  157.             $_parent $context['_parent'];
  158.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  159.             $context array_intersect_key($context$_parent) + $_parent;
  160.             // line 40
  161.             echo "],
  162.     item_list_name: '";
  163.             // line 41
  164.             echo twig_escape_filter($this->env, (isset($context["item_list_name"]) || array_key_exists("item_list_name"$context) ? $context["item_list_name"] : (function () { throw new RuntimeError('Variable "item_list_name" does not exist.'41$this->source); })()), "html"nulltrue);
  165.             echo "',
  166.     item_list_id: '";
  167.             // line 42
  168.             echo twig_escape_filter($this->env, (isset($context["item_list_id"]) || array_key_exists("item_list_id"$context) ? $context["item_list_id"] : (function () { throw new RuntimeError('Variable "item_list_id" does not exist.'42$this->source); })()), "html"nulltrue);
  169.             echo "'
  170.     });
  171.     </script>
  172. ";
  173.         }
  174.         
  175.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  176.         
  177.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  178.     }
  179.     // line 48
  180.     public function block_javascript($context, array $blocks = [])
  181.     {
  182.         $macros $this->macros;
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  184.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  185.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  186.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  187.         // line 49
  188.         echo "    <script>
  189.         eccube.productsClassCategories = {
  190.             ";
  191.         // line 51
  192.         $context['_parent'] = $context;
  193.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'51$this->source); })()));
  194.         $context['loop'] = [
  195.           'parent' => $context['_parent'],
  196.           'index0' => 0,
  197.           'index'  => 1,
  198.           'first'  => true,
  199.         ];
  200.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  201.             $length count($context['_seq']);
  202.             $context['loop']['revindex0'] = $length 1;
  203.             $context['loop']['revindex'] = $length;
  204.             $context['loop']['length'] = $length;
  205.             $context['loop']['last'] = === $length;
  206.         }
  207.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  208.             // line 52
  209.             echo "            \"";
  210.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse52), "js"), "html"nulltrue);
  211.             echo "\": ";
  212.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  213.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse52) == false)) {
  214.                 echo ", ";
  215.             }
  216.             // line 53
  217.             echo "            ";
  218.             ++$context['loop']['index0'];
  219.             ++$context['loop']['index'];
  220.             $context['loop']['first'] = false;
  221.             if (isset($context['loop']['length'])) {
  222.                 --$context['loop']['revindex0'];
  223.                 --$context['loop']['revindex'];
  224.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  225.             }
  226.         }
  227.         $_parent $context['_parent'];
  228.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  229.         $context array_intersect_key($context$_parent) + $_parent;
  230.         // line 54
  231.         echo "        };
  232.         \$(function() {
  233.             // 表示件数を変更
  234.             \$('.disp-number').change(function() {
  235.                 var dispNumber = \$(this).val();
  236.                 \$('#disp_number').val(dispNumber);
  237.                 \$('#pageno').val(1);
  238.                 \$(\"#form1\").submit();
  239.             });
  240.             // 並び順を変更
  241.             \$('.order-by').change(function() {
  242.                 var orderBy = \$(this).val();
  243.                 \$('#orderby').val(orderBy);
  244.                 \$('#pageno').val(1);
  245.                 \$(\"#form1\").submit();
  246.             });
  247.             \$('.add-cart').on('click', function(e) {
  248.                 var \$form = \$(this).parents('li').find('form');
  249.                 // 個数フォームのチェック
  250.                 var \$quantity = \$form.parent().find('.quantity');
  251.                 if (\$quantity.val() < 1) {
  252.                     \$quantity[0].setCustomValidity('";
  253.         // line 80
  254.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  255.         echo "');
  256.                     setTimeout(function() {
  257.                         loadingOverlay('hide');
  258.                     }, 100);
  259.                     return true;
  260.                 } else {
  261.                     \$quantity[0].setCustomValidity('');
  262.                 }
  263.                 e.preventDefault();
  264.                 \$.ajax({
  265.                     url: \$form.attr('action'),
  266.                     type: \$form.attr('method'),
  267.                     data: \$form.serialize(),
  268.                     dataType: 'json',
  269.                     beforeSend: function(xhr, settings) {
  270.                         // Buttonを無効にする
  271.                         \$('.add-cart').prop('disabled', true);
  272.                     }
  273.                 }).done(function(data) {
  274.                     // レスポンス内のメッセージをalertで表示
  275.                     \$.each(data.messages, function() {
  276.                         \$('#ec-modal-header').html(this);
  277.                     });
  278.                     \$('.ec-modal').show()
  279.                     // カートブロックを更新する
  280.                     \$.ajax({
  281.                         url: '";
  282.         // line 108
  283.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  284.         echo "',
  285.                         type: 'GET',
  286.                         dataType: 'html'
  287.                     }).done(function(html) {
  288.                         \$('.ec-headerRole__cart').html(html);
  289.                     });
  290.                 }).fail(function(data) {
  291.                     alert('";
  292.         // line 115
  293.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  294.         echo "');
  295.                 }).always(function(data) {
  296.                     // Buttonを有効にする
  297.                     \$('.add-cart').prop('disabled', false);
  298.                 });
  299.             });
  300.         });
  301.         \$('.ec-modal-wrap').on('click', function(e) {
  302.             // モーダル内の処理は外側にバブリングさせない
  303.             e.stopPropagation();
  304.         });
  305.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  306.             \$('.ec-modal').hide()
  307.         });
  308.     </script>
  309. ";
  310.         
  311.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  312.         
  313.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  314.     }
  315.     // line 133
  316.     public function block_main($context, array $blocks = [])
  317.     {
  318.         $macros $this->macros;
  319.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  320.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  321.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  322.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  323.         // line 134
  324.         echo "    ";
  325.         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.'134$this->source); })()), "category_id", [], "any"falsefalsefalse134), "vars", [], "any"falsefalsefalse134), "errors", [], "any"falsefalsefalse134)) > 0)) {
  326.             // line 135
  327.             echo "        <div class=\"ec-searchnavRole\">
  328.             <p class=\"errormsg text-danger\">";
  329.             // line 136
  330.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  331.             echo "</p>
  332.         </div>
  333.     ";
  334.         } else {
  335.             // line 139
  336.             echo "        <div class=\"ec-searchnavRole\">
  337.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  338.                 ";
  339.             // line 141
  340.             $context['_parent'] = $context;
  341.             $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.'141$this->source); })()));
  342.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  343.                 // line 142
  344.                 echo "                    <input type=\"hidden\" id=\"";
  345.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse142), "id", [], "any"falsefalsefalse142), "html"nulltrue);
  346.                 echo "\"
  347.                            name=\"";
  348.                 // line 143
  349.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse143), "full_name", [], "any"falsefalsefalse143), "html"nulltrue);
  350.                 echo "\"
  351.                            ";
  352.                 // line 144
  353.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse144), "value", [], "any"falsefalsefalse144))) {
  354.                     echo "value=\"";
  355.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse144), "value", [], "any"falsefalsefalse144), "html"nulltrue);
  356.                     echo "\" ";
  357.                 }
  358.                 echo "/>
  359.                 ";
  360.             }
  361.             $_parent $context['_parent'];
  362.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  363.             $context array_intersect_key($context$_parent) + $_parent;
  364.             // line 146
  365.             echo "            </form>
  366.             <div class=\"ec-searchnavRole__topicpath\">
  367.                 <ol class=\"ec-topicpath\">
  368.                     <li class=\"ec-topicpath__item\"><a href=\"";
  369.             // line 149
  370.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  371.             echo "\">";
  372.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  373.             echo "</a>
  374.                     </li>
  375.                     ";
  376.             // line 151
  377.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'151$this->source); })()))) {
  378.                 // line 152
  379.                 echo "                        ";
  380.                 $context['_parent'] = $context;
  381.                 $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.'152$this->source); })()), "path", [], "any"falsefalsefalse152));
  382.                 $context['loop'] = [
  383.                   'parent' => $context['_parent'],
  384.                   'index0' => 0,
  385.                   'index'  => 1,
  386.                   'first'  => true,
  387.                 ];
  388.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  389.                     $length count($context['_seq']);
  390.                     $context['loop']['revindex0'] = $length 1;
  391.                     $context['loop']['revindex'] = $length;
  392.                     $context['loop']['length'] = $length;
  393.                     $context['loop']['last'] = === $length;
  394.                 }
  395.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  396.                     // line 153
  397.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  398.                             <li class=\"ec-topicpath__item";
  399.                     // line 154
  400.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse154)) {
  401.                         echo "--active";
  402.                     }
  403.                     echo "\"><a
  404.                                         href=\"";
  405.                     // line 155
  406.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  407.                     echo "?category_id=";
  408.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse155), "html"nulltrue);
  409.                     echo "\">";
  410.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse155), "html"nulltrue);
  411.                     echo "</a>
  412.                             </li>
  413.                         ";
  414.                     ++$context['loop']['index0'];
  415.                     ++$context['loop']['index'];
  416.                     $context['loop']['first'] = false;
  417.                     if (isset($context['loop']['length'])) {
  418.                         --$context['loop']['revindex0'];
  419.                         --$context['loop']['revindex'];
  420.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  421.                     }
  422.                 }
  423.                 $_parent $context['_parent'];
  424.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  425.                 $context array_intersect_key($context$_parent) + $_parent;
  426.                 // line 158
  427.                 echo "                    ";
  428.             }
  429.             // line 159
  430.             echo "                    ";
  431.             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.'159$this->source); })()), "vars", [], "any"falsefalsefalse159), "value", [], "any"falsefalsefalse159) && 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.'159$this->source); })()), "vars", [], "any"falsefalsefalse159), "value", [], "any"falsefalsefalse159), "name", [], "any"falsefalsefalse159))) {
  432.                 // line 160
  433.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  434.                         <li class=\"ec-topicpath__item\">";
  435.                 // line 161
  436.                 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.'161$this->source); })()), "vars", [], "any"falsefalsefalse161), "value", [], "any"falsefalsefalse161), "name", [], "any"falsefalsefalse161)]), "html"nulltrue);
  437.                 echo "</li>
  438.                     ";
  439.             }
  440.             // line 163
  441.             echo "                </ol>
  442.             </div>
  443.             <div class=\"ec-searchnavRole__infos\">
  444.                 <div class=\"ec-searchnavRole__counter\">
  445.                     ";
  446.             // line 167
  447.             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)) {
  448.                 // line 168
  449.                 echo "                        ";
  450.                 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)]);
  451.                 echo "
  452.                     ";
  453.             } else {
  454.                 // line 170
  455.                 echo "                        <span>";
  456.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  457.                 echo "</span>
  458.                     ";
  459.             }
  460.             // line 172
  461.             echo "                </div>
  462.                 ";
  463.             // line 173
  464.             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)) {
  465.                 // line 174
  466.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  467.                         <div class=\"ec-select\">
  468.                             ";
  469.                 // line 176
  470.                 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"]]);
  471.                 echo "
  472.                             ";
  473.                 // line 177
  474.                 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"]]);
  475.                 echo "
  476.                         </div>
  477.                     </div>
  478.                 ";
  479.             }
  480.             // line 181
  481.             echo "            </div>
  482.         </div>
  483.         ";
  484.             // line 183
  485.             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)) {
  486.                 // line 184
  487.                 echo "            <div class=\"ec-shelfRole\">
  488.                 <ul class=\"ec-shelfGrid\">
  489.                     ";
  490.                 // line 186
  491.                 $context['_parent'] = $context;
  492.                 $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); })()));
  493.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  494.                     // line 187
  495.                     echo "                        <li class=\"ec-shelfGrid__item\">
  496.                             <a href=\"";
  497.                     // line 188
  498.                     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);
  499.                     echo "\">
  500.                                 <p class=\"ec-shelfGrid__item-image\">
  501.                                     <img src=\"";
  502.                     // line 190
  503.                     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);
  504.                     echo "\" alt=\"";
  505.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse190), "html"nulltrue);
  506.                     echo "\" loading=\"lazy\">
  507.                                 </p>
  508.                                 <p>";
  509.                     // line 192
  510.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse192), "html"nulltrue);
  511.                     echo "</p>
  512.                                 ";
  513.                     // line 193
  514.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse193)) {
  515.                         // line 194
  516.                         echo "                                    <p>";
  517.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse194));
  518.                         echo "</p>
  519.                                 ";
  520.                     }
  521.                     // line 196
  522.                     echo "                                <p class=\"price02-default\">
  523.                                     ";
  524.                     // line 197
  525.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse197)) {
  526.                         // line 198
  527.                         echo "                                        ";
  528.                         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))) {
  529.                             // line 199
  530.                             echo "                                            <span>寄付金額</span>";
  531.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse199)), "html"nulltrue);
  532.                             echo "円
  533.                                         ";
  534.                         } else {
  535.                             // line 201
  536.                             echo "                                            <span>寄付金額</span>";
  537.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse201)), "html"nulltrue);
  538.                             echo " ~ ";
  539.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse201)), "html"nulltrue);
  540.                             echo "円
  541.                                         ";
  542.                         }
  543.                         // line 203
  544.                         echo "                                    ";
  545.                     } else {
  546.                         // line 204
  547.                         echo "                                        <span>寄付金額</span>";
  548.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse204)), "html"nulltrue);
  549.                         echo "円
  550.                                     ";
  551.                     }
  552.                     // line 206
  553.                     echo "                                </p>
  554.                             </a>
  555.                         </li>
  556.                     ";
  557.                 }
  558.                 $_parent $context['_parent'];
  559.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  560.                 $context array_intersect_key($context$_parent) + $_parent;
  561.                 // line 210
  562.                 echo "                </ul>
  563.             </div>
  564.             <div class=\"ec-modal\">
  565.                 <div class=\"ec-modal-overlay\">
  566.                     <div class=\"ec-modal-wrap\">
  567.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  568.                 // line 215
  569.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  570.                 echo "\" alt=\"\"/></span></span>
  571.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  572.                 // line 216
  573.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  574.                 echo "</div>
  575.                         <div class=\"ec-modal-box\">
  576.                             <div class=\"ec-role\">
  577.                                 <span class=\"ec-inlineBtn--cancel\">";
  578.                 // line 219
  579.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  580.                 echo "</span>
  581.                                 <a href=\"";
  582.                 // line 220
  583.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  584.                 echo "\" class=\"ec-inlineBtn--action\">";
  585.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  586.                 echo "</a>
  587.                             </div>
  588.                         </div>
  589.                     </div>
  590.                 </div>
  591.             </div>
  592.             <div class=\"ec-pagerRole\">
  593.                 ";
  594.                 // line 227
  595.                 $this->loadTemplate("pager.twig""Product/list.twig"227)->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.'227$this->source); })()), "paginationData", [], "any"falsefalsefalse227)]));
  596.                 // line 228
  597.                 echo "            </div>
  598.         ";
  599.             }
  600.             // line 230
  601.             echo "    ";
  602.         }
  603.         
  604.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  605.         
  606.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  607.     }
  608.     public function getTemplateName()
  609.     {
  610.         return "Product/list.twig";
  611.     }
  612.     public function isTraitable()
  613.     {
  614.         return false;
  615.     }
  616.     public function getDebugInfo()
  617.     {
  618.         return array (  633 => 230,  629 => 228,  627 => 227,  615 => 220,  611 => 219,  605 => 216,  601 => 215,  594 => 210,  585 => 206,  579 => 204,  576 => 203,  568 => 201,  562 => 199,  559 => 198,  557 => 197,  554 => 196,  548 => 194,  546 => 193,  542 => 192,  535 => 190,  530 => 188,  527 => 187,  523 => 186,  519 => 184,  517 => 183,  513 => 181,  506 => 177,  502 => 176,  498 => 174,  496 => 173,  493 => 172,  487 => 170,  481 => 168,  479 => 167,  473 => 163,  468 => 161,  465 => 160,  462 => 159,  459 => 158,  438 => 155,  432 => 154,  429 => 153,  411 => 152,  409 => 151,  402 => 149,  397 => 146,  385 => 144,  381 => 143,  376 => 142,  372 => 141,  368 => 139,  362 => 136,  359 => 135,  356 => 134,  346 => 133,  319 => 115,  309 => 108,  278 => 80,  250 => 54,  236 => 53,  228 => 52,  211 => 51,  207 => 49,  197 => 48,  182 => 42,  178 => 41,  175 => 40,  157 => 37,  153 => 36,  149 => 35,  145 => 34,  141 => 33,  137 => 32,  118 => 31,  114 => 29,  111 => 28,  108 => 27,  105 => 26,  102 => 25,  99 => 24,  93 => 23,  90 => 22,  87 => 21,  82 => 20,  79 => 19,  77 => 18,  75 => 17,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  619.     }
  620.     public function getSourceContext()
  621.     {
  622.         return new Source("{#
  623. This file is part of EC-CUBE
  624. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  625. http://www.ec-cube.co.jp/
  626. For the full copyright and license information, please view the LICENSE
  627. file that was distributed with this source code.
  628. #}
  629. {% extends 'default_frame.twig' %}
  630. {% set body_class = 'product_page' %}
  631. {% block tracking_script %}
  632. {% set item_list_name = \"すべての商品\" %}
  633. {% set item_list_id = \"all\" %}
  634. {% if search_form.category_id.vars.errors|length == 0 %}
  635.     {% if Category is not null %}
  636.         {% for Path in Category.path %}
  637.             {% set item_list_name = Path.name %}
  638.             {% set item_list_id = \"category_\"~Path.id %}
  639.         {% endfor %}
  640.     {% endif %}
  641.     {% if search_form.vars.value and search_form.vars.value.name %}
  642.         {% set item_list_name = \"検索結果\" %}
  643.         {% set item_list_id = \"search\" %}
  644.     {% endif %}
  645.     <script>
  646.     gtag('event', 'view_item_list', {
  647.     items: [{% for Product in pagination %}{
  648.     item_id: '{{ Product.id }}',
  649.     item_name: '{{ Product.name }}',
  650.     index: {{ loop.index }},
  651.     item_list_name: '{{ item_list_name }}',
  652.     item_list_id: '{{ item_list_id }}',
  653.     price: {{ Product.getPrice02IncTaxMin }},
  654.     currency: 'JPY'
  655.     },
  656.     {% endfor %}],
  657.     item_list_name: '{{ item_list_name }}',
  658.     item_list_id: '{{ item_list_id }}'
  659.     });
  660.     </script>
  661. {% endif %}
  662. {% endblock %}
  663. {% block javascript %}
  664.     <script>
  665.         eccube.productsClassCategories = {
  666.             {% for Product in pagination %}
  667.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  668.             {% endfor %}
  669.         };
  670.         \$(function() {
  671.             // 表示件数を変更
  672.             \$('.disp-number').change(function() {
  673.                 var dispNumber = \$(this).val();
  674.                 \$('#disp_number').val(dispNumber);
  675.                 \$('#pageno').val(1);
  676.                 \$(\"#form1\").submit();
  677.             });
  678.             // 並び順を変更
  679.             \$('.order-by').change(function() {
  680.                 var orderBy = \$(this).val();
  681.                 \$('#orderby').val(orderBy);
  682.                 \$('#pageno').val(1);
  683.                 \$(\"#form1\").submit();
  684.             });
  685.             \$('.add-cart').on('click', function(e) {
  686.                 var \$form = \$(this).parents('li').find('form');
  687.                 // 個数フォームのチェック
  688.                 var \$quantity = \$form.parent().find('.quantity');
  689.                 if (\$quantity.val() < 1) {
  690.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  691.                     setTimeout(function() {
  692.                         loadingOverlay('hide');
  693.                     }, 100);
  694.                     return true;
  695.                 } else {
  696.                     \$quantity[0].setCustomValidity('');
  697.                 }
  698.                 e.preventDefault();
  699.                 \$.ajax({
  700.                     url: \$form.attr('action'),
  701.                     type: \$form.attr('method'),
  702.                     data: \$form.serialize(),
  703.                     dataType: 'json',
  704.                     beforeSend: function(xhr, settings) {
  705.                         // Buttonを無効にする
  706.                         \$('.add-cart').prop('disabled', true);
  707.                     }
  708.                 }).done(function(data) {
  709.                     // レスポンス内のメッセージをalertで表示
  710.                     \$.each(data.messages, function() {
  711.                         \$('#ec-modal-header').html(this);
  712.                     });
  713.                     \$('.ec-modal').show()
  714.                     // カートブロックを更新する
  715.                     \$.ajax({
  716.                         url: '{{ url('block_cart') }}',
  717.                         type: 'GET',
  718.                         dataType: 'html'
  719.                     }).done(function(html) {
  720.                         \$('.ec-headerRole__cart').html(html);
  721.                     });
  722.                 }).fail(function(data) {
  723.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  724.                 }).always(function(data) {
  725.                     // Buttonを有効にする
  726.                     \$('.add-cart').prop('disabled', false);
  727.                 });
  728.             });
  729.         });
  730.         \$('.ec-modal-wrap').on('click', function(e) {
  731.             // モーダル内の処理は外側にバブリングさせない
  732.             e.stopPropagation();
  733.         });
  734.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  735.             \$('.ec-modal').hide()
  736.         });
  737.     </script>
  738. {% endblock %}
  739. {% block main %}
  740.     {% if search_form.category_id.vars.errors|length > 0 %}
  741.         <div class=\"ec-searchnavRole\">
  742.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  743.         </div>
  744.     {% else %}
  745.         <div class=\"ec-searchnavRole\">
  746.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  747.                 {% for item in search_form %}
  748.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  749.                            name=\"{{ item.vars.full_name }}\"
  750.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  751.                 {% endfor %}
  752.             </form>
  753.             <div class=\"ec-searchnavRole__topicpath\">
  754.                 <ol class=\"ec-topicpath\">
  755.                     <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  756.                     </li>
  757.                     {% if Category is not null %}
  758.                         {% for Path in Category.path %}
  759.                             <li class=\"ec-topicpath__divider\">|</li>
  760.                             <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
  761.                                         href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  762.                             </li>
  763.                         {% endfor %}
  764.                     {% endif %}
  765.                     {% if search_form.vars.value and search_form.vars.value.name %}
  766.                         <li class=\"ec-topicpath__divider\">|</li>
  767.                         <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  768.                     {% endif %}
  769.                 </ol>
  770.             </div>
  771.             <div class=\"ec-searchnavRole__infos\">
  772.                 <div class=\"ec-searchnavRole__counter\">
  773.                     {% if pagination.totalItemCount > 0 %}
  774.                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>のお礼の品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  775.                     {% else %}
  776.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  777.                     {% endif %}
  778.                 </div>
  779.                 {% if pagination.totalItemCount > 0 %}
  780.                     <div class=\"ec-searchnavRole__actions\">
  781.                         <div class=\"ec-select\">
  782.                             {{ form_widget(disp_number_form, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  783.                             {{ form_widget(order_by_form, {'id': '', 'attr': {'class': 'order-by'}}) }}
  784.                         </div>
  785.                     </div>
  786.                 {% endif %}
  787.             </div>
  788.         </div>
  789.         {% if pagination.totalItemCount > 0 %}
  790.             <div class=\"ec-shelfRole\">
  791.                 <ul class=\"ec-shelfGrid\">
  792.                     {% for Product in pagination %}
  793.                         <li class=\"ec-shelfGrid__item\">
  794.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  795.                                 <p class=\"ec-shelfGrid__item-image\">
  796.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" loading=\"lazy\">
  797.                                 </p>
  798.                                 <p>{{ Product.name }}</p>
  799.                                 {% if Product.description_list %}
  800.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  801.                                 {% endif %}
  802.                                 <p class=\"price02-default\">
  803.                                     {% if Product.hasProductClass %}
  804.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  805.                                             <span>寄付金額</span>{{ Product.getPrice02IncTaxMin|number_format }}円
  806.                                         {% else %}
  807.                                             <span>寄付金額</span>{{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }}円
  808.                                         {% endif %}
  809.                                     {% else %}
  810.                                         <span>寄付金額</span>{{ Product.getPrice02IncTaxMin|number_format }}円
  811.                                     {% endif %}
  812.                                 </p>
  813.                             </a>
  814.                         </li>
  815.                     {% endfor %}
  816.                 </ul>
  817.             </div>
  818.             <div class=\"ec-modal\">
  819.                 <div class=\"ec-modal-overlay\">
  820.                     <div class=\"ec-modal-wrap\">
  821.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  822.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  823.                         <div class=\"ec-modal-box\">
  824.                             <div class=\"ec-role\">
  825.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  826.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  827.                             </div>
  828.                         </div>
  829.                     </div>
  830.                 </div>
  831.             </div>
  832.             <div class=\"ec-pagerRole\">
  833.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  834.             </div>
  835.         {% endif %}
  836.     {% endif %}
  837. {% endblock %}
  838. ""Product/list.twig""/home/cajiya/fjdksla.com/public_html/cocofuru.fjdksla.com/src/Eccube/Resource/template/default/Product/list.twig");
  839.     }
  840. }