<?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_a1c22a5134989ebb4424ba7d4b0f3f6bc64e159f18340f1cfb465c9d5f181113 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
// line 13
$context["body_class"] = "product_page product_list";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Product/list.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 15
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 16
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/game-category-layout.css", "user_data"), "html", null, true);
echo "\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_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 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html", null, true);
echo "');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').html(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: '";
// line 79
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 86
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()
});
// ゲーム別おすすめPC 親カテゴリ専用レイアウト (ID=46)
";
// line 103
if (((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 103, $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.', 103, $this->source); })()), "id", [], "any", false, false, false, 103) == 46))) {
// line 104
echo " (function() {
console.log('=== Game category parent layout: Started ===');
// 子カテゴリの定義
var gameCategories = [
{
id: 47,
name: 'ARC Raiders',
icon: '/html/user_data/game_icons/arc_raiders.jpg'
},
{
id: 48,
name: 'APEX LEGENDS',
icon: '/html/user_data/game_icons/apex_legends.jpg'
},
{
id: 49,
name: 'Valorant',
icon: '/html/user_data/game_icons/valorant.jpg'
},
{
id: 50,
name: '原神',
icon: '/html/user_data/game_icons/genshin.jpg'
}
];
var \$shelfGrid = \$('.ec-shelfGrid');
var \$items = \$shelfGrid.find('.ec-shelfGrid__item');
if (\$items.length === 0) {
console.warn('No products found');
return;
}
// 商品をカテゴリごとに分類
var productsByCategory = {};
\$items.each(function() {
var \$item = \$(this);
var categoryIds = \$item.attr('data-category-ids');
if (!categoryIds) return;
var categories = categoryIds.split(',').map(function(id) {
return parseInt(id.trim());
});
gameCategories.forEach(function(game) {
if (categories.indexOf(game.id) !== -1) {
if (!productsByCategory[game.id]) {
productsByCategory[game.id] = [];
}
productsByCategory[game.id].push(\$item.clone());
}
});
});
// 新しいレイアウトを構築
var \$newLayout = \$('<div class=\"game-category-parent-layout\"></div>');
gameCategories.forEach(function(game) {
var products = productsByCategory[game.id] || [];
var \$section = \$('<div class=\"game-section\" data-game-id=\"' + game.id + '\"></div>');
var \$title = \$('<h2 class=\"game-section-title\">' +
'<a href=\"";
// line 170
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=' + game.id + '\">' +
game.name + ' 推奨PC</a>' +
'</h2>');
var \$layout = \$('<div class=\"game-section-layout\"></div>');
var \$iconSection = \$('<a href=\"";
// line 175
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=' + game.id + '\" class=\"game-icon-section\">' +
'<img src=\"' + game.icon + '\" alt=\"' + game.name + '\" class=\"game-icon-image\">' +
'</a>');
var \$productsSection = \$('<div class=\"game-products-section\"></div>');
var \$slider = \$('<div class=\"game-products-slider slider-' + game.id + '\"></div>');
if (products.length > 0) {
products.forEach(function(\$product) {
\$slider.append(\$product);
});
} else {
\$slider.html('<div class=\"no-products\"><p>商品準備中です</p></div>');
}
\$productsSection.append(\$slider);
\$layout.append(\$iconSection);
\$layout.append(\$productsSection);
\$section.append(\$title);
\$section.append(\$layout);
\$newLayout.append(\$section);
});
\$shelfGrid.replaceWith(\$newLayout);
// スライダー初期化
setTimeout(function() {
gameCategories.forEach(function(game) {
var \$sliderElement = \$('.slider-' + game.id);
var itemCount = \$sliderElement.find('.ec-shelfGrid__item').length;
if (itemCount > 0) {
if (\$sliderElement.hasClass('slick-initialized')) {
\$sliderElement.slick('unslick');
}
\$sliderElement.slick({
slidesToShow: 4,
slidesToScroll: 1,
infinite: false,
arrows: true,
dots: false,
prevArrow: '<button type=\"button\" class=\"slick-prev\"><img src=\"";
// line 217
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/slick-arrow-left-white.svg"), "html", null, true);
echo "\" alt=\"前へ\" /></button>',
nextArrow: '<button type=\"button\" class=\"slick-next\"><img src=\"";
// line 218
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/slick-arrow-right-white.svg"), "html", null, true);
echo "\" alt=\"次へ\" /></button>',
responsive: [
{
breakpoint: 1200,
settings: { slidesToShow: 3, dots: false }
},
{
breakpoint: 768,
settings: { slidesToShow: 1, slidesToScroll: 1, arrows: false, dots: false }
},
{
breakpoint: 480,
settings: { slidesToShow: 1, slidesToScroll: 1, arrows: false, dots: false }
}
]
});
// スマホでスライド状態を監視
if (\$(window).width() <= 768) {
\$sliderElement.on('afterChange', function(event, slick, currentSlide) {
var isLast = (currentSlide >= slick.slideCount - 1);
if (isLast) {
\$(this).closest('.game-products-section').addClass('no-more-slides');
} else {
\$(this).closest('.game-products-section').removeClass('no-more-slides');
}
});
}
}
});
}, 300);
console.log('=== Game category parent layout: Complete ===');
})();
";
}
// line 254
echo "
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 258
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 259
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["search_form"] ?? null), "vars", [], "any", false, true, false, 259), "value", [], "any", false, true, false, 259), "category_id", [], "any", false, true, false, 259), "id", [], "any", true, true, false, 259)) {
// line 260
echo " ";
echo twig_include($this->env, $context, (("Block/category" . twig_get_attribute($this->env, $this->source, 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.', 260, $this->source); })()), "vars", [], "any", false, false, false, 260), "value", [], "any", false, false, false, 260), "category_id", [], "any", false, false, false, 260), "id", [], "any", false, false, false, 260)) . ".twig"), array(), true, true);
echo "
";
}
// line 262
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 262, $this->source); })()), "category_id", [], "any", false, false, false, 262), "vars", [], "any", false, false, false, 262), "errors", [], "any", false, false, false, 262)) > 0)) {
// line 263
echo " <div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">";
// line 264
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
</div>
";
} else {
// line 267
echo " <div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 269
$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.', 269, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 270
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, 270), "id", [], "any", false, false, false, 270), "html", null, true);
echo "\"
name=\"";
// line 271
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, 271), "full_name", [], "any", false, false, false, 271), "html", null, true);
echo "\"
";
// line 272
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, 272), "value", [], "any", false, false, false, 272))) {
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, 272), "value", [], "any", false, false, false, 272), "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 274
echo " </form>
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath\">
<li class=\"ec-topicpath__item\"><a href=\"";
// line 277
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 279
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 279, $this->source); })()))) {
// line 280
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.', 280, $this->source); })()), "path", [], "any", false, false, false, 280));
$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 281
echo " <li class=\"ec-topicpath__divider\">|</li>
<li class=\"ec-topicpath__item";
// line 282
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 282)) {
echo "--active";
}
echo "\"><a
href=\"";
// line 283
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, 283), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 283), "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 286
echo " ";
}
// line 287
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.', 287, $this->source); })()), "vars", [], "any", false, false, false, 287), "value", [], "any", false, false, false, 287) && 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.', 287, $this->source); })()), "vars", [], "any", false, false, false, 287), "value", [], "any", false, false, false, 287), "name", [], "any", false, false, false, 287))) {
// line 288
echo " <li class=\"ec-topicpath__divider\">|</li>
<li class=\"ec-topicpath__item\">";
// line 289
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.', 289, $this->source); })()), "vars", [], "any", false, false, false, 289), "value", [], "any", false, false, false, 289), "name", [], "any", false, false, false, 289)]), "html", null, true);
echo "</li>
";
}
// line 291
echo " </ol>
</div>
<div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
";
// line 295
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.', 295, $this->source); })()), "totalItemCount", [], "any", false, false, false, 295) > 0)) {
// line 296
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.', 296, $this->source); })()), "totalItemCount", [], "any", false, false, false, 296)]);
echo "
";
} else {
// line 298
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html", null, true);
echo "</span>
";
}
// line 300
echo " </div>
";
// line 301
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.', 301, $this->source); })()), "totalItemCount", [], "any", false, false, false, 301) > 0)) {
// line 302
echo " <div class=\"ec-searchnavRole__actions\">
<div class=\"ec-select\">
";
// line 304
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.', 304, $this->source); })()), "disp_number", [], "any", false, false, false, 304), 'widget', ["id" => "", "attr" => ["class" => "disp-number"]]);
echo "
";
// line 305
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.', 305, $this->source); })()), "orderby", [], "any", false, false, false, 305), 'widget', ["id" => "", "attr" => ["class" => "order-by"]]);
echo "
</div>
</div>
";
}
// line 309
echo " </div>
</div>
";
// line 311
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.', 311, $this->source); })()), "totalItemCount", [], "any", false, false, false, 311) > 0)) {
// line 312
echo " <div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
";
// line 314
$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.', 314, $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 315
echo " <li class=\"ec-shelfGrid__item\"
data-product-id=\"";
// line 316
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 316), "html", null, true);
echo "\"
";
// line 317
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 317)) > 0)) {
// line 318
echo " data-category-ids=\"";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 318));
$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["pc"]) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["pc"], "Category", [], "any", false, false, false, 318), "id", [], "any", false, false, false, 318), "html", null, true);
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 318)) {
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['pc'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo "\"
";
}
// line 319
echo ">
<a href=\"";
// line 320
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, 320)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"";
// line 322
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, 322)), "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, 322), "html", null, true);
echo "\" loading=\"lazy\">
</p>
<ul class=\"ec-shelfRole__tags\">
";
// line 325
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductTag", [], "any", false, false, false, 325));
$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["Tag"]) {
// line 326
echo " ";
echo twig_include($this->env, $context, "@DesignTag42/tag_list.twig", array(), true, true);
echo "
";
// line 327
if ($context["Tag"]) {
// line 328
echo " <li class=\"ec-shelfRole__tag\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "Tag", [], "any", false, false, false, 328), "html", null, true);
echo "</li>
";
}
// line 330
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['Tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 331
echo " </ul>
<p class=\"ec-shelfGrid__item-name\">";
// line 332
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 332), "html", null, true);
echo "</p>
";
// line 333
if (twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 333)) {
// line 334
echo " <p>";
echo twig_nl2br(twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 334));
echo "</p>
";
}
// line 336
echo " <p class=\"price02-default\">
";
// line 337
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 337)) {
// line 338
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 338) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 338))) {
// line 339
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, 339)), "html", null, true);
echo "
";
} else {
// line 341
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, 341)), "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, 341)), "html", null, true);
echo "
";
}
// line 343
echo " ";
} else {
// line 344
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, 344)), "html", null, true);
echo "
";
}
// line 346
echo " </p>
</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 350
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 355
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 356
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 359
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 360
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 367
$this->loadTemplate("pager.twig", "Product/list.twig", 367)->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.', 367, $this->source); })()), "paginationData", [], "any", false, false, false, 367)]));
// line 368
echo " </div>
";
}
// line 370
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Product/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 817 => 370, 813 => 368, 811 => 367, 799 => 360, 795 => 359, 789 => 356, 785 => 355, 778 => 350, 761 => 346, 755 => 344, 752 => 343, 744 => 341, 738 => 339, 735 => 338, 733 => 337, 730 => 336, 724 => 334, 722 => 333, 718 => 332, 715 => 331, 701 => 330, 695 => 328, 693 => 327, 688 => 326, 671 => 325, 663 => 322, 658 => 320, 655 => 319, 618 => 318, 616 => 317, 612 => 316, 609 => 315, 592 => 314, 588 => 312, 586 => 311, 582 => 309, 575 => 305, 571 => 304, 567 => 302, 565 => 301, 562 => 300, 556 => 298, 550 => 296, 548 => 295, 542 => 291, 537 => 289, 534 => 288, 531 => 287, 528 => 286, 507 => 283, 501 => 282, 498 => 281, 480 => 280, 478 => 279, 471 => 277, 466 => 274, 454 => 272, 450 => 271, 445 => 270, 441 => 269, 437 => 267, 431 => 264, 428 => 263, 425 => 262, 419 => 260, 416 => 259, 406 => 258, 394 => 254, 355 => 218, 351 => 217, 306 => 175, 298 => 170, 230 => 104, 228 => 103, 208 => 86, 198 => 79, 167 => 51, 139 => 25, 125 => 24, 117 => 23, 100 => 22, 96 => 20, 86 => 19, 73 => 16, 63 => 15, 52 => 11, 50 => 13, 37 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page product_list' %}
{% block stylesheet %}
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/game-category-layout.css', 'user_data') }}\">
{% endblock %}
{% block javascript %}
<script>
eccube.productsClassCategories = {
{% for Product in pagination %}
\"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
{% endfor %}
};
\$(function() {
// 表示件数を変更
\$('.disp-number').change(function() {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
// 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
\$('.add-cart').on('click', function(e) {
var \$form = \$(this).parents('li').find('form');
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').html(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: '{{ url('block_cart') }}',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('{{ 'カートへの追加に失敗しました。'|trans }}');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
\$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
// ゲーム別おすすめPC 親カテゴリ専用レイアウト (ID=46)
{% if Category and Category.id == 46 %}
(function() {
console.log('=== Game category parent layout: Started ===');
// 子カテゴリの定義
var gameCategories = [
{
id: 47,
name: 'ARC Raiders',
icon: '/html/user_data/game_icons/arc_raiders.jpg'
},
{
id: 48,
name: 'APEX LEGENDS',
icon: '/html/user_data/game_icons/apex_legends.jpg'
},
{
id: 49,
name: 'Valorant',
icon: '/html/user_data/game_icons/valorant.jpg'
},
{
id: 50,
name: '原神',
icon: '/html/user_data/game_icons/genshin.jpg'
}
];
var \$shelfGrid = \$('.ec-shelfGrid');
var \$items = \$shelfGrid.find('.ec-shelfGrid__item');
if (\$items.length === 0) {
console.warn('No products found');
return;
}
// 商品をカテゴリごとに分類
var productsByCategory = {};
\$items.each(function() {
var \$item = \$(this);
var categoryIds = \$item.attr('data-category-ids');
if (!categoryIds) return;
var categories = categoryIds.split(',').map(function(id) {
return parseInt(id.trim());
});
gameCategories.forEach(function(game) {
if (categories.indexOf(game.id) !== -1) {
if (!productsByCategory[game.id]) {
productsByCategory[game.id] = [];
}
productsByCategory[game.id].push(\$item.clone());
}
});
});
// 新しいレイアウトを構築
var \$newLayout = \$('<div class=\"game-category-parent-layout\"></div>');
gameCategories.forEach(function(game) {
var products = productsByCategory[game.id] || [];
var \$section = \$('<div class=\"game-section\" data-game-id=\"' + game.id + '\"></div>');
var \$title = \$('<h2 class=\"game-section-title\">' +
'<a href=\"{{ url(\"product_list\") }}?category_id=' + game.id + '\">' +
game.name + ' 推奨PC</a>' +
'</h2>');
var \$layout = \$('<div class=\"game-section-layout\"></div>');
var \$iconSection = \$('<a href=\"{{ url(\"product_list\") }}?category_id=' + game.id + '\" class=\"game-icon-section\">' +
'<img src=\"' + game.icon + '\" alt=\"' + game.name + '\" class=\"game-icon-image\">' +
'</a>');
var \$productsSection = \$('<div class=\"game-products-section\"></div>');
var \$slider = \$('<div class=\"game-products-slider slider-' + game.id + '\"></div>');
if (products.length > 0) {
products.forEach(function(\$product) {
\$slider.append(\$product);
});
} else {
\$slider.html('<div class=\"no-products\"><p>商品準備中です</p></div>');
}
\$productsSection.append(\$slider);
\$layout.append(\$iconSection);
\$layout.append(\$productsSection);
\$section.append(\$title);
\$section.append(\$layout);
\$newLayout.append(\$section);
});
\$shelfGrid.replaceWith(\$newLayout);
// スライダー初期化
setTimeout(function() {
gameCategories.forEach(function(game) {
var \$sliderElement = \$('.slider-' + game.id);
var itemCount = \$sliderElement.find('.ec-shelfGrid__item').length;
if (itemCount > 0) {
if (\$sliderElement.hasClass('slick-initialized')) {
\$sliderElement.slick('unslick');
}
\$sliderElement.slick({
slidesToShow: 4,
slidesToScroll: 1,
infinite: false,
arrows: true,
dots: false,
prevArrow: '<button type=\"button\" class=\"slick-prev\"><img src=\"{{ asset(\"assets/icon/slick-arrow-left-white.svg\") }}\" alt=\"前へ\" /></button>',
nextArrow: '<button type=\"button\" class=\"slick-next\"><img src=\"{{ asset(\"assets/icon/slick-arrow-right-white.svg\") }}\" alt=\"次へ\" /></button>',
responsive: [
{
breakpoint: 1200,
settings: { slidesToShow: 3, dots: false }
},
{
breakpoint: 768,
settings: { slidesToShow: 1, slidesToScroll: 1, arrows: false, dots: false }
},
{
breakpoint: 480,
settings: { slidesToShow: 1, slidesToScroll: 1, arrows: false, dots: false }
}
]
});
// スマホでスライド状態を監視
if (\$(window).width() <= 768) {
\$sliderElement.on('afterChange', function(event, slick, currentSlide) {
var isLast = (currentSlide >= slick.slideCount - 1);
if (isLast) {
\$(this).closest('.game-products-section').addClass('no-more-slides');
} else {
\$(this).closest('.game-products-section').removeClass('no-more-slides');
}
});
}
}
});
}, 300);
console.log('=== Game category parent layout: Complete ===');
})();
{% endif %}
</script>
{% endblock %}
{% block main %}
{% if search_form.vars.value.category_id.id is defined %}
{{ include('Block/category'~search_form.vars.value.category_id.id~'.twig', ignore_missing = true) }}
{% endif %}
{% 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\">
{% for Product in pagination %}
<li class=\"ec-shelfGrid__item\"
data-product-id=\"{{ Product.id }}\"
{% if Product.ProductCategories|length > 0 %}
data-category-ids=\"{% for pc in Product.ProductCategories %}{{ pc.Category.id }}{% if not loop.last %},{% endif %}{% endfor %}\"
{% endif %}>
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" loading=\"lazy\">
</p>
<ul class=\"ec-shelfRole__tags\">
{% for Tag in Product.ProductTag %}
{{ include('@DesignTag42/tag_list.twig', ignore_missing = true) }}
{% if Tag %}
<li class=\"ec-shelfRole__tag\">{{ Tag.Tag }}</li>
{% endif %}
{% endfor %}
</ul>
<p class=\"ec-shelfGrid__item-name\">{{ Product.name }}</p>
{% if Product.description_list %}
<p>{{ Product.description_list|raw|nl2br }}</p>
{% endif %}
<p class=\"price02-default\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|price }}
{% else %}
{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|price }}
{% endif %}
</p>
</a>
</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 %}
{% endblock %}
", "Product/list.twig", "/home/noie373zam/public_html/noiezam-ec/app/template/bynoiezam/Product/list.twig");
}
}