var/cache/dev/twig/fb/fb0508c858b1d1f2f4f8032e2b303db79995dce4e2e6a6fe4ceddcccac56bc1e.php line 42

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_3be7e494934bcab98a93de2aaec9fd851029dfbbb1f3294c001d63001fc89693 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.             'pagetitlearea' => [$this'block_pagetitlearea'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 11
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  42.         // line 13
  43.         $context["body_class"] = "product_page";
  44.         // line 11
  45.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 15
  53.     public function block_javascript($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  60.         // line 16
  61.         echo "    <script>
  62.         eccube.productsClassCategories = {
  63.             ";
  64.         // line 18
  65.         $context['_parent'] = $context;
  66.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'18$this->source); })()));
  67.         $context['loop'] = [
  68.           'parent' => $context['_parent'],
  69.           'index0' => 0,
  70.           'index'  => 1,
  71.           'first'  => true,
  72.         ];
  73.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  74.             $length count($context['_seq']);
  75.             $context['loop']['revindex0'] = $length 1;
  76.             $context['loop']['revindex'] = $length;
  77.             $context['loop']['length'] = $length;
  78.             $context['loop']['last'] = === $length;
  79.         }
  80.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  81.             // line 19
  82.             echo "            \"";
  83.             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);
  84.             echo "\": ";
  85.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 19$this->source));
  86.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue19) == false)) {
  87.                 echo ", ";
  88.             }
  89.             // line 20
  90.             echo "            ";
  91.             ++$context['loop']['index0'];
  92.             ++$context['loop']['index'];
  93.             $context['loop']['first'] = false;
  94.             if (isset($context['loop']['length'])) {
  95.                 --$context['loop']['revindex0'];
  96.                 --$context['loop']['revindex'];
  97.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  98.             }
  99.         }
  100.         $_parent $context['_parent'];
  101.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  102.         $context array_intersect_key($context$_parent) + $_parent;
  103.         // line 21
  104.         echo "        };
  105.         \$(function() {
  106.             // 表示件数を変更
  107.             \$('.disp-number').change(function() {
  108.                 var dispNumber = \$(this).val();
  109.                 \$('#disp_number').val(dispNumber);
  110.                 \$('#pageno').val(1);
  111.                 \$(\"#form1\").submit();
  112.             });
  113.             // 並び順を変更
  114.             \$('.order-by').change(function() {
  115.                 var orderBy = \$(this).val();
  116.                 \$('#orderby').val(orderBy);
  117.                 \$('#pageno').val(1);
  118.                 \$(\"#form1\").submit();
  119.             });
  120.             \$('.add-cart').on('click', function(e) {
  121.                 var \$form = \$(this).parents('li').find('form');
  122.                 // 個数フォームのチェック
  123.                 var \$quantity = \$form.parent().find('.quantity');
  124.                 if (\$quantity.val() < 1) {
  125.                     \$quantity[0].setCustomValidity('";
  126.         // line 47
  127.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  128.         echo "');
  129.                     setTimeout(function() {
  130.                         loadingOverlay('hide');
  131.                     }, 100);
  132.                     return true;
  133.                 } else {
  134.                     \$quantity[0].setCustomValidity('');
  135.                 }
  136.                 e.preventDefault();
  137.                 \$.ajax({
  138.                     url: \$form.attr('action'),
  139.                     type: \$form.attr('method'),
  140.                     data: \$form.serialize(),
  141.                     dataType: 'json',
  142.                     beforeSend: function(xhr, settings) {
  143.                         // Buttonを無効にする
  144.                         \$('.add-cart').prop('disabled', true);
  145.                     }
  146.                 }).done(function(data) {
  147.                     // レスポンス内のメッセージをalertで表示
  148.                     \$.each(data.messages, function() {
  149.                         \$('#ec-modal-header').text(this);
  150.                     });
  151.                     \$('.ec-modal').show()
  152.                     // カートブロックを更新する
  153.                     \$.ajax({
  154.                         url: '";
  155.         // line 75
  156.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  157.         echo "',
  158.                         type: 'GET',
  159.                         dataType: 'html'
  160.                     }).done(function(html) {
  161.                         \$('.ec-headerRole__cart').html(html);
  162.                     });
  163.                 }).fail(function(data) {
  164.                     alert('";
  165.         // line 82
  166.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  167.         echo "');
  168.                 }).always(function(data) {
  169.                     // Buttonを有効にする
  170.                     \$('.add-cart').prop('disabled', false);
  171.                 });
  172.             });
  173.         });
  174.         \$('.ec-modal-wrap').on('click', function(e) {
  175.             // モーダル内の処理は外側にバブリングさせない
  176.             e.stopPropagation();
  177.         });
  178.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  179.             \$('.ec-modal').hide()
  180.         });
  181.     </script>
  182. ";
  183.         
  184.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  185.         
  186.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  187.     }
  188.     // line 103
  189.     public function block_pagetitlearea($context, array $blocks = [])
  190.     {
  191.         $macros $this->macros;
  192.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  193.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pagetitlearea"));
  194.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  195.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pagetitlearea"));
  196.         // line 104
  197.         echo "
  198. <div class=\"main-top\">
  199. \t\t";
  200.         // line 108
  201.         echo "\t\t<div id=\"pagetitle\">
  202. \t\t\t<h2>
  203. \t\t\t\tPRODUCT
  204. \t\t\t\t<small>商品</small>
  205. \t\t\t</h2>
  206. \t\t\t<div class=\"image\">
  207. \t\t\t\t<img src=\"";
  208.         // line 114
  209.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/assets/images/pagetitle-image-product.jpg"), "html"nulltrue);
  210.         echo "\">
  211. \t\t\t</div>
  212. \t\t</div>
  213. \t</div>
  214. ";
  215.         
  216.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  217.         
  218.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  219.     }
  220.     // line 122
  221.     public function block_main($context, array $blocks = [])
  222.     {
  223.         $macros $this->macros;
  224.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  225.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  226.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  227.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  228.         // line 123
  229.         echo "
  230.     ";
  231.         // line 129
  232.         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.'129$this->source); })()), "category_id", [], "any"falsefalsetrue129), "vars", [], "any"falsefalsetrue129), "errors", [], "any"falsefalsetrue129)) > 0)) {
  233.             // line 130
  234.             echo "        <div class=\"ec-searchnavRole\">
  235.             <p class=\"errormsg text-danger\">";
  236.             // line 131
  237.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  238.             echo "</p>
  239.         </div>
  240.     ";
  241.         } else {
  242.             // line 134
  243.             echo "        <div class=\"ec-searchnavRole\">
  244.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  245.                 ";
  246.             // line 136
  247.             $context['_parent'] = $context;
  248.             $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.'136$this->source); })()));
  249.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  250.                 // line 137
  251.                 echo "                    <input type=\"hidden\" id=\"";
  252.                 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"falsefalsetrue137), "id", [], "any"falsefalsetrue137), 137$this->source), "html"nulltrue);
  253.                 echo "\"
  254.                            name=\"";
  255.                 // line 138
  256.                 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"falsefalsetrue138), "full_name", [], "any"falsefalsetrue138), 138$this->source), "html"nulltrue);
  257.                 echo "\"
  258.                            ";
  259.                 // line 139
  260.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsetrue139), "value", [], "any"falsefalsetrue139))) {
  261.                     echo "value=\"";
  262.                     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"falsefalsetrue139), "value", [], "any"falsefalsetrue139), 139$this->source), "html"nulltrue);
  263.                     echo "\" ";
  264.                 }
  265.                 echo "/>
  266.                 ";
  267.             }
  268.             $_parent $context['_parent'];
  269.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  270.             $context array_intersect_key($context$_parent) + $_parent;
  271.             // line 141
  272.             echo "            </form>
  273.             <div class=\"ec-searchnavRole__topicpath\">
  274.                 <ol class=\"ec-topicpath\">
  275.                     <li class=\"ec-topicpath__item\"><a href=\"";
  276.             // line 144
  277.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  278.             echo "\">";
  279.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  280.             echo "</a>
  281.                     </li>
  282.                     ";
  283.             // line 146
  284.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'146$this->source); })()))) {
  285.                 // line 147
  286.                 echo "                        ";
  287.                 $context['_parent'] = $context;
  288.                 $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.'147$this->source); })()), "path", [], "any"falsefalsetrue147));
  289.                 $context['loop'] = [
  290.                   'parent' => $context['_parent'],
  291.                   'index0' => 0,
  292.                   'index'  => 1,
  293.                   'first'  => true,
  294.                 ];
  295.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  296.                     $length count($context['_seq']);
  297.                     $context['loop']['revindex0'] = $length 1;
  298.                     $context['loop']['revindex'] = $length;
  299.                     $context['loop']['length'] = $length;
  300.                     $context['loop']['last'] = === $length;
  301.                 }
  302.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  303.                     // line 148
  304.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  305.                             <li class=\"ec-topicpath__item";
  306.                     // line 149
  307.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue149)) {
  308.                         echo "--active";
  309.                     }
  310.                     echo "\"><a
  311.                                         href=\"";
  312.                     // line 150
  313.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  314.                     echo "?category_id=";
  315.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsetrue150), 150$this->source), "html"nulltrue);
  316.                     echo "\">";
  317.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsetrue150), 150$this->source), "html"nulltrue);
  318.                     echo "</a>
  319.                             </li>
  320.                         ";
  321.                     ++$context['loop']['index0'];
  322.                     ++$context['loop']['index'];
  323.                     $context['loop']['first'] = false;
  324.                     if (isset($context['loop']['length'])) {
  325.                         --$context['loop']['revindex0'];
  326.                         --$context['loop']['revindex'];
  327.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  328.                     }
  329.                 }
  330.                 $_parent $context['_parent'];
  331.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  332.                 $context array_intersect_key($context$_parent) + $_parent;
  333.                 // line 153
  334.                 echo "                    ";
  335.             }
  336.             // line 154
  337.             echo "                    ";
  338.             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.'154$this->source); })()), "vars", [], "any"falsefalsetrue154), "value", [], "any"falsefalsetrue154) && 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.'154$this->source); })()), "vars", [], "any"falsefalsetrue154), "value", [], "any"falsefalsetrue154), "name", [], "any"falsefalsetrue154))) {
  339.                 // line 155
  340.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  341.                         <li class=\"ec-topicpath__item\">";
  342.                 // line 156
  343.                 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.'156$this->source); })()), "vars", [], "any"falsefalsetrue156), "value", [], "any"falsefalsetrue156), "name", [], "any"falsefalsetrue156)]), "html"nulltrue);
  344.                 echo "</li>
  345.                     ";
  346.             }
  347.             // line 158
  348.             echo "                </ol>
  349.             </div>
  350.             <div class=\"ec-searchnavRole__infos\">
  351.                 <div class=\"ec-searchnavRole__counter\">
  352.                     ";
  353.             // line 165
  354.             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.'165$this->source); })()), "totalItemCount", [], "any"falsefalsetrue165) > 0)) {
  355.                 // line 166
  356.                 echo "                        ";
  357.                 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.'166$this->source); })()), "totalItemCount", [], "any"falsefalsetrue166)]);
  358.                 echo "
  359.                     ";
  360.             } else {
  361.                 // line 168
  362.                 echo "                        <span>";
  363.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  364.                 echo "</span>
  365.                     ";
  366.             }
  367.             // line 170
  368.             echo "                </div>
  369.                 ";
  370.             // line 171
  371.             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.'171$this->source); })()), "totalItemCount", [], "any"falsefalsetrue171) > 0)) {
  372.                 // line 172
  373.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  374.                         <div class=\"ec-select\">
  375.                             ";
  376.                 // line 174
  377.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'174$this->source); })()), "disp_number", [], "any"falsefalsetrue174), 174$this->source), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  378.                 echo "
  379.                             ";
  380.                 // line 175
  381.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'175$this->source); })()), "orderby", [], "any"falsefalsetrue175), 175$this->source), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  382.                 echo "
  383.                         </div>
  384.                     </div>
  385.                 ";
  386.             }
  387.             // line 179
  388.             echo "            </div>
  389.         </div>
  390.         ";
  391.             // line 181
  392.             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.'181$this->source); })()), "totalItemCount", [], "any"falsefalsetrue181) > 0)) {
  393.                 // line 182
  394.                 echo "
  395. <section id=\"carender\">
  396. ";
  397.                 // line 188
  398.                 $context["recomendTag"] = 13;
  399.                 // line 189
  400.                 echo "
  401. ";
  402.                 // line 190
  403.                 if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'190$this->source); })()))) {
  404.                     // line 191
  405.                     echo "
  406. ";
  407.                     // line 193
  408.                     $context["lastCategoryId"] = null;
  409.                     // line 194
  410.                     $context['_parent'] = $context;
  411.                     $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.'194$this->source); })()), "path", [], "any"falsefalsetrue194));
  412.                     $context['loop'] = [
  413.                       'parent' => $context['_parent'],
  414.                       'index0' => 0,
  415.                       'index'  => 1,
  416.                       'first'  => true,
  417.                     ];
  418.                     if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  419.                         $length count($context['_seq']);
  420.                         $context['loop']['revindex0'] = $length 1;
  421.                         $context['loop']['revindex'] = $length;
  422.                         $context['loop']['length'] = $length;
  423.                         $context['loop']['last'] = === $length;
  424.                     }
  425.                     foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  426.                         // line 195
  427.                         echo "    ";
  428.                         if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsetrue195)) {
  429.                             // line 196
  430.                             echo "        ";
  431.                             $context["lastCategoryId"] = twig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsetrue196);
  432.                             // line 197
  433.                             echo "    ";
  434.                         }
  435.                         ++$context['loop']['index0'];
  436.                         ++$context['loop']['index'];
  437.                         $context['loop']['first'] = false;
  438.                         if (isset($context['loop']['length'])) {
  439.                             --$context['loop']['revindex0'];
  440.                             --$context['loop']['revindex'];
  441.                             $context['loop']['last'] = === $context['loop']['revindex0'];
  442.                         }
  443.                     }
  444.                     $_parent $context['_parent'];
  445.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  446.                     $context array_intersect_key($context$_parent) + $_parent;
  447.                     // line 199
  448.                     echo "
  449. ";
  450.                     // line 200
  451.                     $context["desiTag"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "find", [=> (isset($context["lastCategoryId"]) || array_key_exists("lastCategoryId"$context) ? $context["lastCategoryId"] : (function () { throw new RuntimeError('Variable "lastCategoryId" does not exist.'200$this->source); })())], "method"falsefalsetrue200);
  452.                     // line 201
  453.                     echo "
  454. ";
  455.                     // line 203
  456.                     $context["products"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Product"), "createQueryBuilder", [=> "p"], "method"falsefalsetrue203), "innerJoin", [=> "p.ProductCategories"=> "pc"], "method"falsefalsetrue204), "where", [=> "pc.Category = :category_id"], "method"falsefalsetrue205), "andWhere", [=> "p.Status = 1"], "method"falsefalsetrue206), "setParameter", [=> "category_id"=>                     // line 208
  457. (isset($context["desiTag"]) || array_key_exists("desiTag"$context) ? $context["desiTag"] : (function () { throw new RuntimeError('Variable "desiTag" does not exist.'208$this->source); })())], "method"falsefalsetrue207), "orderBy", [=> "p.update_date"=> "DESC"], "method"falsefalsetrue208), "setMaxResults", [=> 9999], "method"falsefalsetrue209), "getQuery", [], "method"falsefalsetrue210), "getResult", [], "method"falsefalsetrue211);
  458.                     // line 214
  459.                     echo "
  460. ";
  461.                 } else {
  462.                     // line 219
  463.                     echo "
  464. ";
  465.                     // line 221
  466.                     $context["desiTag"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "find", [=> (isset($context["recomendTag"]) || array_key_exists("recomendTag"$context) ? $context["recomendTag"] : (function () { throw new RuntimeError('Variable "recomendTag" does not exist.'221$this->source); })())], "method"falsefalsetrue221);
  467.                     // line 223
  468.                     $context["products"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Product"), "createQueryBuilder", [=> "p"], "method"falsefalsetrue223), "innerJoin", [=> "p.ProductCategories"=> "pc"], "method"falsefalsetrue224), "where", [=> "pc.Category = :category_id"], "method"falsefalsetrue225), "andWhere", [=> "p.Status = 1"], "method"falsefalsetrue226), "setParameter", [=> "category_id"=>                     // line 228
  469. (isset($context["desiTag"]) || array_key_exists("desiTag"$context) ? $context["desiTag"] : (function () { throw new RuntimeError('Variable "desiTag" does not exist.'228$this->source); })())], "method"falsefalsetrue227), "orderBy", [=> "p.update_date"=> "DESC"], "method"falsefalsetrue228), "setMaxResults", [=> 9999], "method"falsefalsetrue229), "getQuery", [], "method"falsefalsetrue230), "getResult", [], "method"falsefalsetrue231);
  470.                     // line 234
  471.                     echo "
  472. ";
  473.                 }
  474.                 // line 239
  475.                 echo "
  476.             ";
  477.                 // line 240
  478.                 if ((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'240$this->source); })())) {
  479.                     // line 241
  480.                     echo "            
  481. \t\t\t\t\t\t<div class=\"recommendation\">
  482. \t\t\t\t\t\t\t<p class=\"title\">カテゴリ別おすすめ商品</p>
  483. \t<div class=\"contents\">
  484. ";
  485.                     // line 250
  486.                     $context["break"] = false;
  487.                     // line 251
  488.                     $context['_parent'] = $context;
  489.                     $context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'251$this->source); })()));
  490.                     $context['loop'] = [
  491.                       'parent' => $context['_parent'],
  492.                       'index0' => 0,
  493.                       'index'  => 1,
  494.                       'first'  => true,
  495.                     ];
  496.                     foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  497.                         if ( !(isset($context["break"]) || array_key_exists("break"$context) ? $context["break"] : (function () { throw new RuntimeError('Variable "break" does not exist.'251$this->source); })())) {
  498.                             // line 252
  499.                             echo "
  500.   
  501.         ";
  502.                             // line 254
  503.                             $context["hasCategory"] = (twig_length_filter($this->envtwig_array_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "ProductCategories", [], "any"falsefalsetrue254), 254$this->source), function ($__pc__) use ($context$macros) { $context["pc"] = $__pc__; return (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pc"]) || array_key_exists("pc"$context) ? $context["pc"] : (function () { throw new RuntimeError('Variable "pc" does not exist.'254$this->source); })()), "Category", [], "any"falsefalsetrue254), "id", [], "any"falsefalsetrue254) == (isset($context["recomendTag"]) || array_key_exists("recomendTag"$context) ? $context["recomendTag"] : (function () { throw new RuntimeError('Variable "recomendTag" does not exist.'254$this->source); })())); })) > 0);
  504.                             // line 255
  505.                             echo "        ";
  506.                             if ((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'255$this->source); })())) {
  507.                                 // line 256
  508.                                 echo "            
  509.             <div class=\"block\">
  510. \t\t\t\t\t\t\t\t <a href=\"";
  511.                                 // line 258
  512.                                 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"falsefalsetrue258)]), "html"nulltrue);
  513.                                 echo "\">
  514.                                   ";
  515.                                 // line 260
  516.                                 if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsetrue260)) {
  517.                                     // line 261
  518.                                     echo "\t\t\t\t\t\t\t\t\t<div class=\"image\">
  519. \t\t\t\t\t\t\t\t\t\t<img src=\"";
  520.                                     // line 262
  521.                                     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"falsefalsetrue262), 262$this->source)), "save_image"), "html"nulltrue);
  522.                                     echo "\" alt=\"";
  523.                                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue262), 262$this->source), "html"nulltrue);
  524.                                     echo "\" ";
  525.                                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue262) > 5)) {
  526.                                         echo " loading=\"lazy\"";
  527.                                     }
  528.                                     echo ">
  529. \t\t\t\t\t\t\t\t\t</div>
  530. ";
  531.                                 } else {
  532.                                     // line 265
  533.                                     echo "<div class=\"image souldout\">
  534. \t\t\t\t\t\t\t\t\t\t<img src=\"";
  535.                                     // line 266
  536.                                     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"falsefalsetrue266), 266$this->source)), "save_image"), "html"nulltrue);
  537.                                     echo "\" alt=\"";
  538.                                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue266), 266$this->source), "html"nulltrue);
  539.                                     echo "\" ";
  540.                                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue266) > 5)) {
  541.                                         echo " loading=\"lazy\"";
  542.                                     }
  543.                                     echo ">
  544. \t\t\t\t\t\t\t\t\t</div>
  545. ";
  546.                                 }
  547.                                 // line 269
  548.                                 echo "
  549. \t\t\t\t\t\t\t\t\t<p class=\"title\">
  550. \t\t\t\t\t\t\t\t\t\t";
  551.                                 // line 271
  552.                                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue271), 271$this->source), "html"nulltrue);
  553.                                 echo "
  554. \t\t\t\t\t\t\t\t\t</p>
  555. \t\t\t\t\t\t\t\t\t";
  556.                                 // line 273
  557.                                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "code_min", [], "any"falsefalsetrue273))) {
  558.                                     echo "<p class=\"type\">";
  559.                                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "code_min", [], "any"falsefalsetrue273), 273$this->source), "html"nulltrue);
  560.                                     echo "</p>";
  561.                                 }
  562.                                 // line 274
  563.                                 echo "
  564. ";
  565.                                 // line 278
  566.                                 echo "
  567. ";
  568.                                 // line 280
  569.                                 if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsetrue280)) {
  570.                                     // line 281
  571.                                     echo "
  572. ";
  573.                                     // line 283
  574.                                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "ViewData", [=> 11], "method"falsefalsetrue283))) {
  575.                                         // line 284
  576.                                         echo "<p class=\"price\"><span>";
  577.                                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "ViewData", [=> 11], "method"falsefalsetrue284), 284$this->source), "html"nulltrue);
  578.                                         echo "</span></p>
  579. ";
  580.                                     } else {
  581.                                         // line 288
  582.                                         if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsetrue288)) {
  583.                                             // line 289
  584.                                             if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue289) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsetrue289))) {
  585.                                                 // line 290
  586.                                                 echo "
  587. \t\t\t\t\t\t\t\t<p class=\"price\"><span>";
  588.                                                 // line 291
  589.                                                 if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue291) == 0)) {
  590.                                                     echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/textcampaign.twig");
  591.                                                     echo "</span>";
  592.                                                 } else {
  593.                                                     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"falsefalsetrue291), 291$this->source)), "html"nulltrue);
  594.                                                     echo "</span>/100冊";
  595.                                                 }
  596.                                                 echo "</p>
  597. \t\t\t\t\t\t\t";
  598.                                             } else {
  599.                                                 // line 294
  600.                                                 echo "\t\t\t\t\t\t\t\t<p class=\"price\"><span>";
  601.                                                 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"falsefalsetrue294), 294$this->source)), "html"nulltrue);
  602.                                                 echo "
  603. \t\t\t\t\t\t\t\t\t\t~
  604. \t\t\t\t\t\t\t\t\t\t";
  605.                                                 // line 296
  606.                                                 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"falsefalsetrue296), 296$this->source)), "html"nulltrue);
  607.                                                 echo "</span>/100冊</p>
  608. \t\t\t\t\t\t\t";
  609.                                             }
  610.                                             // line 298
  611.                                             echo "\t\t\t\t\t\t";
  612.                                         } else {
  613.                                             // line 299
  614.                                             echo "                       <p class=\"price\"><span>";
  615.                                             if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue299) == 0)) {
  616.                                                 echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/textcampaign.twig");
  617.                                                 echo "</span>";
  618.                                             } else {
  619.                                                 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"falsefalsetrue299), 299$this->source)), "html"nulltrue);
  620.                                                 echo "</span>/100冊";
  621.                                             }
  622.                                             echo "</p>
  623. \t\t\t\t\t\t";
  624.                                         }
  625.                                         // line 301
  626.                                         echo "
  627. ";
  628.                                     }
  629.                                     // line 303
  630.                                     echo "
  631. ";
  632.                                     // line 306
  633.                                     echo " ";
  634.                                 } else {
  635.                                     // line 307
  636.                                     echo "
  637.  ";
  638.                                     // line 309
  639.                                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "ViewData", [=> 11], "method"falsefalsetrue309))) {
  640.                                         // line 310
  641.                                         echo "<p class=\"price\"><span>";
  642.                                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "ViewData", [=> 11], "method"falsefalsetrue310), 310$this->source), "html"nulltrue);
  643.                                         echo "</span></p>
  644. ";
  645.                                     } else {
  646.                                         // line 313
  647.                                         echo "<p class=\"price\"><span>";
  648.                                         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/textcampaign.twig");
  649.                                         echo "</span></p>
  650. ";
  651.                                     }
  652.                                     // line 315
  653.                                     echo "
  654. ";
  655.                                 }
  656.                                 // line 318
  657.                                 echo "
  658. \t\t\t\t\t\t\t\t</a>
  659. \t\t\t\t\t\t\t</div>
  660.             ";
  661.                                 // line 328
  662.                                 $context["break"] = true;
  663.                                 // line 329
  664.                                 echo "        ";
  665.                             } else {
  666.                                 // line 330
  667.                                 echo "        
  668.         ";
  669.                             }
  670.                             // line 333
  671.                             echo "
  672. ";
  673.                             ++$context['loop']['index0'];
  674.                             ++$context['loop']['index'];
  675.                             $context['loop']['first'] = false;
  676.                         }
  677.                     }
  678.                     $_parent $context['_parent'];
  679.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  680.                     $context array_intersect_key($context$_parent) + $_parent;
  681.                     // line 335
  682.                     echo "</div>
  683. \t\t\t\t\t\t
  684. \t\t\t\t\t\t</div>
  685.   ";
  686.                 }
  687.                 // line 340
  688.                 echo "
  689. \t\t\t\t\t\t
  690. \t\t\t\t\t\t<div class=\"contents\">
  691.            
  692.                     ";
  693.                 // line 345
  694.                 $context['_parent'] = $context;
  695.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'345$this->source); })()));
  696.                 $context['loop'] = [
  697.                   'parent' => $context['_parent'],
  698.                   'index0' => 0,
  699.                   'index'  => 1,
  700.                   'first'  => true,
  701.                 ];
  702.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  703.                     $length count($context['_seq']);
  704.                     $context['loop']['revindex0'] = $length 1;
  705.                     $context['loop']['revindex'] = $length;
  706.                     $context['loop']['length'] = $length;
  707.                     $context['loop']['last'] = === $length;
  708.                 }
  709.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  710.                     // line 346
  711.                     echo "
  712. <div class=\"block\">
  713. \t\t\t\t\t\t\t\t <a href=\"";
  714.                     // line 349
  715.                     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"falsefalsetrue349)]), "html"nulltrue);
  716.                     echo "\">
  717.                                   ";
  718.                     // line 351
  719.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsetrue351)) {
  720.                         // line 352
  721.                         echo "\t\t\t\t\t\t\t\t\t<div class=\"image\">
  722. \t\t\t\t\t\t\t\t\t\t<img src=\"";
  723.                         // line 353
  724.                         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"falsefalsetrue353), 353$this->source)), "save_image"), "html"nulltrue);
  725.                         echo "\" alt=\"";
  726.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue353), 353$this->source), "html"nulltrue);
  727.                         echo "\" ";
  728.                         if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue353) > 5)) {
  729.                             echo " loading=\"lazy\"";
  730.                         }
  731.                         echo ">
  732. \t\t\t\t\t\t\t\t\t</div>
  733. ";
  734.                     } else {
  735.                         // line 356
  736.                         echo "<div class=\"image souldout\">
  737. \t\t\t\t\t\t\t\t\t\t<img src=\"";
  738.                         // line 357
  739.                         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"falsefalsetrue357), 357$this->source)), "save_image"), "html"nulltrue);
  740.                         echo "\" alt=\"";
  741.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue357), 357$this->source), "html"nulltrue);
  742.                         echo "\" ";
  743.                         if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue357) > 5)) {
  744.                             echo " loading=\"lazy\"";
  745.                         }
  746.                         echo ">
  747. \t\t\t\t\t\t\t\t\t</div>
  748. ";
  749.                     }
  750.                     // line 360
  751.                     echo "
  752. \t\t\t\t\t\t\t\t\t<p class=\"title\">
  753. \t\t\t\t\t\t\t\t\t\t";
  754.                     // line 362
  755.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue362), 362$this->source), "html"nulltrue);
  756.                     echo "
  757. \t\t\t\t\t\t\t\t\t</p>
  758. \t\t\t\t\t\t\t\t\t";
  759.                     // line 364
  760.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "code_min", [], "any"falsefalsetrue364))) {
  761.                         echo "<p class=\"type\">";
  762.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "code_min", [], "any"falsefalsetrue364), 364$this->source), "html"nulltrue);
  763.                         echo "</p>";
  764.                     }
  765.                     // line 365
  766.                     echo "
  767. ";
  768.                     // line 371
  769.                     echo "
  770. ";
  771.                     // line 373
  772.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsetrue373)) {
  773.                         // line 374
  774.                         echo "
  775. ";
  776.                         // line 376
  777.                         if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "ViewData", [=> 11], "method"falsefalsetrue376))) {
  778.                             // line 377
  779.                             echo "<p class=\"price\"><span>";
  780.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "ViewData", [=> 11], "method"falsefalsetrue377), 377$this->source), "html"nulltrue);
  781.                             echo "</span></p>
  782. ";
  783.                         } else {
  784.                             // line 381
  785.                             if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsetrue381)) {
  786.                                 // line 382
  787.                                 if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue382) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsetrue382))) {
  788.                                     // line 383
  789.                                     echo "
  790. \t\t\t\t\t\t\t\t<p class=\"price\"><span>";
  791.                                     // line 384
  792.                                     if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue384) == 0)) {
  793.                                         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/textcampaign.twig");
  794.                                         echo "</span>";
  795.                                     } else {
  796.                                         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"falsefalsetrue384), 384$this->source)), "html"nulltrue);
  797.                                         echo "</span>/100冊";
  798.                                     }
  799.                                     echo "</p>
  800. \t\t\t\t\t\t\t";
  801.                                 } else {
  802.                                     // line 387
  803.                                     echo "\t\t\t\t\t\t\t\t<p class=\"price\"><span>";
  804.                                     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"falsefalsetrue387), 387$this->source)), "html"nulltrue);
  805.                                     echo "
  806. \t\t\t\t\t\t\t\t\t\t~
  807. \t\t\t\t\t\t\t\t\t\t";
  808.                                     // line 389
  809.                                     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"falsefalsetrue389), 389$this->source)), "html"nulltrue);
  810.                                     echo "</span>/100冊</p>
  811. \t\t\t\t\t\t\t";
  812.                                 }
  813.                                 // line 391
  814.                                 echo "\t\t\t\t\t\t";
  815.                             } else {
  816.                                 // line 392
  817.                                 echo "                       <p class=\"price\"><span>";
  818.                                 if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue392) == 0)) {
  819.                                     echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/textcampaign.twig");
  820.                                     echo "</span>";
  821.                                 } else {
  822.                                     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"falsefalsetrue392), 392$this->source)), "html"nulltrue);
  823.                                     echo "</span>/100冊";
  824.                                 }
  825.                                 echo "</p>
  826. \t\t\t\t\t\t";
  827.                             }
  828.                             // line 394
  829.                             echo "
  830. ";
  831.                         }
  832.                         // line 396
  833.                         echo "
  834. ";
  835.                         // line 399
  836.                         echo " ";
  837.                     } else {
  838.                         // line 400
  839.                         echo "
  840.  ";
  841.                         // line 402
  842.                         if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["Product"], "ViewData", [=> 11], "method"falsefalsetrue402))) {
  843.                             // line 403
  844.                             echo "<p class=\"price\"><span>";
  845.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "ViewData", [=> 11], "method"falsefalsetrue403), 403$this->source), "html"nulltrue);
  846.                             echo "</span></p>
  847. ";
  848.                         } else {
  849.                             // line 406
  850.                             echo "<p class=\"price\"><span>";
  851.                             echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/textcampaign.twig");
  852.                             echo "</span></p>
  853. ";
  854.                         }
  855.                         // line 408
  856.                         echo "
  857. ";
  858.                     }
  859.                     // line 411
  860.                     echo "
  861.                                     
  862. \t\t\t\t\t\t\t\t</a>
  863. \t\t\t\t\t\t\t</div>
  864.                     ";
  865.                     ++$context['loop']['index0'];
  866.                     ++$context['loop']['index'];
  867.                     $context['loop']['first'] = false;
  868.                     if (isset($context['loop']['length'])) {
  869.                         --$context['loop']['revindex0'];
  870.                         --$context['loop']['revindex'];
  871.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  872.                     }
  873.                 }
  874.                 $_parent $context['_parent'];
  875.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  876.                 $context array_intersect_key($context$_parent) + $_parent;
  877.                 // line 426
  878.                 echo "
  879.                     </div>
  880. \t\t\t\t\t</section>
  881.                
  882.             <div class=\"ec-modal\">
  883.                 <div class=\"ec-modal-overlay\">
  884.                     <div class=\"ec-modal-wrap\">
  885.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  886.                 // line 434
  887.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  888.                 echo "\" alt=\"\"/></span></span>
  889.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  890.                 // line 435
  891.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  892.                 echo "</div>
  893.                         <div class=\"ec-modal-box\">
  894.                             <div class=\"ec-role\">
  895.                                 <span class=\"ec-inlineBtn--cancel\">";
  896.                 // line 438
  897.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  898.                 echo "</span>
  899.                                 <a href=\"";
  900.                 // line 439
  901.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  902.                 echo "\" class=\"ec-inlineBtn--action\">";
  903.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  904.                 echo "</a>
  905.                             </div>
  906.                         </div>
  907.                     </div>
  908.                 </div>
  909.             </div>
  910.             <div class=\"ec-pagerRole\">
  911.                 ";
  912.                 // line 446
  913.                 $this->loadTemplate("pager.twig""Product/list.twig"446)->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.'446$this->source); })()), "paginationData", [], "any"falsefalsetrue446)]));
  914.                 // line 447
  915.                 echo "            </div>
  916.         ";
  917.             }
  918.             // line 449
  919.             echo "    ";
  920.         }
  921.         
  922.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  923.         
  924.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  925.     }
  926.     public function getTemplateName()
  927.     {
  928.         return "Product/list.twig";
  929.     }
  930.     public function isTraitable()
  931.     {
  932.         return false;
  933.     }
  934.     public function getDebugInfo()
  935.     {
  936.         return array (  1011 => 449,  1007 => 447,  1005 => 446,  993 => 439,  989 => 438,  983 => 435,  979 => 434,  969 => 426,  941 => 411,  937 => 408,  931 => 406,  925 => 403,  923 => 402,  920 => 400,  917 => 399,  913 => 396,  909 => 394,  897 => 392,  894 => 391,  889 => 389,  883 => 387,  871 => 384,  868 => 383,  866 => 382,  864 => 381,  857 => 377,  855 => 376,  852 => 374,  850 => 373,  847 => 371,  840 => 365,  834 => 364,  829 => 362,  825 => 360,  813 => 357,  810 => 356,  798 => 353,  795 => 352,  793 => 351,  788 => 349,  783 => 346,  766 => 345,  759 => 340,  752 => 335,  741 => 333,  736 => 330,  733 => 329,  731 => 328,  719 => 318,  715 => 315,  709 => 313,  703 => 310,  701 => 309,  698 => 307,  695 => 306,  691 => 303,  687 => 301,  675 => 299,  672 => 298,  667 => 296,  661 => 294,  649 => 291,  646 => 290,  644 => 289,  642 => 288,  635 => 284,  633 => 283,  630 => 281,  628 => 280,  625 => 278,  620 => 274,  614 => 273,  609 => 271,  605 => 269,  593 => 266,  590 => 265,  578 => 262,  575 => 261,  573 => 260,  568 => 258,  564 => 256,  561 => 255,  559 => 254,  555 => 252,  544 => 251,  542 => 250,  531 => 241,  529 => 240,  526 => 239,  519 => 234,  517 => 228,  516 => 223,  514 => 221,  510 => 219,  503 => 214,  501 => 208,  500 => 203,  497 => 201,  495 => 200,  492 => 199,  477 => 197,  474 => 196,  471 => 195,  454 => 194,  452 => 193,  449 => 191,  447 => 190,  444 => 189,  442 => 188,  435 => 182,  433 => 181,  429 => 179,  422 => 175,  418 => 174,  414 => 172,  412 => 171,  409 => 170,  403 => 168,  397 => 166,  395 => 165,  386 => 158,  381 => 156,  378 => 155,  375 => 154,  372 => 153,  351 => 150,  345 => 149,  342 => 148,  324 => 147,  322 => 146,  315 => 144,  310 => 141,  298 => 139,  294 => 138,  289 => 137,  285 => 136,  281 => 134,  275 => 131,  272 => 130,  270 => 129,  262 => 123,  252 => 122,  237 => 114,  229 => 108,  224 => 104,  214 => 103,  187 => 82,  177 => 75,  146 => 47,  118 => 21,  104 => 20,  96 => 19,  79 => 18,  75 => 16,  65 => 15,  54 => 11,  52 => 13,  39 => 11,);
  937.     }
  938.     public function getSourceContext()
  939.     {
  940.         return new Source("{#
  941. This file is part of EC-CUBE
  942. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  943. http://www.ec-cube.co.jp/
  944. For the full copyright and license information, please view the LICENSE
  945. file that was distributed with this source code.
  946. #}
  947. {% extends 'default_frame.twig' %}
  948. {% set body_class = 'product_page' %}
  949. {% block javascript %}
  950.     <script>
  951.         eccube.productsClassCategories = {
  952.             {% for Product in pagination %}
  953.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  954.             {% endfor %}
  955.         };
  956.         \$(function() {
  957.             // 表示件数を変更
  958.             \$('.disp-number').change(function() {
  959.                 var dispNumber = \$(this).val();
  960.                 \$('#disp_number').val(dispNumber);
  961.                 \$('#pageno').val(1);
  962.                 \$(\"#form1\").submit();
  963.             });
  964.             // 並び順を変更
  965.             \$('.order-by').change(function() {
  966.                 var orderBy = \$(this).val();
  967.                 \$('#orderby').val(orderBy);
  968.                 \$('#pageno').val(1);
  969.                 \$(\"#form1\").submit();
  970.             });
  971.             \$('.add-cart').on('click', function(e) {
  972.                 var \$form = \$(this).parents('li').find('form');
  973.                 // 個数フォームのチェック
  974.                 var \$quantity = \$form.parent().find('.quantity');
  975.                 if (\$quantity.val() < 1) {
  976.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  977.                     setTimeout(function() {
  978.                         loadingOverlay('hide');
  979.                     }, 100);
  980.                     return true;
  981.                 } else {
  982.                     \$quantity[0].setCustomValidity('');
  983.                 }
  984.                 e.preventDefault();
  985.                 \$.ajax({
  986.                     url: \$form.attr('action'),
  987.                     type: \$form.attr('method'),
  988.                     data: \$form.serialize(),
  989.                     dataType: 'json',
  990.                     beforeSend: function(xhr, settings) {
  991.                         // Buttonを無効にする
  992.                         \$('.add-cart').prop('disabled', true);
  993.                     }
  994.                 }).done(function(data) {
  995.                     // レスポンス内のメッセージをalertで表示
  996.                     \$.each(data.messages, function() {
  997.                         \$('#ec-modal-header').text(this);
  998.                     });
  999.                     \$('.ec-modal').show()
  1000.                     // カートブロックを更新する
  1001.                     \$.ajax({
  1002.                         url: '{{ url('block_cart') }}',
  1003.                         type: 'GET',
  1004.                         dataType: 'html'
  1005.                     }).done(function(html) {
  1006.                         \$('.ec-headerRole__cart').html(html);
  1007.                     });
  1008.                 }).fail(function(data) {
  1009.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  1010.                 }).always(function(data) {
  1011.                     // Buttonを有効にする
  1012.                     \$('.add-cart').prop('disabled', false);
  1013.                 });
  1014.             });
  1015.         });
  1016.         \$('.ec-modal-wrap').on('click', function(e) {
  1017.             // モーダル内の処理は外側にバブリングさせない
  1018.             e.stopPropagation();
  1019.         });
  1020.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  1021.             \$('.ec-modal').hide()
  1022.         });
  1023.     </script>
  1024. {% endblock %}
  1025. {% block pagetitlearea %}
  1026. <div class=\"main-top\">
  1027. \t\t{# ページタイトル #}
  1028. \t\t<div id=\"pagetitle\">
  1029. \t\t\t<h2>
  1030. \t\t\t\tPRODUCT
  1031. \t\t\t\t<small>商品</small>
  1032. \t\t\t</h2>
  1033. \t\t\t<div class=\"image\">
  1034. \t\t\t\t<img src=\"{{ asset('assets/assets/images/pagetitle-image-product.jpg') }}\">
  1035. \t\t\t</div>
  1036. \t\t</div>
  1037. \t</div>
  1038. {% endblock %}
  1039. {% block main %}
  1040.     {% if search_form.category_id.vars.errors|length > 0 %}
  1041.         <div class=\"ec-searchnavRole\">
  1042.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  1043.         </div>
  1044.     {% else %}
  1045.         <div class=\"ec-searchnavRole\">
  1046.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  1047.                 {% for item in search_form %}
  1048.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  1049.                            name=\"{{ item.vars.full_name }}\"
  1050.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  1051.                 {% endfor %}
  1052.             </form>
  1053.             <div class=\"ec-searchnavRole__topicpath\">
  1054.                 <ol class=\"ec-topicpath\">
  1055.                     <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  1056.                     </li>
  1057.                     {% if Category is not null %}
  1058.                         {% for Path in Category.path %}
  1059.                             <li class=\"ec-topicpath__divider\">|</li>
  1060.                             <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
  1061.                                         href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  1062.                             </li>
  1063.                         {% endfor %}
  1064.                     {% endif %}
  1065.                     {% if search_form.vars.value and search_form.vars.value.name %}
  1066.                         <li class=\"ec-topicpath__divider\">|</li>
  1067.                         <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  1068.                     {% endif %}
  1069.                 </ol>
  1070.             </div>
  1071.             <div class=\"ec-searchnavRole__infos\">
  1072.                 <div class=\"ec-searchnavRole__counter\">
  1073.                     {% if pagination.totalItemCount > 0 %}
  1074.                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  1075.                     {% else %}
  1076.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  1077.                     {% endif %}
  1078.                 </div>
  1079.                 {% if pagination.totalItemCount > 0 %}
  1080.                     <div class=\"ec-searchnavRole__actions\">
  1081.                         <div class=\"ec-select\">
  1082.                             {{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  1083.                             {{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  1084.                         </div>
  1085.                     </div>
  1086.                 {% endif %}
  1087.             </div>
  1088.         </div>
  1089.         {% if pagination.totalItemCount > 0 %}
  1090. <section id=\"carender\">
  1091. {# タグ:おすすめ商品の商品を1件表示 #}
  1092. {% set recomendTag = 13 %}
  1093. {% if Category is not null %}
  1094. {# 現在のカテゴリ取得 #}
  1095. {% set lastCategoryId = null %}
  1096. {% for Path in Category.path %}
  1097.     {% if loop.last %}
  1098.         {% set lastCategoryId = Path.id %}
  1099.     {% endif %}
  1100. {% endfor %}
  1101. {% set desiTag = repository(\"Eccube\\\\Entity\\\\Category\").find(lastCategoryId) %}
  1102. {% 
  1103. set products = repository(\"Eccube\\\\Entity\\\\Product\")
  1104. .createQueryBuilder('p')
  1105.     .innerJoin('p.ProductCategories', 'pc')
  1106.     .where('pc.Category = :category_id')
  1107.     .andWhere('p.Status = 1')
  1108.     .setParameter('category_id', desiTag)
  1109.     .orderBy('p.update_date', 'DESC')
  1110.     .setMaxResults(9999)
  1111.     .getQuery()
  1112.     .getResult()
  1113. %}
  1114. {% else %}
  1115. {% set desiTag = repository(\"Eccube\\\\Entity\\\\Category\").find(recomendTag) %}
  1116. {% 
  1117. set products = repository(\"Eccube\\\\Entity\\\\Product\")
  1118. .createQueryBuilder('p')
  1119.     .innerJoin('p.ProductCategories', 'pc')
  1120.     .where('pc.Category = :category_id')
  1121.     .andWhere('p.Status = 1')
  1122.     .setParameter('category_id', desiTag)
  1123.     .orderBy('p.update_date', 'DESC')
  1124.     .setMaxResults(9999)
  1125.     .getQuery()
  1126.     .getResult()
  1127. %}
  1128. {% endif %}
  1129.             {% if products %}
  1130.             
  1131. \t\t\t\t\t\t<div class=\"recommendation\">
  1132. \t\t\t\t\t\t\t<p class=\"title\">カテゴリ別おすすめ商品</p>
  1133. \t<div class=\"contents\">
  1134. {% set break = false %}
  1135. {% for Product in products if not break %}
  1136.   
  1137.         {% set hasCategory = Product.ProductCategories|filter(pc => pc.Category.id == recomendTag)|length > 0 %}
  1138.         {% if hasCategory %}
  1139.             
  1140.             <div class=\"block\">
  1141. \t\t\t\t\t\t\t\t <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  1142.                                   {% if Product.stock_find %}
  1143. \t\t\t\t\t\t\t\t\t<div class=\"image\">
  1144. \t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  1145. \t\t\t\t\t\t\t\t\t</div>
  1146. {% else %}
  1147. <div class=\"image souldout\">
  1148. \t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  1149. \t\t\t\t\t\t\t\t\t</div>
  1150. {% endif %}
  1151. \t\t\t\t\t\t\t\t\t<p class=\"title\">
  1152. \t\t\t\t\t\t\t\t\t\t{{ Product.name }}
  1153. \t\t\t\t\t\t\t\t\t</p>
  1154. \t\t\t\t\t\t\t\t\t{% if Product.code_min is not empty %}<p class=\"type\">{{ Product.code_min }}</p>{% endif %}
  1155. {# 価格表示ここから #}
  1156. {# 在庫があるかどうか #}
  1157. {% if Product.stock_find %}
  1158. {# 販売価格にテキストがあるかどうか #}
  1159. {% if Product.ViewData(11) is not empty %}
  1160. <p class=\"price\"><span>{{Product.ViewData(11)}}</span></p>
  1161. {# 販売価格にテキストがない場合価格を表示 0円の場合は準備中のテキストを表示 #}
  1162. {% else %}
  1163. {% if Product.hasProductClass -%}
  1164. \t\t\t\t\t\t\t{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  1165. \t\t\t\t\t\t\t\t<p class=\"price\"><span>{% if Product.getPrice02IncTaxMin == 0 %}{{ include('Block/textcampaign.twig') }}</span>{% else %}{{ Product.getPrice02IncTaxMin|price }}</span>/100冊{% endif %}</p>
  1166. \t\t\t\t\t\t\t{% else %}
  1167. \t\t\t\t\t\t\t\t<p class=\"price\"><span>{{ Product.getPrice02IncTaxMin|price }}
  1168. \t\t\t\t\t\t\t\t\t\t~
  1169. \t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMax|price }}</span>/100冊</p>
  1170. \t\t\t\t\t\t\t{% endif %}
  1171. \t\t\t\t\t\t{% else %}
  1172.                        <p class=\"price\"><span>{% if Product.getPrice02IncTaxMin == 0 %}{{ include('Block/textcampaign.twig') }}</span>{% else %}{{ Product.getPrice02IncTaxMin|price }}</span>/100冊{% endif %}</p>
  1173. \t\t\t\t\t\t{% endif %}
  1174. {% endif %}
  1175. {# 在庫がない場合 #}
  1176.  {% else %}
  1177.  {# 販売価格にテキストがあるかどうか #}
  1178. {% if Product.ViewData(11) is not empty %}
  1179. <p class=\"price\"><span>{{Product.ViewData(11)}}</span></p>
  1180. {# 販売価格にテキストがない場合 #}
  1181. {% else %}
  1182. <p class=\"price\"><span>{{ include('Block/textcampaign.twig') }}</span></p>
  1183. {% endif %}
  1184. {% endif %}
  1185. {# 価格表示ここまで #}
  1186. \t\t\t\t\t\t\t\t</a>
  1187. \t\t\t\t\t\t\t</div>
  1188.             {% set break = true %}
  1189.         {% else %}
  1190.         
  1191.         {% endif %}
  1192. {% endfor %}
  1193. </div>
  1194. \t\t\t\t\t\t
  1195. \t\t\t\t\t\t</div>
  1196.   {% endif %}
  1197. \t\t\t\t\t\t
  1198. \t\t\t\t\t\t<div class=\"contents\">
  1199.            
  1200.                     {% for Product in pagination %}
  1201. <div class=\"block\">
  1202. \t\t\t\t\t\t\t\t <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  1203.                                   {% if Product.stock_find %}
  1204. \t\t\t\t\t\t\t\t\t<div class=\"image\">
  1205. \t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  1206. \t\t\t\t\t\t\t\t\t</div>
  1207. {% else %}
  1208. <div class=\"image souldout\">
  1209. \t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  1210. \t\t\t\t\t\t\t\t\t</div>
  1211. {% endif %}
  1212. \t\t\t\t\t\t\t\t\t<p class=\"title\">
  1213. \t\t\t\t\t\t\t\t\t\t{{ Product.name }}
  1214. \t\t\t\t\t\t\t\t\t</p>
  1215. \t\t\t\t\t\t\t\t\t{% if Product.code_min is not empty %}<p class=\"type\">{{ Product.code_min }}</p>{% endif %}
  1216. {# 価格表示ここから #}
  1217. {# 在庫があるかどうか #}
  1218. {% if Product.stock_find %}
  1219. {# 販売価格にテキストがあるかどうか #}
  1220. {% if Product.ViewData(11) is not empty %}
  1221. <p class=\"price\"><span>{{Product.ViewData(11)}}</span></p>
  1222. {# 販売価格にテキストがない場合価格を表示 0円の場合は準備中のテキストを表示 #}
  1223. {% else %}
  1224. {% if Product.hasProductClass -%}
  1225. \t\t\t\t\t\t\t{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
  1226. \t\t\t\t\t\t\t\t<p class=\"price\"><span>{% if Product.getPrice02IncTaxMin == 0 %}{{ include('Block/textcampaign.twig') }}</span>{% else %}{{ Product.getPrice02IncTaxMin|price }}</span>/100冊{% endif %}</p>
  1227. \t\t\t\t\t\t\t{% else %}
  1228. \t\t\t\t\t\t\t\t<p class=\"price\"><span>{{ Product.getPrice02IncTaxMin|price }}
  1229. \t\t\t\t\t\t\t\t\t\t~
  1230. \t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMax|price }}</span>/100冊</p>
  1231. \t\t\t\t\t\t\t{% endif %}
  1232. \t\t\t\t\t\t{% else %}
  1233.                        <p class=\"price\"><span>{% if Product.getPrice02IncTaxMin == 0 %}{{ include('Block/textcampaign.twig') }}</span>{% else %}{{ Product.getPrice02IncTaxMin|price }}</span>/100冊{% endif %}</p>
  1234. \t\t\t\t\t\t{% endif %}
  1235. {% endif %}
  1236. {# 在庫がない場合 #}
  1237.  {% else %}
  1238.  {# 販売価格にテキストがあるかどうか #}
  1239. {% if Product.ViewData(11) is not empty %}
  1240. <p class=\"price\"><span>{{Product.ViewData(11)}}</span></p>
  1241. {# 販売価格にテキストがない場合 #}
  1242. {% else %}
  1243. <p class=\"price\"><span>{{ include('Block/textcampaign.twig') }}</span></p>
  1244. {% endif %}
  1245. {% endif %}
  1246. {# 価格表示ここまで #}
  1247.                                     
  1248. \t\t\t\t\t\t\t\t</a>
  1249. \t\t\t\t\t\t\t</div>
  1250.                     {% endfor %}
  1251.                     </div>
  1252. \t\t\t\t\t</section>
  1253.                
  1254.             <div class=\"ec-modal\">
  1255.                 <div class=\"ec-modal-overlay\">
  1256.                     <div class=\"ec-modal-wrap\">
  1257.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  1258.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  1259.                         <div class=\"ec-modal-box\">
  1260.                             <div class=\"ec-role\">
  1261.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  1262.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  1263.                             </div>
  1264.                         </div>
  1265.                     </div>
  1266.                 </div>
  1267.             </div>
  1268.             <div class=\"ec-pagerRole\">
  1269.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  1270.             </div>
  1271.         {% endif %}
  1272.     {% endif %}
  1273. {% endblock %}""Product/list.twig""/home/dennou28/kinkodo-calendar.com/public_html/app/template/kinkodo/Product/list.twig");
  1274.     }
  1275.     
  1276.     public function checkSecurity()
  1277.     {
  1278.         static $tags = array("set" => 13"for" => 18"if" => 19"include" => 446);
  1279.         static $filters = array("escape" => 19"raw" => 19"trans" => 47"length" => 129"filter" => 254"no_image_product" => 262"price" => 291);
  1280.         static $functions = array("class_categories_as_json" => 19"url" => 75"asset" => 114"form_widget" => 174"repository" => 200"include" => 291);
  1281.         try {
  1282.             $this->sandbox->checkSecurity(
  1283.                 ['set''for''if''include'],
  1284.                 ['escape''raw''trans''length''filter''no_image_product''price'],
  1285.                 ['class_categories_as_json''url''asset''form_widget''repository''include']
  1286.             );
  1287.         } catch (SecurityError $e) {
  1288.             $e->setSourceContext($this->source);
  1289.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  1290.                 $e->setTemplateLine($tags[$e->getTagName()]);
  1291.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  1292.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  1293.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  1294.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  1295.             }
  1296.             throw $e;
  1297.         }
  1298.     }
  1299. }