var/cache/dev/twig/b8/b8b0fcf7473048f09fcab2190a02b502.php line 54

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