<?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_7eb1ff000f59b7a144e93515d156ac65ddb33213ec82be5bbef67dafcb3e41db 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"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 8, $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 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['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 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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__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"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 98, $this->source); })()), "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, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 98, $this->source); })()), "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, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 99, $this->source); })()), "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 === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 103, $this->source); })()))) {
// line 104
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.', 104, $this->source); })()), "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, (isset($context["current_name"]) || array_key_exists("current_name", $context) ? $context["current_name"] : (function () { throw new RuntimeError('Variable "current_name" does not exist.', 109, $this->source); })()), "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((isset($context["ProductItems"]) || array_key_exists("ProductItems", $context) ? $context["ProductItems"] : (function () { throw new RuntimeError('Variable "ProductItems" does not exist.', 116, $this->source); })()));
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, 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.', 121, $this->source); })()), (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 121, $this->source); })()), [], "array", false, false, false, 121), "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, 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.', 122, $this->source); })()), (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 122, $this->source); })()), [], "array", false, false, false, 122), "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, (isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 134, $this->source); })()), "hmin", [], "any", false, false, false, 134) || twig_get_attribute($this->env, $this->source, (isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 134, $this->source); })()), "hmax", [], "any", false, false, false, 134))) {
// line 135
echo " <li>
高さ
";
// line 137
if (twig_get_attribute($this->env, $this->source, (isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 137, $this->source); })()), "hmin", [], "any", false, false, false, 137)) {
// line 138
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 138, $this->source); })()), "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, (isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 141, $this->source); })()), "hmax", [], "any", false, false, false, 141)) {
// line 142
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 142, $this->source); })()), "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, (isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 148, $this->source); })()), "wmin", [], "any", false, false, false, 148) || twig_get_attribute($this->env, $this->source, (isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 148, $this->source); })()), "wmax", [], "any", false, false, false, 148))) {
// line 149
echo " <li>
幅
";
// line 151
if (twig_get_attribute($this->env, $this->source, (isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 151, $this->source); })()), "wmin", [], "any", false, false, false, 151)) {
// line 152
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 152, $this->source); })()), "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, (isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 155, $this->source); })()), "wmax", [], "any", false, false, false, 155)) {
// line 156
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["searchData"]) || array_key_exists("searchData", $context) ? $context["searchData"] : (function () { throw new RuntimeError('Variable "searchData" does not exist.', 156, $this->source); })()), "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, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 162, $this->source); })()), "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, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 162, $this->source); })()), "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, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 164, $this->source); })()), "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, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 165, $this->source); })()), "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, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 168, $this->source); })()), "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, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 169, $this->source); })()), "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, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 175, $this->source); })()), "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, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 175, $this->source); })()), "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, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 181, $this->source); })()), "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((isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 189, $this->source); })()));
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, (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 " ";
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, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 227, $this->source); })()), "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, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 232, $this->source); })()), "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, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 235, $this->source); })()), "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, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 236, $this->source); })()), "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, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 242, $this->source); })()), "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((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 245, $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 246
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 247
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, 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['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 326
$this->loadTemplate("pager.twig", "__string_template__d72b489d39916e23c88f936a6c884b4013bd2d3de5dd430e1283e27674fa7a4c", 326)->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.', 326, $this->source); })()), "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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "__string_template__d72b489d39916e23c88f936a6c884b4013bd2d3de5dd430e1283e27674fa7a4c";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 718 => 334, 712 => 330, 709 => 329, 705 => 327, 703 => 326, 691 => 319, 687 => 318, 681 => 315, 677 => 314, 670 => 309, 655 => 307, 650 => 265, 644 => 263, 641 => 262, 633 => 260, 627 => 258, 624 => 257, 622 => 256, 619 => 255, 613 => 253, 611 => 252, 607 => 251, 596 => 249, 591 => 247, 588 => 246, 571 => 245, 567 => 243, 565 => 242, 561 => 240, 554 => 236, 550 => 235, 546 => 233, 544 => 232, 541 => 231, 535 => 229, 529 => 227, 527 => 226, 522 => 223, 518 => 201, 512 => 200, 504 => 199, 500 => 198, 495 => 197, 492 => 196, 484 => 194, 480 => 193, 477 => 192, 472 => 191, 469 => 190, 465 => 189, 460 => 186, 454 => 183, 451 => 182, 449 => 181, 445 => 179, 442 => 178, 438 => 176, 435 => 175, 432 => 173, 428 => 171, 422 => 169, 420 => 168, 417 => 167, 411 => 165, 409 => 164, 406 => 163, 403 => 162, 400 => 160, 396 => 158, 390 => 156, 388 => 155, 385 => 154, 379 => 152, 377 => 151, 373 => 149, 370 => 148, 367 => 146, 363 => 144, 357 => 142, 355 => 141, 352 => 140, 346 => 138, 344 => 137, 340 => 135, 337 => 134, 334 => 132, 331 => 131, 325 => 130, 321 => 128, 317 => 126, 311 => 125, 305 => 123, 302 => 122, 298 => 121, 295 => 120, 293 => 119, 290 => 118, 287 => 117, 282 => 116, 279 => 115, 276 => 113, 273 => 112, 267 => 111, 261 => 109, 258 => 108, 255 => 107, 252 => 106, 250 => 105, 245 => 104, 242 => 103, 239 => 101, 233 => 99, 230 => 98, 226 => 95, 221 => 91, 211 => 90, 184 => 72, 174 => 65, 143 => 37, 115 => 11, 101 => 10, 93 => 9, 76 => 8, 72 => 6, 62 => 5, 51 => 1, 49 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block javascript %}
<script>
eccube.productsClassCategories = {
{% for Product in pagination %}
\"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
{% endfor %}
};
\$(function() {
// 表示件数を変更
\$('.disp-number').change(function() {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
// 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
\$('.add-cart').on('click', function(e) {
var \$form = \$(this).parents('li').find('form');
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').text(this);
});
\$('.ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: '{{ url('block_cart') }}',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('{{ 'カートへの追加に失敗しました。'|trans }}');
}).always(function(data) {
// 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>
{% endblock %}
{% block main %}
<section class=\"normal_list_section\">
{# SP 検索項目表示エリア #}
<div class=\"seach_resutl seach_resutl__sp\">
<ul class=\"seach_resutl__list\">
{# 検索ワード #}
{% 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 %}
{# カテゴリ名 #}
{% if Category is not null %}
{% for Path in Category.path %}
{# 親カテゴリは非表示 #}
{% if Path.id != 34 and Path.id != 7 %}
{% set current_id = Path.id %}
{% set current_name = Path.name %}
<li>{{ current_name }}</li>
{% endif %}
{% endfor %}
{% endif %}
{# 検索項目 #}
{% if ProductItems is defined %}
{% for ProductItem in ProductItems %}
{% set name = 'productplus_' ~ ProductItem.id %}
{% if ProductItem.input_type >= constant('Plugin\\\\ProductPlus42\\\\Entity\\\\ProductItem::SELECT_TYPE') %}
{% for choice in form[name].vars.choices %}
{% if choice.value in form[name].vars.data %}
<li>{{ choice.label }}</li>
{% endif %}
{% endfor %}
{% else %}
{% endif %}
{% endfor %}
{% endif %}
{# 高さ #}
{% if searchData.hmin or searchData.hmax %}
<li>
高さ
{% if searchData.hmin %}
{{ searchData.hmin }}mm
{% endif %}
<span>~</span>
{% if searchData.hmax %}
{{ searchData.hmax }}mm
{% endif %}
</li>
{% endif %}
{# 幅 #}
{% if searchData.wmin or searchData.wmax %}
<li>
幅
{% if searchData.wmin %}
{{ searchData.wmin }}mm
{% endif %}
<span>~</span>
{% if searchData.wmax %}
{{ searchData.wmax }}mm
{% endif %}
</li>
{% endif %}
{# 価格帯 #}
{% if form.pmin.vars.value != '' or form.pmax.vars.value != '' %}
<li>
{% if form.pmin.vars.value != '' %}
{{ form.pmin.vars.value|number_format }}円
{% endif %}
<span>~</span>
{% if form.pmax.vars.value != '' %}
{{ form.pmax.vars.value|number_format }}円
{% endif %}
</li>
{% endif %}
</ul>
{# リセットボタン #}
{% if search_form.vars.value and search_form.vars.value.name %}
<a class=\"searchResetLink\">検索クリア</a>
{% else %}
{% endif %}
</div><!--/.seach_resutl-->
{% if search_form.category_id.vars.errors|length > 0 %}
<div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
</div>
{% else %}
<div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
{% for item in search_form %}
{% if item.vars.value is iterable %}
{% for value in item.vars.value %}
<input type=\"hidden\"
name=\"{{ item.vars.full_name }}[]\"
value=\"{{ value }}\"/>
{% endfor %}
{% else %}
<input type=\"hidden\" id=\"{{ item.vars.id }}\"
name=\"{{ item.vars.full_name }}\"
{% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>{% endif %}
{% endfor %}
</form>
{#
<div class=\"ec-searchnavRole__topicpath\">
<ol class=\"ec-topicpath\">
<li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
</li>
{% if Category is not null %}
{% for Path in Category.path %}
<li class=\"ec-topicpath__divider\">|</li>
<li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
</li>
{% endfor %}
{% endif %}
{% if search_form.vars.value and search_form.vars.value.name %}
<li class=\"ec-topicpath__divider\">|</li>
<li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
{% endif %}
</ol>
</div>
#}
<div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
{% if pagination.totalItemCount > 0 %}
{{ '<span class=\"ec-font-bold\">対象商品 <span>%count%</span> 件</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
{% else %}
<span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
{% endif %}
</div>
{% if pagination.totalItemCount > 0 %}
<div class=\"ec-searchnavRole__actions\">
<div class=\"ec-select\">
{{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number'}}) }}
{{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by'}}) }}
</div>
</div>
{% endif %}
</div>
</div>
{% if pagination.totalItemCount > 0 %}
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
{% for Product in pagination %}
<li class=\"ec-shelfGrid__item\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
</p>
<p>{{ Product.name }}</p>
{% if Product.description_list %}
<p>{{ Product.description_list|raw|nl2br }}</p>
{% endif %}
<p class=\"price02-default\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|price }}
{% else %}
{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|price }}
{% endif %}
</p>
</a>
{#
{% if Product.stock_find %}
{% set form = forms[Product.id] %}
<form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
<div class=\"ec-productRole__actions\">
{% if form.classcategory_id1 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>
{% if form.classcategory_id2 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</div>
{% endif %}
{% endif %}
<div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
{{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
{{ form_errors(form.quantity) }}
</div>
</div>
{{ form_rest(form) }}
</form>
{#
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% else %}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'ただいま品切れ中です。'|trans }}
</button>
</div>
{% endif %}
#}
</li>
{% endfor %}
</ul>
</div>
<div class=\"ec-modal\">
<div class=\"ec-modal-overlay\">
<div class=\"ec-modal-wrap\">
<span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
<div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
<a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-pagerRole\">
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
</div>
{% endif %}
{% endif %}
</section><!--/.normal_list_section-->
<a class=\"sp_filtter_btn\">
<img src=\"{{ asset('assets/img/common/plus_icon.png') }}\">
<span class=\"txt\">絞り込み</span>
</a>
{% endblock %}
", "__string_template__d72b489d39916e23c88f936a6c884b4013bd2d3de5dd430e1283e27674fa7a4c", "");
}
}