<?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_brand.twig */
class __TwigTemplate_19ad15acc71a350ba4aed09673729c3941d396287ead9aa8d9b491d27219c4cf extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list_brand.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list_brand.twig"));
// line 3
$context["body_class"] = "product_page";
// line 1
$this->parent = $this->loadTemplate("default_frame.twig", "Product/list_brand.twig", 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 "
";
// line 93
echo " <div class=\"seach_resutl seach_resutl__sp\">
<ul class=\"seach_resutl__list\">
";
// line 96
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.', 96, $this->source); })()), "vars", [], "any", false, false, false, 96), "value", [], "any", false, false, false, 96) && 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.', 96, $this->source); })()), "vars", [], "any", false, false, false, 96), "value", [], "any", false, false, false, 96), "name", [], "any", false, false, false, 96))) {
// line 97
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.', 97, $this->source); })()), "vars", [], "any", false, false, false, 97), "value", [], "any", false, false, false, 97), "name", [], "any", false, false, false, 97)]), "html", null, true);
echo "</li>
";
}
// line 99
echo "
";
// line 101
echo " ";
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 101, $this->source); })()))) {
// line 102
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.', 102, $this->source); })()), "path", [], "any", false, false, false, 102));
foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
// line 103
echo " ";
// line 104
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, false, 104) != 34) && (twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, false, 104) != 7))) {
// line 105
echo " ";
$context["current_id"] = twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, false, 105);
// line 106
echo " ";
$context["current_name"] = twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 106);
// line 107
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.', 107, $this->source); })()), "html", null, true);
echo "</li>
";
}
// line 109
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 110
echo " ";
}
// line 111
echo "
";
// line 113
echo " ";
if (array_key_exists("ProductItems", $context)) {
// line 114
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.', 114, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["ProductItem"]) {
// line 115
echo " ";
$context["name"] = ("productplus_" . twig_get_attribute($this->env, $this->source, $context["ProductItem"], "id", [], "any", false, false, false, 115));
// line 116
echo "
";
// line 117
if ((twig_get_attribute($this->env, $this->source, $context["ProductItem"], "input_type", [], "any", false, false, false, 117) >= twig_constant("Plugin\\ProductPlus42\\Entity\\ProductItem::SELECT_TYPE"))) {
// line 118
echo "
";
// line 119
$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.', 119, $this->source); })()), (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 119, $this->source); })()), [], "array", false, false, false, 119), "vars", [], "any", false, false, false, 119), "choices", [], "any", false, false, false, 119));
foreach ($context['_seq'] as $context["_key"] => $context["choice"]) {
// line 120
echo " ";
if (twig_in_filter(twig_get_attribute($this->env, $this->source, $context["choice"], "value", [], "any", false, false, false, 120), 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.', 120, $this->source); })()), (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 120, $this->source); })()), [], "array", false, false, false, 120), "vars", [], "any", false, false, false, 120), "data", [], "any", false, false, false, 120))) {
// line 121
echo " <li>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["choice"], "label", [], "any", false, false, false, 121), "html", null, true);
echo "</li>
";
}
// line 123
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 124
echo "
";
} else {
// line 126
echo "
";
}
// line 128
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 129
echo " ";
}
// line 130
echo "
";
// line 132
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.', 132, $this->source); })()), "hmin", [], "any", false, false, false, 132) || 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.', 132, $this->source); })()), "hmax", [], "any", false, false, false, 132))) {
// line 133
echo " <li>
高さ
";
// line 135
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.', 135, $this->source); })()), "hmin", [], "any", false, false, false, 135)) {
// line 136
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.', 136, $this->source); })()), "hmin", [], "any", false, false, false, 136), "html", null, true);
echo "mm
";
}
// line 138
echo " <span>~</span>
";
// line 139
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.', 139, $this->source); })()), "hmax", [], "any", false, false, false, 139)) {
// line 140
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.', 140, $this->source); })()), "hmax", [], "any", false, false, false, 140), "html", null, true);
echo "mm
";
}
// line 142
echo " </li>
";
}
// line 144
echo "
";
// line 146
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.', 146, $this->source); })()), "wmin", [], "any", false, false, false, 146) || 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.', 146, $this->source); })()), "wmax", [], "any", false, false, false, 146))) {
// line 147
echo " <li>
幅
";
// line 149
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.', 149, $this->source); })()), "wmin", [], "any", false, false, false, 149)) {
// line 150
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.', 150, $this->source); })()), "wmin", [], "any", false, false, false, 150), "html", null, true);
echo "mm
";
}
// line 152
echo " <span>~</span>
";
// line 153
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.', 153, $this->source); })()), "wmax", [], "any", false, false, false, 153)) {
// line 154
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.', 154, $this->source); })()), "wmax", [], "any", false, false, false, 154), "html", null, true);
echo "mm
";
}
// line 156
echo " </li>
";
}
// line 158
echo "
";
// line 160
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.', 160, $this->source); })()), "pmin", [], "any", false, false, false, 160), "vars", [], "any", false, false, false, 160), "value", [], "any", false, false, false, 160) != "") || (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.', 160, $this->source); })()), "pmax", [], "any", false, false, false, 160), "vars", [], "any", false, false, false, 160), "value", [], "any", false, false, false, 160) != ""))) {
// line 161
echo " <li>
";
// line 162
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) != "")) {
// line 163
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.', 163, $this->source); })()), "pmin", [], "any", false, false, false, 163), "vars", [], "any", false, false, false, 163), "value", [], "any", false, false, false, 163)), "html", null, true);
echo "円
";
}
// line 165
echo " <span>~</span>
";
// line 166
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.', 166, $this->source); })()), "pmax", [], "any", false, false, false, 166), "vars", [], "any", false, false, false, 166), "value", [], "any", false, false, false, 166) != "")) {
// line 167
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.', 167, $this->source); })()), "pmax", [], "any", false, false, false, 167), "vars", [], "any", false, false, false, 167), "value", [], "any", false, false, false, 167)), "html", null, true);
echo "円
";
}
// line 169
echo " </li>
";
}
// line 171
echo " </ul>
";
// line 173
echo " <a class=\"searchResetLink\">検索クリア</a>
</div><!--/.seach_resutl-->
";
// line 177
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 177, $this->source); })()), "category_id", [], "any", false, false, false, 177), "vars", [], "any", false, false, false, 177), "errors", [], "any", false, false, false, 177)) > 0)) {
// line 178
echo " <div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">";
// line 179
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
</div>
";
} else {
// line 182
echo "
<div class=\"ec-searchnavRole\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 185
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["search_form"]) || array_key_exists("search_form", $context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.', 185, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 186
echo " <input type=\"hidden\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 186), "id", [], "any", false, false, false, 186), "html", null, true);
echo "\"
name=\"";
// line 187
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 187), "full_name", [], "any", false, false, false, 187), "html", null, true);
echo "\"
";
// line 188
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 188), "value", [], "any", false, false, false, 188))) {
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, 188), "value", [], "any", false, false, false, 188), "html", null, true);
echo "\" ";
}
echo "/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 190
echo " </form>
<div class=\"ec-searchnavRole__infos\">
<div class=\"ec-searchnavRole__counter\">
";
// line 194
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.', 194, $this->source); })()), "totalItemCount", [], "any", false, false, false, 194) > 0)) {
// line 195
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.', 195, $this->source); })()), "totalItemCount", [], "any", false, false, false, 195)]);
echo "
";
} else {
// line 197
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html", null, true);
echo "</span>
";
}
// line 199
echo " </div>
";
// line 200
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.', 200, $this->source); })()), "totalItemCount", [], "any", false, false, false, 200) > 0)) {
// line 201
echo " <div class=\"ec-searchnavRole__actions\">
<div class=\"ec-select\">
";
// line 203
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.', 203, $this->source); })()), "disp_number", [], "any", false, false, false, 203), 'widget', ["id" => "", "attr" => ["class" => "disp-number"]]);
echo "
";
// line 204
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.', 204, $this->source); })()), "orderby", [], "any", false, false, false, 204), 'widget', ["id" => "", "attr" => ["class" => "order-by"]]);
echo "
</div>
</div>
";
}
// line 208
echo " </div>
</div>
";
// line 211
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.', 211, $this->source); })()), "totalItemCount", [], "any", false, false, false, 211) > 0)) {
// line 212
echo " <div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
";
// line 214
$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.', 214, $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 215
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 216
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, 216)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"";
// line 218
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, 218)), "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, 218), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 218) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
</p>
<p>";
// line 220
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 220), "html", null, true);
echo "</p>
";
// line 221
if (twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 221)) {
// line 222
echo " <p>";
echo twig_nl2br(twig_get_attribute($this->env, $this->source, $context["Product"], "description_list", [], "any", false, false, false, 222));
echo "</p>
";
}
// line 224
echo " <p class=\"price02-default\">
";
// line 225
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 225)) {
// line 226
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 226) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 226))) {
// line 227
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, 227)), "html", null, true);
echo "
";
} else {
// line 229
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, 229)), "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, 229)), "html", null, true);
echo "
";
}
// line 231
echo " ";
} else {
// line 232
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, 232)), "html", null, true);
echo "
";
}
// line 234
echo " </p>
</a>
</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 238
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 243
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 244
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 247
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 248
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 255
$this->loadTemplate("pager.twig", "Product/list_brand.twig", 255)->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.', 255, $this->source); })()), "paginationData", [], "any", false, false, false, 255)]));
// line 256
echo " </div>
";
}
// line 258
echo " ";
}
// line 259
echo "
<a class=\"sp_filtter_btn\">
<img src=\"";
// line 261
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 "Product/list_brand.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 673 => 261, 669 => 259, 666 => 258, 662 => 256, 660 => 255, 648 => 248, 644 => 247, 638 => 244, 634 => 243, 627 => 238, 610 => 234, 604 => 232, 601 => 231, 593 => 229, 587 => 227, 584 => 226, 582 => 225, 579 => 224, 573 => 222, 571 => 221, 567 => 220, 556 => 218, 551 => 216, 548 => 215, 531 => 214, 527 => 212, 525 => 211, 520 => 208, 513 => 204, 509 => 203, 505 => 201, 503 => 200, 500 => 199, 494 => 197, 488 => 195, 486 => 194, 480 => 190, 468 => 188, 464 => 187, 459 => 186, 455 => 185, 450 => 182, 444 => 179, 441 => 178, 439 => 177, 433 => 173, 430 => 171, 426 => 169, 420 => 167, 418 => 166, 415 => 165, 409 => 163, 407 => 162, 404 => 161, 401 => 160, 398 => 158, 394 => 156, 388 => 154, 386 => 153, 383 => 152, 377 => 150, 375 => 149, 371 => 147, 368 => 146, 365 => 144, 361 => 142, 355 => 140, 353 => 139, 350 => 138, 344 => 136, 342 => 135, 338 => 133, 335 => 132, 332 => 130, 329 => 129, 323 => 128, 319 => 126, 315 => 124, 309 => 123, 303 => 121, 300 => 120, 296 => 119, 293 => 118, 291 => 117, 288 => 116, 285 => 115, 280 => 114, 277 => 113, 274 => 111, 271 => 110, 265 => 109, 259 => 107, 256 => 106, 253 => 105, 250 => 104, 248 => 103, 243 => 102, 240 => 101, 237 => 99, 231 => 97, 228 => 96, 224 => 93, 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 %}
{# 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>
{# リセットボタン #}
<a class=\"searchResetLink\">検索クリア</a>
</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 %}
<input type=\"hidden\" id=\"{{ item.vars.id }}\"
name=\"{{ item.vars.full_name }}\"
{% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
{% endfor %}
</form>
<div class=\"ec-searchnavRole__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>
</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 %}
<a class=\"sp_filtter_btn\">
<img src=\"{{ asset('assets/img/common/plus_icon.png') }}\">
<span class=\"txt\">絞り込み</span>
</a>
{% endblock %}
", "Product/list_brand.twig", "/home/xs626321/ikus.furniture/public_html/dev/app/template/default/Product/list_brand.twig");
}
}