var/cache/dev/twig/cb/cbbac39d4f652a2c759ace2470d1e7df.php line 53

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__b33764644a4387dbacec37bc42e8b2aa */
  14. class __TwigTemplate_a66e5fb3b98b909c28e6199aa83d6d89 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.             'stylesheet' => [$this'block_stylesheet'],
  24.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 11
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__b33764644a4387dbacec37bc42e8b2aa"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__string_template__b33764644a4387dbacec37bc42e8b2aa"));
  40.         // line 13
  41.         $context["body_class"] = "product_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""__string_template__b33764644a4387dbacec37bc42e8b2aa"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 15
  51.     public function block_stylesheet($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         // line 16
  59.         echo "<link rel=\"stylesheet\" href=\"";
  60.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/products-list.css"), "html"nulltrue);
  61.         echo "\" type=\"text/css\" media=\"all\" />
  62. ";
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.     }
  68.     // line 19
  69.     public function block_javascript($context, array $blocks = [])
  70.     {
  71.         $macros $this->macros;
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  76.         // line 20
  77.         echo "\t<script>
  78. \t\teccube.productsClassCategories = {
  79. \t\t\t";
  80.         // line 22
  81.         $context['_parent'] = $context;
  82.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'22$this->source); })()));
  83.         $context['loop'] = [
  84.           'parent' => $context['_parent'],
  85.           'index0' => 0,
  86.           'index'  => 1,
  87.           'first'  => true,
  88.         ];
  89.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  90.             $length count($context['_seq']);
  91.             $context['loop']['revindex0'] = $length 1;
  92.             $context['loop']['revindex'] = $length;
  93.             $context['loop']['length'] = $length;
  94.             $context['loop']['last'] = === $length;
  95.         }
  96.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  97.             // line 23
  98.             echo "\t\t\t\"";
  99.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse23), "js"), "html"nulltrue);
  100.             echo "\": ";
  101.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  102.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse23) == false)) {
  103.                 echo ", ";
  104.             }
  105.             // line 24
  106.             echo "\t\t\t";
  107.             ++$context['loop']['index0'];
  108.             ++$context['loop']['index'];
  109.             $context['loop']['first'] = false;
  110.             if (isset($context['loop']['length'])) {
  111.                 --$context['loop']['revindex0'];
  112.                 --$context['loop']['revindex'];
  113.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  114.             }
  115.         }
  116.         $_parent $context['_parent'];
  117.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  118.         $context array_intersect_key($context$_parent) + $_parent;
  119.         // line 25
  120.         echo "\t\t};
  121. \t\t\$(function() {
  122. \t\t\t// 表示件数を変更
  123. \t\t\t\$('.disp-number').change(function() {
  124. \t\t\t\tvar dispNumber = \$(this).val();
  125. \t\t\t\t\$('#disp_number').val(dispNumber);
  126. \t\t\t\t\$('#pageno').val(1);
  127. \t\t\t\t\$(\"#form1\").submit();
  128. \t\t\t});
  129. \t\t\t// 並び順を変更
  130. \t\t\t\$('.order-by').change(function() {
  131. \t\t\t\tvar orderBy = \$(this).val();
  132. \t\t\t\t\$('#orderby').val(orderBy);
  133. \t\t\t\t\$('#pageno').val(1);
  134. \t\t\t\t\$(\"#form1\").submit();
  135. \t\t\t});
  136. \t\t\t\$('.add-cart').on('click', function(e) {
  137. \t\t\t\tvar \$form = \$(this).parents('li').find('form');
  138. \t\t\t\t// 個数フォームのチェック
  139. \t\t\t\tvar \$quantity = \$form.parent().find('.quantity');
  140. \t\t\t\tif (\$quantity.val() < 1) {
  141. \t\t\t\t\t\$quantity[0].setCustomValidity('";
  142.         // line 51
  143.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  144.         echo "');
  145. \t\t\t\t\tsetTimeout(function() {
  146. \t\t\t\t\t\tloadingOverlay('hide');
  147. \t\t\t\t\t}, 100);
  148. \t\t\t\t\treturn true;
  149. \t\t\t\t} else {
  150. \t\t\t\t\t\$quantity[0].setCustomValidity('');
  151. \t\t\t\t}
  152. \t\t\t\te.preventDefault();
  153. \t\t\t\t\$.ajax({
  154. \t\t\t\t\turl: \$form.attr('action'),
  155. \t\t\t\t\ttype: \$form.attr('method'),
  156. \t\t\t\t\tdata: \$form.serialize(),
  157. \t\t\t\t\tdataType: 'json',
  158. \t\t\t\t\tbeforeSend: function(xhr, settings) {
  159. \t\t\t\t\t\t// Buttonを無効にする
  160. \t\t\t\t\t\t\$('.add-cart').prop('disabled', true);
  161. \t\t\t\t\t}
  162. \t\t\t\t}).done(function(data) {
  163. \t\t\t\t\t// レスポンス内のメッセージをalertで表示
  164. \t\t\t\t\t\$.each(data.messages, function() {
  165. \t\t\t\t\t\t\$('#ec-modal-header').text(this);
  166. \t\t\t\t\t});
  167. \t\t\t\t\t\$('.ec-modal').show()
  168. \t\t\t\t\t// カートブロックを更新する
  169. \t\t\t\t\t\$.ajax({
  170. \t\t\t\t\t\turl: '";
  171.         // line 79
  172.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  173.         echo "',
  174. \t\t\t\t\t\ttype: 'GET',
  175. \t\t\t\t\t\tdataType: 'html'
  176. \t\t\t\t\t}).done(function(html) {
  177. \t\t\t\t\t\t\$('.ec-headerRole__cart').html(html);
  178. \t\t\t\t\t});
  179. \t\t\t\t}).fail(function(data) {
  180. \t\t\t\t\talert('";
  181.         // line 86
  182.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  183.         echo "');
  184. \t\t\t\t}).always(function(data) {
  185. \t\t\t\t\t// Buttonを有効にする
  186. \t\t\t\t\t\$('.add-cart').prop('disabled', false);
  187. \t\t\t\t});
  188. \t\t\t});
  189. \t\t});
  190. \t\t\$('.ec-modal-wrap').on('click', function(e) {
  191. \t\t\t// モーダル内の処理は外側にバブリングさせない
  192. \t\t\te.stopPropagation();
  193. \t\t});
  194. \t\t\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  195. \t\t\t\$('.ec-modal').hide()
  196. \t\t});
  197. \t</script>
  198. ";
  199.         
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  201.         
  202.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  203.     }
  204.     // line 104
  205.     public function block_main($context, array $blocks = [])
  206.     {
  207.         $macros $this->macros;
  208.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  209.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  210.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  211.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  212.         // line 105
  213.         echo "\t<section id=\"main-visual\">
  214. \t\t<div class=\"mainvisual\" style=\"background-image: url('";
  215.         // line 106
  216.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/mv_img_01.jpg"), "html"nulltrue);
  217.         echo "'); ?>)\"></div>
  218. \t</section>
  219. \t<section id=\"main-title\">
  220. \t\t<h2 class=\"page-title\">PRODUCTS</h2>
  221. \t\t<div class=\"scroll\">
  222. \t\t\t<a href=\"#topic-path\">
  223. \t\t\t\t<p>scroll</p>
  224. \t\t\t\t<img src=\"https://mx-build.jp/wp-content/themes/%E3%82%BF%E3%82%A4%E3%82%A8%E3%82%A4%E5%8C%97%E6%B5%B7%E9%81%93%E3%82%A8%E3%83%B3%E3%82%B7%E3%82%99%E3%83%8B%E3%82%A2%E3%82%A2%E3%83%AA%E3%83%B3%E3%82%AF%E3%82%99/img/scroll.png\" alt=\"scroll-arrow\">
  225. \t\t\t</a>
  226. \t\t</div>
  227. \t</section>
  228. \t<section id=\"topic-path\">
  229. \t\t<div class=\"wrapper\">
  230. \t\t\t<div class=\"container\">
  231. \t\t\t\t<div class=\"page\">
  232. \t\t\t\t\t<a href=\"/\">
  233. \t\t\t\t\t\t<span class=\"home\">HOME</span>
  234. \t\t\t\t\t</a>
  235. \t\t\t\t\t<span>&gt;</span>
  236. \t\t\t\t\t<span class=\"current\">商品一覧</span>
  237. \t\t\t\t</div>
  238. \t\t\t</div>
  239. \t\t</div>
  240. \t</section>
  241. \t<!-- 見出し -->
  242. \t<section id=\"heading\">
  243. \t\t<div class=\"wrapper\">
  244. \t\t\t<div class=\"container\">
  245. \t\t\t\t";
  246.         // line 134
  247.         if (((isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'134$this->source); })()) == "MX")) {
  248.             // line 135
  249.             echo "\t\t\t\t\t<h3 class=\"title\">着心地を重視した商品(MX)</h3>
  250. \t\t\t\t\t<p class=\"content\">どちらも伸縮性があり、湿気を逃がし、高機能なテクニカル素材です。メッシュは暑い天候のモトでも通気性を高めます。</p>
  251. \t\t\t\t";
  252.         } elseif ((        // line 137
  253. (isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'137$this->source); })()) == "MTB")) {
  254.             // line 138
  255.             echo "\t\t\t\t\t<h3 class=\"title\">プレミアム仕様の商品(MTB)</h3>
  256. \t\t\t\t\t<p class=\"content\">RENEN がプレミアムでテクニカルな生地を使用し、米国で手作りしています。</p>
  257. \t\t\t\t";
  258.         } elseif ((        // line 140
  259. (isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'140$this->source); })()) == "LIFE STYLE")) {
  260.             // line 141
  261.             echo "\t\t\t\t\t<h3 class=\"title\">私生活に適した商品(LIFE STYLE)</h3>
  262. \t\t\t\t\t<p class=\"content\">私服におすすめのRENENがデザインしたオシャレな商品。</p>
  263. \t\t\t\t";
  264.         } elseif ((        // line 143
  265. (isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'143$this->source); })()) == "SALE")) {
  266.             // line 144
  267.             echo "\t\t\t\t\t<h3 class=\"title\">お得な商品(SALE)</h3>
  268. \t\t\t\t\t<p class=\"content\">期間限定でお得にな金額で販売しております。</p>
  269. \t\t\t\t";
  270.         }
  271.         // line 147
  272.         echo "\t\t\t</div>
  273. \t\t</div>
  274. \t</section>
  275. \t<!-- メニューバー -->
  276. \t";
  277.         // line 151
  278.         $context["Categories"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "getList", [], "method"falsefalsefalse151);
  279.         // line 152
  280.         echo "\t<section id=\"menu-bar\">
  281. \t\t<div class=\"wrapper\">
  282. \t\t\t<div class=\"container\">
  283. \t\t\t\t<nav>
  284. \t\t\t\t\t<ul class=\"menu-list\">
  285. \t\t\t\t\t\t";
  286.         // line 157
  287.         $context['_parent'] = $context;
  288.         $context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories"$context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.'157$this->source); })()));
  289.         foreach ($context['_seq'] as $context["_key"] => $context["cate"]) {
  290.             // line 158
  291.             echo "\t\t\t\t\t\t\t<li class=\"menu\">
  292. \t\t\t\t\t\t\t\t<a href=\"/shop/products/list?category_id=";
  293.             // line 159
  294.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cate"], "id", [], "any"falsefalsefalse159), "html"nulltrue);
  295.             echo "\">";
  296.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cate"], "name", [], "any"falsefalsefalse159), "html"nulltrue);
  297.             echo "</a>
  298. \t\t\t\t\t\t\t</li>
  299. \t\t\t\t\t\t";
  300.         }
  301.         $_parent $context['_parent'];
  302.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cate'], $context['_parent'], $context['loop']);
  303.         $context array_intersect_key($context$_parent) + $_parent;
  304.         // line 162
  305.         echo "\t\t\t\t\t</ul>
  306. \t\t\t\t</nav>
  307. \t\t\t</div>
  308. \t\t</div>
  309. \t</section>
  310. \t";
  311.         // line 167
  312.         if ((isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'167$this->source); })())) {
  313.             // line 168
  314.             echo "\t\t<!-- 製品メニュー -->
  315. \t\t<section id=\"products-menu\">
  316. \t\t\t<div class=\"wrapper\">
  317. \t\t\t\t<div class=\"container\">
  318. \t\t\t\t\t";
  319.             // line 172
  320.             if ((isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'172$this->source); })())) {
  321.                 // line 173
  322.                 echo "\t\t\t\t\t\t<div class=\"contents-title\">
  323. \t\t\t\t\t\t\t<h2>";
  324.                 // line 174
  325.                 echo twig_escape_filter($this->env, (isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'174$this->source); })()), "html"nulltrue);
  326.                 echo "</h2>
  327. \t\t\t\t\t\t</div>
  328. \t\t\t\t\t";
  329.             }
  330.             // line 177
  331.             echo "\t\t\t\t\t<div class=\"contents\">
  332. \t\t\t\t\t\t<div class=\"contents-left\">
  333. \t\t\t\t\t\t\t<ul class=\"menu-list\">
  334. \t\t\t\t\t\t\t\t";
  335.             // line 180
  336.             $context["cate_childs"] = 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.'180$this->source); })()), "getDescendants", [], "any"falsefalsefalse180);
  337.             // line 181
  338.             echo "\t\t\t\t\t\t\t\t";
  339.             $context["index"] = 0;
  340.             // line 182
  341.             echo "\t\t\t\t\t\t\t\t";
  342.             if ((isset($context["cate_childs"]) || array_key_exists("cate_childs"$context) ? $context["cate_childs"] : (function () { throw new RuntimeError('Variable "cate_childs" does not exist.'182$this->source); })())) {
  343.                 // line 183
  344.                 echo "\t\t\t\t\t\t\t\t\t";
  345.                 $context["h"] = (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.'183$this->source); })()), "hierarchy", [], "any"falsefalsefalse183) + 1);
  346.                 // line 184
  347.                 echo "\t\t\t\t\t\t\t\t\t\t";
  348.                 $context['_parent'] = $context;
  349.                 $context['_seq'] = twig_ensure_traversable((isset($context["cate_childs"]) || array_key_exists("cate_childs"$context) ? $context["cate_childs"] : (function () { throw new RuntimeError('Variable "cate_childs" does not exist.'184$this->source); })()));
  350.                 foreach ($context['_seq'] as $context["_key"] => $context["cate"]) {
  351.                     // line 185
  352.                     echo "\t\t\t\t\t\t\t\t\t\t\t";
  353.                     if (((isset($context["h"]) || array_key_exists("h"$context) ? $context["h"] : (function () { throw new RuntimeError('Variable "h" does not exist.'185$this->source); })()) == twig_get_attribute($this->env$this->source$context["cate"], "hierarchy", [], "any"falsefalsefalse185))) {
  354.                         // line 186
  355.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  356.                         $context["ChiledCategory"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "find", [=> twig_get_attribute($this->env$this->source$context["cate"], "id", [], "any"falsefalsefalse186)], "method"falsefalsefalse186);
  357.                         // line 187
  358.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  359.                         $context["child_categories"] = twig_get_attribute($this->env$this->source, (isset($context["ChiledCategory"]) || array_key_exists("ChiledCategory"$context) ? $context["ChiledCategory"] : (function () { throw new RuntimeError('Variable "ChiledCategory" does not exist.'187$this->source); })()), "getDescendants", [], "any"falsefalsefalse187);
  360.                         // line 188
  361.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"accordion-menu\">
  362. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"main-menu\">
  363. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<p><a href=\"/shop/products/list?category_id=";
  364.                         // line 190
  365.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cate"], "id", [], "any"falsefalsefalse190), "html"nulltrue);
  366.                         echo "\">";
  367.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cate"], "name", [], "any"falsefalsefalse190), "html"nulltrue);
  368.                         echo "</a></p>
  369. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  370.                         // line 191
  371.                         if ((isset($context["child_categories"]) || array_key_exists("child_categories"$context) ? $context["child_categories"] : (function () { throw new RuntimeError('Variable "child_categories" does not exist.'191$this->source); })())) {
  372.                             // line 192
  373.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"arrow\"></div>
  374. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  375.                         }
  376.                         // line 194
  377.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  378. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  379.                         // line 195
  380.                         if ((isset($context["child_categories"]) || array_key_exists("child_categories"$context) ? $context["child_categories"] : (function () { throw new RuntimeError('Variable "child_categories" does not exist.'195$this->source); })())) {
  381.                             // line 196
  382.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"sub-menu\">
  383. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  384.                             // line 197
  385.                             $context['_parent'] = $context;
  386.                             $context['_seq'] = twig_ensure_traversable((isset($context["child_categories"]) || array_key_exists("child_categories"$context) ? $context["child_categories"] : (function () { throw new RuntimeError('Variable "child_categories" does not exist.'197$this->source); })()));
  387.                             foreach ($context['_seq'] as $context["_key"] => $context["cate"]) {
  388.                                 // line 198
  389.                                 echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"menu\">
  390. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/shop/products/list?category_id=";
  391.                                 // line 199
  392.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cate"], "id", [], "any"falsefalsefalse199), "html"nulltrue);
  393.                                 echo "\">";
  394.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cate"], "name", [], "any"falsefalsefalse199), "html"nulltrue);
  395.                                 echo "</a>
  396. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>
  397. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  398.                             }
  399.                             $_parent $context['_parent'];
  400.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cate'], $context['_parent'], $context['loop']);
  401.                             $context array_intersect_key($context$_parent) + $_parent;
  402.                             // line 202
  403.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
  404. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  405.                         }
  406.                         // line 204
  407.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t</li>
  408. \t\t\t\t\t\t\t\t\t\t\t\t";
  409.                         // line 205
  410.                         $context["index"] = ((isset($context["index"]) || array_key_exists("index"$context) ? $context["index"] : (function () { throw new RuntimeError('Variable "index" does not exist.'205$this->source); })()) + 1);
  411.                         // line 206
  412.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  413.                         if (((isset($context["index"]) || array_key_exists("index"$context) ? $context["index"] : (function () { throw new RuntimeError('Variable "index" does not exist.'206$this->source); })()) == twig_get_attribute($this->env$this->source, (isset($context["column"]) || array_key_exists("column"$context) ? $context["column"] : (function () { throw new RuntimeError('Variable "column" does not exist.'206$this->source); })()), 0, [], "array"falsefalsefalse206))) {
  414.                             // line 207
  415.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
  416. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  417. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"contents-right\">
  418. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"menu-list\">
  419. \t\t\t\t\t\t\t\t\t\t\t\t";
  420.                         }
  421.                         // line 212
  422.                         echo "\t\t\t\t\t\t\t\t\t\t\t";
  423.                     }
  424.                     // line 213
  425.                     echo "\t\t\t\t\t\t\t\t\t\t";
  426.                 }
  427.                 $_parent $context['_parent'];
  428.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cate'], $context['_parent'], $context['loop']);
  429.                 $context array_intersect_key($context$_parent) + $_parent;
  430.                 // line 214
  431.                 echo "\t\t\t\t\t\t\t\t";
  432.             }
  433.             // line 215
  434.             echo "\t\t\t\t\t\t\t</ul>
  435. \t\t\t\t\t\t</div>
  436. \t\t\t\t\t</div>
  437. \t\t\t\t</div>
  438. \t\t\t</div>
  439. \t\t</section>
  440. \t";
  441.         }
  442.         // line 222
  443.         echo "
  444. \t";
  445.         // line 223
  446.         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.'223$this->source); })()), "vars", [], "any"falsefalsefalse223), "value", [], "any"falsefalsefalse223) && 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.'223$this->source); })()), "vars", [], "any"falsefalsefalse223), "value", [], "any"falsefalsefalse223), "name", [], "any"falsefalsefalse223))) {
  447.             // line 224
  448.             echo "\t\t";
  449.             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.'224$this->source); })()), "vars", [], "any"falsefalsefalse224), "value", [], "any"falsefalsefalse224), "name", [], "any"falsefalsefalse224)]), "html"nulltrue);
  450.             echo "
  451. \t";
  452.         }
  453.         // line 226
  454.         echo "
  455. \t";
  456.         // line 227
  457.         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.'227$this->source); })()), "category_id", [], "any"falsefalsefalse227), "vars", [], "any"falsefalsefalse227), "errors", [], "any"falsefalsefalse227)) > 0)) {
  458.             // line 228
  459.             echo "\t\t<div class=\"ec-searchnavRole\">
  460. \t\t\t<p class=\"errormsg text-danger\">";
  461.             // line 229
  462.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  463.             echo "</p>
  464. \t\t</div>
  465. \t";
  466.         } else {
  467.             // line 232
  468.             echo "\t\t<div class=\"ec-searchnavRole\">
  469. \t\t\t<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  470. \t\t\t\t";
  471.             // line 234
  472.             $context['_parent'] = $context;
  473.             $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.'234$this->source); })()));
  474.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  475.                 // line 235
  476.                 echo "\t\t\t\t\t<input type=\"hidden\" id=\"";
  477.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse235), "id", [], "any"falsefalsefalse235), "html"nulltrue);
  478.                 echo "\"
  479. \t\t\t\t\t\t   name=\"";
  480.                 // line 236
  481.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse236), "full_name", [], "any"falsefalsefalse236), "html"nulltrue);
  482.                 echo "\"
  483. \t\t\t\t\t\t   ";
  484.                 // line 237
  485.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse237), "value", [], "any"falsefalsefalse237))) {
  486.                     echo "value=\"";
  487.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse237), "value", [], "any"falsefalsefalse237), "html"nulltrue);
  488.                     echo "\" ";
  489.                 }
  490.                 echo "/>
  491. \t\t\t\t";
  492.             }
  493.             $_parent $context['_parent'];
  494.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  495.             $context array_intersect_key($context$_parent) + $_parent;
  496.             // line 239
  497.             echo "\t\t\t</form>
  498. \t\t\t<div class=\"ec-searchnavRole__infos\">
  499. \t\t\t\t<div class=\"ec-searchnavRole__counter\">
  500. \t\t\t\t\t";
  501.             // line 242
  502.             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.'242$this->source); })()), "totalItemCount", [], "any"falsefalsefalse242) > 0)) {
  503.                 // line 243
  504.                 echo "\t\t\t\t\t\t";
  505.                 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.'243$this->source); })()), "totalItemCount", [], "any"falsefalsefalse243)]);
  506.                 echo "
  507. \t\t\t\t\t";
  508.             } else {
  509.                 // line 245
  510.                 echo "\t\t\t\t\t\t<span>";
  511.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  512.                 echo "</span>
  513. \t\t\t\t\t";
  514.             }
  515.             // line 247
  516.             echo "\t\t\t\t</div>
  517. \t\t\t\t";
  518.             // line 248
  519.             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.'248$this->source); })()), "totalItemCount", [], "any"falsefalsefalse248) > 0)) {
  520.                 // line 249
  521.                 echo "\t\t\t\t\t<div class=\"ec-searchnavRole__actions\">
  522. \t\t\t\t\t\t<div class=\"ec-select\">
  523. \t\t\t\t\t\t\t";
  524.                 // line 251
  525.                 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.'251$this->source); })()), "disp_number", [], "any"falsefalsefalse251), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  526.                 echo "
  527. \t\t\t\t\t\t\t";
  528.                 // line 252
  529.                 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.'252$this->source); })()), "orderby", [], "any"falsefalsefalse252), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  530.                 echo "
  531. \t\t\t\t\t\t</div>
  532. \t\t\t\t\t</div>
  533. \t\t\t\t";
  534.             }
  535.             // line 256
  536.             echo "\t\t\t</div>
  537. \t\t</div>
  538. \t\t";
  539.             // line 258
  540.             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.'258$this->source); })()), "totalItemCount", [], "any"falsefalsefalse258) > 0)) {
  541.                 // line 259
  542.                 echo "\t\t\t<div class=\"ec-shelfRole\">
  543. \t\t\t\t<ul class=\"ec-shelfGrid\">
  544. \t\t\t\t\t";
  545.                 // line 261
  546.                 $context['_parent'] = $context;
  547.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'261$this->source); })()));
  548.                 $context['loop'] = [
  549.                   'parent' => $context['_parent'],
  550.                   'index0' => 0,
  551.                   'index'  => 1,
  552.                   'first'  => true,
  553.                 ];
  554.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  555.                     $length count($context['_seq']);
  556.                     $context['loop']['revindex0'] = $length 1;
  557.                     $context['loop']['revindex'] = $length;
  558.                     $context['loop']['length'] = $length;
  559.                     $context['loop']['last'] = === $length;
  560.                 }
  561.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  562.                     // line 262
  563.                     echo "\t\t\t\t\t\t<li class=\"ec-shelfGrid__item\">
  564. \t\t\t\t\t\t\t<a href=\"";
  565.                     // line 263
  566.                     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"falsefalsefalse263)]), "html"nulltrue);
  567.                     echo "\">
  568. \t\t\t\t\t\t\t\t<div class=\"ec-shelfGrid__item-image\"><div style=\"background-image: url(";
  569.                     // line 264
  570.                     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"falsefalsefalse264)), "save_image"), "html"nulltrue);
  571.                     echo ");\"></div></div>
  572. \t\t\t\t\t\t\t\t<!--
  573. \t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
  574. \t\t\t\t\t\t\t\t\t<img src=\"";
  575.                     // line 267
  576.                     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"falsefalsefalse267)), "save_image"), "html"nulltrue);
  577.                     echo "\" alt=\"";
  578.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse267), "html"nulltrue);
  579.                     echo "\" ";
  580.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse267) > 5)) {
  581.                         echo " loading=\"lazy\"";
  582.                     }
  583.                     echo ">
  584. \t\t\t\t\t\t\t\t</p>
  585. \t\t\t\t\t\t\t\t-->
  586. \t\t\t\t\t\t\t\t<div class=\"myTemplate-item-header\">
  587. \t\t\t\t\t\t\t\t\t<p>";
  588.                     // line 271
  589.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse271), "html"nulltrue);
  590.                     echo "</p>
  591. \t\t\t\t\t\t\t\t\t";
  592.                     // line 272
  593.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse272)) {
  594.                         // line 273
  595.                         echo "\t\t\t\t\t\t\t\t\t\t<p>";
  596.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse273));
  597.                         echo "</p>
  598. \t\t\t\t\t\t\t\t\t";
  599.                     }
  600.                     // line 275
  601.                     echo "\t\t\t\t\t\t\t\t\t<p class=\"price02-default\">
  602. \t\t\t\t\t\t\t\t\t\t";
  603.                     // line 276
  604.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse276)) {
  605.                         // line 277
  606.                         echo "\t\t\t\t\t\t\t\t\t\t\t";
  607.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse277) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse277))) {
  608.                             // line 278
  609.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  610.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse278)), "html"nulltrue);
  611.                             echo "
  612. \t\t\t\t\t\t\t\t\t\t\t";
  613.                         } else {
  614.                             // line 280
  615.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  616.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse280)), "html"nulltrue);
  617.                             echo " ~ ";
  618.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse280)), "html"nulltrue);
  619.                             echo "
  620. \t\t\t\t\t\t\t\t\t\t\t";
  621.                         }
  622.                         // line 282
  623.                         echo "\t\t\t\t\t\t\t\t\t\t";
  624.                     } else {
  625.                         // line 283
  626.                         echo "\t\t\t\t\t\t\t\t\t\t\t";
  627.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse283)), "html"nulltrue);
  628.                         echo "
  629. \t\t\t\t\t\t\t\t\t\t";
  630.                     }
  631.                     // line 285
  632.                     echo "\t\t\t\t\t\t\t\t\t</p>
  633. \t\t\t\t\t\t\t\t</div>
  634. \t\t\t\t\t\t\t</a>
  635. \t\t\t\t\t\t\t";
  636.                     // line 289
  637.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse289)) {
  638.                         // line 290
  639.                         echo "\t\t\t\t\t\t\t\t";
  640.                         $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.'290$this->source); })()), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse290), [], "array"falsefalsefalse290);
  641.                         // line 291
  642.                         echo "\t\t\t\t\t\t\t\t<form name=\"form";
  643.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse291), "html"nulltrue);
  644.                         echo "\" id=\"productForm";
  645.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse291), "html"nulltrue);
  646.                         echo "\" action=\"";
  647.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse291)]), "html"nulltrue);
  648.                         echo "\" method=\"post\">
  649. \t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__actions\">
  650. \t\t\t\t\t\t\t\t\t\t";
  651.                         // line 293
  652.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse293)) {
  653.                             // line 294
  654.                             echo "\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-select\">
  655.                                                 <span>";
  656.                             // line 295
  657.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'295$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse295), "vars", [], "any"falsefalsefalse295), "label", [], "array"falsefalsefalse295), "html"nulltrue);
  658.                             echo "</span>
  659. \t\t\t\t\t\t\t\t\t\t\t\t";
  660.                             // line 296
  661.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'296$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse296), 'widget');
  662.                             echo "
  663. \t\t\t\t\t\t\t\t\t\t\t\t";
  664.                             // line 297
  665.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'297$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse297), 'errors');
  666.                             echo "
  667. \t\t\t\t\t\t\t\t\t\t\t</div>
  668. \t\t\t\t\t\t\t\t\t\t\t";
  669.                             // line 299
  670.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse299)) {
  671.                                 // line 300
  672.                                 echo "\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-select\">
  673.                                                 \t<span>";
  674.                                 // line 301
  675.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'301$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse301), "vars", [], "any"falsefalsefalse301), "label", [], "array"falsefalsefalse301), "html"nulltrue);
  676.                                 echo "</span>
  677. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  678.                                 // line 302
  679.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'302$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse302), 'widget');
  680.                                 echo "
  681. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  682.                                 // line 303
  683.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'303$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse303), 'errors');
  684.                                 echo "
  685. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  686. \t\t\t\t\t\t\t\t\t\t\t";
  687.                             }
  688.                             // line 306
  689.                             echo "\t\t\t\t\t\t\t\t\t\t";
  690.                         }
  691.                         // line 307
  692.                         echo "\t\t\t\t\t\t\t\t\t\t<div class=\"myTemplate-ec-numberInput\">
  693. \t\t\t\t\t\t\t\t\t\t\t<span>";
  694.                         // line 308
  695.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  696.                         echo "</span>
  697. \t\t\t\t\t\t\t\t\t\t\t";
  698.                         // line 309
  699.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'309$this->source); })()), "quantity", [], "any"falsefalsefalse309), 'widget', ["attr" => ["class" => "quantity"]]);
  700.                         echo "
  701. \t\t\t\t\t\t\t\t\t\t\t";
  702.                         // line 310
  703.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'310$this->source); })()), "quantity", [], "any"falsefalsefalse310), 'errors');
  704.                         echo "
  705. \t\t\t\t\t\t\t\t\t\t</div>
  706. \t\t\t\t\t\t\t\t\t\t<div class=\"myTemplate-options\">
  707. \t\t\t\t\t\t\t\t\t\t\t";
  708.                         // line 313
  709.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'313$this->source); })()), 'rest');
  710.                         echo "
  711. \t\t\t\t\t\t\t\t\t\t</div>
  712. \t\t\t\t\t\t\t\t\t</div>
  713. \t\t\t\t\t\t\t\t</form>
  714. \t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
  715. \t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  716.                         // line 318
  717.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse318), "html"nulltrue);
  718.                         echo "\" form=\"productForm";
  719.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse318), "html"nulltrue);
  720.                         echo "\">
  721. \t\t\t\t\t\t\t\t\t\t";
  722.                         // line 319
  723.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  724.                         echo "
  725. \t\t\t\t\t\t\t\t\t</button>
  726. \t\t\t\t\t\t\t\t</div>
  727. \t\t\t\t\t\t\t";
  728.                     } else {
  729.                         // line 323
  730.                         echo "\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
  731. \t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  732. \t\t\t\t\t\t\t\t\t\t";
  733.                         // line 325
  734.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  735.                         echo "
  736. \t\t\t\t\t\t\t\t\t</button>
  737. \t\t\t\t\t\t\t\t</div>
  738. \t\t\t\t\t\t\t";
  739.                     }
  740.                     // line 329
  741.                     echo "\t\t\t\t\t\t</li>
  742. \t\t\t\t\t";
  743.                     ++$context['loop']['index0'];
  744.                     ++$context['loop']['index'];
  745.                     $context['loop']['first'] = false;
  746.                     if (isset($context['loop']['length'])) {
  747.                         --$context['loop']['revindex0'];
  748.                         --$context['loop']['revindex'];
  749.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  750.                     }
  751.                 }
  752.                 $_parent $context['_parent'];
  753.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  754.                 $context array_intersect_key($context$_parent) + $_parent;
  755.                 // line 331
  756.                 echo "\t\t\t\t</ul>
  757. \t\t\t</div>
  758. \t\t\t";
  759.                 // line 333
  760.                 echo twig_include($this->env$context"Product/option_description.twig");
  761.                 echo "<div class=\"ec-modal\">
  762. \t\t\t\t<div class=\"ec-modal-overlay\">
  763. \t\t\t\t\t<div class=\"ec-modal-wrap\">
  764. \t\t\t\t\t\t<span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  765.                 // line 336
  766.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  767.                 echo "\" alt=\"\"/></span></span>
  768. \t\t\t\t\t\t<div id=\"ec-modal-header\" class=\"text-center\">";
  769.                 // line 337
  770.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  771.                 echo "</div>
  772. \t\t\t\t\t\t<div class=\"ec-modal-box\">
  773. \t\t\t\t\t\t\t<div class=\"ec-role\">
  774. \t\t\t\t\t\t\t\t<span class=\"ec-inlineBtn--cancel\">";
  775.                 // line 340
  776.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  777.                 echo "</span>
  778. \t\t\t\t\t\t\t\t<a href=\"";
  779.                 // line 341
  780.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  781.                 echo "\" class=\"ec-inlineBtn--action\">";
  782.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  783.                 echo "</a>
  784. \t\t\t\t\t\t\t</div>
  785. \t\t\t\t\t\t</div>
  786. \t\t\t\t\t</div>
  787. \t\t\t\t</div>
  788. \t\t\t</div>
  789. \t\t\t<div class=\"ec-pagerRole\">
  790. \t\t\t\t";
  791.                 // line 348
  792.                 $this->loadTemplate("pager.twig""__string_template__b33764644a4387dbacec37bc42e8b2aa"348)->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.'348$this->source); })()), "paginationData", [], "any"falsefalsefalse348)]));
  793.                 // line 349
  794.                 echo "\t\t\t</div>
  795. \t\t";
  796.             }
  797.             // line 351
  798.             echo "\t";
  799.         }
  800.         
  801.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  802.         
  803.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  804.     }
  805.     public function getTemplateName()
  806.     {
  807.         return "__string_template__b33764644a4387dbacec37bc42e8b2aa";
  808.     }
  809.     public function isTraitable()
  810.     {
  811.         return false;
  812.     }
  813.     public function getDebugInfo()
  814.     {
  815.         return array (  831 => 351,  827 => 349,  825 => 348,  813 => 341,  809 => 340,  803 => 337,  799 => 336,  793 => 333,  789 => 331,  774 => 329,  767 => 325,  763 => 323,  756 => 319,  750 => 318,  742 => 313,  736 => 310,  732 => 309,  728 => 308,  725 => 307,  722 => 306,  716 => 303,  712 => 302,  708 => 301,  705 => 300,  703 => 299,  698 => 297,  694 => 296,  690 => 295,  687 => 294,  685 => 293,  675 => 291,  672 => 290,  670 => 289,  664 => 285,  658 => 283,  655 => 282,  647 => 280,  641 => 278,  638 => 277,  636 => 276,  633 => 275,  627 => 273,  625 => 272,  621 => 271,  608 => 267,  602 => 264,  598 => 263,  595 => 262,  578 => 261,  574 => 259,  572 => 258,  568 => 256,  561 => 252,  557 => 251,  553 => 249,  551 => 248,  548 => 247,  542 => 245,  536 => 243,  534 => 242,  529 => 239,  517 => 237,  513 => 236,  508 => 235,  504 => 234,  500 => 232,  494 => 229,  491 => 228,  489 => 227,  486 => 226,  480 => 224,  478 => 223,  475 => 222,  466 => 215,  463 => 214,  457 => 213,  454 => 212,  447 => 207,  444 => 206,  442 => 205,  439 => 204,  435 => 202,  424 => 199,  421 => 198,  417 => 197,  414 => 196,  412 => 195,  409 => 194,  405 => 192,  403 => 191,  397 => 190,  393 => 188,  390 => 187,  387 => 186,  384 => 185,  379 => 184,  376 => 183,  373 => 182,  370 => 181,  368 => 180,  363 => 177,  357 => 174,  354 => 173,  352 => 172,  346 => 168,  344 => 167,  337 => 162,  326 => 159,  323 => 158,  319 => 157,  312 => 152,  310 => 151,  304 => 147,  299 => 144,  297 => 143,  293 => 141,  291 => 140,  287 => 138,  285 => 137,  281 => 135,  279 => 134,  248 => 106,  245 => 105,  235 => 104,  208 => 86,  198 => 79,  167 => 51,  139 => 25,  125 => 24,  117 => 23,  100 => 22,  96 => 20,  86 => 19,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  816.     }
  817.     public function getSourceContext()
  818.     {
  819.         return new Source("{#
  820. This file is part of EC-CUBE
  821. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  822. http://www.ec-cube.co.jp/
  823. For the full copyright and license information, please view the LICENSE
  824. file that was distributed with this source code.
  825. #}
  826. {% extends 'default_frame.twig' %}
  827. {% set body_class = 'product_page' %}
  828. {% block stylesheet %}
  829. <link rel=\"stylesheet\" href=\"{{ asset('assets/css/products-list.css') }}\" type=\"text/css\" media=\"all\" />
  830. {% endblock %}
  831. {% block javascript %}
  832. \t<script>
  833. \t\teccube.productsClassCategories = {
  834. \t\t\t{% for Product in pagination %}
  835. \t\t\t\"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  836. \t\t\t{% endfor %}
  837. \t\t};
  838. \t\t\$(function() {
  839. \t\t\t// 表示件数を変更
  840. \t\t\t\$('.disp-number').change(function() {
  841. \t\t\t\tvar dispNumber = \$(this).val();
  842. \t\t\t\t\$('#disp_number').val(dispNumber);
  843. \t\t\t\t\$('#pageno').val(1);
  844. \t\t\t\t\$(\"#form1\").submit();
  845. \t\t\t});
  846. \t\t\t// 並び順を変更
  847. \t\t\t\$('.order-by').change(function() {
  848. \t\t\t\tvar orderBy = \$(this).val();
  849. \t\t\t\t\$('#orderby').val(orderBy);
  850. \t\t\t\t\$('#pageno').val(1);
  851. \t\t\t\t\$(\"#form1\").submit();
  852. \t\t\t});
  853. \t\t\t\$('.add-cart').on('click', function(e) {
  854. \t\t\t\tvar \$form = \$(this).parents('li').find('form');
  855. \t\t\t\t// 個数フォームのチェック
  856. \t\t\t\tvar \$quantity = \$form.parent().find('.quantity');
  857. \t\t\t\tif (\$quantity.val() < 1) {
  858. \t\t\t\t\t\$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  859. \t\t\t\t\tsetTimeout(function() {
  860. \t\t\t\t\t\tloadingOverlay('hide');
  861. \t\t\t\t\t}, 100);
  862. \t\t\t\t\treturn true;
  863. \t\t\t\t} else {
  864. \t\t\t\t\t\$quantity[0].setCustomValidity('');
  865. \t\t\t\t}
  866. \t\t\t\te.preventDefault();
  867. \t\t\t\t\$.ajax({
  868. \t\t\t\t\turl: \$form.attr('action'),
  869. \t\t\t\t\ttype: \$form.attr('method'),
  870. \t\t\t\t\tdata: \$form.serialize(),
  871. \t\t\t\t\tdataType: 'json',
  872. \t\t\t\t\tbeforeSend: function(xhr, settings) {
  873. \t\t\t\t\t\t// Buttonを無効にする
  874. \t\t\t\t\t\t\$('.add-cart').prop('disabled', true);
  875. \t\t\t\t\t}
  876. \t\t\t\t}).done(function(data) {
  877. \t\t\t\t\t// レスポンス内のメッセージをalertで表示
  878. \t\t\t\t\t\$.each(data.messages, function() {
  879. \t\t\t\t\t\t\$('#ec-modal-header').text(this);
  880. \t\t\t\t\t});
  881. \t\t\t\t\t\$('.ec-modal').show()
  882. \t\t\t\t\t// カートブロックを更新する
  883. \t\t\t\t\t\$.ajax({
  884. \t\t\t\t\t\turl: '{{ url('block_cart') }}',
  885. \t\t\t\t\t\ttype: 'GET',
  886. \t\t\t\t\t\tdataType: 'html'
  887. \t\t\t\t\t}).done(function(html) {
  888. \t\t\t\t\t\t\$('.ec-headerRole__cart').html(html);
  889. \t\t\t\t\t});
  890. \t\t\t\t}).fail(function(data) {
  891. \t\t\t\t\talert('{{ 'カートへの追加に失敗しました。'|trans }}');
  892. \t\t\t\t}).always(function(data) {
  893. \t\t\t\t\t// Buttonを有効にする
  894. \t\t\t\t\t\$('.add-cart').prop('disabled', false);
  895. \t\t\t\t});
  896. \t\t\t});
  897. \t\t});
  898. \t\t\$('.ec-modal-wrap').on('click', function(e) {
  899. \t\t\t// モーダル内の処理は外側にバブリングさせない
  900. \t\t\te.stopPropagation();
  901. \t\t});
  902. \t\t\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  903. \t\t\t\$('.ec-modal').hide()
  904. \t\t});
  905. \t</script>
  906. {% endblock %}
  907. {% block main %}
  908. \t<section id=\"main-visual\">
  909. \t\t<div class=\"mainvisual\" style=\"background-image: url('{{ asset('assets/img/common/mv_img_01.jpg') }}'); ?>)\"></div>
  910. \t</section>
  911. \t<section id=\"main-title\">
  912. \t\t<h2 class=\"page-title\">PRODUCTS</h2>
  913. \t\t<div class=\"scroll\">
  914. \t\t\t<a href=\"#topic-path\">
  915. \t\t\t\t<p>scroll</p>
  916. \t\t\t\t<img src=\"https://mx-build.jp/wp-content/themes/%E3%82%BF%E3%82%A4%E3%82%A8%E3%82%A4%E5%8C%97%E6%B5%B7%E9%81%93%E3%82%A8%E3%83%B3%E3%82%B7%E3%82%99%E3%83%8B%E3%82%A2%E3%82%A2%E3%83%AA%E3%83%B3%E3%82%AF%E3%82%99/img/scroll.png\" alt=\"scroll-arrow\">
  917. \t\t\t</a>
  918. \t\t</div>
  919. \t</section>
  920. \t<section id=\"topic-path\">
  921. \t\t<div class=\"wrapper\">
  922. \t\t\t<div class=\"container\">
  923. \t\t\t\t<div class=\"page\">
  924. \t\t\t\t\t<a href=\"/\">
  925. \t\t\t\t\t\t<span class=\"home\">HOME</span>
  926. \t\t\t\t\t</a>
  927. \t\t\t\t\t<span>&gt;</span>
  928. \t\t\t\t\t<span class=\"current\">商品一覧</span>
  929. \t\t\t\t</div>
  930. \t\t\t</div>
  931. \t\t</div>
  932. \t</section>
  933. \t<!-- 見出し -->
  934. \t<section id=\"heading\">
  935. \t\t<div class=\"wrapper\">
  936. \t\t\t<div class=\"container\">
  937. \t\t\t\t{% if subtitle == 'MX' %}
  938. \t\t\t\t\t<h3 class=\"title\">着心地を重視した商品(MX)</h3>
  939. \t\t\t\t\t<p class=\"content\">どちらも伸縮性があり、湿気を逃がし、高機能なテクニカル素材です。メッシュは暑い天候のモトでも通気性を高めます。</p>
  940. \t\t\t\t{% elseif subtitle == 'MTB' %}
  941. \t\t\t\t\t<h3 class=\"title\">プレミアム仕様の商品(MTB)</h3>
  942. \t\t\t\t\t<p class=\"content\">RENEN がプレミアムでテクニカルな生地を使用し、米国で手作りしています。</p>
  943. \t\t\t\t{% elseif subtitle == 'LIFE STYLE' %}
  944. \t\t\t\t\t<h3 class=\"title\">私生活に適した商品(LIFE STYLE)</h3>
  945. \t\t\t\t\t<p class=\"content\">私服におすすめのRENENがデザインしたオシャレな商品。</p>
  946. \t\t\t\t{% elseif subtitle == 'SALE' %}
  947. \t\t\t\t\t<h3 class=\"title\">お得な商品(SALE)</h3>
  948. \t\t\t\t\t<p class=\"content\">期間限定でお得にな金額で販売しております。</p>
  949. \t\t\t\t{% endif %}
  950. \t\t\t</div>
  951. \t\t</div>
  952. \t</section>
  953. \t<!-- メニューバー -->
  954. \t{% set Categories = repository('Eccube\\\\Entity\\\\Category').getList() %}
  955. \t<section id=\"menu-bar\">
  956. \t\t<div class=\"wrapper\">
  957. \t\t\t<div class=\"container\">
  958. \t\t\t\t<nav>
  959. \t\t\t\t\t<ul class=\"menu-list\">
  960. \t\t\t\t\t\t{% for cate in Categories %}
  961. \t\t\t\t\t\t\t<li class=\"menu\">
  962. \t\t\t\t\t\t\t\t<a href=\"/shop/products/list?category_id={{ cate.id }}\">{{ cate.name }}</a>
  963. \t\t\t\t\t\t\t</li>
  964. \t\t\t\t\t\t{% endfor %}
  965. \t\t\t\t\t</ul>
  966. \t\t\t\t</nav>
  967. \t\t\t</div>
  968. \t\t</div>
  969. \t</section>
  970. \t{% if Category %}
  971. \t\t<!-- 製品メニュー -->
  972. \t\t<section id=\"products-menu\">
  973. \t\t\t<div class=\"wrapper\">
  974. \t\t\t\t<div class=\"container\">
  975. \t\t\t\t\t{% if subtitle %}
  976. \t\t\t\t\t\t<div class=\"contents-title\">
  977. \t\t\t\t\t\t\t<h2>{{ subtitle }}</h2>
  978. \t\t\t\t\t\t</div>
  979. \t\t\t\t\t{% endif %}
  980. \t\t\t\t\t<div class=\"contents\">
  981. \t\t\t\t\t\t<div class=\"contents-left\">
  982. \t\t\t\t\t\t\t<ul class=\"menu-list\">
  983. \t\t\t\t\t\t\t\t{% set cate_childs = Category.getDescendants %}
  984. \t\t\t\t\t\t\t\t{% set index = 0 %}
  985. \t\t\t\t\t\t\t\t{% if cate_childs %}
  986. \t\t\t\t\t\t\t\t\t{% set h = Category.hierarchy + 1 %}
  987. \t\t\t\t\t\t\t\t\t\t{% for cate in cate_childs %}
  988. \t\t\t\t\t\t\t\t\t\t\t{% if h == cate.hierarchy %}
  989. \t\t\t\t\t\t\t\t\t\t\t\t{% set ChiledCategory = repository('Eccube\\\\Entity\\\\Category').find(cate.id) %}
  990. \t\t\t\t\t\t\t\t\t\t\t\t{% set child_categories = ChiledCategory.getDescendants %}
  991. \t\t\t\t\t\t\t\t\t\t\t\t<li class=\"accordion-menu\">
  992. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"main-menu\">
  993. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<p><a href=\"/shop/products/list?category_id={{ cate.id }}\">{{ cate.name }}</a></p>
  994. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if child_categories %}
  995. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"arrow\"></div>
  996. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  997. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  998. \t\t\t\t\t\t\t\t\t\t\t\t\t{% if child_categories %}
  999. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"sub-menu\">
  1000. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for cate in child_categories %}
  1001. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"menu\">
  1002. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"/shop/products/list?category_id={{ cate.id }}\">{{ cate.name }}</a>
  1003. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>
  1004. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  1005. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
  1006. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1007. \t\t\t\t\t\t\t\t\t\t\t\t</li>
  1008. \t\t\t\t\t\t\t\t\t\t\t\t{% set index = index + 1 %}
  1009. \t\t\t\t\t\t\t\t\t\t\t\t{% if index == column[0] %}
  1010. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>
  1011. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1012. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"contents-right\">
  1013. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"menu-list\">
  1014. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1015. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1016. \t\t\t\t\t\t\t\t\t\t{% endfor %}
  1017. \t\t\t\t\t\t\t\t{% endif %}
  1018. \t\t\t\t\t\t\t</ul>
  1019. \t\t\t\t\t\t</div>
  1020. \t\t\t\t\t</div>
  1021. \t\t\t\t</div>
  1022. \t\t\t</div>
  1023. \t\t</section>
  1024. \t{% endif %}
  1025. \t{% if search_form.vars.value and search_form.vars.value.name %}
  1026. \t\t{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}
  1027. \t{% endif %}
  1028. \t{% if search_form.category_id.vars.errors|length > 0 %}
  1029. \t\t<div class=\"ec-searchnavRole\">
  1030. \t\t\t<p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  1031. \t\t</div>
  1032. \t{% else %}
  1033. \t\t<div class=\"ec-searchnavRole\">
  1034. \t\t\t<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  1035. \t\t\t\t{% for item in search_form %}
  1036. \t\t\t\t\t<input type=\"hidden\" id=\"{{ item.vars.id }}\"
  1037. \t\t\t\t\t\t   name=\"{{ item.vars.full_name }}\"
  1038. \t\t\t\t\t\t   {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  1039. \t\t\t\t{% endfor %}
  1040. \t\t\t</form>
  1041. \t\t\t<div class=\"ec-searchnavRole__infos\">
  1042. \t\t\t\t<div class=\"ec-searchnavRole__counter\">
  1043. \t\t\t\t\t{% if pagination.totalItemCount > 0 %}
  1044. \t\t\t\t\t\t{{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  1045. \t\t\t\t\t{% else %}
  1046. \t\t\t\t\t\t<span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  1047. \t\t\t\t\t{% endif %}
  1048. \t\t\t\t</div>
  1049. \t\t\t\t{% if pagination.totalItemCount > 0 %}
  1050. \t\t\t\t\t<div class=\"ec-searchnavRole__actions\">
  1051. \t\t\t\t\t\t<div class=\"ec-select\">
  1052. \t\t\t\t\t\t\t{{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  1053. \t\t\t\t\t\t\t{{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
  1054. \t\t\t\t\t\t</div>
  1055. \t\t\t\t\t</div>
  1056. \t\t\t\t{% endif %}
  1057. \t\t\t</div>
  1058. \t\t</div>
  1059. \t\t{% if pagination.totalItemCount > 0 %}
  1060. \t\t\t<div class=\"ec-shelfRole\">
  1061. \t\t\t\t<ul class=\"ec-shelfGrid\">
  1062. \t\t\t\t\t{% for Product in pagination %}
  1063. \t\t\t\t\t\t<li class=\"ec-shelfGrid__item\">
  1064. \t\t\t\t\t\t\t<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  1065. \t\t\t\t\t\t\t\t<div class=\"ec-shelfGrid__item-image\"><div style=\"background-image: url({{ asset(Product.main_list_image|no_image_product, 'save_image') }});\"></div></div>
  1066. \t\t\t\t\t\t\t\t<!--
  1067. \t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
  1068. \t\t\t\t\t\t\t\t\t<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  1069. \t\t\t\t\t\t\t\t</p>
  1070. \t\t\t\t\t\t\t\t-->
  1071. \t\t\t\t\t\t\t\t<div class=\"myTemplate-item-header\">
  1072. \t\t\t\t\t\t\t\t\t<p>{{ Product.name }}</p>
  1073. \t\t\t\t\t\t\t\t\t{% if Product.description_list %}
  1074. \t\t\t\t\t\t\t\t\t\t<p>{{ Product.description_list|raw|nl2br }}</p>
  1075. \t\t\t\t\t\t\t\t\t{% endif %}
  1076. \t\t\t\t\t\t\t\t\t<p class=\"price02-default\">
  1077. \t\t\t\t\t\t\t\t\t\t{% if Product.hasProductClass %}
  1078. \t\t\t\t\t\t\t\t\t\t\t{% if Product.getPrice02Min == Product.getPrice02Max %}
  1079. \t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMin|price }}
  1080. \t\t\t\t\t\t\t\t\t\t\t{% else %}
  1081. \t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  1082. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1083. \t\t\t\t\t\t\t\t\t\t{% else %}
  1084. \t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMin|price }}
  1085. \t\t\t\t\t\t\t\t\t\t{% endif %}
  1086. \t\t\t\t\t\t\t\t\t</p>
  1087. \t\t\t\t\t\t\t\t</div>
  1088. \t\t\t\t\t\t\t</a>
  1089. \t\t\t\t\t\t\t{% if Product.stock_find %}
  1090. \t\t\t\t\t\t\t\t{% set form = forms[Product.id] %}
  1091. \t\t\t\t\t\t\t\t<form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  1092. \t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__actions\">
  1093. \t\t\t\t\t\t\t\t\t\t{% if form.classcategory_id1 is defined %}
  1094. \t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-select\">
  1095.                                                 <span>{{ form.classcategory_id1.vars['label'] }}</span>
  1096. \t\t\t\t\t\t\t\t\t\t\t\t{{ form_widget(form.classcategory_id1) }}
  1097. \t\t\t\t\t\t\t\t\t\t\t\t{{ form_errors(form.classcategory_id1) }}
  1098. \t\t\t\t\t\t\t\t\t\t\t</div>
  1099. \t\t\t\t\t\t\t\t\t\t\t{% if form.classcategory_id2 is defined %}
  1100. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-select\">
  1101.                                                 \t<span>{{ form.classcategory_id2.vars['label'] }}</span>
  1102. \t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_widget(form.classcategory_id2) }}
  1103. \t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_errors(form.classcategory_id2) }}
  1104. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  1105. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1106. \t\t\t\t\t\t\t\t\t\t{% endif %}
  1107. \t\t\t\t\t\t\t\t\t\t<div class=\"myTemplate-ec-numberInput\">
  1108. \t\t\t\t\t\t\t\t\t\t\t<span>{{ '数量'|trans }}</span>
  1109. \t\t\t\t\t\t\t\t\t\t\t{{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  1110. \t\t\t\t\t\t\t\t\t\t\t{{ form_errors(form.quantity) }}
  1111. \t\t\t\t\t\t\t\t\t\t</div>
  1112. \t\t\t\t\t\t\t\t\t\t<div class=\"myTemplate-options\">
  1113. \t\t\t\t\t\t\t\t\t\t\t{{ form_rest(form) }}
  1114. \t\t\t\t\t\t\t\t\t\t</div>
  1115. \t\t\t\t\t\t\t\t\t</div>
  1116. \t\t\t\t\t\t\t\t</form>
  1117. \t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
  1118. \t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  1119. \t\t\t\t\t\t\t\t\t\t{{ 'カートに入れる'|trans }}
  1120. \t\t\t\t\t\t\t\t\t</button>
  1121. \t\t\t\t\t\t\t\t</div>
  1122. \t\t\t\t\t\t\t{% else %}
  1123. \t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
  1124. \t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  1125. \t\t\t\t\t\t\t\t\t\t{{ 'ただいま品切れ中です。'|trans }}
  1126. \t\t\t\t\t\t\t\t\t</button>
  1127. \t\t\t\t\t\t\t\t</div>
  1128. \t\t\t\t\t\t\t{% endif %}
  1129. \t\t\t\t\t\t</li>
  1130. \t\t\t\t\t{% endfor %}
  1131. \t\t\t\t</ul>
  1132. \t\t\t</div>
  1133. \t\t\t{{ include('Product/option_description.twig') }}<div class=\"ec-modal\">
  1134. \t\t\t\t<div class=\"ec-modal-overlay\">
  1135. \t\t\t\t\t<div class=\"ec-modal-wrap\">
  1136. \t\t\t\t\t\t<span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  1137. \t\t\t\t\t\t<div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  1138. \t\t\t\t\t\t<div class=\"ec-modal-box\">
  1139. \t\t\t\t\t\t\t<div class=\"ec-role\">
  1140. \t\t\t\t\t\t\t\t<span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  1141. \t\t\t\t\t\t\t\t<a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  1142. \t\t\t\t\t\t\t</div>
  1143. \t\t\t\t\t\t</div>
  1144. \t\t\t\t\t</div>
  1145. \t\t\t\t</div>
  1146. \t\t\t</div>
  1147. \t\t\t<div class=\"ec-pagerRole\">
  1148. \t\t\t\t{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  1149. \t\t\t</div>
  1150. \t\t{% endif %}
  1151. \t{% endif %}
  1152. {% endblock %}""__string_template__b33764644a4387dbacec37bc42e8b2aa""");
  1153.     }
  1154. }