<?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_511cc2646943e54b67f44b36b3735f4bb609850ceb89f9f96721379a92149489 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 15
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
// line 11
$context["Categories"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "getList", [], "method", false, false, false, 11);
// line 17
$context["body_class"] = "product_page";
// line 15
$this->parent = $this->loadTemplate("default_frame.twig", "Product/list.twig", 15);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 19
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 20
echo " <script>
eccube.productsClassCategories = {
";
// line 22
$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.', 22, $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 23
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, 23), "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, 23) == false)) {
echo ", ";
}
// line 24
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 25
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 49
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) {
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
\$.each(data.messages, function() {
\$('#ec-modal-header').text(this);
});
\$('.ec-modal').show()
\$.ajax({
url: '";
// line 77
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 84
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html", null, true);
echo "');
}).always(function(data) {
\$('.add-cart').prop('disabled', false);
});
});
});
\$('.ec-modal-wrap').on('click', function(e) {
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 102
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 103
echo " <link rel=\"stylesheet\" href=\"/test-ec-05/html/user_data/assets/css/recommend.min.css\">
<style>
.ec-layoutRole .ec-layoutRole__contents {
max-width: unset;
}
.p-top__merchandise .p-top__items__box .p-top__item {
padding: 20px 16px;
}
.ec-topicpath .ec-topicpath__item a {
color: #333;
}
.p-top__merchandise {
padding: 10% 0 20%;
}
.p-top__merchandise .p-top__items__box {
margin-top: 0;
}
.p-top__item__title,
.p-top__item__price {
text-align: center;
}
.p-top__merchandise .absolute1 {
width: 22%;
}
.p-top__merchandise .absolute2 {
width: 30%;
}
.ec-pager .ec-pager__item--active,
.ec-pager .ec-pager__item:hover, {
background-color: inherit;
}
.ec-pager__item a {
background-color: #333;
color: #fefefe !important;
padding: 10px 20px !important;
border-radius: 50%;
}
.ec-pager__item .small{
padding: 10px 16px !important;
}
.ec-pager__item--active a {
background-color: #b72c11;
padding: 10px 20px !important;
border-radius: 50%;
color: #fefefe !important;
}
.ec-pager .ec-pager__item--active,
.ec-pager .ec-pager__item:hover{
background: unset;
}
.sale {
display: none;
}
.p-top__merchandise .p-top__items__box .p-top__item {
overflow: hidden;
position: relative;
}
.cart.absolute {
position: absolute;
z-index: 1;
transform: rotate(40deg);
right: -70px;
overflow: hidden;
top: 20px;
}
@media (max-width:768px) {
.p-top__items__box .p-top__item {
width: auto;
min-width: 220px;
margin-left: 5%;
}
}
@media only screen and (min-width: 768px) {
.ec-searchnavRole .ec-searchnavRole__infos {
border-top-color: #333;
}
}
@media screen and (max-width:1024px) {
.p-top__items__box .p-top__item__meet {
width: 200px !important;
}
.p-top__items__box .p-top__item {
min-width: 230px;
}
.cart.absolute {
right: -55px;
top: 12px;
}
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 198
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 199
echo "
<section class=\"p-ranking__fv\">
<div class=\"p-ranking__fv__inner\">
<div class=\"section__title top__fix\">
<h2 >商品一覧</h2>
</div>
</div>
<!-- banner -->
";
// line 208
echo twig_include($this->env, $context, "Block/banner.twig");
echo "
<!-- banner -->
</section>
<section class=\"p-top__merchandise\">
<img class=\"absolute1\" src=\"";
// line 212
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-05/html/user_data/assets/img/common/cloud__gl2.webp"), "html", null, true);
echo "\" alt=\"雲\">
<img class=\"absolute2\" src=\"";
// line 213
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-05/html/user_data/assets/img/common/cloud_gl1.webp"), "html", null, true);
echo "\" alt=\"雲\">
<img class=\"absolute3\" src=\"";
// line 214
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-05/html/user_data/assets/img/common/meetbox.webp"), "html", null, true);
echo "\" alt=\"お肉BOX\">
<img class=\"absolute4\" src=\"";
// line 215
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-05/html/user_data/assets/img/common/nabe.webp"), "html", null, true);
echo "\" alt=\"鍋\">
<div class=\"section__title\">
<img src=\"";
// line 217
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/test-ec-04/html/user_data/assets/img/common/cow.webp"), "html", null, true);
echo "\" alt=\"牛のイラスト\">
<h2>商品一覧</h2>
</div>
";
// line 237
echo "
";
// line 239
$macros["__internal_parse_1"] = $this;
// line 240
echo "
<div class=\"p-top__merchandise__category\" id=\"page_anchor\">
<p>カテゴリー選択<span>|</span></p>
<div class=\"p-top__merchandise__category__items\">
";
// line 244
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories", $context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.', 244, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
// line 245
echo " ";
echo twig_call_macro($macros["__internal_parse_1"], "macro_tree", [$context["Category"]], 245, $context, $this->getSourceContext());
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 247
echo " </div>
</div>
<p style=\"text-align: center; margin-top:20px;\">※当店の商品は全て税込となっております。</p>
";
// line 250
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.', 250, $this->source); })()), "category_id", [], "any", false, false, false, 250), "vars", [], "any", false, false, false, 250), "errors", [], "any", false, false, false, 250)) > 0)) {
// line 251
echo " <div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">";
// line 252
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
</div>
";
} else {
// line 255
echo " <div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 257
$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.', 257, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 258
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, 258), "id", [], "any", false, false, false, 258), "html", null, true);
echo "\"
name=\"";
// line 259
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, 259), "full_name", [], "any", false, false, false, 259), "html", null, true);
echo "\"
";
// line 260
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, 260), "value", [], "any", false, false, false, 260))) {
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, 260), "value", [], "any", false, false, false, 260), "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 262
echo " </form>
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath\">
<li class=\"ec-topicpath__item\"><a href=\"";
// line 265
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>
</li>
";
// line 267
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 267, $this->source); })()))) {
// line 268
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.', 268, $this->source); })()), "path", [], "any", false, false, false, 268));
$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["Path"]) {
// line 269
echo " <li class=\"ec-topicpath__divider\">|</li>
<li class=\"ec-topicpath__item";
// line 270
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 270)) {
echo "--active";
}
echo "\"><a
href=\"";
// line 271
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, 271), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 271), "html", null, true);
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['Path'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 274
echo " ";
}
// line 275
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.', 275, $this->source); })()), "vars", [], "any", false, false, false, 275), "value", [], "any", false, false, false, 275) && 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.', 275, $this->source); })()), "vars", [], "any", false, false, false, 275), "value", [], "any", false, false, false, 275), "name", [], "any", false, false, false, 275))) {
// line 276
echo " <li class=\"ec-topicpath__divider\">|</li>
<li class=\"ec-topicpath__item\">";
// line 277
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.', 277, $this->source); })()), "vars", [], "any", false, false, false, 277), "value", [], "any", false, false, false, 277), "name", [], "any", false, false, false, 277)]), "html", null, true);
echo "</li>
";
}
// line 279
echo " </ol>
</div>
<div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
";
// line 283
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.', 283, $this->source); })()), "totalItemCount", [], "any", false, false, false, 283) > 0)) {
// line 284
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.', 284, $this->source); })()), "totalItemCount", [], "any", false, false, false, 284)]);
echo "
";
} else {
// line 286
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html", null, true);
echo "</span>
";
}
// line 288
echo " </div>
";
// line 289
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.', 289, $this->source); })()), "totalItemCount", [], "any", false, false, false, 289) > 0)) {
// line 290
echo " <div class=\"ec-searchnavRole__actions\">
<div class=\"ec-select\">
";
// line 292
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.', 292, $this->source); })()), "disp_number", [], "any", false, false, false, 292), 'widget', ["id" => "", "attr" => ["class" => "disp-number"]]);
echo "
";
// line 293
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.', 293, $this->source); })()), "orderby", [], "any", false, false, false, 293), 'widget', ["id" => "", "attr" => ["class" => "order-by"]]);
echo "
</div>
</div>
";
}
// line 297
echo " </div>
</div>
";
// line 299
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.', 299, $this->source); })()), "totalItemCount", [], "any", false, false, false, 299) > 0)) {
// line 300
echo " <div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid p-top__items__box\">
";
// line 302
$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.', 302, $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 303
echo " <li class=\"ec-shelfGrid__item p-top__item\">
<a href=\"";
// line 304
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, 304)]), "html", null, true);
echo "\">
";
// line 305
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "Tags", [], "any", false, false, false, 305));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 306
echo " <p class=\"cart absolute\">";
echo twig_escape_filter($this->env, $context["Tag"], "html", null, true);
echo "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 308
echo " <p class=\"ec-shelfGrid__item-image\">
<img class=\"p-top__item__meet\" src=\"";
// line 309
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, 309)), "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, 309), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 309) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
</p>
<p class=\"p-top__item__title\">";
// line 311
echo twig_include($this->env, $context, twig_template_from_string($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "freearea", [], "any", false, false, false, 311)));
echo "</p>
";
// line 312
if (twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 312)) {
// line 313
echo " <p>";
echo twig_nl2br(twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 313));
echo "</p>
";
}
// line 315
echo " <p class=\"price02-default p-top__item__price\">
";
// line 316
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 316)) {
// line 317
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 317) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 317))) {
// line 318
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, 318)), "html", null, true);
echo "
";
} else {
// line 320
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, 320)), "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, 320)), "html", null, true);
echo "
";
}
// line 322
echo " ";
} else {
// line 323
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, 323)), "html", null, true);
echo "
";
}
// line 325
echo " ";
// line 326
echo " ";
// line 327
echo " ";
// line 328
echo " ";
// line 329
echo " ";
// line 330
echo " ";
// line 331
echo " ";
// line 332
echo " ";
// line 333
echo " ";
// line 334
echo " </p>
</a>
";
// line 337
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 337)) {
// line 338
echo " ";
// line 339
echo " ";
// line 340
echo " ";
// line 341
echo " ";
// line 342
echo " ";
// line 343
echo " ";
// line 344
echo " ";
// line 345
echo " ";
// line 346
echo " ";
// line 347
echo " ";
// line 348
echo " ";
// line 349
echo " ";
// line 350
echo " ";
// line 351
echo " ";
// line 352
echo " ";
// line 353
echo " ";
// line 354
echo " ";
// line 355
echo " ";
// line 356
echo " ";
// line 357
echo " ";
// line 358
echo " ";
// line 359
echo " </form>
<div class=\"ec-productRole__btn\">
<a class=\"detail-buttons cart\" href=\"";
// line 361
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, 361)]), "html", null, true);
echo "\">詳細を見る</a>
";
// line 363
echo " ";
// line 364
echo " ";
// line 365
echo " </div>
";
} else {
// line 367
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 369
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
</div>
";
}
// line 373
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 375
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 380
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 381
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 384
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 385
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>
<div class=\"ec-pagerRole\">
";
// line 392
$this->loadTemplate("pager.twig", "Product/list.twig", 392)->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.', 392, $this->source); })()), "paginationData", [], "any", false, false, false, 392)]));
// line 393
echo " </div>
";
}
// line 395
echo " ";
}
// line 396
echo "</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 222
public function macro_tree($__Category__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"Category" => $__Category__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tree"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tree"));
// line 223
echo " ";
$macros["__internal_parse_0"] = $this;
// line 224
echo " <a class=\"more__page\" href=\"";
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, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 224, $this->source); })()), "id", [], "any", false, false, false, 224), "html", null, true);
echo "#page_anchor\">
";
// line 225
echo twig_escape_filter($this->env, 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.', 225, $this->source); })()), "name", [], "any", false, false, false, 225), "html", null, true);
echo "
</a>
";
// line 228
echo " ";
// line 229
echo " ";
// line 230
echo " ";
// line 231
echo " ";
// line 232
echo " ";
// line 233
echo " ";
// line 234
echo " ";
// line 235
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
public function getTemplateName()
{
return "Product/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 877 => 235, 875 => 234, 873 => 233, 871 => 232, 869 => 231, 867 => 230, 865 => 229, 863 => 228, 858 => 225, 851 => 224, 848 => 223, 829 => 222, 818 => 396, 815 => 395, 811 => 393, 809 => 392, 797 => 385, 793 => 384, 787 => 381, 783 => 380, 776 => 375, 761 => 373, 754 => 369, 750 => 367, 746 => 365, 744 => 364, 742 => 363, 738 => 361, 734 => 359, 732 => 358, 730 => 357, 728 => 356, 726 => 355, 724 => 354, 722 => 353, 720 => 352, 718 => 351, 716 => 350, 714 => 349, 712 => 348, 710 => 347, 708 => 346, 706 => 345, 704 => 344, 702 => 343, 700 => 342, 698 => 341, 696 => 340, 694 => 339, 692 => 338, 690 => 337, 685 => 334, 683 => 333, 681 => 332, 679 => 331, 677 => 330, 675 => 329, 673 => 328, 671 => 327, 669 => 326, 667 => 325, 661 => 323, 658 => 322, 650 => 320, 644 => 318, 641 => 317, 639 => 316, 636 => 315, 630 => 313, 628 => 312, 624 => 311, 613 => 309, 610 => 308, 601 => 306, 597 => 305, 593 => 304, 590 => 303, 573 => 302, 569 => 300, 567 => 299, 563 => 297, 556 => 293, 552 => 292, 548 => 290, 546 => 289, 543 => 288, 537 => 286, 531 => 284, 529 => 283, 523 => 279, 518 => 277, 515 => 276, 512 => 275, 509 => 274, 488 => 271, 482 => 270, 479 => 269, 461 => 268, 459 => 267, 452 => 265, 447 => 262, 435 => 260, 431 => 259, 426 => 258, 422 => 257, 418 => 255, 412 => 252, 409 => 251, 407 => 250, 402 => 247, 393 => 245, 389 => 244, 383 => 240, 381 => 239, 378 => 237, 370 => 217, 365 => 215, 361 => 214, 357 => 213, 353 => 212, 346 => 208, 335 => 199, 325 => 198, 222 => 103, 212 => 102, 185 => 84, 175 => 77, 144 => 49, 118 => 25, 104 => 24, 96 => 23, 79 => 22, 75 => 20, 65 => 19, 54 => 15, 52 => 17, 50 => 11, 37 => 15,);
}
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.
#}
{% set Categories = repository('Eccube\\\\Entity\\\\Category').getList() %}
{% 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) {
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
\$.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) {
\$('.add-cart').prop('disabled', false);
});
});
});
\$('.ec-modal-wrap').on('click', function(e) {
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
{% endblock %}
{% block stylesheet %}
<link rel=\"stylesheet\" href=\"/test-ec-05/html/user_data/assets/css/recommend.min.css\">
<style>
.ec-layoutRole .ec-layoutRole__contents {
max-width: unset;
}
.p-top__merchandise .p-top__items__box .p-top__item {
padding: 20px 16px;
}
.ec-topicpath .ec-topicpath__item a {
color: #333;
}
.p-top__merchandise {
padding: 10% 0 20%;
}
.p-top__merchandise .p-top__items__box {
margin-top: 0;
}
.p-top__item__title,
.p-top__item__price {
text-align: center;
}
.p-top__merchandise .absolute1 {
width: 22%;
}
.p-top__merchandise .absolute2 {
width: 30%;
}
.ec-pager .ec-pager__item--active,
.ec-pager .ec-pager__item:hover, {
background-color: inherit;
}
.ec-pager__item a {
background-color: #333;
color: #fefefe !important;
padding: 10px 20px !important;
border-radius: 50%;
}
.ec-pager__item .small{
padding: 10px 16px !important;
}
.ec-pager__item--active a {
background-color: #b72c11;
padding: 10px 20px !important;
border-radius: 50%;
color: #fefefe !important;
}
.ec-pager .ec-pager__item--active,
.ec-pager .ec-pager__item:hover{
background: unset;
}
.sale {
display: none;
}
.p-top__merchandise .p-top__items__box .p-top__item {
overflow: hidden;
position: relative;
}
.cart.absolute {
position: absolute;
z-index: 1;
transform: rotate(40deg);
right: -70px;
overflow: hidden;
top: 20px;
}
@media (max-width:768px) {
.p-top__items__box .p-top__item {
width: auto;
min-width: 220px;
margin-left: 5%;
}
}
@media only screen and (min-width: 768px) {
.ec-searchnavRole .ec-searchnavRole__infos {
border-top-color: #333;
}
}
@media screen and (max-width:1024px) {
.p-top__items__box .p-top__item__meet {
width: 200px !important;
}
.p-top__items__box .p-top__item {
min-width: 230px;
}
.cart.absolute {
right: -55px;
top: 12px;
}
}
</style>
{% endblock %}
{% block main %}
<section class=\"p-ranking__fv\">
<div class=\"p-ranking__fv__inner\">
<div class=\"section__title top__fix\">
<h2 >商品一覧</h2>
</div>
</div>
<!-- banner -->
{{include('Block/banner.twig')}}
<!-- banner -->
</section>
<section class=\"p-top__merchandise\">
<img class=\"absolute1\" src=\"{{asset ('/test-ec-05/html/user_data/assets/img/common/cloud__gl2.webp')}}\" alt=\"雲\">
<img class=\"absolute2\" src=\"{{asset ('/test-ec-05/html/user_data/assets/img/common/cloud_gl1.webp')}}\" alt=\"雲\">
<img class=\"absolute3\" src=\"{{asset ('/test-ec-05/html/user_data/assets/img/common/meetbox.webp')}}\" alt=\"お肉BOX\">
<img class=\"absolute4\" src=\"{{asset ('/test-ec-05/html/user_data/assets/img/common/nabe.webp')}}\" alt=\"鍋\">
<div class=\"section__title\">
<img src=\"{{asset ('/test-ec-04/html/user_data/assets/img/common/cow.webp')}}\" alt=\"牛のイラスト\">
<h2>商品一覧</h2>
</div>
{% macro tree(Category) %}
{% from _self import tree %}
<a class=\"more__page\" href=\"{{ url('product_list') }}?category_id={{ Category.id }}#page_anchor\">
{{ Category.name }}
</a>
{#{% if Category.children|length > 0 %}#}
{# <ul>#}
{# {% for ChildCategory in Category.children %}#}
{# <li>#}
{# {{ tree(ChildCategory) }}#}
{# </li>#}
{# {% endfor %}#}
{# </ul>#}
{#{% endif %}#}
{% endmacro %}
{# @see https://github.com/bolt/bolt/pull/2388 #}
{% from _self import tree %}
<div class=\"p-top__merchandise__category\" id=\"page_anchor\">
<p>カテゴリー選択<span>|</span></p>
<div class=\"p-top__merchandise__category__items\">
{% for Category in Categories %}
{{ tree(Category) }}
{% endfor %}
</div>
</div>
<p style=\"text-align: center; margin-top:20px;\">※当店の商品は全て税込となっております。</p>
{% 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\">
<li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
</li>
{% if Category is not null %}
{% for Path in Category.path %}
<li class=\"ec-topicpath__divider\">|</li>
<li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
</li>
{% 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\">
{{ 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>
{% if pagination.totalItemCount > 0 %}
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid p-top__items__box\">
{% for Product in pagination %}
<li class=\"ec-shelfGrid__item p-top__item\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
{% for Tag in Product.Tags %}
<p class=\"cart absolute\">{{ Tag }}</p>
{% endfor %}
<p class=\"ec-shelfGrid__item-image\">
<img class=\"p-top__item__meet\" src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
</p>
<p class=\"p-top__item__title\">{{ include(template_from_string(Product.freearea)) }}</p>
{% if Product.description_list %}
<p>{{ Product.description_list|raw|nl2br }}</p>
{% endif %}
<p class=\"price02-default p-top__item__price\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|price }}
{% else %}
{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|price }}
{% endif %}
{#{% if Product.hasProductClass %}#}
{# {% if Product.getPrice02Min == Product.getPrice02Max %}#}
{# {{ Product.getPrice02IMin|price }}#}
{# {% else %}#}
{# {{ Product.getPrice02Min|price }} ~ {{ Product.getPrice02Max|price }}#}
{# {% endif %}#}
{#{% else %}#}
{# {{ Product.getPrice02Min|price }}#}
{#{% endif %}#}
</p>
</a>
{% if Product.stock_find %}
{#{% set form = forms[Product.id] %}#}
{#<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\">
<a class=\"detail-buttons cart\" href=\"{{ url('product_detail', {'id': Product.id}) }}\">詳細を見る</a>
{#<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\">{{ 'カートへ進む'|trans }}</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-pagerRole\">
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
</div>
{% endif %}
{% endif %}
</section>
{% endblock %}", "Product/list.twig", "/home/xb579178/xb579178.xbiz.jp/public_html/test-ec-05/app/template/default/Product/list.twig");
}
}