var/cache/dev/twig/fb/fbb6f863e13fadcd1f0755eb76c4d0639b707ca78b2dd34cd2e6868ad7386dfa.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Product/list.twig */
  14. class __TwigTemplate_b513cd64c3477bd98173aef2868fae788a8c9d11c0db5c4d797ac7027dea88ea 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  40.         // line 13
  41.         $context["body_class"] = "product_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 15
  51.     public function block_stylesheet($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         // line 16
  59.         echo "\t<style>
  60. \t\t.mod-form-select.form-select {
  61. \t\t\twidth: 100% !important;
  62. \t\t}
  63. \t</style>
  64. ";
  65.         
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  67.         
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  69.     }
  70.     // line 23
  71.     public function block_javascript($context, array $blocks = [])
  72.     {
  73.         $macros $this->macros;
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  78.         // line 24
  79.         echo "    <script>
  80.         eccube.productsClassCategories = {
  81.             ";
  82.         // line 26
  83.         $context['_parent'] = $context;
  84.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'26$this->source); })()));
  85.         $context['loop'] = [
  86.           'parent' => $context['_parent'],
  87.           'index0' => 0,
  88.           'index'  => 1,
  89.           'first'  => true,
  90.         ];
  91.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  92.             $length count($context['_seq']);
  93.             $context['loop']['revindex0'] = $length 1;
  94.             $context['loop']['revindex'] = $length;
  95.             $context['loop']['length'] = $length;
  96.             $context['loop']['last'] = === $length;
  97.         }
  98.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  99.             // line 27
  100.             echo "            \"";
  101.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse27), "js"), "html"nulltrue);
  102.             echo "\": ";
  103.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  104.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse27) == false)) {
  105.                 echo ", ";
  106.             }
  107.             // line 28
  108.             echo "            ";
  109.             ++$context['loop']['index0'];
  110.             ++$context['loop']['index'];
  111.             $context['loop']['first'] = false;
  112.             if (isset($context['loop']['length'])) {
  113.                 --$context['loop']['revindex0'];
  114.                 --$context['loop']['revindex'];
  115.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  116.             }
  117.         }
  118.         $_parent $context['_parent'];
  119.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  120.         $context array_intersect_key($context$_parent) + $_parent;
  121.         // line 29
  122.         echo "        };
  123.         \$(function() {
  124.             // 表示件数を変更
  125.             \$('.disp-number').change(function() {
  126.                 var dispNumber = \$(this).val();
  127.                 \$('#disp_number').val(dispNumber);
  128.                 \$('#pageno').val(1);
  129.                 \$(\"#form1\").submit();
  130.             });
  131.             // 並び順を変更
  132.             \$('.order-by').change(function() {
  133.                 var orderBy = \$(this).val();
  134.                 \$('#orderby').val(orderBy);
  135.                 \$('#pageno').val(1);
  136.                 \$(\"#form1\").submit();
  137.             });
  138.             \$('.add-cart').on('click', function(e) {
  139.                 var \$form = \$(this).parents('li').find('form');
  140.                 // 個数フォームのチェック
  141.                 var \$quantity = \$form.parent().find('.quantity');
  142.                 if (\$quantity.val() < 1) {
  143.                     \$quantity[0].setCustomValidity('";
  144.         // line 55
  145.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  146.         echo "');
  147.                     setTimeout(function() {
  148.                         loadingOverlay('hide');
  149.                     }, 100);
  150.                     return true;
  151.                 } else {
  152.                     \$quantity[0].setCustomValidity('');
  153.                 }
  154.                 e.preventDefault();
  155.                 \$.ajax({
  156.                     url: \$form.attr('action'),
  157.                     type: \$form.attr('method'),
  158.                     data: \$form.serialize(),
  159.                     dataType: 'json',
  160.                     beforeSend: function(xhr, settings) {
  161.                         // Buttonを無効にする
  162.                         \$('.add-cart').prop('disabled', true);
  163.                     }
  164.                 }).done(function(data) {
  165.                     // レスポンス内のメッセージをalertで表示
  166.                     \$.each(data.messages, function() {
  167.                         \$('#ec-modal-header').text(this);
  168.                     });
  169.                     \$('.ec-modal').show()
  170.                     // カートブロックを更新する
  171.                     \$.ajax({
  172.                         url: '";
  173.         // line 83
  174.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  175.         echo "',
  176.                         type: 'GET',
  177.                         dataType: 'html'
  178.                     }).done(function(html) {
  179.                         \$('.ec-headerRole__cart').html(html);
  180.                     });
  181.                 }).fail(function(data) {
  182.                     alert('";
  183.         // line 90
  184.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  185.         echo "');
  186.                 }).always(function(data) {
  187.                     // Buttonを有効にする
  188.                     \$('.add-cart').prop('disabled', false);
  189.                 });
  190.             });
  191.         });
  192.         \$('.ec-modal-wrap').on('click', function(e) {
  193.             // モーダル内の処理は外側にバブリングさせない
  194.             e.stopPropagation();
  195.         });
  196.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  197.             \$('.ec-modal').hide()
  198.         });
  199.     </script>
  200. ";
  201.         
  202.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  203.         
  204.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  205.     }
  206.     // line 108
  207.     public function block_main($context, array $blocks = [])
  208.     {
  209.         $macros $this->macros;
  210.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  211.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  212.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  213.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  214.         // line 109
  215.         echo "\t<div
  216. \t\tclass=\"sub-container\">
  217. \t\t<!-- SUB H1 -->
  218. \t\t<div
  219. \t\t\tclass=\"sub-h1Wrap\">
  220. \t\t\t<h1 class=\"sub-h1\">
  221. \t\t\t\t";
  222.         // line 115
  223.         if ((array_key_exists("subtitle"$context) &&  !twig_test_empty((isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'115$this->source); })())))) {
  224.             // line 116
  225.             echo "\t\t\t\t\t";
  226.             // line 117
  227.             echo "\t\t\t\t\t";
  228.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'117$this->source); })()))) {
  229.                 // line 118
  230.                 echo "\t\t\t\t\t\t";
  231.                 // line 119
  232.                 echo "\t\t\t\t\t\t";
  233.                 if ( !(null === 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.'119$this->source); })()), "Parent", [], "any"falsefalsefalse119))) {
  234.                     // line 120
  235.                     echo "\t\t\t\t\t\t\t";
  236.                     // line 121
  237.                     echo "\t\t\t\t\t\t\t";
  238.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'121$this->source); })()), "Parent", [], "any"falsefalsefalse121), "name", [], "any"falsefalsefalse121), "html"nulltrue);
  239.                     echo "
  240. \t\t\t\t\t\t";
  241.                 }
  242.                 // line 123
  243.                 echo "\t\t\t\t\t";
  244.             }
  245.             // line 124
  246.             echo "
  247. \t\t\t\t\t";
  248.             // line 125
  249.             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.'125$this->source); })()), "html"nulltrue);
  250.             echo "
  251. \t\t\t\t";
  252.         } elseif ((        // line 127
  253. array_key_exists("title"$context) &&  !twig_test_empty((isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'127$this->source); })())))) {
  254.             // line 128
  255.             echo "\t\t\t\t\t";
  256.             echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'128$this->source); })()), "html"nulltrue);
  257.             echo "
  258. \t\t\t\t";
  259.         }
  260.         // line 129
  261.         echo "\t
  262. \t\t\t</h1>
  263. \t\t</div>
  264. \t\t<!-- /SUB H1 -->
  265. \t\t<div
  266. \t\t\tclass=\"l-container\">
  267. \t\t\t<!-- パンくずリスト -->
  268. \t\t\t<ol class=\"sub-breadcrumbs\">
  269. \t\t\t\t<li>
  270. \t\t\t\t\t<a href=\"";
  271.         // line 138
  272.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  273.         echo "\">HOME</a>
  274. \t\t\t\t</li>
  275. \t\t\t\t";
  276.         // line 141
  277.         if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'141$this->source); })()))) {
  278.             // line 142
  279.             echo "\t\t\t\t\t<li>
  280. \t\t\t\t\t\t<a href=\"";
  281.             // line 143
  282.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  283.             echo "\">全商品</a>
  284. \t\t\t\t\t</li>
  285. \t\t\t\t\t";
  286.             // line 147
  287.             echo "\t\t\t\t\t";
  288.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'147$this->source); })()))) {
  289.                 // line 148
  290.                 echo "\t\t\t\t\t\t";
  291.                 // line 149
  292.                 echo "\t\t\t\t\t\t";
  293.                 if ( !(null === 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.'149$this->source); })()), "Parent", [], "any"falsefalsefalse149))) {
  294.                     // line 150
  295.                     echo "\t\t\t\t\t\t\t";
  296.                     // line 151
  297.                     echo "\t\t\t\t\t\t\t<li>
  298. \t\t\t\t\t\t\t\t<a href=\"";
  299.                     // line 152
  300.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  301.                     echo "?category_id=";
  302.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'152$this->source); })()), "Parent", [], "any"falsefalsefalse152), "id", [], "any"falsefalsefalse152), "html"nulltrue);
  303.                     echo "\">";
  304.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'152$this->source); })()), "Parent", [], "any"falsefalsefalse152), "name", [], "any"falsefalsefalse152), "html"nulltrue);
  305.                     echo "</a>
  306. \t\t\t\t\t\t\t</li>
  307. \t\t\t\t\t\t";
  308.                 }
  309.                 // line 155
  310.                 echo "\t\t\t\t\t";
  311.             }
  312.             // line 156
  313.             echo "
  314. \t\t\t\t";
  315.         }
  316.         // line 157
  317.         echo "\t\t\t\t
  318. \t\t\t\t<li>
  319. \t\t\t\t\t";
  320.         // line 159
  321.         if ((array_key_exists("subtitle"$context) &&  !twig_test_empty((isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'159$this->source); })())))) {
  322.             // line 160
  323.             echo "\t\t\t\t\t\t";
  324.             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.'160$this->source); })()), "html"nulltrue);
  325.             echo "
  326. \t\t\t\t\t";
  327.         } elseif ((        // line 161
  328. array_key_exists("title"$context) &&  !twig_test_empty((isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'161$this->source); })())))) {
  329.             // line 162
  330.             echo "\t\t\t\t\t\t";
  331.             echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'162$this->source); })()), "html"nulltrue);
  332.             echo "
  333. \t\t\t\t\t";
  334.         }
  335.         // line 164
  336.         echo "\t\t\t\t</li>
  337. \t\t\t</ol>
  338. \t\t\t<!-- /パンくずリスト -->
  339. \t\t\t<div
  340. \t\t\t\tclass=\"l-2ColumnContainer\">
  341. \t\t\t\t<!-- メインコンテンツ -->
  342. \t\t\t\t<div
  343. \t\t\t\t\tclass=\"l-main\">
  344. \t\t\t\t\t<!-- PAGE CONTENTS -->
  345. \t\t\t\t\t<div class=\"products productsList\">
  346. \t\t\t\t\t\t";
  347.         // line 175
  348.         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.'175$this->source); })()), "category_id", [], "any"falsefalsefalse175), "vars", [], "any"falsefalsefalse175), "errors", [], "any"falsefalsefalse175)) > 0)) {
  349.             // line 176
  350.             echo "\t\t\t\t\t\t\t<div class=\"ec-searchnavRole\">
  351. \t\t\t\t\t\t\t\t<p class=\"errormsg text-danger\">";
  352.             // line 177
  353.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  354.             echo "</p>
  355. \t\t\t\t\t\t\t</div>
  356. \t\t\t\t\t\t";
  357.         } else {
  358.             // line 180
  359.             echo "\t\t\t\t\t\t\t<section>
  360. \t\t\t\t\t\t\t\t<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  361. \t\t\t\t\t\t\t\t\t";
  362.             // line 182
  363.             $context['_parent'] = $context;
  364.             $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.'182$this->source); })()));
  365.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  366.                 // line 183
  367.                 echo "\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"";
  368.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse183), "id", [], "any"falsefalsefalse183), "html"nulltrue);
  369.                 echo "\" name=\"";
  370.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse183), "full_name", [], "any"falsefalsefalse183), "html"nulltrue);
  371.                 echo "\" ";
  372.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse183), "value", [], "any"falsefalsefalse183))) {
  373.                     echo " value=\"";
  374.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse183), "value", [], "any"falsefalsefalse183), "html"nulltrue);
  375.                     echo "\" ";
  376.                 }
  377.                 echo "/>
  378. \t\t\t\t\t\t\t\t\t";
  379.             }
  380.             $_parent $context['_parent'];
  381.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  382.             $context array_intersect_key($context$_parent) + $_parent;
  383.             // line 185
  384.             echo "\t\t\t\t\t\t\t\t</form>
  385. \t\t\t\t\t\t\t\t
  386. \t\t\t\t\t\t\t\t<h2 class=\"mod-hl-01 productsList-hl\">
  387. \t\t\t\t\t\t\t\t\t<span class=\"isJp\">";
  388.             // line 188
  389.             if ((array_key_exists("subtitle"$context) &&  !twig_test_empty((isset($context["subtitle"]) || array_key_exists("subtitle"$context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.'188$this->source); })())))) {
  390.                 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.'188$this->source); })()), "html"nulltrue);
  391.             } elseif ((array_key_exists("title"$context) &&  !twig_test_empty((isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'188$this->source); })())))) {
  392.                 echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'188$this->source); })()), "html"nulltrue);
  393.             }
  394.             echo "</span>
  395. \t\t\t\t\t\t\t\t</h2>\t\t
  396. \t\t\t\t\t\t\t\t";
  397.             // line 191
  398.             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.'191$this->source); })()), "totalItemCount", [], "any"falsefalsefalse191) > 0)) {
  399.                 // line 192
  400.                 echo "\t\t\t\t\t\t\t\t\t<!-- 並び替えform -->
  401. \t\t\t\t\t\t\t\t\t<div class=\"productsList-sort-setting\">
  402. \t\t\t\t\t\t\t\t\t\t<form>
  403. \t\t\t\t\t\t\t\t\t\t\t";
  404.                 // line 195
  405.                 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.'195$this->source); })()), "disp_number", [], "any"falsefalsefalse195), 'widget', ["id" => """attr" => ["class" => "mod-form-select disp-number"]]);
  406.                 echo "
  407. \t\t\t\t\t\t\t\t\t\t\t";
  408.                 // line 196
  409.                 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.'196$this->source); })()), "orderby", [], "any"falsefalsefalse196), 'widget', ["id" => """attr" => ["class" => "mod-form-select order-by"]]);
  410.                 echo "
  411. \t\t\t\t\t\t\t\t\t\t</form>
  412. \t\t\t\t\t\t\t\t\t</div>
  413. \t\t\t\t\t\t\t\t\t<!-- /並び替えform -->
  414. \t\t\t\t\t\t\t\t";
  415.             }
  416.             // line 201
  417.             echo "
  418. \t\t\t\t\t\t\t\t";
  419.             // line 202
  420.             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.'202$this->source); })()), "totalItemCount", [], "any"falsefalsefalse202) > 0)) {
  421.                 // line 203
  422.                 echo "\t\t\t\t\t\t\t\t\t<div class=\"productsList-sort-result\">
  423. \t\t\t\t\t\t\t\t\t\t<div class=\"mod-products-list\">
  424. \t\t\t\t\t\t\t\t\t\t\t";
  425.                 // line 205
  426.                 $context['_parent'] = $context;
  427.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'205$this->source); })()));
  428.                 $context['loop'] = [
  429.                   'parent' => $context['_parent'],
  430.                   'index0' => 0,
  431.                   'index'  => 1,
  432.                   'first'  => true,
  433.                 ];
  434.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  435.                     $length count($context['_seq']);
  436.                     $context['loop']['revindex0'] = $length 1;
  437.                     $context['loop']['revindex'] = $length;
  438.                     $context['loop']['length'] = $length;
  439.                     $context['loop']['last'] = === $length;
  440.                 }
  441.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  442.                     // line 206
  443.                     echo "\t\t\t\t\t\t\t\t\t\t\t\t<article class=\"productsBox\">
  444. \t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  445.                     // line 207
  446.                     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"falsefalsefalse207)]), "html"nulltrue);
  447.                     echo "\" class=\"productsBoxInner\">
  448. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"productsBox-img\">
  449. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"imgInner\">
  450. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
  451.                     // line 210
  452.                     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"falsefalsefalse210)), "save_image"), "html"nulltrue);
  453.                     echo "\" alt=\"";
  454.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse210), "html"nulltrue);
  455.                     echo "\" ";
  456.                     if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse210) > 5)) {
  457.                         echo " loading=\"lazy\" ";
  458.                     }
  459.                     echo " class=\"imgObjectFitCover\">
  460. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  461.                     // line 211
  462.                     if ( !twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse211)) {
  463.                         // line 212
  464.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"is-soldout\">
  465. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>SOLD OUT</span>
  466. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  467. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  468.                     }
  469.                     // line 216
  470.                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>
  471. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>
  472. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"productsBox-hl\">";
  473.                     // line 218
  474.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse218), "html"nulltrue);
  475.                     echo "</h3>
  476. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  477.                     // line 219
  478.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse219)) {
  479.                         // line 220
  480.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>";
  481.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse220));
  482.                         echo "</p>
  483. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  484.                     }
  485.                     // line 222
  486.                     echo "
  487. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  488.                     // line 224
  489.                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  490.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse224)) {
  491.                         // line 225
  492.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__priceRegular\" style=\"margin-top:10px;\">
  493. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  494.                         // line 226
  495.                         if (( !(null === twig_get_attribute($this->env$this->source$context["Product"], "getPrice01Min", [], "any"falsefalsefalse226)) && (twig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMin", [], "any"falsefalsefalse226) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMax", [], "any"falsefalsefalse226)))) {
  496.                             // line 227
  497.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-productRole__priceRegularPrice\"><span class=\"price01-default\" style=\"text-decoration:line-through;\">";
  498.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMin", [], "any"falsefalsefalse227)), "html"nulltrue);
  499.                             echo "円</span></span>
  500. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-productRole__priceRegularTax\" style=\"text-decoration:line-through;\">";
  501.                             // line 228
  502.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  503.                             echo "</span>
  504. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  505.                         } elseif (( !(null === twig_get_attribute($this->env$this->source,                         // line 229
  506. $context["Product"], "getPrice01Min", [], "any"falsefalsefalse229)) &&  !(null === twig_get_attribute($this->env$this->source$context["Product"], "getPrice01Max", [], "any"falsefalsefalse229)))) {
  507.                             // line 230
  508.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-productRole__priceRegularPrice\"><span class=\"price01-default\" style=\"text-decoration:line-through;\">";
  509.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMin", [], "any"falsefalsefalse230)), "html"nulltrue);
  510.                             echo "~ ";
  511.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMax", [], "any"falsefalsefalse230)), "html"nulltrue);
  512.                             echo "円</span></span>
  513. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-productRole__priceRegularTax\" style=\"text-decoration:line-through;\">";
  514.                             // line 231
  515.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  516.                             echo "</span>
  517. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  518.                         }
  519.                         // line 233
  520.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  521. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  522.                     } else {
  523.                         // line 235
  524.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  525.                         if ( !(null === twig_get_attribute($this->env$this->source$context["Product"], "getPrice01Max", [], "any"falsefalsefalse235))) {
  526.                             // line 236
  527.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-productRole__priceRegularPrice\" style=\"text-decoration:line-through;\">";
  528.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice01IncTaxMin", [], "any"falsefalsefalse236)), "html"nulltrue);
  529.                             echo "円</span>
  530. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-productRole__priceRegularTax\" style=\"text-decoration:line-through;\">";
  531.                             // line 237
  532.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html"nulltrue);
  533.                             echo "</span>
  534. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  535.                         }
  536.                         // line 239
  537.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  538.                     }
  539.                     // line 240
  540.                     echo "
  541. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  542.                     // line 242
  543.                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"productsBox-text\" style=\"margin-top:0px;\">
  544. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  545.                     // line 243
  546.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse243)) {
  547.                         // line 244
  548.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  549.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse244) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse244))) {
  550.                             // line 245
  551.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  552.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse245)), "html"nulltrue);
  553.                             echo "
  554. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  555.                         } else {
  556.                             // line 247
  557.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  558.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse247)), "html"nulltrue);
  559.                             echo "
  560. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t~
  561. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  562.                             // line 249
  563.                             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse249)), "html"nulltrue);
  564.                             echo "
  565. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  566.                         }
  567.                         // line 251
  568.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  569.                     } else {
  570.                         // line 252
  571.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  572.                         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse252)), "html"nulltrue);
  573.                         echo "
  574. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  575.                     }
  576.                     // line 254
  577.                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t円<small class=\"isSmall\">税込</small>
  578. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
  579. \t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  580. \t\t\t\t\t\t\t\t\t\t\t\t</article>
  581. \t\t\t\t\t\t\t\t\t\t\t";
  582.                     ++$context['loop']['index0'];
  583.                     ++$context['loop']['index'];
  584.                     $context['loop']['first'] = false;
  585.                     if (isset($context['loop']['length'])) {
  586.                         --$context['loop']['revindex0'];
  587.                         --$context['loop']['revindex'];
  588.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  589.                     }
  590.                 }
  591.                 $_parent $context['_parent'];
  592.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  593.                 $context array_intersect_key($context$_parent) + $_parent;
  594.                 // line 258
  595.                 echo "\t\t\t\t\t\t\t\t
  596. \t\t\t\t\t\t\t\t\t\t</div>
  597. \t\t\t\t\t\t\t\t\t</div>
  598. \t\t\t\t\t\t\t\t\t";
  599.                 // line 261
  600.                 $this->loadTemplate("pager.twig""Product/list.twig"261)->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.'261$this->source); })()), "paginationData", [], "any"falsefalsefalse261)]));
  601.                 // line 262
  602.                 echo "\t\t\t\t\t\t\t\t";
  603.             }
  604.             // line 263
  605.             echo "
  606. \t\t\t\t\t\t\t\t<!-- 最近チェックした商品 -->
  607. \t\t\t\t\t\t\t\t";
  608.             // line 265
  609.             echo twig_include($this->env$context"Block/items_checked.twig", array(), truetrue);
  610.             echo "
  611. \t\t\t\t\t\t\t\t<!-- /最近チェックした商品 -->\t\t\t\t\t\t\t\t
  612. \t\t\t\t\t\t\t</section>
  613. \t\t\t\t\t\t";
  614.         }
  615.         // line 269
  616.         echo "\t\t\t\t\t</div>
  617. \t\t\t\t\t<!-- /PAGE CONTENTS -->
  618. \t\t\t\t</div>
  619. \t\t\t\t<!-- /メインコンテンツ -->
  620. \t\t\t\t<!-- サイドメニュー -->
  621. \t\t\t\t";
  622.         // line 277
  623.         echo twig_include($this->env$context"Block/l_sub.twig", array(), truetrue);
  624.         echo "
  625. \t\t\t\t<!-- /サイドメニュー -->
  626. \t\t\t</div>
  627. \t\t</div>
  628. \t</div>
  629. \t<style>
  630. \t\t.is-soldout{
  631. \t\t\tbackground-color: rgba(0, 0, 0, 0.5);
  632. \t\t\ttext-align: center;
  633. \t\t\tposition: absolute;
  634. \t\t\tcolor: #fff;
  635. \t\t\tfont-size: 1.8rem;
  636. \t\t\tmargin: 0 !important;
  637. \t\t\tpadding: 0 !important;
  638. \t\t\twidth: 100%;
  639. \t\t\theight: 100%;
  640. \t\t}
  641. \t\t.is-soldout span{
  642. \t\t\tposition: relative;
  643. \t\t\tdisplay: block;
  644. \t\t\theight: 100%;
  645. \t\t\ttop: 40%;
  646. \t\t}
  647. \t\t@media only screen and (min-width: 600px)and (max-width: 1023px){
  648. \t\t\t.is-soldout{
  649. \t\t\t\tfont-size: 1.3rem;
  650. \t\t\t}
  651. \t\t}
  652. \t</style>
  653. ";
  654.         
  655.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  656.         
  657.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  658.     }
  659.     public function getTemplateName()
  660.     {
  661.         return "Product/list.twig";
  662.     }
  663.     public function isTraitable()
  664.     {
  665.         return false;
  666.     }
  667.     public function getDebugInfo()
  668.     {
  669.         return array (  663 => 277,  653 => 269,  646 => 265,  642 => 263,  639 => 262,  637 => 261,  632 => 258,  614 => 254,  608 => 252,  605 => 251,  600 => 249,  594 => 247,  588 => 245,  585 => 244,  583 => 243,  580 => 242,  577 => 240,  574 => 239,  569 => 237,  564 => 236,  561 => 235,  557 => 233,  552 => 231,  545 => 230,  543 => 229,  539 => 228,  534 => 227,  532 => 226,  529 => 225,  526 => 224,  523 => 222,  517 => 220,  515 => 219,  511 => 218,  507 => 216,  501 => 212,  499 => 211,  489 => 210,  483 => 207,  480 => 206,  463 => 205,  459 => 203,  457 => 202,  454 => 201,  446 => 196,  442 => 195,  437 => 192,  435 => 191,  425 => 188,  420 => 185,  403 => 183,  399 => 182,  395 => 180,  389 => 177,  386 => 176,  384 => 175,  371 => 164,  365 => 162,  363 => 161,  358 => 160,  356 => 159,  352 => 157,  348 => 156,  345 => 155,  335 => 152,  332 => 151,  330 => 150,  327 => 149,  325 => 148,  322 => 147,  316 => 143,  313 => 142,  311 => 141,  305 => 138,  294 => 129,  288 => 128,  286 => 127,  281 => 125,  278 => 124,  275 => 123,  269 => 121,  267 => 120,  264 => 119,  262 => 118,  259 => 117,  257 => 116,  255 => 115,  247 => 109,  237 => 108,  210 => 90,  200 => 83,  169 => 55,  141 => 29,  127 => 28,  119 => 27,  102 => 26,  98 => 24,  88 => 23,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  670.     }
  671.     public function getSourceContext()
  672.     {
  673.         return new Source("{#
  674. This file is part of EC-CUBE
  675. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  676. http://www.ec-cube.co.jp/
  677. For the full copyright and license information, please view the LICENSE
  678. file that was distributed with this source code.
  679. #}
  680. {% extends 'default_frame.twig' %}
  681. {% set body_class = 'product_page' %}
  682. {% block stylesheet %}
  683. \t<style>
  684. \t\t.mod-form-select.form-select {
  685. \t\t\twidth: 100% !important;
  686. \t\t}
  687. \t</style>
  688. {% endblock %}
  689. {% block javascript %}
  690.     <script>
  691.         eccube.productsClassCategories = {
  692.             {% for Product in pagination %}
  693.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  694.             {% endfor %}
  695.         };
  696.         \$(function() {
  697.             // 表示件数を変更
  698.             \$('.disp-number').change(function() {
  699.                 var dispNumber = \$(this).val();
  700.                 \$('#disp_number').val(dispNumber);
  701.                 \$('#pageno').val(1);
  702.                 \$(\"#form1\").submit();
  703.             });
  704.             // 並び順を変更
  705.             \$('.order-by').change(function() {
  706.                 var orderBy = \$(this).val();
  707.                 \$('#orderby').val(orderBy);
  708.                 \$('#pageno').val(1);
  709.                 \$(\"#form1\").submit();
  710.             });
  711.             \$('.add-cart').on('click', function(e) {
  712.                 var \$form = \$(this).parents('li').find('form');
  713.                 // 個数フォームのチェック
  714.                 var \$quantity = \$form.parent().find('.quantity');
  715.                 if (\$quantity.val() < 1) {
  716.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  717.                     setTimeout(function() {
  718.                         loadingOverlay('hide');
  719.                     }, 100);
  720.                     return true;
  721.                 } else {
  722.                     \$quantity[0].setCustomValidity('');
  723.                 }
  724.                 e.preventDefault();
  725.                 \$.ajax({
  726.                     url: \$form.attr('action'),
  727.                     type: \$form.attr('method'),
  728.                     data: \$form.serialize(),
  729.                     dataType: 'json',
  730.                     beforeSend: function(xhr, settings) {
  731.                         // Buttonを無効にする
  732.                         \$('.add-cart').prop('disabled', true);
  733.                     }
  734.                 }).done(function(data) {
  735.                     // レスポンス内のメッセージをalertで表示
  736.                     \$.each(data.messages, function() {
  737.                         \$('#ec-modal-header').text(this);
  738.                     });
  739.                     \$('.ec-modal').show()
  740.                     // カートブロックを更新する
  741.                     \$.ajax({
  742.                         url: '{{ url('block_cart') }}',
  743.                         type: 'GET',
  744.                         dataType: 'html'
  745.                     }).done(function(html) {
  746.                         \$('.ec-headerRole__cart').html(html);
  747.                     });
  748.                 }).fail(function(data) {
  749.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  750.                 }).always(function(data) {
  751.                     // Buttonを有効にする
  752.                     \$('.add-cart').prop('disabled', false);
  753.                 });
  754.             });
  755.         });
  756.         \$('.ec-modal-wrap').on('click', function(e) {
  757.             // モーダル内の処理は外側にバブリングさせない
  758.             e.stopPropagation();
  759.         });
  760.         \$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
  761.             \$('.ec-modal').hide()
  762.         });
  763.     </script>
  764. {% endblock %}
  765. {% block main %}
  766. \t<div
  767. \t\tclass=\"sub-container\">
  768. \t\t<!-- SUB H1 -->
  769. \t\t<div
  770. \t\t\tclass=\"sub-h1Wrap\">
  771. \t\t\t<h1 class=\"sub-h1\">
  772. \t\t\t\t{% if subtitle is defined and subtitle is not empty %}
  773. \t\t\t\t\t{# 「全商品」を除外 #}
  774. \t\t\t\t\t{% if Category is not null %}
  775. \t\t\t\t\t\t{# 親カテゴリ(「個人印鑑」など)を除外 #}
  776. \t\t\t\t\t\t{% if Category.Parent is not null %}
  777. \t\t\t\t\t\t\t{# 子カテゴリ(「実印」など)にのみ適用 #}
  778. \t\t\t\t\t\t\t{{ Category.Parent.name }}
  779. \t\t\t\t\t\t{% endif %}
  780. \t\t\t\t\t{% endif %}
  781. \t\t\t\t\t{{ subtitle }}
  782. \t\t\t\t{% elseif title is defined and title is not empty %}
  783. \t\t\t\t\t{{ title }}
  784. \t\t\t\t{% endif %}\t
  785. \t\t\t</h1>
  786. \t\t</div>
  787. \t\t<!-- /SUB H1 -->
  788. \t\t<div
  789. \t\t\tclass=\"l-container\">
  790. \t\t\t<!-- パンくずリスト -->
  791. \t\t\t<ol class=\"sub-breadcrumbs\">
  792. \t\t\t\t<li>
  793. \t\t\t\t\t<a href=\"{{ url('homepage') }}\">HOME</a>
  794. \t\t\t\t</li>
  795. \t\t\t\t{% if Category is not null %}
  796. \t\t\t\t\t<li>
  797. \t\t\t\t\t\t<a href=\"{{ url('product_list') }}\">全商品</a>
  798. \t\t\t\t\t</li>
  799. \t\t\t\t\t{# 「全商品」を除外 #}
  800. \t\t\t\t\t{% if Category is not null %}
  801. \t\t\t\t\t\t{# 親カテゴリ(「個人印鑑」など)を除外 #}
  802. \t\t\t\t\t\t{% if Category.Parent is not null %}
  803. \t\t\t\t\t\t\t{# 子カテゴリ(「実印」など)にのみ適用 #}
  804. \t\t\t\t\t\t\t<li>
  805. \t\t\t\t\t\t\t\t<a href=\"{{ url('product_list') }}?category_id={{ Category.Parent.id }}\">{{ Category.Parent.name }}</a>
  806. \t\t\t\t\t\t\t</li>
  807. \t\t\t\t\t\t{% endif %}
  808. \t\t\t\t\t{% endif %}
  809. \t\t\t\t{% endif %}\t\t\t\t
  810. \t\t\t\t<li>
  811. \t\t\t\t\t{% if subtitle is defined and subtitle is not empty %}
  812. \t\t\t\t\t\t{{ subtitle }}
  813. \t\t\t\t\t{% elseif title is defined and title is not empty %}
  814. \t\t\t\t\t\t{{ title }}
  815. \t\t\t\t\t{% endif %}
  816. \t\t\t\t</li>
  817. \t\t\t</ol>
  818. \t\t\t<!-- /パンくずリスト -->
  819. \t\t\t<div
  820. \t\t\t\tclass=\"l-2ColumnContainer\">
  821. \t\t\t\t<!-- メインコンテンツ -->
  822. \t\t\t\t<div
  823. \t\t\t\t\tclass=\"l-main\">
  824. \t\t\t\t\t<!-- PAGE CONTENTS -->
  825. \t\t\t\t\t<div class=\"products productsList\">
  826. \t\t\t\t\t\t{% if search_form.category_id.vars.errors|length > 0 %}
  827. \t\t\t\t\t\t\t<div class=\"ec-searchnavRole\">
  828. \t\t\t\t\t\t\t\t<p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  829. \t\t\t\t\t\t\t</div>
  830. \t\t\t\t\t\t{% else %}
  831. \t\t\t\t\t\t\t<section>
  832. \t\t\t\t\t\t\t\t<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  833. \t\t\t\t\t\t\t\t\t{% for item in search_form %}
  834. \t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"{{ item.vars.id }}\" name=\"{{ item.vars.full_name }}\" {% if item.vars.value is not empty %} value=\"{{ item.vars.value }}\" {% endif %}/>
  835. \t\t\t\t\t\t\t\t\t{% endfor %}
  836. \t\t\t\t\t\t\t\t</form>
  837. \t\t\t\t\t\t\t\t
  838. \t\t\t\t\t\t\t\t<h2 class=\"mod-hl-01 productsList-hl\">
  839. \t\t\t\t\t\t\t\t\t<span class=\"isJp\">{% if subtitle is defined and subtitle is not empty %}{{ subtitle }}{% elseif title is defined and title is not empty %}{{ title }}{% endif %}</span>
  840. \t\t\t\t\t\t\t\t</h2>\t\t
  841. \t\t\t\t\t\t\t\t{% if pagination.totalItemCount > 0 %}
  842. \t\t\t\t\t\t\t\t\t<!-- 並び替えform -->
  843. \t\t\t\t\t\t\t\t\t<div class=\"productsList-sort-setting\">
  844. \t\t\t\t\t\t\t\t\t\t<form>
  845. \t\t\t\t\t\t\t\t\t\t\t{{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'mod-form-select disp-number'}}) }}
  846. \t\t\t\t\t\t\t\t\t\t\t{{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'mod-form-select order-by'}}) }}
  847. \t\t\t\t\t\t\t\t\t\t</form>
  848. \t\t\t\t\t\t\t\t\t</div>
  849. \t\t\t\t\t\t\t\t\t<!-- /並び替えform -->
  850. \t\t\t\t\t\t\t\t{% endif %}
  851. \t\t\t\t\t\t\t\t{% if pagination.totalItemCount > 0 %}
  852. \t\t\t\t\t\t\t\t\t<div class=\"productsList-sort-result\">
  853. \t\t\t\t\t\t\t\t\t\t<div class=\"mod-products-list\">
  854. \t\t\t\t\t\t\t\t\t\t\t{% for Product in pagination %}
  855. \t\t\t\t\t\t\t\t\t\t\t\t<article class=\"productsBox\">
  856. \t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ url('product_detail', {'id': Product.id}) }}\" class=\"productsBoxInner\">
  857. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"productsBox-img\">
  858. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"imgInner\">
  859. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\" {% endif %} class=\"imgObjectFitCover\">
  860. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if not Product.stock_find %}
  861. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"is-soldout\">
  862. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>SOLD OUT</span>
  863. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  864. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  865. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>
  866. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>
  867. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"productsBox-hl\">{{ Product.name }}</h3>
  868. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if Product.description_list %}
  869. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{ Product.description_list|raw|nl2br }}</p>
  870. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  871. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{# 通常価格 #}
  872. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if Product.hasProductClass %}
  873. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__priceRegular\" style=\"margin-top:10px;\">
  874. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
  875. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-productRole__priceRegularPrice\"><span class=\"price01-default\" style=\"text-decoration:line-through;\">{{ Product.getPrice01IncTaxMin|number_format }}円</span></span>
  876. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-productRole__priceRegularTax\" style=\"text-decoration:line-through;\">{{ '税込'|trans }}</span>
  877. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
  878. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-productRole__priceRegularPrice\"><span class=\"price01-default\" style=\"text-decoration:line-through;\">{{ Product.getPrice01IncTaxMin|number_format }}~ {{ Product.getPrice01IncTaxMax|number_format }}円</span></span>
  879. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-productRole__priceRegularTax\" style=\"text-decoration:line-through;\">{{ '税込'|trans }}</span>
  880. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  881. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  882. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  883. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if Product.getPrice01Max is not null %}
  884. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-productRole__priceRegularPrice\" style=\"text-decoration:line-through;\">{{ Product.getPrice01IncTaxMin|number_format }}円</span>
  885. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ec-productRole__priceRegularTax\" style=\"text-decoration:line-through;\">{{ '税込'|trans }}</span>
  886. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  887. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  888. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{# 販売価格 #}
  889. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"productsBox-text\" style=\"margin-top:0px;\">
  890. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if Product.hasProductClass %}
  891. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if Product.getPrice02Min == Product.getPrice02Max %}
  892. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMin|number_format }}
  893. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  894. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMin|number_format }}
  895. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t~
  896. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMax|number_format }}
  897. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  898. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  899. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMin|number_format }}
  900. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  901. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t円<small class=\"isSmall\">税込</small>
  902. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
  903. \t\t\t\t\t\t\t\t\t\t\t\t\t</a>
  904. \t\t\t\t\t\t\t\t\t\t\t\t</article>
  905. \t\t\t\t\t\t\t\t\t\t\t{% endfor %}\t\t\t\t\t\t\t\t
  906. \t\t\t\t\t\t\t\t\t\t</div>
  907. \t\t\t\t\t\t\t\t\t</div>
  908. \t\t\t\t\t\t\t\t\t{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  909. \t\t\t\t\t\t\t\t{% endif %}
  910. \t\t\t\t\t\t\t\t<!-- 最近チェックした商品 -->
  911. \t\t\t\t\t\t\t\t{{ include('Block/items_checked.twig', ignore_missing = true) }}
  912. \t\t\t\t\t\t\t\t<!-- /最近チェックした商品 -->\t\t\t\t\t\t\t\t
  913. \t\t\t\t\t\t\t</section>
  914. \t\t\t\t\t\t{% endif %}
  915. \t\t\t\t\t</div>
  916. \t\t\t\t\t<!-- /PAGE CONTENTS -->
  917. \t\t\t\t</div>
  918. \t\t\t\t<!-- /メインコンテンツ -->
  919. \t\t\t\t<!-- サイドメニュー -->
  920. \t\t\t\t{{ include('Block/l_sub.twig', ignore_missing = true) }}
  921. \t\t\t\t<!-- /サイドメニュー -->
  922. \t\t\t</div>
  923. \t\t</div>
  924. \t</div>
  925. \t<style>
  926. \t\t.is-soldout{
  927. \t\t\tbackground-color: rgba(0, 0, 0, 0.5);
  928. \t\t\ttext-align: center;
  929. \t\t\tposition: absolute;
  930. \t\t\tcolor: #fff;
  931. \t\t\tfont-size: 1.8rem;
  932. \t\t\tmargin: 0 !important;
  933. \t\t\tpadding: 0 !important;
  934. \t\t\twidth: 100%;
  935. \t\t\theight: 100%;
  936. \t\t}
  937. \t\t.is-soldout span{
  938. \t\t\tposition: relative;
  939. \t\t\tdisplay: block;
  940. \t\t\theight: 100%;
  941. \t\t\ttop: 40%;
  942. \t\t}
  943. \t\t@media only screen and (min-width: 600px)and (max-width: 1023px){
  944. \t\t\t.is-soldout{
  945. \t\t\t\tfont-size: 1.3rem;
  946. \t\t\t}
  947. \t\t}
  948. \t</style>
  949. {% endblock %}
  950. ""Product/list.twig""/home/hiniaratest/test-page.website/public_html/nagae-hanko.test-page.website/app/template/default/Product/list.twig");
  951.     }
  952. }