<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Product/list.twig */
class __TwigTemplate_83150701cdb887a40b140ea1889c1c19 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'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
// line 13
$context["body_class"] = "product_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Product/list.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 15
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 16
echo "\t<script>
\t\teccube.productsClassCategories = {
";
// line 18
$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.', 18, $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 19
echo "\"";
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 19), 19, $this->source), "js"), "html", null, true);
echo "\" : ";
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 19, $this->source));
echo "
";
// line 20
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 20) == false)) {
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 21
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('.cart_form');
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('";
// line 45
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 69
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 73
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()
});
window.onload = function() {
// product_nameクラスの要素を全て取得
var elements = document.getElementsByClassName('product_name');
var maxHeight = 0;
// 最大の高さを見つける
for (var i = 0; i < elements.length; i++) {
if (elements[i].offsetHeight > maxHeight) {
maxHeight = elements[i].offsetHeight;
}
}
// 全てのproduct_name要素の高さを最大の高さに設定
for (var i = 0; i < elements.length; i++) {
elements[i].style.height = maxHeight + 'px';
}
};
\t</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 108
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 109
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.', 109, $this->source); })()), "category_id", [], "any", false, false, true, 109), "vars", [], "any", false, false, true, 109), "errors", [], "any", false, false, true, 109)) > 0)) {
// line 110
echo "\t
";
} else {
// line 112
echo "\t\t";
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.', 112, $this->source); })()), "totalItemCount", [], "any", false, false, true, 112) > 0)) {
// line 113
echo "\t\t\t<div class=\"ec-shelfRole\"> ";
$context["categories"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "getList", [], "method", false, false, true, 113);
// line 114
echo "\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 114, $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["category"]) {
// line 115
echo "\t\t\t\t\t<h3 id=\"cat_";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, true, 115), 115, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("front.block.category.list_text.id." . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, true, 115), 115, $this->source))), "html", null, true);
echo "</h3>
\t\t\t\t\t";
// line 117
echo "\t\t\t\t\t";
$context["qb"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Product"), "getQueryBuilderBySearchData", [0 => ["category_id" => $context["category"]]], "method", false, false, true, 117);
// line 118
echo "\t\t\t\t\t";
$context["products"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["qb"]) || array_key_exists("qb", $context) ? $context["qb"] : (function () { throw new RuntimeError('Variable "qb" does not exist.', 118, $this->source); })()), "orderBy", [0 => "p.id", 1 => "ASC"], "method", false, false, true, 118), "setMaxResults", [0 => 99], "method", false, false, true, 118), "getQuery", [], "method", false, false, true, 118), "getResult", [], "method", false, false, true, 118);
// line 119
echo "\t\t\t\t\t<ul
\t\t\t\t\t\tclass=\"ec-shelfGrid\">
\t\t\t\t\t\t";
// line 121
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 121, $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 122
echo " \t\t\t\t\t\t";
// line 123
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 123) == 18)) {
// line 124
echo "\t\t\t\t\t\t\t<li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 125
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bib_detail", ["id" => 40, "id2" => 18]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
\t\t\t\t\t\t\t\t\t\t<img src=\"/html/user_data/assets/img/item/bib_regular_set_100ppm.png\" alt=\"";
// line 127
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 127), 127, $this->source), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 127) > 5)) {
echo " loading=\"lazy\" ";
}
echo ">
<div class=\"product_name product-list_title\">";
// line 128
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.product_list.subscription_100ppm"), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t</p>
</a>
\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 132
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bib_detail", ["id" => 40, "id2" => 18]), "html", null, true);
echo "\" class=\"ec-blackBtn--custom ec-blockBtn--action bib_detail_btn\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 133
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.btn.detail"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t</a>
</div>
\t\t\t\t\t</li>
\t\t\t\t\t";
} elseif ((twig_get_attribute($this->env, $this->source, // line 137
$context["Product"], "id", [], "any", false, false, true, 137) == 42)) {
// line 138
echo " \t\t\t\t\t<li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 139
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bib_detail_200ppm", ["id" => 38, "id2" => 42]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
\t\t\t\t\t\t\t\t\t\t<img src=\"/html/user_data/assets/img/item/bib_regular_set_200ppm.png\" alt=\"";
// line 141
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 141), 141, $this->source), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 141) > 5)) {
echo " loading=\"lazy\" ";
}
echo ">
<div class=\"product_name product-list_title\">
";
// line 143
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.product_list.subscription_200ppm"), "html", null, true);
echo "
<div class=\"product-tags plus_tag\">
<span class=\"tag tag_plus\">
<img src=\"/html/user_data/assets/img/item/tag_pllus.png\" alt=\"plus badge\">
</span>
</div>
</div>
\t\t\t\t\t\t\t\t\t</p>
</a>
\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 153
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bib_detail_200ppm", ["id" => 38, "id2" => 42]), "html", null, true);
echo "\" class=\"ec-blackBtn--custom ec-blockBtn--action bib_detail_btn\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 154
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.btn.detail"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t</a>
</div>
\t\t\t\t\t</li>
\t\t\t\t\t";
} elseif (((((twig_get_attribute($this->env, $this->source, // line 158
$context["Product"], "id", [], "any", false, false, true, 158) == 9) || (twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 158) == 36)) || (twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 158) == 38)) || (twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 158) == 40))) {
// line 159
echo " \t\t\t\t\t";
// line 160
echo " \t\t\t\t\t";
} else {
// line 161
echo " \t\t\t\t\t<li class=\"ec-shelfGrid__item ec-shelfGrid__item_category_";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, true, 161), 161, $this->source), "html", null, true);
echo "\"
\t\t\t\t\t";
// line 163
echo " \t\t\t\t\t";
// line 164
echo " \t\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 164) == 15)) {
// line 165
echo " \t\t\t\t\tstyle=\"order:-1\";
\t\t\t\t\t";
// line 167
echo " \t\t\t\t\t";
} elseif ((twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 167) == 19)) {
// line 168
echo " \t\t\t\t\tstyle=\"order:-3\";
\t\t\t\t\t";
// line 170
echo " \t\t\t\t\t";
} elseif ((twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 170) == 39)) {
// line 171
echo " \t\t\t\t\tstyle=\"order:-2\";
\t\t\t\t\t";
// line 173
echo " \t\t\t\t\t";
} elseif ((twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 173) == 10)) {
// line 174
echo " \t\t\t\t\tstyle=\"order:-2\";
\t\t\t\t\t";
// line 176
echo " \t\t\t\t\t";
} elseif ((twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 176) == 41)) {
// line 177
echo " \t\t\t\t\tstyle=\"order:-1\";
\t\t\t\t\t";
}
// line 179
echo " \t\t\t\t\t>
<a href=\"";
// line 180
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, true, 180)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
\t\t\t\t\t\t\t\t\t\t<img src=\"";
// line 182
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "main_list_image", [], "any", false, false, true, 182), 182, $this->source)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 182), 182, $this->source), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 182) > 5)) {
echo " loading=\"lazy\" ";
}
echo ">
<div class=\"product_name product-list_title\">
";
// line 185
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\SimpleProductTranslationExtension']->translateProductName($this->sandbox->ensureToStringAllowed($context["Product"], 185, $this->source)), "html", null, true);
echo "
<div class=\"product-tags plus_tag\">
";
// line 187
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "tags", [], "any", false, false, true, 187));
foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
// line 188
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["tag"], "id", [], "any", false, false, true, 188) == 7)) {
// line 189
echo " <span class=\"tag tag_plus\">
<img src=\"/html/user_data/assets/img/item/tag_pllus.png\" alt=\"plus badge\">
</span>
";
}
// line 193
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 194
echo " </div>
";
// line 196
echo " ";
$context["is_favorite"] = ((twig_get_attribute($this->env, $this->source, ($context["favorites"] ?? null), twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 196), [], "array", true, true, true, 196)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["favorites"] ?? null), twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 196), [], "array", false, false, true, 196), 196, $this->source), false)) : (false));
// line 197
echo " ";
// line 198
echo " ";
// line 199
echo " ";
// line 200
echo " ";
// line 201
echo " ";
// line 202
echo " ";
// line 203
echo " ";
// line 204
echo " ";
// line 205
echo " ";
// line 206
echo " ";
// line 207
echo " ";
// line 208
echo " </div>
\t\t\t\t\t\t\t\t\t</p>
</a>
\t\t\t\t\t\t\t\t\t<div class=\"list_detail_block\" style=\"line-height:1.7;\">
\t\t\t\t\t\t\t\t\t\t";
// line 212
if (twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, true, 212)) {
// line 213
echo "\t\t\t\t\t\t\t\t\t\t\t<p>";
echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, true, 213), 213, $this->source));
echo "</p>
\t\t\t\t\t\t\t\t\t\t";
}
// line 215
echo "\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t<p class=\"price02-default price_default_text\" style=\"line-height:1.3;margin-bottom: 12px;\">
\t\t\t\t\t\t\t\t\t\t\t<span class=\"web_price_text\">";
// line 217
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.product_list.web_member_price"), "html", null, true);
echo "</span>
\t\t\t\t\t\t\t\t\t\t\t";
// line 218
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "tags", [], "any", false, false, true, 218));
foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
// line 219
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
if (((twig_get_attribute($this->env, $this->source, $context["tag"], "id", [], "any", false, false, true, 219) != 1) && (twig_get_attribute($this->env, $this->source, $context["tag"], "id", [], "any", false, false, true, 219) != 7))) {
// line 220
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 221
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 222
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 223
echo "\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 224
echo "\t\t\t\t\t\t\t\t\t\t\t<br>";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 224), 224, $this->source)), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.product_list.tax_included"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t";
// line 227
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, true, 227)) {
// line 228
echo "\t\t\t\t\t\t\t\t\t\t\t";
$context["form"] = twig_get_attribute($this->env, $this->source, (isset($context["forms"]) || array_key_exists("forms", $context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.', 228, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 228), [], "array", false, false, true, 228);
// line 229
echo "\t\t\t\t\t\t\t\t\t\t\t<form class=\"add-cart-form\" name=\"form";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 229), 229, $this->source), "html", null, true);
echo "\" id=\"productForm";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 229), 229, $this->source), "html", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 229)]), "html", null, true);
echo "\" method=\"post\" class=\"cart_form\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__actions\">
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 231
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 231)) {
// line 232
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-select\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 233
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 233, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 233), 233, $this->source), 'widget');
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 234
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 234, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 234), 234, $this->source), 'errors');
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 236
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 236)) {
// line 237
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-select\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 238
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 238, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 238), 238, $this->source), 'widget');
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 239
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 239, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 239), 239, $this->source), 'errors');
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 242
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 243
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-numberInput\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"height:30px; display:inline-block;\">";
// line 244
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.product_list.quantity"), "html", null, true);
echo "</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 245
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 245, $this->source); })()), "quantity", [], "any", false, false, true, 245), 245, $this->source), 'widget', ["attr" => ["class" => "quantity"]]);
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 246
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 246, $this->source); })()), "quantity", [], "any", false, false, true, 246), 246, $this->source), 'errors');
echo "
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 249
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 249, $this->source); })()), 249, $this->source), 'rest');
echo "
\t\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t\t</div>
";
// line 252
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 252) == 9)) {
// line 253
echo " <div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 254
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bib_detail", ["id" => 9, "id2" => 18]), "html", null, true);
echo "\" class=\"ec-blockBtn--action bib_detail_btn\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 255
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.btn.detail"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t</a>
</div>
";
} else {
// line 259
echo "\t\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
// line 260
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 260), 260, $this->source), "html", null, true);
echo "\" form=\"productForm";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 260), 260, $this->source), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 261
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.product.add_cart"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t\t</div>
";
}
// line 265
echo "\t\t\t\t\t\t\t\t";
} else {
// line 266
echo "\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 269
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.block.product_list.out_of_stock"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t";
}
// line 273
echo " \t\t\t\t\t</li>
\t\t\t\t\t";
}
// line 275
echo "\t\t\t\t";
++$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 276
echo "\t\t\t</ul>
\t";
++$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['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 278
echo "</div>
<div class=\"ec-modal\">
\t<div class=\"ec-modal-overlay\">
\t\t<div class=\"ec-modal-wrap\">
\t\t\t<span class=\"ec-modal-close\">
\t\t\t\t<span class=\"ec-icon\"><img src=\"";
// line 283
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>
\t\t\t</span>
\t\t\t<div id=\"ec-modal-header\" class=\"text-center\">";
// line 285
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.btn.added_cart"), "html", null, true);
echo "</div>
\t\t\t<div class=\"ec-modal-box list-modal-box\">
\t\t\t\t<div class=\"ec-role list-role\">
\t\t\t\t <span class=\"ec-blockBtn--cancel ec-inlineBtn--cancel\">";
// line 288
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.btn.continue_shopping"), "html", null, true);
echo "</span>
\t\t\t\t\t<a href=\"";
// line 289
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\" class=\"ec-blockBtn--action ec-inlineBtn--action\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html", null, true);
echo "</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</div>
<div class=\"ec-pagerRole\">
\t";
// line 296
$this->loadTemplate("pager.twig", "Product/list.twig", 296)->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.', 296, $this->source); })()), "paginationData", [], "any", false, false, true, 296)]));
// line 297
echo "</div>";
}
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Product/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 731 => 297, 729 => 296, 717 => 289, 713 => 288, 707 => 285, 702 => 283, 695 => 278, 680 => 276, 666 => 275, 662 => 273, 655 => 269, 650 => 266, 647 => 265, 640 => 261, 634 => 260, 631 => 259, 624 => 255, 620 => 254, 617 => 253, 615 => 252, 609 => 249, 603 => 246, 599 => 245, 595 => 244, 592 => 243, 589 => 242, 583 => 239, 579 => 238, 576 => 237, 574 => 236, 569 => 234, 565 => 233, 562 => 232, 560 => 231, 550 => 229, 547 => 228, 545 => 227, 537 => 224, 531 => 223, 528 => 222, 526 => 221, 524 => 220, 521 => 219, 517 => 218, 513 => 217, 509 => 215, 503 => 213, 501 => 212, 495 => 208, 493 => 207, 491 => 206, 489 => 205, 487 => 204, 485 => 203, 483 => 202, 481 => 201, 479 => 200, 477 => 199, 475 => 198, 473 => 197, 470 => 196, 467 => 194, 461 => 193, 455 => 189, 452 => 188, 448 => 187, 442 => 185, 431 => 182, 426 => 180, 423 => 179, 419 => 177, 416 => 176, 413 => 174, 410 => 173, 407 => 171, 404 => 170, 401 => 168, 398 => 167, 395 => 165, 392 => 164, 390 => 163, 385 => 161, 382 => 160, 380 => 159, 378 => 158, 371 => 154, 367 => 153, 354 => 143, 345 => 141, 340 => 139, 337 => 138, 335 => 137, 328 => 133, 324 => 132, 317 => 128, 309 => 127, 304 => 125, 301 => 124, 298 => 123, 296 => 122, 279 => 121, 275 => 119, 272 => 118, 269 => 117, 262 => 115, 244 => 114, 241 => 113, 238 => 112, 234 => 110, 232 => 109, 222 => 108, 178 => 73, 171 => 69, 144 => 45, 118 => 21, 102 => 20, 95 => 19, 78 => 18, 74 => 16, 64 => 15, 53 => 11, 51 => 13, 38 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block javascript %}
\t<script>
\t\teccube.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('.cart_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()
});
window.onload = function() {
// product_nameクラスの要素を全て取得
var elements = document.getElementsByClassName('product_name');
var maxHeight = 0;
// 最大の高さを見つける
for (var i = 0; i < elements.length; i++) {
if (elements[i].offsetHeight > maxHeight) {
maxHeight = elements[i].offsetHeight;
}
}
// 全てのproduct_name要素の高さを最大の高さに設定
for (var i = 0; i < elements.length; i++) {
elements[i].style.height = maxHeight + 'px';
}
};
\t</script>
{% endblock %}
{% block main %}
{% if search_form.category_id.vars.errors|length > 0 %}
\t
{% else %}
\t\t{% if pagination.totalItemCount > 0 %}
\t\t\t<div class=\"ec-shelfRole\"> {% set categories = repository('Eccube\\\\Entity\\\\Category').getList() %}
\t\t\t{% for category in categories%}
\t\t\t\t\t<h3 id=\"cat_{{ category.id }}\">{{ ('front.block.category.list_text.id.' ~ category.id)|trans }}</h3>
\t\t\t\t\t{# カテゴリー名 #}
\t\t\t\t\t{% set qb = repository(\"Eccube\\\\Entity\\\\Product\").getQueryBuilderBySearchData({'category_id': category}) %}
\t\t\t\t\t{% set products = qb.orderBy('p.id', 'ASC').setMaxResults(99).getQuery().getResult() %}
\t\t\t\t\t<ul
\t\t\t\t\t\tclass=\"ec-shelfGrid\">
\t\t\t\t\t\t{% for key, Product in products %}
\t\t\t\t\t\t{#定期商品は詳細画面へ移動#}
{% if Product.id == 18 %}
\t\t\t\t\t\t\t<li class=\"ec-shelfGrid__item\">
<a href=\"{{ url('bib_detail', {'id': 40, 'id2': 18}) }}\">
\t\t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
\t\t\t\t\t\t\t\t\t\t<img src=\"/html/user_data/assets/img/item/bib_regular_set_100ppm.png\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\" {% endif %}>
<div class=\"product_name product-list_title\">{{ 'front.block.product_list.subscription_100ppm'|trans }}</div>
\t\t\t\t\t\t\t\t\t</p>
</a>
\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t\t\t\t<a href=\"{{ url('bib_detail', {'id': 40, 'id2': 18}) }}\" class=\"ec-blackBtn--custom ec-blockBtn--action bib_detail_btn\">
\t\t\t\t\t\t\t\t\t\t\t{{ 'common.btn.detail'|trans }}
\t\t\t\t\t\t\t\t\t\t</a>
</div>
\t\t\t\t\t</li>
\t\t\t\t\t{% elseif Product.id == 42 %}
\t\t\t\t\t<li class=\"ec-shelfGrid__item\">
<a href=\"{{ url('bib_detail_200ppm', {'id': 38, 'id2': 42}) }}\">
\t\t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
\t\t\t\t\t\t\t\t\t\t<img src=\"/html/user_data/assets/img/item/bib_regular_set_200ppm.png\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\" {% endif %}>
<div class=\"product_name product-list_title\">
{{ 'front.block.product_list.subscription_200ppm'|trans }}
<div class=\"product-tags plus_tag\">
<span class=\"tag tag_plus\">
<img src=\"/html/user_data/assets/img/item/tag_pllus.png\" alt=\"plus badge\">
</span>
</div>
</div>
\t\t\t\t\t\t\t\t\t</p>
</a>
\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t\t\t\t<a href=\"{{ url('bib_detail_200ppm', {'id': 38, 'id2': 42}) }}\" class=\"ec-blackBtn--custom ec-blockBtn--action bib_detail_btn\">
\t\t\t\t\t\t\t\t\t\t\t{{ 'common.btn.detail'|trans }}
\t\t\t\t\t\t\t\t\t\t</a>
</div>
\t\t\t\t\t</li>
\t\t\t\t\t{% elseif Product.id == 9 or Product.id == 36 or Product.id == 38 or Product.id == 40 %}
\t\t\t\t\t{#通常定期アイテムは非表示#}
\t\t\t\t\t{% else %}
\t\t\t\t\t<li class=\"ec-shelfGrid__item ec-shelfGrid__item_category_{{category.id}}\"
\t\t\t\t\t{#表示順番制御#}
\t\t\t\t\t{#プラスパック#}
\t\t\t\t\t{% if Product.id == 15 %}
\t\t\t\t\tstyle=\"order:-1\";
\t\t\t\t\t{#つめかえ用 BIB 10L(200ppm)#}
\t\t\t\t\t{% elseif Product.id == 19 %}
\t\t\t\t\tstyle=\"order:-3\";
\t\t\t\t\t{#つめかえ用 パウチ 800mL(200ppm)#}
\t\t\t\t\t{% elseif Product.id == 39 %}
\t\t\t\t\tstyle=\"order:-2\";
\t\t\t\t\t{#つめかえ用 BIB 10L#}
\t\t\t\t\t{% elseif Product.id == 10%}
\t\t\t\t\tstyle=\"order:-2\";
\t\t\t\t\t{#つめかえ用 パウチ 800mL#}
\t\t\t\t\t{% elseif Product.id == 41%}
\t\t\t\t\tstyle=\"order:-1\";
\t\t\t\t\t{% endif %}
\t\t\t\t\t>
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
\t\t\t\t\t\t\t\t\t<p class=\"ec-shelfGrid__item-image\">
\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\" {% endif %}>
<div class=\"product_name product-list_title\">
{# {{ Product.name }} #}
{{ Product|trans_product_name }}
<div class=\"product-tags plus_tag\">
{% for tag in Product.tags %}
{% if tag.id == 7 %}
<span class=\"tag tag_plus\">
<img src=\"/html/user_data/assets/img/item/tag_pllus.png\" alt=\"plus badge\">
</span>
{% endif %}
{% endfor %}
</div>
{# お気に入り状態を安全に判定する #}
{% set is_favorite = favorites[Product.id]|default(false) %}
{#<form action=\"{{ url('product_add_favorite_list', {id:Product.id}) }}\" method=\"post\" class=\"favorite_form\">#}
{# {% if is_favorite %}#}
{# <button type=\"submit\" id=\"favorite-{{ Product.id }}\" class=\"product_favorite_btn favorited\" disabled=\"disabled\">#}
{# <i class=\"fas fa-heart\"></i>#}
{# </button>#}
{# {% else %}#}
{# <button type=\"submit\" id=\"favorite-{{ Product.id }}\" class=\"product_favorite_btn\">#}
{# <i class=\"far fa-heart\"></i>#}
{# </button>#}
{# {% endif %}#}
{#</form>#}
</div>
\t\t\t\t\t\t\t\t\t</p>
</a>
\t\t\t\t\t\t\t\t\t<div class=\"list_detail_block\" style=\"line-height:1.7;\">
\t\t\t\t\t\t\t\t\t\t{% if Product.description_list %}
\t\t\t\t\t\t\t\t\t\t\t<p>{{ Product.description_list|raw|nl2br }}</p>
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t<p class=\"price02-default price_default_text\" style=\"line-height:1.3;margin-bottom: 12px;\">
\t\t\t\t\t\t\t\t\t\t\t<span class=\"web_price_text\">{{ 'front.block.product_list.web_member_price'|trans }}</span>
\t\t\t\t\t\t\t\t\t\t\t{% for tag in Product.tags %}
\t\t\t\t\t\t\t\t\t\t\t\t{% if tag.id != 1 and tag.id != 7 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{#タグは非表示#}
\t\t\t\t\t\t\t\t\t\t\t\t\t{#<span class=\"product-tag-new\">{{ tag.name }}</span>#}
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t<br>{{ Product.getPrice02IncTaxMin|price }}{{ 'front.block.product_list.tax_included'|trans }}
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t{% if Product.stock_find %}
\t\t\t\t\t\t\t\t\t\t\t{% set form = forms[Product.id] %}
\t\t\t\t\t\t\t\t\t\t\t<form class=\"add-cart-form\" name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" class=\"cart_form\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__actions\">
\t\t\t\t\t\t\t\t\t\t\t\t\t{% if form.classcategory_id1 is defined %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-select\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_widget(form.classcategory_id1) }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_errors(form.classcategory_id1) }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if form.classcategory_id2 is defined %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-select\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_widget(form.classcategory_id2) }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_errors(form.classcategory_id2) }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ec-numberInput\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"height:30px; display:inline-block;\">{{ 'front.block.product_list.quantity'|trans }}</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ form_errors(form.quantity) }}
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t{{ form_rest(form) }}
\t\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t\t</div>
{% if Product.id == 9 %}
<div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ url('bib_detail', {'id': 9, 'id2': 18}) }}\" class=\"ec-blockBtn--action bib_detail_btn\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ 'common.btn.detail'|trans }}
\t\t\t\t\t\t\t\t\t\t\t</a>
</div>
{% else %}
\t\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
\t\t\t\t\t\t\t\t\t\t\t\t{{ 'front.product.add_cart'|trans }}
\t\t\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t\t</div>
{% endif %}
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\">
\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
\t\t\t\t\t\t\t\t\t\t\t{{ 'front.block.product_list.out_of_stock'|trans }}
\t\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</li>
\t\t\t\t\t{% endif %}
\t\t\t\t{% endfor %}
\t\t\t</ul>
\t{% endfor %}
</div>
<div class=\"ec-modal\">
\t<div class=\"ec-modal-overlay\">
\t\t<div class=\"ec-modal-wrap\">
\t\t\t<span class=\"ec-modal-close\">
\t\t\t\t<span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span>
\t\t\t</span>
\t\t\t<div id=\"ec-modal-header\" class=\"text-center\">{{ 'common.btn.added_cart'|trans }}</div>
\t\t\t<div class=\"ec-modal-box list-modal-box\">
\t\t\t\t<div class=\"ec-role list-role\">
\t\t\t\t <span class=\"ec-blockBtn--cancel ec-inlineBtn--cancel\">{{ 'common.btn.continue_shopping'|trans }}</span>
\t\t\t\t\t<a href=\"{{ url('cart') }}\" class=\"ec-blockBtn--action ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</div>
<div class=\"ec-pagerRole\">
\t{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
</div>{% endif %}{% endif %}{% endblock %}", "Product/list.twig", "/home/aonchappy/aonchappy.xsrv.jp/public_html/app/template/default/Product/list.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "for" => 18, "if" => 20, "include" => 296);
static $filters = array("escape" => 19, "raw" => 19, "trans" => 45, "length" => 109, "no_image_product" => 182, "trans_product_name" => 185, "default" => 196, "nl2br" => 213, "price" => 224);
static $functions = array("class_categories_as_json" => 19, "url" => 69, "repository" => 113, "asset" => 182, "form_widget" => 233, "form_errors" => 234, "form_rest" => 249);
try {
$this->sandbox->checkSecurity(
['set', 'for', 'if', 'include'],
['escape', 'raw', 'trans', 'length', 'no_image_product', 'trans_product_name', 'default', 'nl2br', 'price'],
['class_categories_as_json', 'url', 'repository', 'asset', 'form_widget', 'form_errors', 'form_rest']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}