<?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_155986fed5eb25886e95f03c74797953 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'stylesheet' => [$this, 'block_stylesheet'],
'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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 15
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 16
echo " <script>
eccube.productsClassCategories = {
";
// line 18
$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.', 18, $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 19
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, 19), "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, 19) == false)) {
echo ", ";
}
// line 20
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 21
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 47
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').html(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: '";
// line 75
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 82
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()
});
";
// line 99
echo " const word = document.querySelector('#name');
word.addEventListener('input', (evt) => {
\t\t\tword.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\t//価格のslider
\t\tconst range1 = document.querySelector('#range-1');
\t\tconst range2 = document.querySelector('#range-2');
\t\tconst startValue1 = document.querySelector('#start-value1');
\t\tconst endValue2 = document.querySelector('#end-value2');
\t\trange1.addEventListener('input', (evt) => {
\t\t\tstartValue1.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\trange2.addEventListener('input', (evt) => {
\t\t\tendValue2.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\tstartValue1.textContent = range1.value;
\t\tendValue2.textContent = range2.value;
\t\t//高さのslider
\t\tconst range3 = document.querySelector('#range-3');
\t\tconst range4 = document.querySelector('#range-4');
\t\tconst startValue3 = document.querySelector('#start-value3');
\t\tconst endValue4 = document.querySelector('#end-value4');
\t\trange3.addEventListener('input', (evt) => {
\t\t\tstartValue3.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\trange4.addEventListener('input', (evt) => {
\t\t\tendValue4.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\tstartValue3.textContent = range3.value;
\t\tendValue4.textContent = range4.value;
\t\t//幅のslider
\t\tconst range5 = document.querySelector('#range-5');
\t\tconst range6 = document.querySelector('#range-6');
\t\tconst startValue5 = document.querySelector('#start-value5');
\t\tconst endValue6 = document.querySelector('#end-value6');
\t\trange5.addEventListener('input', (evt) => {
\t\t\tstartValue5.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\trange6.addEventListener('input', (evt) => {
\t\t\tendValue6.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\tstartValue5.textContent = range5.value;
\t\tendValue6.textContent = range6.value;
//初期表示は非表示
document.getElementById(\"searchBox\").style.display =\"none\";
//絞り込みボタンの背景色を制御
const search = location.search;
if (search !== \"\") {
isSelected.style.background = \"#F2F2F2\";
}
function clickBtn2(){ //検索ボックスの表示・非表示を制御
const searchBox = document.getElementById(\"searchBox\");
const isSelected = document.getElementById(\"isSelected\");
if (searchBox.style.display==\"\"){
searchBox.style.display =\"none\";
} else{
searchBox.style.display =\"\";
}
}
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 187
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 188
echo "\t<style>
.ec-modal {
display: none;
position: fixed;
top: 0;
left: 0;
z-index: 99999;
width: 100%;
height: 100%;
}
.ec-modal.small {
width: 30%;
}
.ec-modal.full {
width: 100%;
height: 100%;
}
.ec-modal .ec-modal-overlay {
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.3);
width: 100%;
height: 100%;
}
.ec-modal .ec-modal-wrap {
position: relative;
border-radius: 6px;
border: 0px;
background-color: #fff;
width: 50%;
margin: 20px;
padding: 40px 5px;
}
.ec-modal .ec-modal-close {
cursor: pointer;
position: absolute;
right: 20px;
top: 10px;
font-size: 20px;
height: 30px;
width: 20px;
}
.ec-modal .ec-modal-close:hover {
color: #4b5361;
}
.ec-modal .ec-modal-box {
text-align: center;
}
.ec-modal .ec-role {
margin-top: 20px;
}
\t\t.margin {
margin: 3px;
}
.artcategory-flex {
\t\t\tbackground-color: #f4f1ee;
\t\t\tpadding: 5px;
margin-bottom: 30px;
\t\t\tdisplay: flex;
\t\t\tflex-wrap: wrap;
border-radius: 6px;
\t\t}
.category-title {
padding: 3px;
margin-left: 2%;
}
.category-title h5 {
color: black;
}
.ec-headerSearch__keywordBtn {
border-radius: 6px;
}
a {
color: black;
text-decoration: none;
}
a:hover {
color: #d5a770;
text-decoration: none;
}
.mb {
margin-bottom: 5px;
}
.img-wrap {
width: auto;
height: 300px;
}
.img-wrap img {
min-width: 250px;
width: auto;
height: 300px;
border-radius: 6px;
}
.img {
width: auto;
height: 300px;
max-width: auto;
max-height: 300px;
object-fit: cover;
}
.ec-blockBtn--action {
display: inline-block;
margin-bottom: 0;
font-weight: bold;
text-align: center;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 6px 12px;
font-size: 0.875rem;
border-radius: 1.42857142;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding: 10px 16px;
text-decoration: none;
color: #fff;
background-color: #d5a770;
border-color: #d5a770;
display: block;
width: 100%;
height: 56px;
line-height: 56px;
padding-top: 0;
padding-bottom: 0;
}
";
// line 334
echo " .form-control {
display: none;
}
.form-label {
display: none;
}
.ml-20 {
margin-left: 20%;
}
.deleteIcon {
color: red;
}
.deleteIcon:hover {
color: red;
}
.product-list-flex {
display: flex;
justify-content: center;
padding: 40px;
margin: 0 auto 30px auto;
border-radius: 6px;
background-color: #F2F2F2;
max-width: 750px;
}
.pr-16 {
padding-right: 16px;
}
.skelton_btn {
width: 130px;
padding: 6px 12px;
text-align: center;
text-decoration: none;
background: #fff;
}
.skelton_btn:hover {
background: #F2F2F2;
cursor: pointer;
text-decoration: none;
border-radius: 3px;
}
@media screen and ( max-width:1035px) {
.product-list-flex {
display: flex;
}
.slidebar-multithumb {
width: 100%;
}
.line {
display: none;
}
.searchWord {
display: none;
}
.img-wrap img {
min-width: 180px;
width: auto;
height: 300px;
}
}
@media screen and ( max-width:768px) {
.product-list-flex {
display: none;
}
.skelton_btn {
display: none;
}
}
.ec-numberInput {
display: none;
}
.product-list-description:hover {
color: black;
}
\t</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 421
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 422
echo " ";
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.', 422, $this->source); })()), "category_id", [], "any", false, false, false, 422), "vars", [], "any", false, false, false, 422), "errors", [], "any", false, false, false, 422)) > 0)) {
// line 423
echo " <div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">";
// line 424
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
</div>
";
} else {
// line 427
echo " <div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 429
$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.', 429, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 430
echo " <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, 430), "id", [], "any", false, false, false, 430), "html", null, true);
echo "\"
name=\"";
// line 431
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, 431), "full_name", [], "any", false, false, false, 431), "html", null, true);
echo "\"
";
// line 432
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, 432), "value", [], "any", false, false, false, 432))) {
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, 432), "value", [], "any", false, false, false, 432), "html", null, true);
echo "\" ";
}
echo "/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 434
echo " </form>
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath\">
";
// line 437
if ((null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 437, $this->source); })()))) {
// line 438
echo " ";
// line 440
echo " <div class=\"artcategory-flex\">
<div class=\"category-title\"><h2 class=\"fontweight-bold gold\"><a href=\"";
// line 441
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("アート作品"), "html", null, true);
echo "</a></h2></div>
</div>
";
}
// line 444
echo " ";
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 444, $this->source); })()))) {
// line 445
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 445, $this->source); })()), "path", [], "any", false, false, false, 445));
foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
// line 446
echo " ";
// line 449
echo " <div class=\"artcategory-flex\">
<div class=\"category-title\"><h2 class=\"fontweight-bold gold\"><a href=\"";
// line 450
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, $context["Path"], "id", [], "any", false, false, false, 450), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 450), "html", null, true);
echo "</a></h2></div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 453
echo " ";
}
// line 454
echo " ";
if ((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.', 454, $this->source); })()), "vars", [], "any", false, false, false, 454), "value", [], "any", false, false, false, 454) && 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.', 454, $this->source); })()), "vars", [], "any", false, false, false, 454), "value", [], "any", false, false, false, 454), "name", [], "any", false, false, false, 454))) {
// line 455
echo " <li class=\"ec-topicpath__divider\">|</li>
<li class=\"ec-topicpath__item\">";
// line 456
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("「%name%」の検索結果", ["%name%" => 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.', 456, $this->source); })()), "vars", [], "any", false, false, false, 456), "value", [], "any", false, false, false, 456), "name", [], "any", false, false, false, 456)]), "html", null, true);
echo "</li>
";
}
// line 458
echo " </ol>
</div>
<div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
";
// line 463
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.', 463, $this->source); })()), "totalItemCount", [], "any", false, false, false, 463) > 0)) {
// line 464
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">%count%件</span><span>の作品が見つかりました</span>", ["%count%" => twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 464, $this->source); })()), "totalItemCount", [], "any", false, false, false, 464)]);
echo "
";
} else {
// line 466
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの作品は見つかりませんでした"), "html", null, true);
echo "</span>
";
}
// line 468
echo " </div>
";
// line 469
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.', 469, $this->source); })()), "totalItemCount", [], "any", false, false, false, 469) > 0)) {
// line 470
echo " <div class=\"ec-searchnavRole__actions\">
<div class=\"ec-select\">
<a href=\"#\" class=\"skelton_btn\" id=\"isSelected\" onclick=\"clickBtn2()\">絞り込み</a>
";
// line 473
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.', 473, $this->source); })()), "disp_number", [], "any", false, false, false, 473), 'widget', ["id" => "", "attr" => ["class" => "disp-number"]]);
echo "
";
// line 474
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.', 474, $this->source); })()), "orderby", [], "any", false, false, false, 474), 'widget', ["id" => "", "attr" => ["class" => "order-by"]]);
echo "
</div>
</div>
";
}
// line 478
echo " </div>
</div>
<form method=\"get\" class=\"searchform\" id='search-product' action=\"";
// line 481
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product_list");
echo "\">
\t\t\t<div class=\"product-list-flex\" id=\"searchBox\">
<div class=\"product-list-size pr-16\">
\t\t\t\t\t<div class=\"ec-headerSearch__category\">
<div class=\"fontweight-bold\"><label for=\"range-label\">ワード</label><a class='deleteIcon' href='/products/list?name=&price_min=";
// line 485
echo twig_escape_filter($this->env, (isset($context["price_min"]) || array_key_exists("price_min", $context) ? $context["price_min"] : (function () { throw new RuntimeError('Variable "price_min" does not exist.', 485, $this->source); })()), "html", null, true);
echo "&price_max=";
echo twig_escape_filter($this->env, (isset($context["price_max"]) || array_key_exists("price_max", $context) ? $context["price_max"] : (function () { throw new RuntimeError('Variable "price_max" does not exist.', 485, $this->source); })()), "html", null, true);
echo "&size_vertical_min=";
echo twig_escape_filter($this->env, (isset($context["size_vertical_min"]) || array_key_exists("size_vertical_min", $context) ? $context["size_vertical_min"] : (function () { throw new RuntimeError('Variable "size_vertical_min" does not exist.', 485, $this->source); })()), "html", null, true);
echo "&size_vertical_max=";
echo twig_escape_filter($this->env, (isset($context["size_vertical_max"]) || array_key_exists("size_vertical_max", $context) ? $context["size_vertical_max"] : (function () { throw new RuntimeError('Variable "size_vertical_max" does not exist.', 485, $this->source); })()), "html", null, true);
echo "&size_width_min=";
echo twig_escape_filter($this->env, (isset($context["size_width_min"]) || array_key_exists("size_width_min", $context) ? $context["size_width_min"] : (function () { throw new RuntimeError('Variable "size_width_min" does not exist.', 485, $this->source); })()), "html", null, true);
echo "&size_width_max=";
echo twig_escape_filter($this->env, (isset($context["size_width_max"]) || array_key_exists("size_width_max", $context) ? $context["size_width_max"] : (function () { throw new RuntimeError('Variable "size_width_max" does not exist.', 485, $this->source); })()), "html", null, true);
echo "'><i class=\"fa-regular fa-trash-can ml-20\"></i></a></div>
<div class=\"ec-select ec-select_search margin-top \">
";
// line 487
if ((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 487, $this->source); })())) {
// line 488
echo " <input type=\"text\" name=\"name\" id=\"name\" placeholder=";
echo twig_escape_filter($this->env, (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 488, $this->source); })()), "html", null, true);
echo ">
";
} else {
// line 490
echo " <input type=\"text\" name=\"name\" id=\"name\">
";
}
// line 492
echo " </div>
</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"product-list-size\">
\t\t\t\t\t<div class=\"slidebar-multithumb\">
<div class=\"fontweight-bold mb\"><label for=\"range-label\">価格</label><a class='deleteIcon' href='/products/list?name=";
// line 498
echo twig_escape_filter($this->env, (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 498, $this->source); })()), "html", null, true);
echo "&price_min=0&price_max=1000000&size_vertical_min=";
echo twig_escape_filter($this->env, (isset($context["size_vertical_min"]) || array_key_exists("size_vertical_min", $context) ? $context["size_vertical_min"] : (function () { throw new RuntimeError('Variable "size_vertical_min" does not exist.', 498, $this->source); })()), "html", null, true);
echo "&size_vertical_max=";
echo twig_escape_filter($this->env, (isset($context["size_vertical_max"]) || array_key_exists("size_vertical_max", $context) ? $context["size_vertical_max"] : (function () { throw new RuntimeError('Variable "size_vertical_max" does not exist.', 498, $this->source); })()), "html", null, true);
echo "&size_width_min=";
echo twig_escape_filter($this->env, (isset($context["size_width_min"]) || array_key_exists("size_width_min", $context) ? $context["size_width_min"] : (function () { throw new RuntimeError('Variable "size_width_min" does not exist.', 498, $this->source); })()), "html", null, true);
echo "&size_width_max=";
echo twig_escape_filter($this->env, (isset($context["size_width_max"]) || array_key_exists("size_width_max", $context) ? $context["size_width_max"] : (function () { throw new RuntimeError('Variable "size_width_max" does not exist.', 498, $this->source); })()), "html", null, true);
echo "'><i class=\"fa-regular fa-trash-can ml-20\"></i></a></div>
\t\t\t\t\t\t<div class=\"flex\">
\t\t\t\t\t\t\t<div><span id=\"start-value1\"></span>~</div>
\t\t\t\t\t\t\t<div><span id=\"end-value2\"></span>円</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"slidebar-multithumb-title\"></div>
";
// line 504
if ((isset($context["price_min"]) || array_key_exists("price_min", $context) ? $context["price_min"] : (function () { throw new RuntimeError('Variable "price_min" does not exist.', 504, $this->source); })())) {
// line 505
echo "\t\t\t\t\t\t<input class=\"thumb-1\" type=\"range\" name=\"price_min\" id=\"range-1\" value=";
echo twig_escape_filter($this->env, (isset($context["price_min"]) || array_key_exists("price_min", $context) ? $context["price_min"] : (function () { throw new RuntimeError('Variable "price_min" does not exist.', 505, $this->source); })()), "html", null, true);
echo " min=\"0\" max=\"1000000\" step=\"100\">
";
} else {
// line 507
echo " <input class=\"thumb-1\" type=\"range\" name=\"price_min\" id=\"range-1\" value=\"0\" min=\"0\" max=\"1000000\" step=\"100\">
";
}
// line 509
echo " ";
if ((isset($context["price_max"]) || array_key_exists("price_max", $context) ? $context["price_max"] : (function () { throw new RuntimeError('Variable "price_max" does not exist.', 509, $this->source); })())) {
// line 510
echo "\t\t\t\t\t\t<input class=\"thumb-2\" type=\"range\" name=\"price_max\" id=\"range-2\" value=";
echo twig_escape_filter($this->env, (isset($context["price_max"]) || array_key_exists("price_max", $context) ? $context["price_max"] : (function () { throw new RuntimeError('Variable "price_max" does not exist.', 510, $this->source); })()), "html", null, true);
echo " min=\"0\" max=\"1000000\" step=\"100\">
";
} else {
// line 512
echo " <input class=\"thumb-2\" type=\"range\" name=\"price_max\" id=\"range-2\" value=\"1000000\" min=\"0\" max=\"1000000\" step=\"100\">
";
}
// line 514
echo "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"product-list-size\">
\t\t\t\t\t<div class=\"slidebar-multithumb\">
<div class=\"fontweight-bold mb\"><label for=\"range-label\">高さ</label><a class='deleteIcon' href='/products/list?name=";
// line 519
echo twig_escape_filter($this->env, (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 519, $this->source); })()), "html", null, true);
echo "&price_min=";
echo twig_escape_filter($this->env, (isset($context["price_min"]) || array_key_exists("price_min", $context) ? $context["price_min"] : (function () { throw new RuntimeError('Variable "price_min" does not exist.', 519, $this->source); })()), "html", null, true);
echo "&price_max=";
echo twig_escape_filter($this->env, (isset($context["price_max"]) || array_key_exists("price_max", $context) ? $context["price_max"] : (function () { throw new RuntimeError('Variable "price_max" does not exist.', 519, $this->source); })()), "html", null, true);
echo "&size_vertical_min=0&size_vertical_max=300&size_width_min=";
echo twig_escape_filter($this->env, (isset($context["size_width_min"]) || array_key_exists("size_width_min", $context) ? $context["size_width_min"] : (function () { throw new RuntimeError('Variable "size_width_min" does not exist.', 519, $this->source); })()), "html", null, true);
echo "&size_width_max=";
echo twig_escape_filter($this->env, (isset($context["size_width_max"]) || array_key_exists("size_width_max", $context) ? $context["size_width_max"] : (function () { throw new RuntimeError('Variable "size_width_max" does not exist.', 519, $this->source); })()), "html", null, true);
echo "'><i class=\"fa-regular fa-trash-can ml-20\"></i></a></div>
\t\t\t\t\t\t<div class=\"flex\">
\t\t\t\t\t\t\t<div><span id=\"start-value3\"></span>~</div>
\t\t\t\t\t\t\t<div><span id=\"end-value4\"></span>cm</div>
\t\t\t\t\t\t</div>
<div class=\"slidebar-multithumb-title\"></div>
";
// line 525
if ((isset($context["size_vertical_min"]) || array_key_exists("size_vertical_min", $context) ? $context["size_vertical_min"] : (function () { throw new RuntimeError('Variable "size_vertical_min" does not exist.', 525, $this->source); })())) {
// line 526
echo "\t\t\t\t\t\t<input class=\"thumb-1\" type=\"range\" name=\"size_vertical_min\" id=\"range-3\" value=";
echo twig_escape_filter($this->env, (isset($context["size_vertical_min"]) || array_key_exists("size_vertical_min", $context) ? $context["size_vertical_min"] : (function () { throw new RuntimeError('Variable "size_vertical_min" does not exist.', 526, $this->source); })()), "html", null, true);
echo " min=\"0\" max=\"500\" step=\"10\">
";
} else {
// line 528
echo " <input class=\"thumb-1\" type=\"range\" name=\"size_vertical_min\" id=\"range-3\" value=\"0\" min=\"0\" max=\"300\" step=\"10\">
";
}
// line 530
echo "
";
// line 531
if ((isset($context["size_vertical_max"]) || array_key_exists("size_vertical_max", $context) ? $context["size_vertical_max"] : (function () { throw new RuntimeError('Variable "size_vertical_max" does not exist.', 531, $this->source); })())) {
// line 532
echo "\t\t\t\t\t\t<input class=\"thumb-2\" type=\"range\" name=\"size_vertical_max\" id=\"range-4\" value=";
echo twig_escape_filter($this->env, (isset($context["size_vertical_max"]) || array_key_exists("size_vertical_max", $context) ? $context["size_vertical_max"] : (function () { throw new RuntimeError('Variable "size_vertical_max" does not exist.', 532, $this->source); })()), "html", null, true);
echo " min=\"0\" max=\"300\" step=\"10\">
";
} else {
// line 534
echo " <input class=\"thumb-2\" type=\"range\" name=\"size_vertical_max\" id=\"range-4\" value=\"300\" min=\"0\" max=\"300\" step=\"10\">
";
}
// line 536
echo "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"product-list-size\">
\t\t\t\t\t<div class=\"slidebar-multithumb\">
<div class=\"fontweight-bold mb\"><label for=\"range-label\">幅</label><a class='deleteIcon' href='/products/list?name=";
// line 541
echo twig_escape_filter($this->env, (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 541, $this->source); })()), "html", null, true);
echo "&price_min=";
echo twig_escape_filter($this->env, (isset($context["price_min"]) || array_key_exists("price_min", $context) ? $context["price_min"] : (function () { throw new RuntimeError('Variable "price_min" does not exist.', 541, $this->source); })()), "html", null, true);
echo "&price_max=";
echo twig_escape_filter($this->env, (isset($context["price_max"]) || array_key_exists("price_max", $context) ? $context["price_max"] : (function () { throw new RuntimeError('Variable "price_max" does not exist.', 541, $this->source); })()), "html", null, true);
echo "&size_vertical_min=";
echo twig_escape_filter($this->env, (isset($context["size_vertical_min"]) || array_key_exists("size_vertical_min", $context) ? $context["size_vertical_min"] : (function () { throw new RuntimeError('Variable "size_vertical_min" does not exist.', 541, $this->source); })()), "html", null, true);
echo "&size_vertical_max=";
echo twig_escape_filter($this->env, (isset($context["size_vertical_max"]) || array_key_exists("size_vertical_max", $context) ? $context["size_vertical_max"] : (function () { throw new RuntimeError('Variable "size_vertical_max" does not exist.', 541, $this->source); })()), "html", null, true);
echo "&size_width_min=0&size_width_max=300'><i class=\"fa-regular fa-trash-can ml-20\"></i></a></div>
\t\t\t\t\t\t<div class=\"flex\">
\t\t\t\t\t\t\t<div><span id=\"start-value5\"></span>~</div>
\t\t\t\t\t\t\t<div><span id=\"end-value6\"></span>cm</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"slidebar-multithumb-title\"></div>
";
// line 547
if ((isset($context["size_width_min"]) || array_key_exists("size_width_min", $context) ? $context["size_width_min"] : (function () { throw new RuntimeError('Variable "size_width_min" does not exist.', 547, $this->source); })())) {
// line 548
echo "\t\t\t\t\t\t<input class=\"thumb-1\" type=\"range\" name=\"size_width_min\" id=\"range-5\" value=";
echo twig_escape_filter($this->env, (isset($context["size_width_min"]) || array_key_exists("size_width_min", $context) ? $context["size_width_min"] : (function () { throw new RuntimeError('Variable "size_width_min" does not exist.', 548, $this->source); })()), "html", null, true);
echo " min=\"0\" max=\"300\" step=\"10\">
";
} else {
// line 550
echo " <input class=\"thumb-1\" type=\"range\" name=\"size_width_min\" id=\"range-5\" value=\"0\" min=\"0\" max=\"300\" step=\"10\">
";
}
// line 552
echo "
";
// line 553
if ((isset($context["size_width_max"]) || array_key_exists("size_width_max", $context) ? $context["size_width_max"] : (function () { throw new RuntimeError('Variable "size_width_max" does not exist.', 553, $this->source); })())) {
// line 554
echo "\t\t\t\t\t\t<input class=\"thumb-2\" type=\"range\" name=\"size_width_max\" id=\"range-6\" value=";
echo twig_escape_filter($this->env, (isset($context["size_width_max"]) || array_key_exists("size_width_max", $context) ? $context["size_width_max"] : (function () { throw new RuntimeError('Variable "size_width_max" does not exist.', 554, $this->source); })()), "html", null, true);
echo " min=\"0\" max=\"300\" step=\"10\">
";
} else {
// line 556
echo " <input class=\"thumb-2\" type=\"range\" name=\"size_width_max\" id=\"range-6\" value=\"300\" min=\"0\" max=\"300\" step=\"10\">
";
}
// line 558
echo "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
</form>
";
// line 564
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.', 564, $this->source); })()), "totalItemCount", [], "any", false, false, false, 564) > 0)) {
// line 565
echo " <div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
";
// line 567
$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.', 567, $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 568
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 569
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, 569)]), "html", null, true);
echo "\" class=\"product-list-description\">
";
// line 571
echo " <div class=\"img-wrap\">
<img class=\"img\" src=\"";
// line 572
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, 572)), "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, 572), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 572) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
</div>
";
// line 575
echo " <p class=\"price02-default margin\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 575), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t\t";
// line 577
echo " ";
// line 582
echo " ";
// line 583
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Product"], "getProductionTechnique", [], "any", false, false, false, 583))) {
// line 584
echo " <p class=\"margin\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getProductionTechnique", [], "any", false, false, false, 584), "html", null, true);
echo "</p>
";
}
// line 586
echo "\t\t\t\t\t\t\t\t";
// line 587
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getProductionSizeVertical", [], "any", false, false, false, 587) && twig_get_attribute($this->env, $this->source, $context["Product"], "getProductionSizeWidth", [], "any", false, false, false, 587))) {
// line 588
echo "\t\t\t\t\t\t\t\t <p class=\"margin\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getProductionSizeVertical", [], "any", false, false, false, 588), "html", null, true);
echo " x ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "getProductionSizeWidth", [], "any", false, false, false, 588), "html", null, true);
echo " cm</p>
";
}
// line 590
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 590)) {
// line 591
echo " <p class=\"margin\">";
echo twig_nl2br(twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 591));
echo "</p>
";
}
// line 593
echo " <p class=\"price02-default margin\">
";
// line 594
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 594)) {
// line 595
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 595) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 595))) {
// line 596
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 596)), "html", null, true);
echo "
";
} else {
// line 598
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 598)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMax", [], "any", false, false, false, 598)), "html", null, true);
echo "
";
}
// line 600
echo " ";
} else {
// line 601
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 601)), "html", null, true);
echo "
";
}
// line 603
echo " </p>
</a>
";
// line 606
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 606)) {
// line 607
echo " ";
$context["form"] = twig_get_attribute($this->env, $this->source, (isset($context["forms"]) || array_key_exists("forms", $context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.', 607, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 607), [], "array", false, false, false, 607);
// line 608
echo " ";
// line 609
echo " <form name=\"form";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 609), "html", null, true);
echo "\" id=\"productForm";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 609), "html", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 609)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"ec-productRole__actions\">
";
// line 611
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 611)) {
// line 612
echo " <div class=\"ec-select\">
";
// line 613
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 613, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 613), 'widget');
echo "
";
// line 614
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 614, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 614), 'errors');
echo "
</div>
";
// line 616
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 616)) {
// line 617
echo " <div class=\"ec-select\">
";
// line 618
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 618, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 618), 'widget');
echo "
";
// line 619
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 619, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 619), 'errors');
echo "
</div>
";
}
// line 622
echo " ";
}
// line 623
echo " <div class=\"ec-numberInput\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html", null, true);
echo "</span>
";
// line 624
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 624, $this->source); })()), "quantity", [], "any", false, false, false, 624), 'widget', ["attr" => ["class" => "quantity"]]);
echo "
";
// line 625
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 625, $this->source); })()), "quantity", [], "any", false, false, false, 625), 'errors');
echo "
</div>
</div>
";
// line 628
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 628, $this->source); })()), 'rest');
echo "
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
// line 631
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 631), "html", null, true);
echo "\" form=\"productForm";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 631), "html", null, true);
echo "\">
";
// line 632
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>
";
} else {
// line 636
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 638
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
</div>
";
}
// line 642
echo " </li>
";
++$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 644
echo " </ul>
</div>
<div class=\"ec-modal\">
<div class=\"ec-modal-overlay\">
<div class=\"ec-modal-wrap\">
<span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
// line 649
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html", null, true);
echo "\" alt=\"\"/></span></span>
<div id=\"ec-modal-header\" class=\"text-center\">";
// line 650
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html", null, true);
echo "</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<span class=\"ec-inlineBtn--cancel\">";
// line 653
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 654
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\" class=\"ec-inlineBtn--action mt-5per\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-pagerRole\">
";
// line 661
$this->loadTemplate("pager.twig", "Product/list.twig", 661)->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.', 661, $this->source); })()), "paginationData", [], "any", false, false, false, 661)]));
// line 662
echo " </div>
";
}
// line 664
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Product/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1172 => 664, 1168 => 662, 1166 => 661, 1154 => 654, 1150 => 653, 1144 => 650, 1140 => 649, 1133 => 644, 1118 => 642, 1111 => 638, 1107 => 636, 1100 => 632, 1094 => 631, 1088 => 628, 1082 => 625, 1078 => 624, 1073 => 623, 1070 => 622, 1064 => 619, 1060 => 618, 1057 => 617, 1055 => 616, 1050 => 614, 1046 => 613, 1043 => 612, 1041 => 611, 1031 => 609, 1029 => 608, 1026 => 607, 1024 => 606, 1019 => 603, 1013 => 601, 1010 => 600, 1002 => 598, 996 => 596, 993 => 595, 991 => 594, 988 => 593, 982 => 591, 979 => 590, 971 => 588, 968 => 587, 966 => 586, 960 => 584, 957 => 583, 955 => 582, 953 => 577, 948 => 575, 937 => 572, 934 => 571, 930 => 569, 927 => 568, 910 => 567, 906 => 565, 904 => 564, 896 => 558, 892 => 556, 886 => 554, 884 => 553, 881 => 552, 877 => 550, 871 => 548, 869 => 547, 852 => 541, 845 => 536, 841 => 534, 835 => 532, 833 => 531, 830 => 530, 826 => 528, 820 => 526, 818 => 525, 801 => 519, 794 => 514, 790 => 512, 784 => 510, 781 => 509, 777 => 507, 771 => 505, 769 => 504, 752 => 498, 744 => 492, 740 => 490, 734 => 488, 732 => 487, 717 => 485, 710 => 481, 705 => 478, 698 => 474, 694 => 473, 689 => 470, 687 => 469, 684 => 468, 678 => 466, 672 => 464, 670 => 463, 663 => 458, 658 => 456, 655 => 455, 652 => 454, 649 => 453, 636 => 450, 633 => 449, 631 => 446, 626 => 445, 623 => 444, 615 => 441, 612 => 440, 610 => 438, 608 => 437, 603 => 434, 591 => 432, 587 => 431, 582 => 430, 578 => 429, 574 => 427, 568 => 424, 565 => 423, 562 => 422, 552 => 421, 457 => 334, 310 => 188, 300 => 187, 204 => 99, 185 => 82, 175 => 75, 144 => 47, 116 => 21, 102 => 20, 94 => 19, 77 => 18, 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 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').html(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()
});
{# word検索 #}
const word = document.querySelector('#name');
word.addEventListener('input', (evt) => {
\t\t\tword.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\t//価格のslider
\t\tconst range1 = document.querySelector('#range-1');
\t\tconst range2 = document.querySelector('#range-2');
\t\tconst startValue1 = document.querySelector('#start-value1');
\t\tconst endValue2 = document.querySelector('#end-value2');
\t\trange1.addEventListener('input', (evt) => {
\t\t\tstartValue1.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\trange2.addEventListener('input', (evt) => {
\t\t\tendValue2.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\tstartValue1.textContent = range1.value;
\t\tendValue2.textContent = range2.value;
\t\t//高さのslider
\t\tconst range3 = document.querySelector('#range-3');
\t\tconst range4 = document.querySelector('#range-4');
\t\tconst startValue3 = document.querySelector('#start-value3');
\t\tconst endValue4 = document.querySelector('#end-value4');
\t\trange3.addEventListener('input', (evt) => {
\t\t\tstartValue3.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\trange4.addEventListener('input', (evt) => {
\t\t\tendValue4.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\tstartValue3.textContent = range3.value;
\t\tendValue4.textContent = range4.value;
\t\t//幅のslider
\t\tconst range5 = document.querySelector('#range-5');
\t\tconst range6 = document.querySelector('#range-6');
\t\tconst startValue5 = document.querySelector('#start-value5');
\t\tconst endValue6 = document.querySelector('#end-value6');
\t\trange5.addEventListener('input', (evt) => {
\t\t\tstartValue5.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\trange6.addEventListener('input', (evt) => {
\t\t\tendValue6.textContent = evt.target.value;
\$('#search-product').submit();
\t\t})
\t\tstartValue5.textContent = range5.value;
\t\tendValue6.textContent = range6.value;
//初期表示は非表示
document.getElementById(\"searchBox\").style.display =\"none\";
//絞り込みボタンの背景色を制御
const search = location.search;
if (search !== \"\") {
isSelected.style.background = \"#F2F2F2\";
}
function clickBtn2(){ //検索ボックスの表示・非表示を制御
const searchBox = document.getElementById(\"searchBox\");
const isSelected = document.getElementById(\"isSelected\");
if (searchBox.style.display==\"\"){
searchBox.style.display =\"none\";
} else{
searchBox.style.display =\"\";
}
}
</script>
{% endblock %}
{% block stylesheet %}
\t<style>
.ec-modal {
display: none;
position: fixed;
top: 0;
left: 0;
z-index: 99999;
width: 100%;
height: 100%;
}
.ec-modal.small {
width: 30%;
}
.ec-modal.full {
width: 100%;
height: 100%;
}
.ec-modal .ec-modal-overlay {
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.3);
width: 100%;
height: 100%;
}
.ec-modal .ec-modal-wrap {
position: relative;
border-radius: 6px;
border: 0px;
background-color: #fff;
width: 50%;
margin: 20px;
padding: 40px 5px;
}
.ec-modal .ec-modal-close {
cursor: pointer;
position: absolute;
right: 20px;
top: 10px;
font-size: 20px;
height: 30px;
width: 20px;
}
.ec-modal .ec-modal-close:hover {
color: #4b5361;
}
.ec-modal .ec-modal-box {
text-align: center;
}
.ec-modal .ec-role {
margin-top: 20px;
}
\t\t.margin {
margin: 3px;
}
.artcategory-flex {
\t\t\tbackground-color: #f4f1ee;
\t\t\tpadding: 5px;
margin-bottom: 30px;
\t\t\tdisplay: flex;
\t\t\tflex-wrap: wrap;
border-radius: 6px;
\t\t}
.category-title {
padding: 3px;
margin-left: 2%;
}
.category-title h5 {
color: black;
}
.ec-headerSearch__keywordBtn {
border-radius: 6px;
}
a {
color: black;
text-decoration: none;
}
a:hover {
color: #d5a770;
text-decoration: none;
}
.mb {
margin-bottom: 5px;
}
.img-wrap {
width: auto;
height: 300px;
}
.img-wrap img {
min-width: 250px;
width: auto;
height: 300px;
border-radius: 6px;
}
.img {
width: auto;
height: 300px;
max-width: auto;
max-height: 300px;
object-fit: cover;
}
.ec-blockBtn--action {
display: inline-block;
margin-bottom: 0;
font-weight: bold;
text-align: center;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 6px 12px;
font-size: 0.875rem;
border-radius: 1.42857142;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding: 10px 16px;
text-decoration: none;
color: #fff;
background-color: #d5a770;
border-color: #d5a770;
display: block;
width: 100%;
height: 56px;
line-height: 56px;
padding-top: 0;
padding-bottom: 0;
}
{# これしないとmaker_idのフォームが表示されてしまう #}
.form-control {
display: none;
}
.form-label {
display: none;
}
.ml-20 {
margin-left: 20%;
}
.deleteIcon {
color: red;
}
.deleteIcon:hover {
color: red;
}
.product-list-flex {
display: flex;
justify-content: center;
padding: 40px;
margin: 0 auto 30px auto;
border-radius: 6px;
background-color: #F2F2F2;
max-width: 750px;
}
.pr-16 {
padding-right: 16px;
}
.skelton_btn {
width: 130px;
padding: 6px 12px;
text-align: center;
text-decoration: none;
background: #fff;
}
.skelton_btn:hover {
background: #F2F2F2;
cursor: pointer;
text-decoration: none;
border-radius: 3px;
}
@media screen and ( max-width:1035px) {
.product-list-flex {
display: flex;
}
.slidebar-multithumb {
width: 100%;
}
.line {
display: none;
}
.searchWord {
display: none;
}
.img-wrap img {
min-width: 180px;
width: auto;
height: 300px;
}
}
@media screen and ( max-width:768px) {
.product-list-flex {
display: none;
}
.skelton_btn {
display: none;
}
}
.ec-numberInput {
display: none;
}
.product-list-description:hover {
color: black;
}
\t</style>
{% endblock %}
{% block main %}
{% if search_form.category_id.vars.errors|length > 0 %}
<div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
</div>
{% else %}
<div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
{% for item in search_form %}
<input type=\"hidden\" id=\"{{ item.vars.id }}\"
name=\"{{ item.vars.full_name }}\"
{% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
{% endfor %}
</form>
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath\">
{% if Category is null %}
{# <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
</li> #}
<div class=\"artcategory-flex\">
<div class=\"category-title\"><h2 class=\"fontweight-bold gold\"><a href=\"{{ url('product_list') }}\">{{ 'アート作品'|trans }}</a></h2></div>
</div>
{% endif %}
{% if Category is not null %}
{% for Path in Category.path %}
{# <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
</li> #}
<div class=\"artcategory-flex\">
<div class=\"category-title\"><h2 class=\"fontweight-bold gold\"><a href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a></h2></div>
</div>
{% endfor %}
{% endif %}
{% if search_form.vars.value and search_form.vars.value.name %}
<li class=\"ec-topicpath__divider\">|</li>
<li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
{% endif %}
</ol>
</div>
<div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
{% if pagination.totalItemCount > 0 %}
{{ '<span class=\"ec-font-bold\">%count%件</span><span>の作品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
{% else %}
<span>{{ 'お探しの作品は見つかりませんでした'|trans }}</span>
{% endif %}
</div>
{% if pagination.totalItemCount > 0 %}
<div class=\"ec-searchnavRole__actions\">
<div class=\"ec-select\">
<a href=\"#\" class=\"skelton_btn\" id=\"isSelected\" onclick=\"clickBtn2()\">絞り込み</a>
{{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
{{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
</div>
</div>
{% endif %}
</div>
</div>
<form method=\"get\" class=\"searchform\" id='search-product' action=\"{{ path('product_list') }}\">
\t\t\t<div class=\"product-list-flex\" id=\"searchBox\">
<div class=\"product-list-size pr-16\">
\t\t\t\t\t<div class=\"ec-headerSearch__category\">
<div class=\"fontweight-bold\"><label for=\"range-label\">ワード</label><a class='deleteIcon' href='/products/list?name=&price_min={{price_min}}&price_max={{price_max}}&size_vertical_min={{size_vertical_min}}&size_vertical_max={{size_vertical_max}}&size_width_min={{size_width_min}}&size_width_max={{size_width_max}}'><i class=\"fa-regular fa-trash-can ml-20\"></i></a></div>
<div class=\"ec-select ec-select_search margin-top \">
{% if name %}
<input type=\"text\" name=\"name\" id=\"name\" placeholder={{name}}>
{% else %}
<input type=\"text\" name=\"name\" id=\"name\">
{% endif %}
</div>
</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"product-list-size\">
\t\t\t\t\t<div class=\"slidebar-multithumb\">
<div class=\"fontweight-bold mb\"><label for=\"range-label\">価格</label><a class='deleteIcon' href='/products/list?name={{name}}&price_min=0&price_max=1000000&size_vertical_min={{size_vertical_min}}&size_vertical_max={{size_vertical_max}}&size_width_min={{size_width_min}}&size_width_max={{size_width_max}}'><i class=\"fa-regular fa-trash-can ml-20\"></i></a></div>
\t\t\t\t\t\t<div class=\"flex\">
\t\t\t\t\t\t\t<div><span id=\"start-value1\"></span>~</div>
\t\t\t\t\t\t\t<div><span id=\"end-value2\"></span>円</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"slidebar-multithumb-title\"></div>
{% if price_min %}
\t\t\t\t\t\t<input class=\"thumb-1\" type=\"range\" name=\"price_min\" id=\"range-1\" value={{price_min}} min=\"0\" max=\"1000000\" step=\"100\">
{% else %}
<input class=\"thumb-1\" type=\"range\" name=\"price_min\" id=\"range-1\" value=\"0\" min=\"0\" max=\"1000000\" step=\"100\">
{% endif %}
{% if price_max %}
\t\t\t\t\t\t<input class=\"thumb-2\" type=\"range\" name=\"price_max\" id=\"range-2\" value={{price_max}} min=\"0\" max=\"1000000\" step=\"100\">
{% else %}
<input class=\"thumb-2\" type=\"range\" name=\"price_max\" id=\"range-2\" value=\"1000000\" min=\"0\" max=\"1000000\" step=\"100\">
{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"product-list-size\">
\t\t\t\t\t<div class=\"slidebar-multithumb\">
<div class=\"fontweight-bold mb\"><label for=\"range-label\">高さ</label><a class='deleteIcon' href='/products/list?name={{name}}&price_min={{price_min}}&price_max={{price_max}}&size_vertical_min=0&size_vertical_max=300&size_width_min={{size_width_min}}&size_width_max={{size_width_max}}'><i class=\"fa-regular fa-trash-can ml-20\"></i></a></div>
\t\t\t\t\t\t<div class=\"flex\">
\t\t\t\t\t\t\t<div><span id=\"start-value3\"></span>~</div>
\t\t\t\t\t\t\t<div><span id=\"end-value4\"></span>cm</div>
\t\t\t\t\t\t</div>
<div class=\"slidebar-multithumb-title\"></div>
{% if size_vertical_min %}
\t\t\t\t\t\t<input class=\"thumb-1\" type=\"range\" name=\"size_vertical_min\" id=\"range-3\" value={{size_vertical_min}} min=\"0\" max=\"500\" step=\"10\">
{% else %}
<input class=\"thumb-1\" type=\"range\" name=\"size_vertical_min\" id=\"range-3\" value=\"0\" min=\"0\" max=\"300\" step=\"10\">
{% endif %}
{% if size_vertical_max %}
\t\t\t\t\t\t<input class=\"thumb-2\" type=\"range\" name=\"size_vertical_max\" id=\"range-4\" value={{size_vertical_max}} min=\"0\" max=\"300\" step=\"10\">
{% else %}
<input class=\"thumb-2\" type=\"range\" name=\"size_vertical_max\" id=\"range-4\" value=\"300\" min=\"0\" max=\"300\" step=\"10\">
{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"product-list-size\">
\t\t\t\t\t<div class=\"slidebar-multithumb\">
<div class=\"fontweight-bold mb\"><label for=\"range-label\">幅</label><a class='deleteIcon' href='/products/list?name={{name}}&price_min={{price_min}}&price_max={{price_max}}&size_vertical_min={{size_vertical_min}}&size_vertical_max={{size_vertical_max}}&size_width_min=0&size_width_max=300'><i class=\"fa-regular fa-trash-can ml-20\"></i></a></div>
\t\t\t\t\t\t<div class=\"flex\">
\t\t\t\t\t\t\t<div><span id=\"start-value5\"></span>~</div>
\t\t\t\t\t\t\t<div><span id=\"end-value6\"></span>cm</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"slidebar-multithumb-title\"></div>
{% if size_width_min %}
\t\t\t\t\t\t<input class=\"thumb-1\" type=\"range\" name=\"size_width_min\" id=\"range-5\" value={{size_width_min}} min=\"0\" max=\"300\" step=\"10\">
{% else %}
<input class=\"thumb-1\" type=\"range\" name=\"size_width_min\" id=\"range-5\" value=\"0\" min=\"0\" max=\"300\" step=\"10\">
{% endif %}
{% if size_width_max %}
\t\t\t\t\t\t<input class=\"thumb-2\" type=\"range\" name=\"size_width_max\" id=\"range-6\" value={{size_width_max}} min=\"0\" max=\"300\" step=\"10\">
{% else %}
<input class=\"thumb-2\" type=\"range\" name=\"size_width_max\" id=\"range-6\" value=\"300\" min=\"0\" max=\"300\" step=\"10\">
{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
</form>
{% if pagination.totalItemCount > 0 %}
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
{% for Product in pagination %}
<li class=\"ec-shelfGrid__item\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\" class=\"product-list-description\">
{# <p class=\"ec-shelfGrid__item-image\"> #}
<div class=\"img-wrap\">
<img class=\"img\" src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
</div>
{# </p> #}
<p class=\"price02-default margin\">{{ Product.name }}</p>
\t\t\t\t\t\t\t\t{# アーティスト名 #}
{# {% for artist in artists %}
{% if Product.getArtistId == artist.id %}
<p class=\"margin\">{{ artist.name }}</P>
{% endif %}
{% endfor %} #}
{# 絵の技法 #}
{% if Product.getProductionTechnique is not null %}
<p class=\"margin\">{{ Product.getProductionTechnique }}</p>
{% endif %}
\t\t\t\t\t\t\t\t{# 絵のサイズ #}
{% if Product.getProductionSizeVertical and Product.getProductionSizeWidth %}
\t\t\t\t\t\t\t\t <p class=\"margin\">{{ Product.getProductionSizeVertical }} x {{ Product.getProductionSizeWidth }} cm</p>
{% endif %}
{% if Product.description_list %}
<p class=\"margin\">{{ Product.description_list|raw|nl2br }}</p>
{% endif %}
<p class=\"price02-default margin\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|price }}
{% else %}
{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|price }}
{% endif %}
</p>
</a>
{% if Product.stock_find %}
{% set form = forms[Product.id] %}
{# Todo ここの下のform,hiddenで残しているが無くす? #}
<form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
<div class=\"ec-productRole__actions\">
{% if form.classcategory_id1 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>
{% if form.classcategory_id2 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</div>
{% endif %}
{% endif %}
<div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
{{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
{{ form_errors(form.quantity) }}
</div>
</div>
{{ form_rest(form) }}
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% else %}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'ただいま品切れ中です。'|trans }}
</button>
</div>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<div class=\"ec-modal\">
<div class=\"ec-modal-overlay\">
<div class=\"ec-modal-wrap\">
<span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
<div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
<a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action mt-5per\">{{ 'カートへ進む'|trans }}</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-pagerRole\">
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
</div>
{% endif %}
{% endif %}
{% endblock %}
", "Product/list.twig", "/home/xs230941/tas-lab.net/public_html/app/template/default/Product/list.twig");
}
}