var/cache/dev/twig/4f/4f6e3973a740da01863a9efc47b8550c.php line 41

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_15edab61be242ab342184e6b43d39777 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 11
  32.         return "default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_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_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.     }
  47.     // line 15
  48.     public function block_javascript($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  53.         // line 16
  54.         echo "    <script>
  55.         eccube.productsClassCategories = {
  56.             ";
  57.         // line 18
  58.         $context['_parent'] = $context;
  59.         $context['_seq'] = twig_ensure_traversable(($context["pagination"] ?? null));
  60.         $context['loop'] = [
  61.           'parent' => $context['_parent'],
  62.           'index0' => 0,
  63.           'index'  => 1,
  64.           'first'  => true,
  65.         ];
  66.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  67.             $length count($context['_seq']);
  68.             $context['loop']['revindex0'] = $length 1;
  69.             $context['loop']['revindex'] = $length;
  70.             $context['loop']['length'] = $length;
  71.             $context['loop']['last'] = === $length;
  72.         }
  73.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  74.             // line 19
  75.             echo "            \"";
  76.             echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue19), 19$this->source), "js"), "html"nulltrue);
  77.             echo "\": ";
  78.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 19$this->source));
  79.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue19) == false)) {
  80.                 echo ", ";
  81.             }
  82.             // line 20
  83.             echo "            ";
  84.             ++$context['loop']['index0'];
  85.             ++$context['loop']['index'];
  86.             $context['loop']['first'] = false;
  87.             if (isset($context['loop']['length'])) {
  88.                 --$context['loop']['revindex0'];
  89.                 --$context['loop']['revindex'];
  90.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  91.             }
  92.         }
  93.         $_parent $context['_parent'];
  94.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  95.         $context array_intersect_key($context$_parent) + $_parent;
  96.         // line 21
  97.         echo "        };
  98.         \$(function() {
  99.             // 表示件数を変更
  100.             \$('.disp-number').change(function() {
  101.                 var dispNumber = \$(this).val();
  102.                 \$('#disp_number').val(dispNumber);
  103.                 \$('#pageno').val(1);
  104.                 \$(\"#form1\").submit();
  105.             });
  106.             // 並び順を変更
  107.             \$('.order-by').change(function() {
  108.                 var orderBy = \$(this).val();
  109.                 \$('#orderby').val(orderBy);
  110.                 \$('#pageno').val(1);
  111.                 \$(\"#form1\").submit();
  112.             });
  113.             \$('.add-cart').on('click', function(e) {
  114.                 var \$form = \$(this).parents('li').find('form');
  115.                 // 個数フォームのチェック
  116.                 var \$quantity = \$form.parent().find('.quantity');
  117.                 if (\$quantity.val() < 1) {
  118.                     \$quantity[0].setCustomValidity('";
  119.         // line 47
  120.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  121.         echo "');
  122.                     setTimeout(function() {
  123.                         loadingOverlay('hide');
  124.                     }, 100);
  125.                     return true;
  126.                 } else {
  127.                     \$quantity[0].setCustomValidity('');
  128.                 }
  129.                 e.preventDefault();
  130.                 \$.ajax({
  131.                     url: \$form.attr('action'),
  132.                     type: \$form.attr('method'),
  133.                     data: \$form.serialize(),
  134.                     dataType: 'json',
  135.                     beforeSend: function(xhr, settings) {
  136.                         // Buttonを無効にする
  137.                         \$('.add-cart').prop('disabled', true);
  138.                     }
  139.                 }).done(function(data) {
  140.                     // レスポンス内のメッセージをalertで表示
  141.                     \$.each(data.messages, function() {
  142.                         \$('#ec-modal-header').text(this);
  143.                     });
  144.                     \$('.ec-modal').show()
  145.                     // カートブロックを更新する
  146.                     \$.ajax({
  147.                         url: '";
  148.         // line 75
  149.         echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("block_cart");
  150.         echo "',
  151.                         type: 'GET',
  152.                         dataType: 'html'
  153.                     }).done(function(html) {
  154.                         \$('.ec-headerRole__cart').html(html);
  155.                     });
  156.                 }).fail(function(data) {
  157.                     alert('";
  158.         // line 82
  159.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  160.         echo "');
  161.                 }).always(function(data) {
  162.                     // Buttonを有効にする
  163.                     \$('.add-cart').prop('disabled', false);
  164.                 });
  165.             });
  166.         });
  167.         \$('.ec-modal-wrap').on('click', function(e) {
  168.             // モーダル内の処理は外側にバブリングさせない
  169.             e.stopPropagation();
  170.         });
  171.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  172.             \$('.ec-modal').hide()
  173.         });
  174.     </script>
  175. ";
  176.         
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  178.     }
  179.     // line 100
  180.     public function block_main($context, array $blocks = [])
  181.     {
  182.         $macros $this->macros;
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  184.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  185.         // line 101
  186.         echo "    ";
  187.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "category_id", [], "any"falsefalsetrue101), "vars", [], "any"falsefalsetrue101), "errors", [], "any"falsefalsetrue101)) > 0)) {
  188.             // line 102
  189.             echo "        <div class=\"ec-searchnavRole\">
  190.             <p class=\"errormsg text-danger\">";
  191.             // line 103
  192.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  193.             echo "</p>
  194.         </div>
  195.     ";
  196.         } else {
  197.             // line 106
  198.             echo "        <div class=\"ec-searchnavRole\">
  199.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  200.                 ";
  201.             // line 108
  202.             $context['_parent'] = $context;
  203.             $context['_seq'] = twig_ensure_traversable(($context["search_form"] ?? null));
  204.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  205.                 // line 109
  206.                 echo "                    <input type=\"hidden\" id=\"";
  207.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue109), "id", [], "any"falsefalsetrue109), 109$this->source), "html"nulltrue);
  208.                 echo "\"
  209.                            name=\"";
  210.                 // line 110
  211.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue110), "full_name", [], "any"falsefalsetrue110), 110$this->source), "html"nulltrue);
  212.                 echo "\"
  213.                            ";
  214.                 // line 111
  215.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue111), "value", [], "any"falsefalsetrue111))) {
  216.                     echo "value=\"";
  217.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue111), "value", [], "any"falsefalsetrue111), 111$this->source), "html"nulltrue);
  218.                     echo "\" ";
  219.                 }
  220.                 echo "/>
  221.                 ";
  222.             }
  223.             $_parent $context['_parent'];
  224.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  225.             $context array_intersect_key($context$_parent) + $_parent;
  226.             // line 113
  227.             echo "            </form>
  228.             <div class=\"ec-searchnavRole__topicpath\">
  229.                 <ol class=\"ec-topicpath\">
  230.                     <li class=\"ec-topicpath__item\"><a href=\"";
  231.             // line 116
  232.             echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_list");
  233.             echo "\">";
  234.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  235.             echo "</a>
  236.                     </li>
  237.                     ";
  238.             // line 118
  239.             if ( !(null === ($context["Category"] ?? null))) {
  240.                 // line 119
  241.                 echo "                        ";
  242.                 $context['_parent'] = $context;
  243.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, ($context["Category"] ?? null), "path", [], "any"falsefalsetrue119));
  244.                 $context['loop'] = [
  245.                   'parent' => $context['_parent'],
  246.                   'index0' => 0,
  247.                   'index'  => 1,
  248.                   'first'  => true,
  249.                 ];
  250.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  251.                     $length count($context['_seq']);
  252.                     $context['loop']['revindex0'] = $length 1;
  253.                     $context['loop']['revindex'] = $length;
  254.                     $context['loop']['length'] = $length;
  255.                     $context['loop']['last'] = === $length;
  256.                 }
  257.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  258.                     // line 120
  259.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  260.                             <li class=\"ec-topicpath__item";
  261.                     // line 121
  262.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue121)) {
  263.                         echo "--active";
  264.                     }
  265.                     echo "\"><a
  266.                                         href=\"";
  267.                     // line 122
  268.                     echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_list");
  269.                     echo "?category_id=";
  270.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsetrue122), 122$this->source), "html"nulltrue);
  271.                     echo "\">";
  272.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsetrue122), 122$this->source), "html"nulltrue);
  273.                     echo "</a>
  274.                             </li>
  275.                         ";
  276.                     ++$context['loop']['index0'];
  277.                     ++$context['loop']['index'];
  278.                     $context['loop']['first'] = false;
  279.                     if (isset($context['loop']['length'])) {
  280.                         --$context['loop']['revindex0'];
  281.                         --$context['loop']['revindex'];
  282.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  283.                     }
  284.                 }
  285.                 $_parent $context['_parent'];
  286.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  287.                 $context array_intersect_key($context$_parent) + $_parent;
  288.                 // line 125
  289.                 echo "                    ";
  290.             }
  291.             // line 126
  292.             echo "                    ";
  293.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsetrue126), "value", [], "any"falsefalsetrue126) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "vars", [], "any"falsefalsetrue126), "value", [], "any"falsefalsetrue126), "name", [], "any"falsefalsetrue126))) {
  294.                 // line 127
  295.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  296.                         <li class=\"ec-topicpath__item\">";
  297.                 // line 128
  298.                 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, ($context["search_form"] ?? null), "vars", [], "any"falsefalsetrue128), "value", [], "any"falsefalsetrue128), "name", [], "any"falsefalsetrue128)]), "html"nulltrue);
  299.                 echo "</li>
  300.                     ";
  301.             }
  302.             // line 130
  303.             echo "                </ol>
  304.             </div>
  305.             <div class=\"ec-searchnavRole__infos\">
  306.                 <div class=\"ec-searchnavRole__counter\">
  307.                     ";
  308.             // line 134
  309.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsetrue134) > 0)) {
  310.                 // line 135
  311.                 echo "                        ";
  312.                 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, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsetrue135)]);
  313.                 echo "
  314.                     ";
  315.             } else {
  316.                 // line 137
  317.                 echo "                        <span>";
  318.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  319.                 echo "</span>
  320.                     ";
  321.             }
  322.             // line 139
  323.             echo "                </div>
  324.                 ";
  325.             // line 140
  326.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsetrue140) > 0)) {
  327.                 // line 141
  328.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  329.                         <div class=\"ec-select\">
  330.                             ";
  331.                 // line 143
  332.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "disp_number", [], "any"falsefalsetrue143), 143$this->source), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  333.                 echo "
  334.                             ";
  335.                 // line 144
  336.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["search_form"] ?? null), "orderby", [], "any"falsefalsetrue144), 144$this->source), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  337.                 echo "
  338.                         </div>
  339.                     </div>
  340.                 ";
  341.             }
  342.             // line 148
  343.             echo "            </div>
  344.         </div>
  345.         ";
  346.             // line 150
  347.             if ((twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any"falsefalsetrue150) > 0)) {
  348.                 // line 151
  349.                 echo "            <div class=\"ec-shelfRole\">
  350.                 <ul class=\"ec-shelfGrid\">
  351.                     ";
  352.                 // line 153
  353.                 $context['_parent'] = $context;
  354.                 $context['_seq'] = twig_ensure_traversable(($context["pagination"] ?? null));
  355.                 $context['loop'] = [
  356.                   'parent' => $context['_parent'],
  357.                   'index0' => 0,
  358.                   'index'  => 1,
  359.                   'first'  => true,
  360.                 ];
  361.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  362.                     $length count($context['_seq']);
  363.                     $context['loop']['revindex0'] = $length 1;
  364.                     $context['loop']['revindex'] = $length;
  365.                     $context['loop']['length'] = $length;
  366.                     $context['loop']['last'] = === $length;
  367.                 }
  368.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  369.                     // line 154
  370.                     echo "                        <li class=\"ec-shelfGrid__item\">
  371.                             <a href=\"";
  372.                     // line 155
  373.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue155)]), "html"nulltrue);
  374.                     echo "\">
  375.                                 <p class=\"ec-shelfGrid__item-image\">
  376.                                     <img src=\"";
  377.                     // line 157
  378.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsetrue157), 157$this->source)), "save_image"), "html"nulltrue);
  379.                     echo "\" alt=\"";
  380.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue157), 157$this->source), "html"nulltrue);
  381.                     echo "\" ";
  382.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue157) > 5)) {
  383.                         echo " loading=\"lazy\"";
  384.                     }
  385.                     echo ">
  386.                                 </p>
  387.                                 <p>";
  388.                     // line 159
  389.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue159), 159$this->source), "html"nulltrue);
  390.                     echo "</p>
  391.                                 ";
  392.                     // line 160
  393.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsetrue160)) {
  394.                         // line 161
  395.                         echo "                                    <p>";
  396.                         echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsetrue161), 161$this->source));
  397.                         echo "</p>
  398.                                 ";
  399.                     }
  400.                     // line 163
  401.                     echo "                                <p class=\"price02-default\">
  402.                                     ";
  403.                     // line 164
  404.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsetrue164)) {
  405.                         // line 165
  406.                         echo "                                        ";
  407.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsetrue165) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsetrue165))) {
  408.                             // line 166
  409.                             echo "                                            ";
  410.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue166), 166$this->source)), "html"nulltrue);
  411.                             echo "
  412.                                         ";
  413.                         } else {
  414.                             // line 168
  415.                             echo "                                            ";
  416.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue168), 168$this->source)), "html"nulltrue);
  417.                             echo " ~ ";
  418.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsetrue168), 168$this->source)), "html"nulltrue);
  419.                             echo "
  420.                                         ";
  421.                         }
  422.                         // line 170
  423.                         echo "                                    ";
  424.                     } else {
  425.                         // line 171
  426.                         echo "                                        ";
  427.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue171), 171$this->source)), "html"nulltrue);
  428.                         echo "
  429.                                     ";
  430.                     }
  431.                     // line 173
  432.                     echo "                                </p>
  433.                             </a>
  434.                             ";
  435.                     // line 176
  436.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsetrue176)) {
  437.                         // line 177
  438.                         echo "                                ";
  439.                         // line 178
  440.                         echo "                                ";
  441.                         // line 179
  442.                         echo "
  443.                             ";
  444.                     } else {
  445.                         // line 181
  446.                         echo "                                ";
  447.                         // line 182
  448.                         echo "                                <div class=\"ec-productRole__btn\">
  449.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  450.                                         ";
  451.                         // line 184
  452.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("品切れ中"), "html"nulltrue);
  453.                         echo "
  454.                                     </button>
  455.                                 </div>
  456.                             ";
  457.                     }
  458.                     // line 188
  459.                     echo "                        </li>
  460.                     ";
  461.                     ++$context['loop']['index0'];
  462.                     ++$context['loop']['index'];
  463.                     $context['loop']['first'] = false;
  464.                     if (isset($context['loop']['length'])) {
  465.                         --$context['loop']['revindex0'];
  466.                         --$context['loop']['revindex'];
  467.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  468.                     }
  469.                 }
  470.                 $_parent $context['_parent'];
  471.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  472.                 $context array_intersect_key($context$_parent) + $_parent;
  473.                 // line 190
  474.                 echo "                </ul>
  475.             </div>
  476.             <div class=\"ec-modal\">
  477.                 <div class=\"ec-modal-overlay\">
  478.                     <div class=\"ec-modal-wrap\">
  479.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  480.                 // line 195
  481.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  482.                 echo "\" alt=\"\"/></span></span>
  483.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  484.                 // line 196
  485.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  486.                 echo "</div>
  487.                         <div class=\"ec-modal-box\">
  488.                             <div class=\"ec-role\">
  489.                                 <span class=\"ec-inlineBtn--cancel\">";
  490.                 // line 199
  491.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  492.                 echo "</span>
  493.                                 <a href=\"";
  494.                 // line 200
  495.                 echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("cart");
  496.                 echo "\" class=\"ec-inlineBtn--action\">";
  497.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  498.                 echo "</a>
  499.                             </div>
  500.                         </div>
  501.                     </div>
  502.                 </div>
  503.             </div>
  504.             <div class=\"ec-pagerRole\">
  505.                 ";
  506.                 // line 207
  507.                 $this->loadTemplate("pager.twig""Product/list.twig"207)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "paginationData", [], "any"falsefalsetrue207)]));
  508.                 // line 208
  509.                 echo "            </div>
  510.         ";
  511.             }
  512.             // line 210
  513.             echo "    ";
  514.         }
  515.         
  516.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  517.     }
  518.     public function getTemplateName()
  519.     {
  520.         return "Product/list.twig";
  521.     }
  522.     public function isTraitable()
  523.     {
  524.         return false;
  525.     }
  526.     public function getDebugInfo()
  527.     {
  528.         return array (  536 => 210,  532 => 208,  530 => 207,  518 => 200,  514 => 199,  508 => 196,  504 => 195,  497 => 190,  482 => 188,  475 => 184,  471 => 182,  469 => 181,  465 => 179,  463 => 178,  461 => 177,  459 => 176,  454 => 173,  448 => 171,  445 => 170,  437 => 168,  431 => 166,  428 => 165,  426 => 164,  423 => 163,  417 => 161,  415 => 160,  411 => 159,  400 => 157,  395 => 155,  392 => 154,  375 => 153,  371 => 151,  369 => 150,  365 => 148,  358 => 144,  354 => 143,  350 => 141,  348 => 140,  345 => 139,  339 => 137,  333 => 135,  331 => 134,  325 => 130,  320 => 128,  317 => 127,  314 => 126,  311 => 125,  290 => 122,  284 => 121,  281 => 120,  263 => 119,  261 => 118,  254 => 116,  249 => 113,  237 => 111,  233 => 110,  228 => 109,  224 => 108,  220 => 106,  214 => 103,  211 => 102,  208 => 101,  201 => 100,  177 => 82,  167 => 75,  136 => 47,  108 => 21,  94 => 20,  86 => 19,  69 => 18,  65 => 16,  58 => 15,  50 => 11,  48 => 13,  38 => 11,);
  529.     }
  530.     public function getSourceContext()
  531.     {
  532.         return new Source("""Product/list.twig""/home/carry/staging-page.com/public_html/koyama.staging-page.com/app/template/kaitekikabe/Product/list.twig");
  533.     }
  534.     
  535.     public function checkSecurity()
  536.     {
  537.         static $tags = array("set" => 13"for" => 18"if" => 19"include" => 207);
  538.         static $filters = array("escape" => 19"raw" => 19"trans" => 47"length" => 101"no_image_product" => 157"nl2br" => 161"price" => 166);
  539.         static $functions = array("class_categories_as_json" => 19"url" => 75"form_widget" => 143"asset" => 157);
  540.         try {
  541.             $this->sandbox->checkSecurity(
  542.                 ['set''for''if''include'],
  543.                 ['escape''raw''trans''length''no_image_product''nl2br''price'],
  544.                 ['class_categories_as_json''url''form_widget''asset']
  545.             );
  546.         } catch (SecurityError $e) {
  547.             $e->setSourceContext($this->source);
  548.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  549.                 $e->setTemplateLine($tags[$e->getTagName()]);
  550.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  551.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  552.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  553.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  554.             }
  555.             throw $e;
  556.         }
  557.     }
  558. }