<?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_category.twig */
class __TwigTemplate_7b2c7f5d0946102898d561bdc46a904616af50d11eac6e11cfd98db43080c6fe 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", "Product/list_category.twig"));
// line 2
$context["body_class"] = "product_page";
// line 1
$this->parent = $this->loadTemplate("default_frame.twig", "Product/list_category.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 4
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 5
echo " <script>
eccube.productsClassCategories = {
";
// line 7
$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 8
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, 8), "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, 8) == false)) {
echo ", ";
}
// line 9
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 10
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 36
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 64
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 71
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 89
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 90
echo "
";
// line 92
echo " <div class=\"seach_resutl seach_resutl__sp\">
<ul class=\"seach_resutl__list\">
";
// line 95
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, 95), "value", [], "any", false, false, false, 95) && 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, 95), "value", [], "any", false, false, false, 95), "name", [], "any", false, false, false, 95))) {
// line 96
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, 96), "value", [], "any", false, false, false, 96), "name", [], "any", false, false, false, 96)]), "html", null, true);
echo "</li>
";
}
// line 98
echo "
";
// line 100
echo " ";
if ( !(null === ($context["Category"] ?? null))) {
// line 101
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["Category"] ?? null), "path", [], "any", false, false, false, 101));
foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
// line 102
echo " ";
// line 103
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, false, 103) != 34) && (twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, false, 103) != 7))) {
// line 104
echo " ";
$context["current_id"] = twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, false, 104);
// line 105
echo " ";
$context["current_name"] = twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 105);
// line 106
echo " <li>";
echo twig_escape_filter($this->env, ($context["current_name"] ?? null), "html", null, true);
echo "</li>
";
}
// line 108
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 109
echo " ";
}
// line 110
echo "
";
// line 112
echo " ";
if (array_key_exists("ProductItems", $context)) {
// line 113
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["ProductItems"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["ProductItem"]) {
// line 114
echo " ";
$context["name"] = ("productplus_" . twig_get_attribute($this->env, $this->source, $context["ProductItem"], "id", [], "any", false, false, false, 114));
// line 115
echo "
";
// line 116
if ((twig_get_attribute($this->env, $this->source, $context["ProductItem"], "input_type", [], "any", false, false, false, 116) >= twig_constant("Plugin\\ProductPlus42\\Entity\\ProductItem::SELECT_TYPE"))) {
// line 117
echo "
";
// line 118
$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, 118), "choices", [], "any", false, false, false, 118));
foreach ($context['_seq'] as $context["_key"] => $context["choice"]) {
// line 119
echo " ";
if (twig_in_filter(twig_get_attribute($this->env, $this->source, $context["choice"], "value", [], "any", false, false, false, 119), 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, 119), "data", [], "any", false, false, false, 119))) {
// line 120
echo " <li>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["choice"], "label", [], "any", false, false, false, 120), "html", null, true);
echo "</li>
";
}
// line 122
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 123
echo "
";
} else {
// line 125
echo "
";
}
// line 127
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 128
echo " ";
}
// line 129
echo "
";
// line 131
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "hmin", [], "any", false, false, false, 131) || twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "hmax", [], "any", false, false, false, 131))) {
// line 132
echo " <li>
高さ
";
// line 134
if (twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "hmin", [], "any", false, false, false, 134)) {
// line 135
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "hmin", [], "any", false, false, false, 135), "html", null, true);
echo "mm
";
}
// line 137
echo " <span>~</span>
";
// line 138
if (twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "hmax", [], "any", false, false, false, 138)) {
// line 139
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "hmax", [], "any", false, false, false, 139), "html", null, true);
echo "mm
";
}
// line 141
echo " </li>
";
}
// line 143
echo "
";
// line 145
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "wmin", [], "any", false, false, false, 145) || twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "wmax", [], "any", false, false, false, 145))) {
// line 146
echo " <li>
幅
";
// line 148
if (twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "wmin", [], "any", false, false, false, 148)) {
// line 149
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "wmin", [], "any", false, false, false, 149), "html", null, true);
echo "mm
";
}
// line 151
echo " <span>~</span>
";
// line 152
if (twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "wmax", [], "any", false, false, false, 152)) {
// line 153
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["searchData"] ?? null), "wmax", [], "any", false, false, false, 153), "html", null, true);
echo "mm
";
}
// line 155
echo " </li>
";
}
// line 157
echo "
";
// line 159
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, 159), "vars", [], "any", false, false, false, 159), "value", [], "any", false, false, false, 159) != "") || (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, 159), "vars", [], "any", false, false, false, 159), "value", [], "any", false, false, false, 159) != ""))) {
// line 160
echo " <li>
";
// line 161
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, 161), "vars", [], "any", false, false, false, 161), "value", [], "any", false, false, false, 161) != "")) {
// line 162
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, 162), "vars", [], "any", false, false, false, 162), "value", [], "any", false, false, false, 162)), "html", null, true);
echo "円
";
}
// line 164
echo " <span>~</span>
";
// line 165
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, 165), "vars", [], "any", false, false, false, 165), "value", [], "any", false, false, false, 165) != "")) {
// line 166
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, 166), "vars", [], "any", false, false, false, 166), "value", [], "any", false, false, false, 166)), "html", null, true);
echo "円
";
}
// line 168
echo " </li>
";
}
// line 170
echo " </ul>
";
// line 172
echo " <a class=\"searchResetLink\">検索クリア</a>
</div><!--/.seach_resutl-->
";
// line 177
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, 177), "vars", [], "any", false, false, false, 177), "errors", [], "any", false, false, false, 177)) > 0)) {
// line 178
echo " <div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">";
// line 179
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
</div>
";
} else {
// line 182
echo "
<div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 185
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["search_form"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 186
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, 186), "id", [], "any", false, false, false, 186), "html", null, true);
echo "\"
name=\"";
// line 187
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, 187), "full_name", [], "any", false, false, false, 187), "html", null, true);
echo "\"
";
// line 188
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, 188), "value", [], "any", false, false, false, 188))) {
// line 189
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, 189), "value", [], "any", false, false, false, 189))) {
// line 190
echo " value=\"";
echo twig_escape_filter($this->env, twig_join_filter(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), ","), "html", null, true);
echo "\"
";
} else {
// line 192
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, 192), "value", [], "any", false, false, false, 192), "html", null, true);
echo "\"
";
}
// line 194
echo " ";
}
// line 195
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 197
echo " </form>
<div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
";
// line 201
if ((twig_get_attribute($this->env, $this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any", false, false, false, 201) > 0)) {
// line 202
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, 202)]);
echo "
";
} else {
// line 204
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html", null, true);
echo "</span>
";
}
// line 206
echo " </div>
";
// line 207
if ((twig_get_attribute($this->env, $this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any", false, false, false, 207) > 0)) {
// line 208
echo " <div class=\"ec-searchnavRole__actions\">
<div class=\"ec-select\">
";
// line 211
echo " ";
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, 211), 'widget', ["id" => "", "attr" => ["class" => "order-by"]]);
echo "
</div>
</div>
";
}
// line 215
echo " </div>
</div>
";
// line 218
if ((twig_get_attribute($this->env, $this->source, ($context["pagination"] ?? null), "totalItemCount", [], "any", false, false, false, 218) > 0)) {
// line 219
echo " <div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
";
// line 221
$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 222
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 223
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, 223)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"";
// line 225
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, 225)), "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, 225), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 225) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
</p>
";
// line 230
echo " ";
$context["parentId"] = 34;
// line 231
echo " ";
$context["childCategories"] = [];
// line 232
echo " ";
// line 233
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductCategories", [], "any", false, false, false, 233));
foreach ($context['_seq'] as $context["_key"] => $context["productCategory"]) {
// line 234
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["productCategory"], "Category", [], "any", false, false, false, 234), "Parent", [], "any", false, false, false, 234) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["productCategory"], "Category", [], "any", false, false, false, 234), "Parent", [], "any", false, false, false, 234), "id", [], "any", false, false, false, 234) == ($context["parentId"] ?? null)))) {
// line 235
echo " ";
$context["childCategories"] = twig_array_merge(($context["childCategories"] ?? null), [0 => twig_get_attribute($this->env, $this->source, $context["productCategory"], "Category", [], "any", false, false, false, 235)]);
// line 236
echo " ";
}
// line 237
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 238
echo " <div class=\"ec-productRole__title_brand\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (($__internal_compile_2 = ($context["childCategories"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[0] ?? null) : null), "japaneseText", [], "any", false, false, false, 238), "html", null, true);
echo "</div>
<p>";
// line 240
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 240), "html", null, true);
echo "</p>
";
// line 241
if (twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 241)) {
// line 242
echo " <p>";
echo twig_nl2br(twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 242));
echo "</p>
";
}
// line 244
echo "
<p class=\"price02-default\">
";
// line 246
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 246)) {
// line 247
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 247) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 247))) {
// line 248
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, 248)), "html", null, true);
echo "
";
} else {
// line 250
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, 250)), "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, 250)), "html", null, true);
echo "
";
}
// line 252
echo " ";
} else {
// line 253
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, 253)), "html", null, true);
echo "
";
}
// line 255
echo " <span class=\"zeikomi\">(税込)</span>
</p>
</a>
";
// line 298
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 300
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 305
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 306
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 309
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 310
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 317
$this->loadTemplate("pager.twig", "Product/list_category.twig", 317)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env, $this->source, ($context["pagination"] ?? null), "paginationData", [], "any", false, false, false, 317)]));
// line 318
echo " </div>
";
}
// line 320
echo " ";
}
// line 321
echo "
<a class=\"sp_filtter_btn\">
<img src=\"";
// line 324
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 "Product/list_category.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 713 => 324, 708 => 321, 705 => 320, 701 => 318, 699 => 317, 687 => 310, 683 => 309, 677 => 306, 673 => 305, 666 => 300, 651 => 298, 645 => 255, 639 => 253, 636 => 252, 628 => 250, 622 => 248, 619 => 247, 617 => 246, 613 => 244, 607 => 242, 605 => 241, 601 => 240, 595 => 238, 589 => 237, 586 => 236, 583 => 235, 580 => 234, 575 => 233, 573 => 232, 570 => 231, 567 => 230, 554 => 225, 549 => 223, 546 => 222, 529 => 221, 525 => 219, 523 => 218, 518 => 215, 510 => 211, 506 => 208, 504 => 207, 501 => 206, 495 => 204, 489 => 202, 487 => 201, 481 => 197, 474 => 195, 471 => 194, 465 => 192, 459 => 190, 456 => 189, 454 => 188, 450 => 187, 445 => 186, 441 => 185, 436 => 182, 430 => 179, 427 => 178, 425 => 177, 418 => 172, 415 => 170, 411 => 168, 405 => 166, 403 => 165, 400 => 164, 394 => 162, 392 => 161, 389 => 160, 386 => 159, 383 => 157, 379 => 155, 373 => 153, 371 => 152, 368 => 151, 362 => 149, 360 => 148, 356 => 146, 353 => 145, 350 => 143, 346 => 141, 340 => 139, 338 => 138, 335 => 137, 329 => 135, 327 => 134, 323 => 132, 320 => 131, 317 => 129, 314 => 128, 308 => 127, 304 => 125, 300 => 123, 294 => 122, 288 => 120, 285 => 119, 281 => 118, 278 => 117, 276 => 116, 273 => 115, 270 => 114, 265 => 113, 262 => 112, 259 => 110, 256 => 109, 250 => 108, 244 => 106, 241 => 105, 238 => 104, 235 => 103, 233 => 102, 228 => 101, 225 => 100, 222 => 98, 216 => 96, 213 => 95, 209 => 92, 206 => 90, 199 => 89, 175 => 71, 165 => 64, 134 => 36, 106 => 10, 92 => 9, 84 => 8, 67 => 7, 63 => 5, 56 => 4, 48 => 1, 46 => 2, 36 => 1,);
}
public function getSourceContext()
{
return new Source("", "Product/list_category.twig", "/home/xs626321/ikus.furniture/public_html/online/app/template/default/Product/list_category.twig");
}
}