<?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_3281bde01ac731b9966869e57cd1d54b 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'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
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, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 19), 19, $this->source), "js"), "html", null, true);
echo "\" : ";
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 19, $this->source));
echo "
";
// line 20
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 20) == false)) {
echo ",";
}
// line 21
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 22
echo " };
\$(function () {
\$('.disp-number').change(function () {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
\$('.disp-number-artist').change(function () {
var dispNumber = \$(this).val();
var currentUrl = window.location.href;
if (currentUrl.indexOf('disp_number=') !== -1) {
currentUrl = currentUrl.replace(/(disp_number=)[^&]*/, '\$1' + dispNumber);
} else {
currentUrl += (currentUrl.indexOf('?') === -1 ? '?' : '&') + 'disp_number=' + dispNumber;
}
window.location.href = currentUrl;
});
\$('.order-by-artist').change(function () {
var orderBy = \$(this).val();
var currentUrl = window.location.href;
if (currentUrl.indexOf('order_by=') !== -1) {
currentUrl = currentUrl.replace(/(order_by=)[^&]*/, '\$1' + orderBy);
} else {
currentUrl += (currentUrl.indexOf('?') === -1 ? '?' : '&') + 'order_by=' + orderBy;
}
window.location.href = currentUrl;
});
\$('.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 71
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 97
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 104
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();
});
\$(document).ready(function() {
\$('.custom-select').select2({
minimumResultsForSearch: -1,
dropdownCssClass: 'select2-dropdown-slide'
});
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 128
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 129
echo " <div class=\"ec-layoutRole__main custom-layout__product\">
";
// line 131
echo " ";
if ((array_key_exists("GroupProduct", $context) && (isset($context["GroupProduct"]) || array_key_exists("GroupProduct", $context) ? $context["GroupProduct"] : (function () { throw new RuntimeError('Variable "GroupProduct" does not exist.', 131, $this->source); })()))) {
// line 132
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["GroupProduct"]) || array_key_exists("GroupProduct", $context) ? $context["GroupProduct"] : (function () { throw new RuntimeError('Variable "GroupProduct" does not exist.', 132, $this->source); })()), "ProductCategories", [], "any", false, false, true, 132))) {
// line 133
echo " <div class=\"ec-breadcrumbs_layout\">
";
// line 134
$context["shown_breadcrumb"] = false;
// line 135
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["GroupProduct"]) || array_key_exists("GroupProduct", $context) ? $context["GroupProduct"] : (function () { throw new RuntimeError('Variable "GroupProduct" does not exist.', 135, $this->source); })()), "ProductCategories", [], "any", false, false, true, 135));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 136
echo " ";
if (( !(isset($context["shown_breadcrumb"]) || array_key_exists("shown_breadcrumb", $context) ? $context["shown_breadcrumb"] : (function () { throw new RuntimeError('Variable "shown_breadcrumb" does not exist.', 136, $this->source); })()) && ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["GroupProduct"]) || array_key_exists("GroupProduct", $context) ? $context["GroupProduct"] : (function () { throw new RuntimeError('Variable "GroupProduct" does not exist.', 136, $this->source); })()), "ProductCategories", [], "any", false, false, true, 136)) == 1) || (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, true, 136), "path", [], "any", false, false, true, 136)) >= 2)))) {
// line 137
echo " <div class=\"ec-breadcrumbs\">
<a href=\"/\">Home</a>
<span> ></span>
";
// line 140
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, true, 140), "path", [], "any", false, false, true, 140));
$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["Category"]) {
// line 141
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Category"], "id", [], "any", false, false, true, 141) == 1)) {
// line 142
echo " <a href=\"/rock/\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Category"], "name", [], "any", false, false, true, 142), 142, $this->source), "html", null, true);
echo "</a>
";
} else {
// line 144
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Category"], "id", [], "any", false, false, true, 144), 144, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Category"], "name", [], "any", false, false, true, 144), 144, $this->source), "html", null, true);
echo "</a>
";
}
// line 146
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 146) == false)) {
// line 147
echo " <span> ></span>
";
}
++$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['Category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 150
echo " <span> ></span> ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["GroupProduct"]) || array_key_exists("GroupProduct", $context) ? $context["GroupProduct"] : (function () { throw new RuntimeError('Variable "GroupProduct" does not exist.', 150, $this->source); })()), "name", [], "any", false, false, true, 150), 150, $this->source), "html", null, true);
echo "
</div>
";
// line 152
$context["shown_breadcrumb"] = true;
// line 153
echo " ";
}
// line 154
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 155
echo " </div>
";
}
// line 157
echo " ";
} else {
// line 158
echo " <div class=\"ec-breadcrumbs\">
<div itemscope=\"\" itemtype=\"http://data-vocabulary.org/Breadcrumb\">
<a href=\"/\" itemprop=\"url\">
<span itemprop=\"title\">Home</span>
</a>
</div>
";
// line 164
if ((array_key_exists("Artist", $context) && (isset($context["Artist"]) || array_key_exists("Artist", $context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.', 164, $this->source); })()))) {
// line 165
echo " <div>
>
<a href=\"";
// line 167
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Artist"]) || array_key_exists("Artist", $context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.', 167, $this->source); })()), "getCategoryLabelUrl", [], "method", false, false, true, 167), 167, $this->source), "html", null, true);
echo "\" itemprop=\"url\">
<span itemprop=\"title\">";
// line 168
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["Artist"]) || array_key_exists("Artist", $context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.', 168, $this->source); })()), "CategoryLabel", [], "any", false, false, true, 168), "name", [], "any", false, false, true, 168), 168, $this->source), "html", null, true);
echo "</span>
</a>
</div>
<div>
>
<span itemprop=\"title\">";
// line 173
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Artist"]) || array_key_exists("Artist", $context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.', 173, $this->source); })()), "name", [], "any", false, false, true, 173), 173, $this->source), "html", null, true);
echo "</span>
</div>
";
} elseif (( // line 175
array_key_exists("Category", $context) && (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 175, $this->source); })()))) {
// line 176
echo " ";
if (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.', 176, $this->source); })()), "Parent", [], "any", false, false, true, 176)) {
// line 177
echo " <div>
>
<a href=\"";
// line 179
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 179, $this->source); })()), "Parent", [], "any", false, false, true, 179), "id", [], "any", false, false, true, 179), 179, $this->source), "html", null, true);
echo "\" itemprop=\"url\">
<span itemprop=\"title\">";
// line 180
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 180, $this->source); })()), "Parent", [], "any", false, false, true, 180), "name", [], "any", false, false, true, 180), 180, $this->source), "html", null, true);
echo "</span>
</a>
</div>
";
}
// line 184
echo " <div>
>
<span itemprop=\"title\">";
// line 186
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 186, $this->source); })()), "name", [], "any", false, false, true, 186), 186, $this->source), "html", null, true);
echo "</span>
</div>
";
} else {
// line 189
echo " <div>
>
<span itemprop=\"title\">全商品</span>
</div>
";
}
// line 194
echo " </div>
";
}
// line 196
echo " ";
// line 197
echo "
";
// line 198
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.', 198, $this->source); })()), "category_id", [], "any", false, false, true, 198), "vars", [], "any", false, false, true, 198), "errors", [], "any", false, false, true, 198)) > 0)) {
// line 199
echo " <div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">";
// line 200
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
</div>
";
} else {
// line 203
echo " <div class=\"ec-searchnavRole\">
<div class=\"ec-searchnavRole__search\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 206
$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.', 206, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 207
echo " ";
if (!twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, true, 207), "id", [], "any", false, false, true, 207), [0 => "name", 1 => "field_type", 2 => "genre_id"])) {
// line 208
echo " <input type=\"hidden\" id=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, true, 208), "id", [], "any", false, false, true, 208), 208, $this->source), "html", null, true);
echo "\" name=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, true, 208), "full_name", [], "any", false, false, true, 208), 208, $this->source), "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, true, 208), "value", [], "any", false, false, true, 208))) {
echo " value=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, true, 208), "value", [], "any", false, false, true, 208), 208, $this->source), "html", null, true);
echo "\" ";
}
echo "/>
";
}
// line 210
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 211
echo " <input type=\"hidden\" name=\"pageno\" value=\"1\">
<div class=\"d-flex align-items-center gap-1\">
<div class=\"d-flex align-items-center p-0\">
<div class=\"ec-searchnavRole__search__input input-name\">
";
// line 215
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 215, $this->source); })()), "name", [], "any", false, false, true, 215), 215, $this->source), 'widget');
echo "
<button class=\"ec-headerSearch__keywordBtn\" type=\"submit\">
<img src=\"";
// line 217
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/btn_search_s.jpg"), "html", null, true);
echo "\" alt=\"購入履歴\">
</button>
</div>
";
// line 220
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 220, $this->source); })()), "name", [], "any", false, false, true, 220), 220, $this->source), 'errors');
echo "
</div>
<div class=\"\">
<div class=\"ec-searchnavRole__search__input input-select\">
";
// line 224
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 224, $this->source); })()), "field_type", [], "any", false, false, true, 224), 224, $this->source), 'widget', ["attr" => ["class" => "custom-select"]]);
echo "
<button class=\"ec-headerSearch__keywordBtn\" type=\"submit\">
<img src=\"";
// line 226
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/btn_topsearch_music_genre.png"), "html", null, true);
echo "\" alt=\"購入履歴\">
</button>
</div>
";
// line 229
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 229, $this->source); })()), "field_type", [], "any", false, false, true, 229), 229, $this->source), 'errors');
echo "
</div>
<div class=\"\">
<div class=\"ec-searchnavRole__search__input input-select\">
";
// line 233
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 233, $this->source); })()), "genre_id", [], "any", false, false, true, 233), 233, $this->source), 'widget', ["attr" => ["class" => "custom-select"]]);
echo "
<button class=\"ec-headerSearch__keywordBtn\" type=\"submit\">
<img src=\"";
// line 235
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/btn_topsearch_item_genre.png"), "html", null, true);
echo "\" alt=\"購入履歴\">
</button>
</div>
";
// line 238
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 238, $this->source); })()), "genre_id", [], "any", false, false, true, 238), 238, $this->source), 'errors');
echo "
</div>
<div class=\"\">
<button class=\"search-button\" type=\"submit\">
<img src=\"";
// line 242
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/btn_search.jpg"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("検索"), "html", null, true);
echo "\">
</button>
</div>
</div>
</form>
</div>
";
// line 249
echo " ";
if ((array_key_exists("Artist", $context) && (isset($context["Artist"]) || array_key_exists("Artist", $context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.', 249, $this->source); })()))) {
// line 250
echo " <div class=\"artist\">
";
// line 251
if ((array_key_exists("ArtistImage", $context) && (isset($context["ArtistImage"]) || array_key_exists("ArtistImage", $context) ? $context["ArtistImage"] : (function () { throw new RuntimeError('Variable "ArtistImage" does not exist.', 251, $this->source); })()))) {
// line 252
echo " <div class=\"artist-image\">
<img src=\"";
// line 253
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["ArtistImage"]) || array_key_exists("ArtistImage", $context) ? $context["ArtistImage"] : (function () { throw new RuntimeError('Variable "ArtistImage" does not exist.', 253, $this->source); })()), 253, $this->source), "html", null, true);
echo "\" class=\"artist-image\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Artist"]) || array_key_exists("Artist", $context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.', 253, $this->source); })()), "name", [], "any", false, false, true, 253), 253, $this->source), "html", null, true);
echo "\">
</div>
";
}
// line 256
echo " <div class=\"artist-detail\">
<p>";
// line 257
echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Artist"]) || array_key_exists("Artist", $context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.', 257, $this->source); })()), "category_content", [], "any", false, false, true, 257), 257, $this->source));
echo "</p>
</div>
</div>
";
}
// line 261
echo " ";
// line 262
echo " <div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
";
// line 264
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.', 264, $this->source); })()), "totalItemCount", [], "any", false, false, true, 264) > 0)) {
// line 265
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"attention\">%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.', 265, $this->source); })()), "totalItemCount", [], "any", false, false, true, 265)]);
echo "
";
} else {
// line 267
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html", null, true);
echo "</span>
";
}
// line 269
echo " </div>
<div class=\"ec-searchnavRole__actions\">
";
// line 271
if ((array_key_exists("Artist", $context) && (isset($context["Artist"]) || array_key_exists("Artist", $context) ? $context["Artist"] : (function () { throw new RuntimeError('Variable "Artist" does not exist.', 271, $this->source); })()))) {
// line 272
echo " <div class=\"ec-select\">
";
// line 273
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 273, $this->source); })()), "orderby", [], "any", false, false, true, 273), 273, $this->source), 'widget', ["id" => "", "attr" => ["class" => "order-by-artist"]]);
echo "
";
// line 274
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 274, $this->source); })()), "disp_number", [], "any", false, false, true, 274), 274, $this->source), 'widget', ["id" => "", "attr" => ["class" => "disp-number-artist"]]);
echo "
</div>
";
} else {
// line 277
echo " <div class=\"ec-select\">
";
// line 278
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 278, $this->source); })()), "orderby", [], "any", false, false, true, 278), 278, $this->source), 'widget', ["id" => "", "attr" => ["class" => "order-by"]]);
echo "
";
// line 279
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 279, $this->source); })()), "disp_number", [], "any", false, false, true, 279), 279, $this->source), 'widget', ["id" => "", "attr" => ["class" => "disp-number"]]);
echo "
</div>
";
}
// line 281
echo "
</div>
</div>
</div>
";
// line 285
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.', 285, $this->source); })()), "totalItemCount", [], "any", false, false, true, 285) > 0)) {
// line 286
echo " <div class=\"ec-shelfRole\">
<div class=\"ec-counterRole\">
";
// line 288
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.', 288, $this->source); })()), "totalItemCount", [], "any", false, false, true, 288) > 0)) {
// line 289
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"attention\">%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.', 289, $this->source); })()), "totalItemCount", [], "any", false, false, true, 289)]);
echo "
";
} else {
// line 291
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html", null, true);
echo "</span>
";
}
// line 293
echo " </div>
<ul class=\"ec-shelfGrid\">
";
// line 295
$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.', 295, $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 296
echo " <li class=\"ec-shelfGrid__item\">
<a class=\"link-product\" href=\"";
// line 297
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, true, 297)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\">
";
// line 299
$context["isSoldOut"] = true;
// line 300
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductClasses", [], "any", false, false, true, 300));
foreach ($context['_seq'] as $context["_key"] => $context["productClass"]) {
// line 301
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["productClass"], "stock_find", [], "any", false, false, true, 301)) {
// line 302
echo " ";
$context["isSoldOut"] = false;
// line 303
echo " ";
}
// line 304
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productClass'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 305
echo " ";
if ((isset($context["isSoldOut"]) || array_key_exists("isSoldOut", $context) ? $context["isSoldOut"] : (function () { throw new RuntimeError('Variable "isSoldOut" does not exist.', 305, $this->source); })())) {
// line 306
echo " <span class=\"soldout_box\"></span>
<span class=\"soldout\">SOLD OUT</span>
";
}
// line 309
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "main_list_image", [], "any", false, false, true, 309), 309, $this->source)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 309), 309, $this->source), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 309) > 5)) {
echo " loading=\"lazy\" ";
}
echo ">
</p>
";
// line 311
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "ProductStatusCusts", [], "any", false, false, true, 311)) > 0)) {
// line 312
echo " <ul class=\"ec-productRole__status\">
";
// line 313
$context["statusIds"] = [0 => 1, 1 => 2, 2 => 4, 3 => 5];
// line 314
echo " ";
$context["statusIdsSpicon"] = [0 => 6, 1 => 13, 2 => 14];
// line 315
echo "
";
// line 316
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductStatusCusts", [], "any", false, false, true, 316));
foreach ($context['_seq'] as $context["_key"] => $context["StatusItem"]) {
// line 317
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["StatusItem"], "Status", [], "any", false, false, true, 317), "id", [], "any", false, false, true, 317) == 3)) {
// line 318
echo " <li class=\"ward-status\">
<span class=\"ec-productRole__status__item status_3\">
<img src=\"";
// line 320
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/ico_wgen.jpg"), "html", null, true);
echo "\" alt=\"ico_wgen\">
</span>
</li>
";
}
// line 324
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['StatusItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 325
echo "
";
// line 326
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductStatusCusts", [], "any", false, false, true, 326));
foreach ($context['_seq'] as $context["_key"] => $context["StatusItem"]) {
// line 327
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["StatusItem"], "Status", [], "any", false, false, true, 327), "id", [], "any", false, false, true, 327) != 3)) {
// line 328
echo " ";
$context["showSpicon"] = 0;
// line 329
echo " ";
if (twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["StatusItem"], "Status", [], "any", false, false, true, 329), "id", [], "any", false, false, true, 329), (isset($context["statusIds"]) || array_key_exists("statusIds", $context) ? $context["statusIds"] : (function () { throw new RuntimeError('Variable "statusIds" does not exist.', 329, $this->source); })()))) {
// line 330
echo " <li class=\"ec-productRole__status__item status_";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["StatusItem"], "Status", [], "any", false, false, true, 330), "id", [], "any", false, false, true, 330), 330, $this->source), "html", null, true);
echo "\">
<span>";
// line 331
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["StatusItem"], "Status", [], "any", false, false, true, 331), "name", [], "any", false, false, true, 331), 331, $this->source), "html", null, true);
echo "</span>
</li>
";
}
// line 334
echo "
";
// line 335
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["StatusItem"], "Status", [], "any", false, false, true, 335), "id", [], "any", false, false, true, 335) == 11)) {
// line 336
echo " <li class=\"ec-productRole__status__item status_";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["StatusItem"], "Status", [], "any", false, false, true, 336), "id", [], "any", false, false, true, 336), 336, $this->source), "html", null, true);
echo "\">
<span>お年玉セール</span>
</li>
";
}
// line 340
echo "
";
// line 341
if (twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["StatusItem"], "Status", [], "any", false, false, true, 341), "id", [], "any", false, false, true, 341), (isset($context["statusIdsSpicon"]) || array_key_exists("statusIdsSpicon", $context) ? $context["statusIdsSpicon"] : (function () { throw new RuntimeError('Variable "statusIdsSpicon" does not exist.', 341, $this->source); })()))) {
// line 342
echo " ";
$context["showSpicon"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["StatusItem"], "Status", [], "any", false, false, true, 342), "id", [], "any", false, false, true, 342);
// line 343
echo " ";
}
// line 344
echo "
";
// line 345
if (((isset($context["showSpicon"]) || array_key_exists("showSpicon", $context) ? $context["showSpicon"] : (function () { throw new RuntimeError('Variable "showSpicon" does not exist.', 345, $this->source); })()) == 6)) {
// line 346
echo " <li class=\"ec-productRole__status__item status_12\">
<span>直筆サイン付</span>
</li>
";
}
// line 350
echo " ";
}
// line 351
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['StatusItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 352
echo " </ul>
";
}
// line 354
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Product"], "getFirstArtist", [], "method", false, false, true, 354))) {
// line 355
echo " <p class=\"ec-shelfGrid__item-artist\">
";
// line 356
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Product"], "getFirstArtist", [], "method", false, false, true, 356), "name", [], "any", false, false, true, 356), 356, $this->source), "html", null, true);
echo "
</p>
";
}
// line 359
echo " <p class=\"ec-shelfGrid__item-name\">
";
// line 360
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "papc3", [], "any", false, false, true, 360), 360, $this->source), "html", null, true);
echo "
";
// line 361
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 361), 361, $this->source), "html", null, true);
echo "
";
// line 362
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "papc4", [], "any", false, false, true, 362), 362, $this->source), "html", null, true);
echo "
</p>
<p class=\"price02-default\">
";
// line 366
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, true, 366)) {
// line 367
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, true, 367) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, true, 367))) {
// line 368
echo " <span class=\"ec-price__price price02-default\">
";
// line 369
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 369), 369, $this->source), 0, ".", ","), "html", null, true);
echo "円
</span>
<span class=\"ec-price__price price02-default tax-excluded-price\">
(税抜 ";
// line 372
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, true, 372), 372, $this->source), 0, ".", ","), "html", null, true);
echo "円)
</span>
<span class=\"ec-price__price price02-default tax-excluded-price1\">
(税込)
</span>
";
} else {
// line 378
echo " <div class=\"ec-price\">
<span class=\"ec-price__price price02-default\">
";
// line 380
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 380), 380, $this->source), 0, ".", ","), "html", null, true);
echo " ~
";
// line 381
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMax", [], "any", false, false, true, 381), 381, $this->source), 0, ".", ","), "html", null, true);
echo "円
</span>
<span class=\"ec-price__price price02-default tax-excluded-price\">
(税抜 ";
// line 384
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, true, 384), 384, $this->source), 0, ".", ","), "html", null, true);
echo " ~
";
// line 385
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, true, 385), 385, $this->source), 0, ".", ","), "html", null, true);
echo "円)
</span>
<span class=\"ec-price__price price02-default tax-excluded-price1\">
(税込)
</span>
</div>
";
}
// line 392
echo " ";
} else {
// line 393
echo " <div class=\"ec-price\">
<span class=\"ec-price__price\">
";
// line 395
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 395), 395, $this->source), 0, ".", ","), "html", null, true);
echo "円
</span>
<span class=\"ec-price__price tax-excluded-price\">
(税抜 ";
// line 398
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, true, 398), 398, $this->source), 0, ".", ","), "html", null, true);
echo "円)
</span>
<span class=\"ec-price__price price02-default tax-excluded-price1\">
(税込)
</span>
</div>
";
}
// line 405
echo " ";
// line 449
echo " </p>
";
// line 450
$context["original_price"] = twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice01IncTaxMin", [], "any", false, false, true, 450);
// line 451
echo " ";
$context["sale_price"] = twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 451);
// line 452
echo " ";
if (((((isset($context["original_price"]) || array_key_exists("original_price", $context) ? $context["original_price"] : (function () { throw new RuntimeError('Variable "original_price" does not exist.', 452, $this->source); })()) > 0) && !(null === (isset($context["sale_price"]) || array_key_exists("sale_price", $context) ? $context["sale_price"] : (function () { throw new RuntimeError('Variable "sale_price" does not exist.', 452, $this->source); })()))) && ((isset($context["original_price"]) || array_key_exists("original_price", $context) ? $context["original_price"] : (function () { throw new RuntimeError('Variable "original_price" does not exist.', 452, $this->source); })()) > (isset($context["sale_price"]) || array_key_exists("sale_price", $context) ? $context["sale_price"] : (function () { throw new RuntimeError('Variable "sale_price" does not exist.', 452, $this->source); })())))) {
// line 453
echo " <div class=\"sale_price\">
";
// line 454
$context["discount_percentage"] = twig_round(((((isset($context["original_price"]) || array_key_exists("original_price", $context) ? $context["original_price"] : (function () { throw new RuntimeError('Variable "original_price" does not exist.', 454, $this->source); })()) - (isset($context["sale_price"]) || array_key_exists("sale_price", $context) ? $context["sale_price"] : (function () { throw new RuntimeError('Variable "sale_price" does not exist.', 454, $this->source); })())) / (isset($context["original_price"]) || array_key_exists("original_price", $context) ? $context["original_price"] : (function () { throw new RuntimeError('Variable "original_price" does not exist.', 454, $this->source); })())) * 100), 2);
// line 455
echo " <span class=\"plgShiro8PriceDownRate\">
";
// line 456
echo twig_escape_filter($this->env, (int) floor(((isset($context["discount_percentage"]) || array_key_exists("discount_percentage", $context) ? $context["discount_percentage"] : (function () { throw new RuntimeError('Variable "discount_percentage" does not exist.', 456, $this->source); })()) / 1)), "html", null, true);
echo "%OFF
</span>
</div>
";
}
// line 460
echo " </a>
</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 463
echo " </ul>
<div class=\"ec-pagerRole\">
";
// line 465
$this->loadTemplate("pager.twig", "Product/list.twig", 465)->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.', 465, $this->source); })()), "paginationData", [], "any", false, false, true, 465)]));
// line 466
echo " </div>
</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 472
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 474
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 477
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 478
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\" class=\"ec-inlineBtn--action\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
</div>
";
}
// line 485
echo " ";
}
// line 486
echo " </div>
";
$__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 ( 1033 => 486, 1030 => 485, 1018 => 478, 1014 => 477, 1008 => 474, 1003 => 472, 995 => 466, 993 => 465, 989 => 463, 973 => 460, 966 => 456, 963 => 455, 961 => 454, 958 => 453, 955 => 452, 952 => 451, 950 => 450, 947 => 449, 945 => 405, 935 => 398, 929 => 395, 925 => 393, 922 => 392, 912 => 385, 908 => 384, 902 => 381, 898 => 380, 894 => 378, 885 => 372, 879 => 369, 876 => 368, 873 => 367, 870 => 366, 864 => 362, 860 => 361, 856 => 360, 853 => 359, 847 => 356, 844 => 355, 841 => 354, 837 => 352, 831 => 351, 828 => 350, 822 => 346, 820 => 345, 817 => 344, 814 => 343, 811 => 342, 809 => 341, 806 => 340, 798 => 336, 796 => 335, 793 => 334, 787 => 331, 782 => 330, 779 => 329, 776 => 328, 773 => 327, 769 => 326, 766 => 325, 760 => 324, 753 => 320, 749 => 318, 746 => 317, 742 => 316, 739 => 315, 736 => 314, 734 => 313, 731 => 312, 729 => 311, 717 => 309, 712 => 306, 709 => 305, 703 => 304, 700 => 303, 697 => 302, 694 => 301, 689 => 300, 687 => 299, 682 => 297, 679 => 296, 662 => 295, 658 => 293, 652 => 291, 646 => 289, 644 => 288, 640 => 286, 638 => 285, 632 => 281, 626 => 279, 622 => 278, 619 => 277, 613 => 274, 609 => 273, 606 => 272, 604 => 271, 600 => 269, 594 => 267, 588 => 265, 586 => 264, 582 => 262, 580 => 261, 573 => 257, 570 => 256, 562 => 253, 559 => 252, 557 => 251, 554 => 250, 551 => 249, 540 => 242, 533 => 238, 527 => 235, 522 => 233, 515 => 229, 509 => 226, 504 => 224, 497 => 220, 491 => 217, 486 => 215, 480 => 211, 474 => 210, 460 => 208, 457 => 207, 453 => 206, 448 => 203, 442 => 200, 439 => 199, 437 => 198, 434 => 197, 432 => 196, 428 => 194, 421 => 189, 415 => 186, 411 => 184, 404 => 180, 398 => 179, 394 => 177, 391 => 176, 389 => 175, 384 => 173, 376 => 168, 372 => 167, 368 => 165, 366 => 164, 358 => 158, 355 => 157, 351 => 155, 345 => 154, 342 => 153, 340 => 152, 334 => 150, 318 => 147, 316 => 146, 306 => 144, 300 => 142, 297 => 141, 280 => 140, 275 => 137, 272 => 136, 267 => 135, 265 => 134, 262 => 133, 259 => 132, 256 => 131, 253 => 129, 243 => 128, 210 => 104, 200 => 97, 171 => 71, 120 => 22, 106 => 21, 102 => 20, 95 => 19, 78 => 18, 74 => 16, 64 => 15, 53 => 11, 51 => 13, 38 => 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();
});
\$('.disp-number-artist').change(function () {
var dispNumber = \$(this).val();
var currentUrl = window.location.href;
if (currentUrl.indexOf('disp_number=') !== -1) {
currentUrl = currentUrl.replace(/(disp_number=)[^&]*/, '\$1' + dispNumber);
} else {
currentUrl += (currentUrl.indexOf('?') === -1 ? '?' : '&') + 'disp_number=' + dispNumber;
}
window.location.href = currentUrl;
});
\$('.order-by-artist').change(function () {
var orderBy = \$(this).val();
var currentUrl = window.location.href;
if (currentUrl.indexOf('order_by=') !== -1) {
currentUrl = currentUrl.replace(/(order_by=)[^&]*/, '\$1' + orderBy);
} else {
currentUrl += (currentUrl.indexOf('?') === -1 ? '?' : '&') + 'order_by=' + orderBy;
}
window.location.href = currentUrl;
});
\$('.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();
});
\$(document).ready(function() {
\$('.custom-select').select2({
minimumResultsForSearch: -1,
dropdownCssClass: 'select2-dropdown-slide'
});
});
});
</script>
{% endblock %}
{% block main %}
<div class=\"ec-layoutRole__main custom-layout__product\">
{# breadcumb #}
{% if GroupProduct is defined and GroupProduct %}
{% if GroupProduct.ProductCategories is not empty %}
<div class=\"ec-breadcrumbs_layout\">
{% set shown_breadcrumb = false %}
{% for ProductCategory in GroupProduct.ProductCategories %}
{% if not shown_breadcrumb and (GroupProduct.ProductCategories|length == 1 or ProductCategory.Category.path|length >= 2) %}
<div class=\"ec-breadcrumbs\">
<a href=\"/\">Home</a>
<span> ></span>
{% for Category in ProductCategory.Category.path %}
{% if Category.id == 1 %}
<a href=\"/rock/\">{{ Category.name }}</a>
{% else %}
<a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a>
{% endif %}
{%- if loop.last == false %}
<span> ></span>
{% endif -%}
{% endfor %}
<span> ></span> {{ GroupProduct.name }}
</div>
{% set shown_breadcrumb = true %}
{% endif %}
{% endfor %}
</div>
{% endif %}
{% else %}
<div class=\"ec-breadcrumbs\">
<div itemscope=\"\" itemtype=\"http://data-vocabulary.org/Breadcrumb\">
<a href=\"/\" itemprop=\"url\">
<span itemprop=\"title\">Home</span>
</a>
</div>
{% if Artist is defined and Artist %}
<div>
>
<a href=\"{{ Artist.getCategoryLabelUrl() }}\" itemprop=\"url\">
<span itemprop=\"title\">{{Artist.CategoryLabel.name}}</span>
</a>
</div>
<div>
>
<span itemprop=\"title\">{{Artist.name}}</span>
</div>
{% elseif Category is defined and Category %}
{% if Category.Parent %}
<div>
>
<a href=\"{{ url('product_list') }}?category_id={{ Category.Parent.id }}\" itemprop=\"url\">
<span itemprop=\"title\">{{Category.Parent.name}}</span>
</a>
</div>
{% endif %}
<div>
>
<span itemprop=\"title\">{{Category.name}}</span>
</div>
{% else %}
<div>
>
<span itemprop=\"title\">全商品</span>
</div>
{% endif %}
</div>
{% endif %}
{# end breadcumb #}
{% 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\">
<div class=\"ec-searchnavRole__search\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
{% for item in search_form %}
{% if item.vars.id not in ['name', 'field_type', 'genre_id'] %}
<input type=\"hidden\" id=\"{{ item.vars.id }}\" name=\"{{ item.vars.full_name }}\" {% if item.vars.value is not empty %} value=\"{{ item.vars.value }}\" {% endif %}/>
{% endif %}
{% endfor %}
<input type=\"hidden\" name=\"pageno\" value=\"1\">
<div class=\"d-flex align-items-center gap-1\">
<div class=\"d-flex align-items-center p-0\">
<div class=\"ec-searchnavRole__search__input input-name\">
{{ form_widget(search_form.name) }}
<button class=\"ec-headerSearch__keywordBtn\" type=\"submit\">
<img src=\"{{ asset('assets/icon/btn_search_s.jpg') }}\" alt=\"購入履歴\">
</button>
</div>
{{ form_errors(search_form.name) }}
</div>
<div class=\"\">
<div class=\"ec-searchnavRole__search__input input-select\">
{{ form_widget(search_form.field_type, {'attr': {'class': 'custom-select'}}) }}
<button class=\"ec-headerSearch__keywordBtn\" type=\"submit\">
<img src=\"{{ asset('assets/icon/btn_topsearch_music_genre.png') }}\" alt=\"購入履歴\">
</button>
</div>
{{ form_errors(search_form.field_type) }}
</div>
<div class=\"\">
<div class=\"ec-searchnavRole__search__input input-select\">
{{ form_widget(search_form.genre_id, {'attr': {'class': 'custom-select'}}) }}
<button class=\"ec-headerSearch__keywordBtn\" type=\"submit\">
<img src=\"{{ asset('assets/icon/btn_topsearch_item_genre.png') }}\" alt=\"購入履歴\">
</button>
</div>
{{ form_errors(search_form.genre_id) }}
</div>
<div class=\"\">
<button class=\"search-button\" type=\"submit\">
<img src=\"{{ asset('assets/icon/btn_search.jpg') }}\" alt=\"{{ '検索'|trans }}\">
</button>
</div>
</div>
</form>
</div>
{# artist detail #}
{% if Artist is defined and Artist %}
<div class=\"artist\">
{% if ArtistImage is defined and ArtistImage %}
<div class=\"artist-image\">
<img src=\"{{ ArtistImage }}\" class=\"artist-image\" alt=\"{{ Artist.name }}\">
</div>
{% endif %}
<div class=\"artist-detail\">
<p>{{ Artist.category_content|raw|nl2br }}</p>
</div>
</div>
{% endif %}
{# end artist detail #}
<div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
{% if pagination.totalItemCount > 0 %}
{{ '<span class=\"attention\">%count%件</span><span>の商品がございます。</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
{% else %}
<span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
{% endif %}
</div>
<div class=\"ec-searchnavRole__actions\">
{% if Artist is defined and Artist %}
<div class=\"ec-select\">
{{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by-artist'}}) }}
{{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number-artist'}}) }}
</div>
{% else %}
<div class=\"ec-select\">
{{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
{{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
</div>
{% endif %}
</div>
</div>
</div>
{% if pagination.totalItemCount > 0 %}
<div class=\"ec-shelfRole\">
<div class=\"ec-counterRole\">
{% if pagination.totalItemCount > 0 %}
{{ '<span class=\"attention\">%count%件</span><span>の商品がございます。</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
{% else %}
<span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
{% endif %}
</div>
<ul class=\"ec-shelfGrid\">
{% for Product in pagination %}
<li class=\"ec-shelfGrid__item\">
<a class=\"link-product\" href=\"{{ url('product_detail', {id: Product.id}) }}\">
<p class=\"ec-shelfGrid__item-image\">
{% set isSoldOut = true %}
{% for productClass in Product.ProductClasses %}
{% if productClass.stock_find %}
{% set isSoldOut = false %}
{% endif %}
{% endfor %}
{% if isSoldOut %}
<span class=\"soldout_box\"></span>
<span class=\"soldout\">SOLD OUT</span>
{% endif %}
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\" {% endif %}>
</p>
{% if Product.ProductStatusCusts|length > 0 %}
<ul class=\"ec-productRole__status\">
{% set statusIds = [1, 2, 4, 5] %}
{% set statusIdsSpicon = [6, 13, 14] %}
{% for StatusItem in Product.ProductStatusCusts %}
{% if StatusItem.Status.id == 3 %}
<li class=\"ward-status\">
<span class=\"ec-productRole__status__item status_3\">
<img src=\"{{ asset('assets/img/common/ico_wgen.jpg') }}\" alt=\"ico_wgen\">
</span>
</li>
{% endif %}
{% endfor %}
{% for StatusItem in Product.ProductStatusCusts %}
{% if StatusItem.Status.id != 3 %}
{% set showSpicon = 0 %}
{% if StatusItem.Status.id in statusIds %}
<li class=\"ec-productRole__status__item status_{{ StatusItem.Status.id }}\">
<span>{{ StatusItem.Status.name }}</span>
</li>
{% endif %}
{% if StatusItem.Status.id == 11 %}
<li class=\"ec-productRole__status__item status_{{ StatusItem.Status.id }}\">
<span>お年玉セール</span>
</li>
{% endif %}
{% if StatusItem.Status.id in statusIdsSpicon %}
{% set showSpicon = StatusItem.Status.id %}
{% endif %}
{% if showSpicon == 6 %}
<li class=\"ec-productRole__status__item status_12\">
<span>直筆サイン付</span>
</li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% if Product.getFirstArtist() is not null %}
<p class=\"ec-shelfGrid__item-artist\">
{{ Product.getFirstArtist().name }}
</p>
{% endif %}
<p class=\"ec-shelfGrid__item-name\">
{{ Product.papc3 }}
{{ Product.name }}
{{ Product.papc4 }}
</p>
<p class=\"price02-default\">
{# {% if productClass.sale_type01 == 0 %} #}
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
<span class=\"ec-price__price price02-default\">
{{ Product.getPrice02IncTaxMin | number_format(0, '.', ',') }}円
</span>
<span class=\"ec-price__price price02-default tax-excluded-price\">
(税抜 {{ Product.getPrice02Min | number_format(0, '.', ',') }}円)
</span>
<span class=\"ec-price__price price02-default tax-excluded-price1\">
(税込)
</span>
{% else %}
<div class=\"ec-price\">
<span class=\"ec-price__price price02-default\">
{{ Product.getPrice02IncTaxMin | number_format(0, '.', ',') }} ~
{{ Product.getPrice02IncTaxMax | number_format(0, '.', ',') }}円
</span>
<span class=\"ec-price__price price02-default tax-excluded-price\">
(税抜 {{ Product.getPrice02Min | number_format(0, '.', ',') }} ~
{{ Product.getPrice02Max | number_format(0, '.', ',') }}円)
</span>
<span class=\"ec-price__price price02-default tax-excluded-price1\">
(税込)
</span>
</div>
{% endif %}
{% else %}
<div class=\"ec-price\">
<span class=\"ec-price__price\">
{{ Product.getPrice02IncTaxMin | number_format(0, '.', ',') }}円
</span>
<span class=\"ec-price__price tax-excluded-price\">
(税抜 {{ Product.getPrice02Min | number_format(0, '.', ',') }}円)
</span>
<span class=\"ec-price__price price02-default tax-excluded-price1\">
(税込)
</span>
</div>
{% endif %}
{# {% else %}
{% if Product.hasProductClass %}
{% set sale_price = Product.ProductClasses.first().sale_price + 0 %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
<span class=\"ec-price__price price02-default\">
{{ (sale_price * 1.1) | number_format(0, '.', ',') }}円
</span>
<span class=\"ec-price__price price02-default tax-excluded-price\">
(税抜 {{ sale_price | number_format(0, '.', ',') }}円)
</span>
<span class=\"ec-price__price price02-default tax-excluded-price1\">
(税込)
</span>
{% else %}
{% set sale_price = Product.ProductClasses.first().sale_price + 0 %}
<div class=\"ec-price\">
<span class=\"ec-price__price price02-default\">
{{ sale_price | number_format(0, '.', ',') }} ~
{{ (sale_price * 1.1) | number_format(0, '.', ',') }}円
</span>
<span class=\"ec-price__price price02-default tax-excluded-price\">
(税抜 {{ (sale_price * 1.1) | number_format(0, '.', ',') }} ~
{{ sale_price | number_format(0, '.', ',') }}円)
</span>
<span class=\"ec-price__price price02-default tax-excluded-price1\">
(税込)
</span>
</div>
{% endif %}
{% else %}
{% set sale_price = Product.ProductClasses.first().sale_price + 0 %}
<div class=\"ec-price\">
<span class=\"ec-price__price\">
{{ (sale_price * 1.1) | number_format(0, '.', ',') }}円
</span>
<span class=\"ec-price__price tax-excluded-price\">
(税抜 {{ sale_price | number_format(0, '.', ',') }}円)
</span>
<span class=\"ec-price__price price02-default tax-excluded-price1\">
(税込)
</span>
</div>
{% endif %}
{% endif %} #}
</p>
{% set original_price = Product.getPrice01IncTaxMin %}
{% set sale_price = Product.getPrice02IncTaxMin %}
{% if original_price > 0 and sale_price is not null and original_price > sale_price %}
<div class=\"sale_price\">
{% set discount_percentage = ((original_price - sale_price) / original_price * 100)|round(2) %}
<span class=\"plgShiro8PriceDownRate\">
{{ (discount_percentage // 1) }}%OFF
</span>
</div>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
<div class=\"ec-pagerRole\">
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
</div>
</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\">{{ 'カートへ進む'|trans }}</a>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% endif %}
</div>
{% endblock %}
", "Product/list.twig", "/home/ubuntu/wardrecords/app/template/default/Product/list.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "for" => 18, "if" => 20, "include" => 465);
static $filters = array("escape" => 19, "raw" => 19, "trans" => 71, "length" => 136, "nl2br" => 257, "no_image_product" => 309, "number_format" => 369, "round" => 454);
static $functions = array("class_categories_as_json" => 19, "url" => 97, "form_widget" => 215, "asset" => 217, "form_errors" => 220);
try {
$this->sandbox->checkSecurity(
['set', 'for', 'if', 'include'],
['escape', 'raw', 'trans', 'length', 'nl2br', 'no_image_product', 'number_format', 'round'],
['class_categories_as_json', 'url', 'form_widget', 'asset', 'form_errors'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}