<?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;
/* __string_template__d72b489d39916e23c88f936a6c884b4013bd2d3de5dd430e1283e27674fa7a4c */
class __TwigTemplate_93552fefc6f508c03b1bfa33e78d1fd5f30415a77fad6178ea4abec95b009f0b 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 1
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", "__string_template__d72b489d39916e23c88f936a6c884b4013bd2d3de5dd430e1283e27674fa7a4c"));
// line 3
$context["body_class"] = "product_page";
// line 1
$this->parent = $this->loadTemplate("default_frame.twig", "__string_template__d72b489d39916e23c88f936a6c884b4013bd2d3de5dd430e1283e27674fa7a4c", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
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"));
// line 6
echo " <script>
eccube.productsClassCategories = {
";
// line 8
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["pagination"] ?? null));
$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 9
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, 9), "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, 9) == false)) {
echo ", ";
}
// line 10
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 11
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 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html", null, true);
echo "');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').text(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: '";
// line 65
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("block_cart");
echo "',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('";
// line 72
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()
});
</script>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 90
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"));
// line 91
echo "
<section class=\"normal_list_section\">
";
// line 95
echo " <div class=\"seach_resutl seach_resutl__sp\">
<ul class=\"seach_resutl__list\">
";
// line 98
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["search_form"] ?? null), "vars", [], "any", false, false, false, 98), "value", [], "any", false, false, false, 98) && 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, false, false, 98), "value", [], "any", false, false, false, 98), "name", [], "any", false, false, false, 98))) {
// line 99
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, ($context["search_form"] ?? null), "vars", [], "any", false, false, false, 99), "value", [], "any", false, false, false, 99), "name", [], "any", false, false, false, 99)]), "html", null, true);
echo "</li>
";
}
// line 101
echo "
";
// line 103
echo " ";
if ( !(null === ($context["Category"] ?? null))) {
// line 104
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["Category"] ?? null), "path", [], "any", false, false, false, 104));
foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
// line 105
echo " ";
// line 106
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, false, 106) != 34) && (twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, false, 106) != 7))) {
// line 107
echo " ";
$context["current_id"] = twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, false, 107);
// line 108
echo " ";
$context["current_name"] = twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 108);
// line 109
echo " <li>";
echo twig_escape_filter($this->env, ($context["current_name"] ?? null), "html", null, true);
echo "</li>
";
}
// line 111
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 112
echo " ";
}
// line 113
echo "
";
// line 115
echo " ";
if (array_key_exists("ProductItems", $context)) {
// line 116
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["ProductItems"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["ProductItem"]) {
// line 117
echo " ";
$context["name"] = ("productplus_" . twig_get_attribute($this->env, $this->source, $context["ProductItem"], "id", [], "any", false, false, false, 117));
// line 118
echo "
";
// line 119
if ((twig_get_attribute($this->env, $this->source, $context["ProductItem"], "input_type", [], "any", false, false, false, 119) >= twig_constant("Plugin\\ProductPlus42\\Entity\\ProductItem::SELECT_TYPE"))) {
// line 120
echo "
";
// line 121
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (($__internal_compile_0 = ($context["form"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[($context["name"] ?? null)] ?? null) : null), "vars", [], "any", false, false, false, 121), "choices", [], "any", false, false, false, 121));
foreach ($context['_seq'] as $context["_key"] => $context["choice"]) {
// line 122
echo " ";
if (twig_in_filter(twig_get_attribute($this->env, $this->source, $context["choice"], "value", [], "any", false, false, false, 122), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (($__internal_compile_1 = ($context["form"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[($context["name"] ?? null)] ?? null) : null), "vars", [], "any", false, false, false, 122), "data", [], "any", false, false, false, 122))) {
// line 123
echo " <li>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["choice"], "label", [], "any", false, false, false, 123), "html", null, true);
echo "</li>
";
}
// line 125
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['choice'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 126
echo "
";
} else {
// line 128
echo "
";
}
// line 130
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 131
echo " ";
}
// line 132
echo "
";
// line 134
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "hmin", [], "any", false, false, false, 134) || twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "hmax", [], "any", false, false, false, 134))) {
// line 135
echo " <li>
高さ
";
// line 137
if (twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "hmin", [], "any", false, false, false, 137)) {
// line 138
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "hmin", [], "any", false, false, false, 138), "html", null, true);
echo "mm
";
}
// line 140
echo " <span>~</span>
";
// line 141
if (twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "hmax", [], "any", false, false, false, 141)) {
// line 142
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "hmax", [], "any", false, false, false, 142), "html", null, true);
echo "mm
";
}
// line 144
echo " </li>
";
}
// line 146
echo "
";
// line 148
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "wmin", [], "any", false, false, false, 148) || twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "wmax", [], "any", false, false, false, 148))) {
// line 149
echo " <li>
幅
";
// line 151
if (twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "wmin", [], "any", false, false, false, 151)) {
// line 152
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "wmin", [], "any", false, false, false, 152), "html", null, true);
echo "mm
";
}
// line 154
echo " <span>~</span>
";
// line 155
if (twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "wmax", [], "any", false, false, false, 155)) {
// line 156
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "wmax", [], "any", false, false, false, 156), "html", null, true);
echo "mm
";
}
// line 158
echo " </li>
";
}
// line 160
echo "
";
// line 162
echo " ";
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "pmin", [], "any", false, false, false, 162), "vars", [], "any", false, false, false, 162), "value", [], "any", false, false, false, 162) != "") || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "pmax", [], "any", false, false, false, 162), "vars", [], "any", false, false, false, 162), "value", [], "any", false, false, false, 162) != ""))) {
// line 163
echo " <li>
";
// line 164
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "pmin", [], "any", false, false, false, 164), "vars", [], "any", false, false, false, 164), "value", [], "any", false, false, false, 164) != "")) {
// line 165
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "pmin", [], "any", false, false, false, 165), "vars", [], "any", false, false, false, 165), "value", [], "any", false, false, false, 165)), "html", null, true);
echo "円
";
}
// line 167
echo " <span>~</span>
";
// line 168
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "pmax", [], "any", false, false, false, 168), "vars", [], "any", false, false, false, 168), "value", [], "any", false, false, false, 168) != "")) {
// line 169
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "pmax", [], "any", false, false, false, 169), "vars", [], "any", false, false, false, 169), "value", [], "any", false, false, false, 169)), "html", null, true);
echo "円
";
}
// line 171
echo " </li>
";
}
// line 173
echo " </ul>
";
// line 175
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["search_form"] ?? null), "vars", [], "any", false, false, false, 175), "value", [], "any", false, false, false, 175) && 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, false, false, 175), "value", [], "any", false, false, false, 175), "name", [], "any", false, false, false, 175))) {
// line 176
echo " <a class=\"searchResetLink\">検索クリア</a>
";
} else {
// line 178
echo " ";
}
// line 179
echo " </div><!--/.seach_resutl-->
";
// line 181
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, ($context["search_form"] ?? null), "category_id", [], "any", false, false, false, 181), "vars", [], "any", false, false, false, 181), "errors", [], "any", false, false, false, 181)) > 0)) {
// line 182
echo " <div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">";
// line 183
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
</div>
";
} else {
// line 186
echo "
<div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 189
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["search_form"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 190
echo " ";
if (twig_test_iterable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 190), "value", [], "any", false, false, false, 190))) {
// line 191
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 191), "value", [], "any", false, false, false, 191));
foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
// line 192
echo " <input type=\"hidden\"
name=\"";
// line 193
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, 193), "full_name", [], "any", false, false, false, 193), "html", null, true);
echo "[]\"
value=\"";
// line 194
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\"/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 196
echo " ";
} else {
// line 197
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, 197), "id", [], "any", false, false, false, 197), "html", null, true);
echo "\"
name=\"";
// line 198
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, 198), "full_name", [], "any", false, false, false, 198), "html", null, true);
echo "\"
";
// line 199
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, 199), "value", [], "any", false, false, false, 199))) {
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, 199), "value", [], "any", false, false, false, 199), "html", null, true);
echo "\" ";
}
echo "/>";
}
// line 200
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 201
echo " </form>
";
// line 223
echo "
<div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
";
// line 226
if ((twig_get_attribute($this->env, $this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any", false, false, false, 226) > 0)) {
// line 227
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">対象商品 <span>%count%</span> 件</span>", ["%count%" => twig_get_attribute($this->env, $this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any", false, false, false, 227)]);
echo "
";
} else {
// line 229
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html", null, true);
echo "</span>
";
}
// line 231
echo " </div>
";
// line 232
if ((twig_get_attribute($this->env, $this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any", false, false, false, 232) > 0)) {
// line 233
echo " <div class=\"ec-searchnavRole__actions\">
<div class=\"ec-select\">
";
// line 235
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["search_form"] ?? null), "disp_number", [], "any", false, false, false, 235), 'widget', ["id" => "", "attr" => ["class" => "disp-number"]]);
echo "
";
// line 236
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["search_form"] ?? null), "orderby", [], "any", false, false, false, 236), 'widget', ["id" => "", "attr" => ["class" => "order-by"]]);
echo "
</div>
</div>
";
}
// line 240
echo " </div>
</div>
";
// line 242
if ((twig_get_attribute($this->env, $this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any", false, false, false, 242) > 0)) {
// line 243
echo " <div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
";
// line 245
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["pagination"] ?? null));
$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 246
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 247
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 247)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"";
// line 249
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, 249)), "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, 249), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 249) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
</p>
<p>";
// 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>";
echo twig_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 265
echo " </p>
</a>
";
// line 307
echo " </li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 309
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 314
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 315
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 318
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 319
echo $this->extensions['Eccube\Twig\Extension\IgnoreRoutingNotFoundExtension']->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 326
$this->loadTemplate("pager.twig", "__string_template__d72b489d39916e23c88f936a6c884b4013bd2d3de5dd430e1283e27674fa7a4c", 326)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env, $this->source, ($context["pagination"] ?? null), "paginationData", [], "any", false, false, false, 326)]));
// line 327
echo " </div>
";
}
// line 329
echo " ";
}
// line 330
echo "
</section><!--/.normal_list_section-->
<a class=\"sp_filtter_btn\">
<img src=\"";
// line 334
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/plus_icon.png"), "html", null, true);
echo "\">
<span class=\"txt\">絞り込み</span>
</a>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "__string_template__d72b489d39916e23c88f936a6c884b4013bd2d3de5dd430e1283e27674fa7a4c";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 703 => 334, 697 => 330, 694 => 329, 690 => 327, 688 => 326, 676 => 319, 672 => 318, 666 => 315, 662 => 314, 655 => 309, 640 => 307, 635 => 265, 629 => 263, 626 => 262, 618 => 260, 612 => 258, 609 => 257, 607 => 256, 604 => 255, 598 => 253, 596 => 252, 592 => 251, 581 => 249, 576 => 247, 573 => 246, 556 => 245, 552 => 243, 550 => 242, 546 => 240, 539 => 236, 535 => 235, 531 => 233, 529 => 232, 526 => 231, 520 => 229, 514 => 227, 512 => 226, 507 => 223, 503 => 201, 497 => 200, 489 => 199, 485 => 198, 480 => 197, 477 => 196, 469 => 194, 465 => 193, 462 => 192, 457 => 191, 454 => 190, 450 => 189, 445 => 186, 439 => 183, 436 => 182, 434 => 181, 430 => 179, 427 => 178, 423 => 176, 420 => 175, 417 => 173, 413 => 171, 407 => 169, 405 => 168, 402 => 167, 396 => 165, 394 => 164, 391 => 163, 388 => 162, 385 => 160, 381 => 158, 375 => 156, 373 => 155, 370 => 154, 364 => 152, 362 => 151, 358 => 149, 355 => 148, 352 => 146, 348 => 144, 342 => 142, 340 => 141, 337 => 140, 331 => 138, 329 => 137, 325 => 135, 322 => 134, 319 => 132, 316 => 131, 310 => 130, 306 => 128, 302 => 126, 296 => 125, 290 => 123, 287 => 122, 283 => 121, 280 => 120, 278 => 119, 275 => 118, 272 => 117, 267 => 116, 264 => 115, 261 => 113, 258 => 112, 252 => 111, 246 => 109, 243 => 108, 240 => 107, 237 => 106, 235 => 105, 230 => 104, 227 => 103, 224 => 101, 218 => 99, 215 => 98, 211 => 95, 206 => 91, 199 => 90, 175 => 72, 165 => 65, 134 => 37, 106 => 11, 92 => 10, 84 => 9, 67 => 8, 63 => 6, 56 => 5, 48 => 1, 46 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("", "__string_template__d72b489d39916e23c88f936a6c884b4013bd2d3de5dd430e1283e27674fa7a4c", "");
}
}