<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Product/list.twig */
class __TwigTemplate_b513cd64c3477bd98173aef2868fae788a8c9d11c0db5c4d797ac7027dea88ea extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
// line 13
$context["body_class"] = "product_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Product/list.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 15
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 16
echo "\t<style>
\t\t.mod-form-select.form-select {
\t\t\twidth: 100% !important;
\t\t}
\t</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 23
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 24
echo " <script>
eccube.productsClassCategories = {
";
// line 26
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 27
echo " \"";
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 27), "js"), "html", null, true);
echo "\": ";
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 27) == false)) {
echo ", ";
}
// line 28
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
echo " };
\$(function() {
// 表示件数を変更
\$('.disp-number').change(function() {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
// 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
\$('.add-cart').on('click', function(e) {
var \$form = \$(this).parents('li').find('form');
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('";
// line 55
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html", null, true);
echo "');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').text(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: '";
// line 83
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
echo "',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html", null, true);
echo "');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
\$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 108
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 109
echo "\t<div
\t\tclass=\"sub-container\">
\t\t<!-- SUB H1 -->
\t\t<div
\t\t\tclass=\"sub-h1Wrap\">
\t\t\t<h1 class=\"sub-h1\">
\t\t\t\t";
// line 115
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); })())))) {
// line 116
echo "\t\t\t\t\t";
// line 117
echo "\t\t\t\t\t";
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 117, $this->source); })()))) {
// line 118
echo "\t\t\t\t\t\t";
// line 119
echo "\t\t\t\t\t\t";
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", false, false, false, 119))) {
// line 120
echo "\t\t\t\t\t\t\t";
// line 121
echo "\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 121, $this->source); })()), "Parent", [], "any", false, false, false, 121), "name", [], "any", false, false, false, 121), "html", null, true);
echo "
\t\t\t\t\t\t";
}
// line 123
echo "\t\t\t\t\t";
}
// line 124
echo "
\t\t\t\t\t";
// line 125
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", null, true);
echo "
\t\t\t\t";
} elseif (( // line 127
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); })())))) {
// line 128
echo "\t\t\t\t\t";
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", null, true);
echo "
\t\t\t\t";
}
// line 129
echo "\t
\t\t\t</h1>
\t\t</div>
\t\t<!-- /SUB H1 -->
\t\t<div
\t\t\tclass=\"l-container\">
\t\t\t<!-- パンくずリスト -->
\t\t\t<ol class=\"sub-breadcrumbs\">
\t\t\t\t<li>
\t\t\t\t\t<a href=\"";
// line 138
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">HOME</a>
\t\t\t\t</li>
\t\t\t\t";
// line 141
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 141, $this->source); })()))) {
// line 142
echo "\t\t\t\t\t<li>
\t\t\t\t\t\t<a href=\"";
// line 143
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "\">全商品</a>
\t\t\t\t\t</li>
\t\t\t\t\t";
// line 147
echo "\t\t\t\t\t";
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 147, $this->source); })()))) {
// line 148
echo "\t\t\t\t\t\t";
// line 149
echo "\t\t\t\t\t\t";
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", false, false, false, 149))) {
// line 150
echo "\t\t\t\t\t\t\t";
// line 151
echo "\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t<a href=\"";
// line 152
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 152, $this->source); })()), "Parent", [], "any", false, false, false, 152), "id", [], "any", false, false, false, 152), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 152, $this->source); })()), "Parent", [], "any", false, false, false, 152), "name", [], "any", false, false, false, 152), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t";
}
// line 155
echo "\t\t\t\t\t";
}
// line 156
echo "
\t\t\t\t";
}
// line 157
echo "\t\t\t\t
\t\t\t\t<li>
\t\t\t\t\t";
// line 159
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); })())))) {
// line 160
echo "\t\t\t\t\t\t";
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", null, true);
echo "
\t\t\t\t\t";
} elseif (( // line 161
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); })())))) {
// line 162
echo "\t\t\t\t\t\t";
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", null, true);
echo "
\t\t\t\t\t";
}
// line 164
echo "\t\t\t\t</li>
\t\t\t</ol>
\t\t\t<!-- /パンくずリスト -->
\t\t\t<div
\t\t\t\tclass=\"l-2ColumnContainer\">
\t\t\t\t<!-- メインコンテンツ -->
\t\t\t\t<div
\t\t\t\t\tclass=\"l-main\">
\t\t\t\t\t<!-- PAGE CONTENTS -->
\t\t\t\t\t<div class=\"products productsList\">
\t\t\t\t\t\t";
// line 175
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 175, $this->source); })()), "category_id", [], "any", false, false, false, 175), "vars", [], "any", false, false, false, 175), "errors", [], "any", false, false, false, 175)) > 0)) {
// line 176
echo "\t\t\t\t\t\t\t<div class=\"ec-searchnavRole\">
\t\t\t\t\t\t\t\t<p class=\"errormsg text-danger\">";
// line 177
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
} else {
// line 180
echo "\t\t\t\t\t\t\t<section>
\t\t\t\t\t\t\t\t<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
\t\t\t\t\t\t\t\t\t";
// line 182
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 183
echo "\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 183), "id", [], "any", false, false, false, 183), "html", null, true);
echo "\" name=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 183), "full_name", [], "any", false, false, false, 183), "html", null, true);
echo "\" ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 183), "value", [], "any", false, false, false, 183))) {
echo " value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 183), "value", [], "any", false, false, false, 183), "html", null, true);
echo "\" ";
}
echo "/>
\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 185
echo "\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t<h2 class=\"mod-hl-01 productsList-hl\">
\t\t\t\t\t\t\t\t\t<span class=\"isJp\">";
// line 188
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); })())))) {
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", null, true);
} 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); })())))) {
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", null, true);
}
echo "</span>
\t\t\t\t\t\t\t\t</h2>\t\t
\t\t\t\t\t\t\t\t";
// line 191
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", false, false, false, 191) > 0)) {
// line 192
echo "\t\t\t\t\t\t\t\t\t<!-- 並び替えform -->
\t\t\t\t\t\t\t\t\t<div class=\"productsList-sort-setting\">
\t\t\t\t\t\t\t\t\t\t<form>
\t\t\t\t\t\t\t\t\t\t\t";
// line 195
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", false, false, false, 195), 'widget', ["id" => "", "attr" => ["class" => "mod-form-select disp-number"]]);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
// line 196
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", false, false, false, 196), 'widget', ["id" => "", "attr" => ["class" => "mod-form-select order-by"]]);
echo "
\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<!-- /並び替えform -->
\t\t\t\t\t\t\t\t";
}
// line 201
echo "
\t\t\t\t\t\t\t\t";
// line 202
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", false, false, false, 202) > 0)) {
// line 203
echo "\t\t\t\t\t\t\t\t\t<div class=\"productsList-sort-result\">
\t\t\t\t\t\t\t\t\t\t<div class=\"mod-products-list\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 205
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 206
echo "\t\t\t\t\t\t\t\t\t\t\t\t<article class=\"productsBox\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 207
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", false, false, false, 207)]), "html", null, true);
echo "\" class=\"productsBoxInner\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"productsBox-img\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"imgInner\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
// line 210
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", false, false, false, 210)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 210), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 210) > 5)) {
echo " loading=\"lazy\" ";
}
echo " class=\"imgObjectFitCover\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 211
if ( !twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 211)) {
// line 212
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"is-soldout\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>SOLD OUT</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 216
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"productsBox-hl\">";
// line 218
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 218), "html", null, true);
echo "</h3>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 219
if (twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 219)) {
// line 220
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>";
echo twig_nl2br(twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 220));
echo "</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 222
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 224
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 224)) {
// line 225
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;\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 226
if (( !(null === twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01Min", [], "any", false, false, false, 226)) && (twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01IncTaxMin", [], "any", false, false, false, 226) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01IncTaxMax", [], "any", false, false, false, 226)))) {
// line 227
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;\">";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01IncTaxMin", [], "any", false, false, false, 227)), "html", null, true);
echo "円</span></span>
\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;\">";
// line 228
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} elseif (( !(null === twig_get_attribute($this->env, $this->source, // line 229
$context["Product"], "getPrice01Min", [], "any", false, false, false, 229)) && !(null === twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01Max", [], "any", false, false, false, 229)))) {
// line 230
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;\">";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01IncTaxMin", [], "any", false, false, false, 230)), "html", null, true);
echo "~ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01IncTaxMax", [], "any", false, false, false, 230)), "html", null, true);
echo "円</span></span>
\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;\">";
// line 231
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 233
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 235
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01Max", [], "any", false, false, false, 235))) {
// line 236
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;\">";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01IncTaxMin", [], "any", false, false, false, 236)), "html", null, true);
echo "円</span>
\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;\">";
// line 237
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 239
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 240
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 242
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"productsBox-text\" style=\"margin-top:0px;\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 243
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 243)) {
// line 244
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 244) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 244))) {
// line 245
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 245)), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 247
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 247)), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t~
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 249
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMax", [], "any", false, false, false, 249)), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 251
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 252
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 252)), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 254
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t円<small class=\"isSmall\">税込</small>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t</article>
\t\t\t\t\t\t\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 258
echo "\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
// line 261
$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", false, false, false, 261)]));
// line 262
echo "\t\t\t\t\t\t\t\t";
}
// line 263
echo "
\t\t\t\t\t\t\t\t<!-- 最近チェックした商品 -->
\t\t\t\t\t\t\t\t";
// line 265
echo twig_include($this->env, $context, "Block/items_checked.twig", array(), true, true);
echo "
\t\t\t\t\t\t\t\t<!-- /最近チェックした商品 -->\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</section>
\t\t\t\t\t\t";
}
// line 269
echo "\t\t\t\t\t</div>
\t\t\t\t\t<!-- /PAGE CONTENTS -->
\t\t\t\t</div>
\t\t\t\t<!-- /メインコンテンツ -->
\t\t\t\t<!-- サイドメニュー -->
\t\t\t\t";
// line 277
echo twig_include($this->env, $context, "Block/l_sub.twig", array(), true, true);
echo "
\t\t\t\t<!-- /サイドメニュー -->
\t\t\t</div>
\t\t</div>
\t</div>
\t<style>
\t\t.is-soldout{
\t\t\tbackground-color: rgba(0, 0, 0, 0.5);
\t\t\ttext-align: center;
\t\t\tposition: absolute;
\t\t\tcolor: #fff;
\t\t\tfont-size: 1.8rem;
\t\t\tmargin: 0 !important;
\t\t\tpadding: 0 !important;
\t\t\twidth: 100%;
\t\t\theight: 100%;
\t\t}
\t\t.is-soldout span{
\t\t\tposition: relative;
\t\t\tdisplay: block;
\t\t\theight: 100%;
\t\t\ttop: 40%;
\t\t}
\t\t@media only screen and (min-width: 600px)and (max-width: 1023px){
\t\t\t.is-soldout{
\t\t\t\tfont-size: 1.3rem;
\t\t\t}
\t\t}
\t</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Product/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block stylesheet %}
\t<style>
\t\t.mod-form-select.form-select {
\t\t\twidth: 100% !important;
\t\t}
\t</style>
{% endblock %}
{% block javascript %}
<script>
eccube.productsClassCategories = {
{% for Product in pagination %}
\"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
{% endfor %}
};
\$(function() {
// 表示件数を変更
\$('.disp-number').change(function() {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
// 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
\$('.add-cart').on('click', function(e) {
var \$form = \$(this).parents('li').find('form');
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').text(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: '{{ url('block_cart') }}',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('{{ 'カートへの追加に失敗しました。'|trans }}');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
\$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
{% endblock %}
{% block main %}
\t<div
\t\tclass=\"sub-container\">
\t\t<!-- SUB H1 -->
\t\t<div
\t\t\tclass=\"sub-h1Wrap\">
\t\t\t<h1 class=\"sub-h1\">
\t\t\t\t{% if subtitle is defined and subtitle is not empty %}
\t\t\t\t\t{# 「全商品」を除外 #}
\t\t\t\t\t{% if Category is not null %}
\t\t\t\t\t\t{# 親カテゴリ(「個人印鑑」など)を除外 #}
\t\t\t\t\t\t{% if Category.Parent is not null %}
\t\t\t\t\t\t\t{# 子カテゴリ(「実印」など)にのみ適用 #}
\t\t\t\t\t\t\t{{ Category.Parent.name }}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t{{ subtitle }}
\t\t\t\t{% elseif title is defined and title is not empty %}
\t\t\t\t\t{{ title }}
\t\t\t\t{% endif %}\t
\t\t\t</h1>
\t\t</div>
\t\t<!-- /SUB H1 -->
\t\t<div
\t\t\tclass=\"l-container\">
\t\t\t<!-- パンくずリスト -->
\t\t\t<ol class=\"sub-breadcrumbs\">
\t\t\t\t<li>
\t\t\t\t\t<a href=\"{{ url('homepage') }}\">HOME</a>
\t\t\t\t</li>
\t\t\t\t{% if Category is not null %}
\t\t\t\t\t<li>
\t\t\t\t\t\t<a href=\"{{ url('product_list') }}\">全商品</a>
\t\t\t\t\t</li>
\t\t\t\t\t{# 「全商品」を除外 #}
\t\t\t\t\t{% if Category is not null %}
\t\t\t\t\t\t{# 親カテゴリ(「個人印鑑」など)を除外 #}
\t\t\t\t\t\t{% if Category.Parent is not null %}
\t\t\t\t\t\t\t{# 子カテゴリ(「実印」など)にのみ適用 #}
\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t<a href=\"{{ url('product_list') }}?category_id={{ Category.Parent.id }}\">{{ Category.Parent.name }}</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endif %}
\t\t\t\t{% endif %}\t\t\t\t
\t\t\t\t<li>
\t\t\t\t\t{% if subtitle is defined and subtitle is not empty %}
\t\t\t\t\t\t{{ subtitle }}
\t\t\t\t\t{% elseif title is defined and title is not empty %}
\t\t\t\t\t\t{{ title }}
\t\t\t\t\t{% endif %}
\t\t\t\t</li>
\t\t\t</ol>
\t\t\t<!-- /パンくずリスト -->
\t\t\t<div
\t\t\t\tclass=\"l-2ColumnContainer\">
\t\t\t\t<!-- メインコンテンツ -->
\t\t\t\t<div
\t\t\t\t\tclass=\"l-main\">
\t\t\t\t\t<!-- PAGE CONTENTS -->
\t\t\t\t\t<div class=\"products productsList\">
\t\t\t\t\t\t{% if search_form.category_id.vars.errors|length > 0 %}
\t\t\t\t\t\t\t<div class=\"ec-searchnavRole\">
\t\t\t\t\t\t\t\t<p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t<section>
\t\t\t\t\t\t\t\t<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
\t\t\t\t\t\t\t\t\t{% for item in search_form %}
\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 %}/>
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t<h2 class=\"mod-hl-01 productsList-hl\">
\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>
\t\t\t\t\t\t\t\t</h2>\t\t
\t\t\t\t\t\t\t\t{% if pagination.totalItemCount > 0 %}
\t\t\t\t\t\t\t\t\t<!-- 並び替えform -->
\t\t\t\t\t\t\t\t\t<div class=\"productsList-sort-setting\">
\t\t\t\t\t\t\t\t\t\t<form>
\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'}}) }}
\t\t\t\t\t\t\t\t\t\t\t{{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'mod-form-select order-by'}}) }}
\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<!-- /並び替えform -->
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{% if pagination.totalItemCount > 0 %}
\t\t\t\t\t\t\t\t\t<div class=\"productsList-sort-result\">
\t\t\t\t\t\t\t\t\t\t<div class=\"mod-products-list\">
\t\t\t\t\t\t\t\t\t\t\t{% for Product in pagination %}
\t\t\t\t\t\t\t\t\t\t\t\t<article class=\"productsBox\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ url('product_detail', {'id': Product.id}) }}\" class=\"productsBoxInner\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"productsBox-img\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"imgInner\">
\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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if not Product.stock_find %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"is-soldout\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>SOLD OUT</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"productsBox-hl\">{{ Product.name }}</h3>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if Product.description_list %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{ Product.description_list|raw|nl2br }}</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{# 通常価格 #}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if Product.hasProductClass %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__priceRegular\" style=\"margin-top:10px;\">
\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 %}
\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>
\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>
\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 %}
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if Product.getPrice01Max is not null %}
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{# 販売価格 #}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"productsBox-text\" style=\"margin-top:0px;\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if Product.hasProductClass %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if Product.getPrice02Min == Product.getPrice02Max %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMin|number_format }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMin|number_format }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t~
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMax|number_format }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ Product.getPrice02IncTaxMin|number_format }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t円<small class=\"isSmall\">税込</small>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t</article>
\t\t\t\t\t\t\t\t\t\t\t{% endfor %}\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t<!-- 最近チェックした商品 -->
\t\t\t\t\t\t\t\t{{ include('Block/items_checked.twig', ignore_missing = true) }}
\t\t\t\t\t\t\t\t<!-- /最近チェックした商品 -->\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</section>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t\t<!-- /PAGE CONTENTS -->
\t\t\t\t</div>
\t\t\t\t<!-- /メインコンテンツ -->
\t\t\t\t<!-- サイドメニュー -->
\t\t\t\t{{ include('Block/l_sub.twig', ignore_missing = true) }}
\t\t\t\t<!-- /サイドメニュー -->
\t\t\t</div>
\t\t</div>
\t</div>
\t<style>
\t\t.is-soldout{
\t\t\tbackground-color: rgba(0, 0, 0, 0.5);
\t\t\ttext-align: center;
\t\t\tposition: absolute;
\t\t\tcolor: #fff;
\t\t\tfont-size: 1.8rem;
\t\t\tmargin: 0 !important;
\t\t\tpadding: 0 !important;
\t\t\twidth: 100%;
\t\t\theight: 100%;
\t\t}
\t\t.is-soldout span{
\t\t\tposition: relative;
\t\t\tdisplay: block;
\t\t\theight: 100%;
\t\t\ttop: 40%;
\t\t}
\t\t@media only screen and (min-width: 600px)and (max-width: 1023px){
\t\t\t.is-soldout{
\t\t\t\tfont-size: 1.3rem;
\t\t\t}
\t\t}
\t</style>
{% endblock %}
", "Product/list.twig", "/home/hiniaratest/test-page.website/public_html/nagae-hanko.test-page.website/app/template/default/Product/list.twig");
}
}