<?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_536964cf327dd96d8ae2ae965bbf9d85eb1353396164e14e87eeeb7539623abb extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 25
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 15
$context["start_date"] = twig_date_format_filter($this->env, "2021-09-06", "Y-m-d");
// line 16
$context["end_date"] = twig_date_format_filter($this->env, "2021-09-27", "Y-m-d");
// line 17
$context["campaign_category_id"] = "174";
// line 18
$context["coupon_code"] = "eio100anniv";
// line 19
if ((((isset($context["start_date"]) || array_key_exists("start_date", $context) ? $context["start_date"] : (function () { throw new RuntimeError('Variable "start_date" does not exist.', 19, $this->source); })()) <= twig_date_format_filter($this->env, twig_date_converter($this->env), "Y-m-d")) && (twig_date_format_filter($this->env, twig_date_converter($this->env), "Y-m-d") <= (isset($context["end_date"]) || array_key_exists("end_date", $context) ? $context["end_date"] : (function () { throw new RuntimeError('Variable "end_date" does not exist.', 19, $this->source); })())))) {
// line 20
$context["campaign_valid"] = true;
} else {
// line 22
$context["campaign_valid"] = false;
}
// line 27
$context["body_class"] = "product_page";
// line 33
$context["jytp_id"] = "75";
// line 34
$context["jytp_url"] = "/html/user_data/top/top-slider_20210603_2_PC.jpg";
// line 25
$this->parent = $this->loadTemplate("default_frame.twig", "Product/list.twig", 25);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 38
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 39
echo " <script>
eccube.productsClassCategories = {
";
// line 41
$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.', 41, $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 42
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, 42), "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, 42) == false)) {
echo ", ";
}
// line 43
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 44
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 70
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-checkbox').prop('checked', true);
// カートブロックを更新する
\$.ajax({
url: '";
// line 98
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 105
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);
});
});
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 115
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 116
echo "<style>
.list_title {
font-size: 1.2em!important;
line-height: 1.5em;
}
.ec-layoutRole__mainBottom{
margin-top: 20px!important;
}
.campaign_img {
margin-bottom: 1em;
}
@media only screen and (min-width: 768px){
.campaign_img{
width: 80%;
margin: 0 auto 1em;
}
}
@media only screen and (max-width: 767px){
.campaign_img{
width: 100%;
}
}
</style>
";
// line 139
if ((((isset($context["campaign_valid"]) || array_key_exists("campaign_valid", $context) ? $context["campaign_valid"] : (function () { throw new RuntimeError('Variable "campaign_valid" does not exist.', 139, $this->source); })()) == false) && (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.', 139, $this->source); })()), "category_id", [], "any", false, false, false, 139), "vars", [], "any", false, false, false, 139), "value", [], "any", false, false, false, 139) == "90"))) {
// line 140
echo " <script type=\"text/javascript\" id=\"list_script\">
document.title = \"全商品 / コスモピア・オンラインショップ\";
document.getElementById(\"list_script\").remove();
</script>
";
}
// line 145
echo "
";
// line 146
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.', 146, $this->source); })()), "category_id", [], "any", false, false, false, 146), "vars", [], "any", false, false, false, 146), "errors", [], "any", false, false, false, 146)) > 0) || (((isset($context["campaign_valid"]) || array_key_exists("campaign_valid", $context) ? $context["campaign_valid"] : (function () { throw new RuntimeError('Variable "campaign_valid" does not exist.', 146, $this->source); })()) == false) && (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.', 146, $this->source); })()), "category_id", [], "any", false, false, false, 146), "vars", [], "any", false, false, false, 146), "value", [], "any", false, false, false, 146) == (isset($context["campaign_category_id"]) || array_key_exists("campaign_category_id", $context) ? $context["campaign_category_id"] : (function () { throw new RuntimeError('Variable "campaign_category_id" does not exist.', 146, $this->source); })()))))) {
// line 147
echo " <div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">";
// line 148
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
</div>
";
} else {
// line 151
echo " <div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 153
$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.', 153, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 154
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, 154), "id", [], "any", false, false, false, 154), "html", null, true);
echo "\"
name=\"";
// line 155
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, 155), "full_name", [], "any", false, false, false, 155), "html", null, true);
echo "\"
";
// line 156
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, 156), "value", [], "any", false, false, false, 156))) {
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, 156), "value", [], "any", false, false, false, 156), "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 158
echo " </form>
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath\">
";
// line 161
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 161, $this->source); })()))) {
// line 162
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.', 162, $this->source); })()), "path", [], "any", false, false, false, 162));
$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 163
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 163)) {
// line 164
echo " <li class=\"ec-topicpath__item";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 164)) {
echo "--active";
}
echo "\">
<h1 class=\"list_title\">
";
// line 166
if ((((isset($context["campaign_valid"]) || array_key_exists("campaign_valid", $context) ? $context["campaign_valid"] : (function () { throw new RuntimeError('Variable "campaign_valid" does not exist.', 166, $this->source); })()) == true) && (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.', 166, $this->source); })()), "category_id", [], "any", false, false, false, 166), "vars", [], "any", false, false, false, 166), "value", [], "any", false, false, false, 166) == (isset($context["campaign_category_id"]) || array_key_exists("campaign_category_id", $context) ? $context["campaign_category_id"] : (function () { throw new RuntimeError('Variable "campaign_category_id" does not exist.', 166, $this->source); })())))) {
// line 167
echo " <a 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, $context["Path"], "id", [], "any", false, false, false, 167), "html", null, true);
echo "\">通巻100号記念 マガジン電子版バックナンバー半額セール</a>
";
} else {
// line 169
echo " <a 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, $context["Path"], "id", [], "any", false, false, false, 169), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 169), "html", null, true);
echo "</a>
";
}
// line 171
echo " </h1>
</li>
";
}
// line 174
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['Path'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 175
echo " ";
} else {
// line 176
echo " <li class=\"ec-topicpath__item\"><a href=\"";
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 178
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.', 178, $this->source); })()), "vars", [], "any", false, false, false, 178), "value", [], "any", false, false, false, 178) && 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.', 178, $this->source); })()), "vars", [], "any", false, false, false, 178), "value", [], "any", false, false, false, 178), "name", [], "any", false, false, false, 178))) {
// line 179
echo " <li class=\"ec-topicpath__item\">";
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.', 179, $this->source); })()), "vars", [], "any", false, false, false, 179), "value", [], "any", false, false, false, 179), "name", [], "any", false, false, false, 179)]), "html", null, true);
echo "</li>
";
}
// line 181
echo " </ol>
";
// line 185
echo " ";
if ((((isset($context["campaign_valid"]) || array_key_exists("campaign_valid", $context) ? $context["campaign_valid"] : (function () { throw new RuntimeError('Variable "campaign_valid" does not exist.', 185, $this->source); })()) == true) && (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.', 185, $this->source); })()), "category_id", [], "any", false, false, false, 185), "vars", [], "any", false, false, false, 185), "value", [], "any", false, false, false, 185) == (isset($context["campaign_category_id"]) || array_key_exists("campaign_category_id", $context) ? $context["campaign_category_id"] : (function () { throw new RuntimeError('Variable "campaign_category_id" does not exist.', 185, $this->source); })())))) {
// line 186
echo " <div class=\"ec-topicpath__item\" style=\"line-height:1.5em;font-size:1.4em;\">
<div class=\"campaign_img\"><img src=\"/html/user_data/assets/img/sale_20210906/os_sale_no_detail.jpg\" style=\"width:100%\"></div>
<p style=\"text-align: left;font-size: 0.8em;color: black;margin:0 1em;font-weight: normal;\">
多聴多読マガジン通巻100号を記念して、一部のバックナンバー電子版の半額セールを実施しております。<br>
購入する商品に悩んだら、<a href=\"https://www.cosmopier.com/shopping-guide/?utm_source=cp_shop&utm_medium=magazine_sale&utm_content=sale_list\" style=\"color:#337ab7!important;font-weight:bold;\" target=\"_blank\">お買い物ガイド</a>もご覧ください。<br>
<span class=\"campaign_alert\" style=\"font-weight: bold;color: red;\">購入時、クーポンコード「";
// line 191
echo twig_escape_filter($this->env, (isset($context["coupon_code"]) || array_key_exists("coupon_code", $context) ? $context["coupon_code"] : (function () { throw new RuntimeError('Variable "coupon_code" does not exist.', 191, $this->source); })()), "html", null, true);
echo "」を必ずご使用ください。<br/>
また、本クーポンをご利用いただけるのは【お一人様1回のみ】です。
</span><br/>
<span class=\"copy_button\" onclick=\"copyToClipboard()\">★クーポンコードをコピー</span><br/>
※商品購入時のクーポンコード画面でペーストしてください。<br/>
</p>
<p style=\"text-align: left;font-size: 0.8em;margin: 1em 1em 0;font-weight: bold;\">
<span style=\"color: white;background-color: #000 !important;font-weight: normal;border-radius: 5px;padding:5px 10px;\">セール実施期間:2021/9/6 ~ 2021/9/27</span>
</p>
</div>
";
}
// line 202
echo " ";
// line 205
echo " ";
if ((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.', 205, $this->source); })()), "category_id", [], "any", false, false, false, 205), "vars", [], "any", false, false, false, 205), "value", [], "any", false, false, false, 205) == (isset($context["jytp_id"]) || array_key_exists("jytp_id", $context) ? $context["jytp_id"] : (function () { throw new RuntimeError('Variable "jytp_id" does not exist.', 205, $this->source); })()))) {
// line 206
echo " <div class=\"ec-topicpath__item\" style=\"line-height:1.5em;font-size:1.4em;\">
<div class=\"campaign_img\"><img src=\"";
// line 207
echo twig_escape_filter($this->env, (isset($context["jytp_url"]) || array_key_exists("jytp_url", $context) ? $context["jytp_url"] : (function () { throw new RuntimeError('Variable "jytp_url" does not exist.', 207, $this->source); })()), "html", null, true);
echo "\" style=\"width:100%\"></div>
<p style=\"text-align: left;font-size: 0.8em;color: black;margin:0 1em;font-weight: normal;\">
★表紙をクリックすると、立ち読み・CD試聴ができます!
</p>
</div>
";
}
// line 214
echo " </div>
\t\t\t
\t\t\t";
// line 216
echo twig_include($this->env, $context, "Block/category_nav.twig");
echo "
\t\t\t
<div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
";
// line 220
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.', 220, $this->source); })()), "totalItemCount", [], "any", false, false, false, 220) > 0)) {
// line 221
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span>対象商品:</span><span class=\"ec-font-bold\">%count%</span><span class=\"mini\">件</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.', 221, $this->source); })()), "totalItemCount", [], "any", false, false, false, 221)]);
echo "
";
} else {
// line 223
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html", null, true);
echo "</span>
";
}
// line 225
echo " </div>
";
// line 226
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.', 226, $this->source); })()), "totalItemCount", [], "any", false, false, false, 226) > 0)) {
// line 227
echo " <div class=\"ec-searchnavRole__actions\">
<div class=\"ec-select\">
";
// line 229
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["disp_number_form"]) || array_key_exists("disp_number_form", $context) ? $context["disp_number_form"] : (function () { throw new RuntimeError('Variable "disp_number_form" does not exist.', 229, $this->source); })()), 'widget', ["id" => "", "attr" => ["class" => "disp-number"]]);
echo "
";
// line 230
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["order_by_form"]) || array_key_exists("order_by_form", $context) ? $context["order_by_form"] : (function () { throw new RuntimeError('Variable "order_by_form" does not exist.', 230, $this->source); })()), 'widget', ["id" => "", "attr" => ["class" => "order-by"]]);
echo "
</div>
</div>
";
}
// line 234
echo " </div>
</div>
";
// line 236
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.', 236, $this->source); })()), "totalItemCount", [], "any", false, false, false, 236) > 0)) {
// line 237
echo " <div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
";
// line 239
$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.', 239, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 240
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 241
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, 241)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"";
// line 243
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, 243)), "save_image"), "html", null, true);
echo "\">
</p>
\t\t\t\t\t\t\t\t";
// line 246
echo "\t\t\t\t\t\t\t\t<ul class=\"ec-productRole__tags\">
\t\t\t\t\t\t\t\t\t";
// line 247
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "Tags", [], "any", false, false, false, 247));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 248
echo "\t\t\t\t\t\t\t\t\t\t<li class=\"ec-productRole__tag tag_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "id", [], "any", false, false, false, 248), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["Tag"], "html", null, true);
echo "</li>
\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 250
echo "\t\t\t\t\t\t\t\t</ul>
<p class=\"ttl\">";
// line 251
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 251), "html", null, true);
echo "</p>
";
// line 252
if (twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 252)) {
// line 253
echo " <p class=\"subtext\">";
echo nl2br(twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 253));
echo "</p>
";
}
// line 255
echo " <p class=\"price02-default\">
";
// line 256
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 256)) {
// line 257
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 257) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 257))) {
// line 258
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, 258)), "html", null, true);
echo "
";
} else {
// line 260
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, 260)), "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, 260)), "html", null, true);
echo "
";
}
// line 262
echo " ";
} else {
// line 263
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, 263)), "html", null, true);
echo "
";
}
// line 264
echo "<span>(税込)</span>
</p>
</a>
";
// line 268
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 268)) {
// line 269
echo " ";
$context["form"] = twig_get_attribute($this->env, $this->source, (isset($context["forms"]) || array_key_exists("forms", $context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.', 269, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 269), [], "array", false, false, false, 269);
// line 270
echo " <form name=\"form";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 270), "html", null, true);
echo "\" id=\"productForm";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 270), "html", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 270)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"ec-productRole__actions\">
";
// line 272
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 272)) {
// line 273
echo " <div class=\"ec-select\">
";
// line 274
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 274, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 274), 'widget');
echo "
";
// line 275
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 275, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 275), 'errors');
echo "
</div>
";
// line 277
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 277)) {
// line 278
echo " <div class=\"ec-select\">
";
// line 279
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 279, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 279), 'widget');
echo "
";
// line 280
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 280, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 280), 'errors');
echo "
</div>
";
}
// line 283
echo " ";
}
// line 284
echo " <div class=\"ec-numberInput\">
";
// line 285
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 285, $this->source); })()), "quantity", [], "any", false, false, false, 285), 'widget', ["attr" => ["class" => "quantity"]]);
echo "
";
// line 286
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 286, $this->source); })()), "quantity", [], "any", false, false, false, 286), 'errors');
echo "
</div>
</div>
";
// line 289
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 289, $this->source); })()), 'rest');
echo "
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--cancel add-cart\" data-cartid=\"";
// line 292
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 292), "html", null, true);
echo "\" form=\"productForm";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 292), "html", null, true);
echo "\">
";
// line 293
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>
";
} else {
// line 297
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action zero\" disabled=\"disabled\">
";
// line 299
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("品切れ中です"), "html", null, true);
echo "
</button>
</div>
";
}
// line 303
echo " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 305
echo " </ul>
</div>
<div class=\"ec-modal\">
<input type=\"checkbox\" id=\"ec-modal-checkbox\" class=\"checkbox\">
<div class=\"ec-modal-overlay\">
<label for=\"ec-modal-checkbox\" class=\"ec-modal-overlay-close\"></label>
<div class=\"ec-modal-wrap\">
<label for=\"ec-modal-checkbox\" class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
// line 312
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></label>
<div id=\"ec-modal-header\" class=\"text-center\">";
// line 313
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\">
<label for=\"ec-modal-checkbox\" class=\"ec-inlineBtn--cancel\">";
// line 316
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</label>
<a href=\"";
// line 317
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 324
$this->loadTemplate("pager.twig", "Product/list.twig", 324)->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.', 324, $this->source); })()), "paginationData", [], "any", false, false, false, 324)]));
// line 325
echo " </div>
";
}
// line 327
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 ( 730 => 327, 726 => 325, 724 => 324, 712 => 317, 708 => 316, 702 => 313, 698 => 312, 689 => 305, 682 => 303, 675 => 299, 671 => 297, 664 => 293, 658 => 292, 652 => 289, 646 => 286, 642 => 285, 639 => 284, 636 => 283, 630 => 280, 626 => 279, 623 => 278, 621 => 277, 616 => 275, 612 => 274, 609 => 273, 607 => 272, 597 => 270, 594 => 269, 592 => 268, 586 => 264, 580 => 263, 577 => 262, 569 => 260, 563 => 258, 560 => 257, 558 => 256, 555 => 255, 549 => 253, 547 => 252, 543 => 251, 540 => 250, 529 => 248, 525 => 247, 522 => 246, 517 => 243, 512 => 241, 509 => 240, 505 => 239, 501 => 237, 499 => 236, 495 => 234, 488 => 230, 484 => 229, 480 => 227, 478 => 226, 475 => 225, 469 => 223, 463 => 221, 461 => 220, 454 => 216, 450 => 214, 440 => 207, 437 => 206, 434 => 205, 432 => 202, 418 => 191, 411 => 186, 408 => 185, 405 => 181, 399 => 179, 396 => 178, 388 => 176, 385 => 175, 371 => 174, 366 => 171, 356 => 169, 348 => 167, 346 => 166, 338 => 164, 335 => 163, 317 => 162, 315 => 161, 310 => 158, 298 => 156, 294 => 155, 289 => 154, 285 => 153, 281 => 151, 275 => 148, 272 => 147, 270 => 146, 267 => 145, 260 => 140, 258 => 139, 233 => 116, 223 => 115, 204 => 105, 194 => 98, 163 => 70, 135 => 44, 121 => 43, 113 => 42, 96 => 41, 92 => 39, 82 => 38, 71 => 25, 69 => 34, 67 => 33, 65 => 27, 62 => 22, 59 => 20, 57 => 19, 55 => 18, 53 => 17, 51 => 16, 49 => 15, 36 => 25,);
}
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 start_date = '2021-09-06'|date('Y-m-d') %}
{% set end_date = '2021-09-27'|date('Y-m-d') %}
{% set campaign_category_id = \"174\" %}
{% set coupon_code = \"eio100anniv\" %}
{% if start_date <= date()|date('Y-m-d') and date()|date('Y-m-d') <= end_date %}
{% set campaign_valid = true %}
{% else %}
{% set campaign_valid = false %}
{% endif %}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{#
↑↑↑ここまで↑↑↑
固定バナー対応
↓↓↓ここから↓↓↓
#}
{% set jytp_id = \"75\" %}
{% set jytp_url = '/html/user_data/top/top-slider_20210603_2_PC.jpg' %}
{#
↑↑↑ここまで↑↑↑
#}
{% 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-checkbox').prop('checked', true);
// カートブロックを更新する
\$.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);
});
});
});
</script>
{% endblock %}
{% block main %}
<style>
.list_title {
font-size: 1.2em!important;
line-height: 1.5em;
}
.ec-layoutRole__mainBottom{
margin-top: 20px!important;
}
.campaign_img {
margin-bottom: 1em;
}
@media only screen and (min-width: 768px){
.campaign_img{
width: 80%;
margin: 0 auto 1em;
}
}
@media only screen and (max-width: 767px){
.campaign_img{
width: 100%;
}
}
</style>
{%if campaign_valid == false and search_form.category_id.vars.value == \"90\" %}
<script type=\"text/javascript\" id=\"list_script\">
document.title = \"全商品 / コスモピア・オンラインショップ\";
document.getElementById(\"list_script\").remove();
</script>
{% endif %}
{% if search_form.category_id.vars.errors|length > 0 or (campaign_valid == false and search_form.category_id.vars.value == campaign_category_id) %}
<div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
</div>
{% else %}
<div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
{% for item in search_form %}
<input type=\"hidden\" id=\"{{ item.vars.id }}\"
name=\"{{ item.vars.full_name }}\"
{% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
{% endfor %}
</form>
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath\">
{% if Category is not null %}
{% for Path in Category.path %}
{% if loop.last %}
<li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\">
<h1 class=\"list_title\">
{% if campaign_valid == true and search_form.category_id.vars.value == campaign_category_id %}
<a href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">通巻100号記念 マガジン電子版バックナンバー半額セール</a>
{% else %}
<a href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
{% endif %}
</h1>
</li>
{% endif %}
{% endfor %}
{% else %}
<li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a></li>
{% endif %}
{% if search_form.vars.value and search_form.vars.value.name %}
<li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
{% endif %}
</ol>
{#
キャンペーン用ヘッダー
#}
{% if campaign_valid == true and search_form.category_id.vars.value == campaign_category_id %}
<div class=\"ec-topicpath__item\" style=\"line-height:1.5em;font-size:1.4em;\">
<div class=\"campaign_img\"><img src=\"/html/user_data/assets/img/sale_20210906/os_sale_no_detail.jpg\" style=\"width:100%\"></div>
<p style=\"text-align: left;font-size: 0.8em;color: black;margin:0 1em;font-weight: normal;\">
多聴多読マガジン通巻100号を記念して、一部のバックナンバー電子版の半額セールを実施しております。<br>
購入する商品に悩んだら、<a href=\"https://www.cosmopier.com/shopping-guide/?utm_source=cp_shop&utm_medium=magazine_sale&utm_content=sale_list\" style=\"color:#337ab7!important;font-weight:bold;\" target=\"_blank\">お買い物ガイド</a>もご覧ください。<br>
<span class=\"campaign_alert\" style=\"font-weight: bold;color: red;\">購入時、クーポンコード「{{coupon_code}}」を必ずご使用ください。<br/>
また、本クーポンをご利用いただけるのは【お一人様1回のみ】です。
</span><br/>
<span class=\"copy_button\" onclick=\"copyToClipboard()\">★クーポンコードをコピー</span><br/>
※商品購入時のクーポンコード画面でペーストしてください。<br/>
</p>
<p style=\"text-align: left;font-size: 0.8em;margin: 1em 1em 0;font-weight: bold;\">
<span style=\"color: white;background-color: #000 !important;font-weight: normal;border-radius: 5px;padding:5px 10px;\">セール実施期間:2021/9/6 ~ 2021/9/27</span>
</p>
</div>
{% endif %}
{#
ページごとの固定バナー
#}
{% if search_form.category_id.vars.value == jytp_id %}
<div class=\"ec-topicpath__item\" style=\"line-height:1.5em;font-size:1.4em;\">
<div class=\"campaign_img\"><img src=\"{{jytp_url}}\" style=\"width:100%\"></div>
<p style=\"text-align: left;font-size: 0.8em;color: black;margin:0 1em;font-weight: normal;\">
★表紙をクリックすると、立ち読み・CD試聴ができます!
</p>
</div>
{% endif %}
</div>
\t\t\t
\t\t\t{{ include('Block/category_nav.twig') }}
\t\t\t
<div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
{% if pagination.totalItemCount > 0 %}
{{ '<span>対象商品:</span><span class=\"ec-font-bold\">%count%</span><span class=\"mini\">件</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(disp_number_form, {'id': '', 'attr': {'class': 'disp-number'}}) }}
{{ form_widget(order_by_form, {'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\">
<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') }}\">
</p>
\t\t\t\t\t\t\t\t{# タグ #}
\t\t\t\t\t\t\t\t<ul class=\"ec-productRole__tags\">
\t\t\t\t\t\t\t\t\t{% for Tag in Product.Tags %}
\t\t\t\t\t\t\t\t\t\t<li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</ul>
<p class=\"ttl\">{{ Product.name }}</p>
{% if Product.description_list %}
<p class=\"subtext\">{{ 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 %}<span>(税込)</span>
</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\">
{{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
{{ form_errors(form.quantity) }}
</div>
</div>
{{ form_rest(form) }}
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--cancel 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 zero\" disabled=\"disabled\">
{{ '品切れ中です'|trans }}
</button>
</div>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<div class=\"ec-modal\">
<input type=\"checkbox\" id=\"ec-modal-checkbox\" class=\"checkbox\">
<div class=\"ec-modal-overlay\">
<label for=\"ec-modal-checkbox\" class=\"ec-modal-overlay-close\"></label>
<div class=\"ec-modal-wrap\">
<label for=\"ec-modal-checkbox\" class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></label>
<div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<label for=\"ec-modal-checkbox\" class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</label>
<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/cosmopier/www/shop-test/app/template/HF4002/Product/list.twig");
}
}