var/cache/dev/twig/e5/e5a23f9025b7c09b333b5b887116a94b1c769d593a75b5ba355b332905c3082e.php line 39

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