<?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_7c806499883f3499398b789290dc138c extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'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
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 13, $this->source); })()))) {
// line 14
if (((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.', 14, $this->source); })()), "id", [], "any", false, false, true, 14) == 7) && twig_in_filter(14, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 14, $this->source); })()), "ball-type", [], "array", false, false, true, 14)))) {
// line 15
$context["subtitle"] = "持ち込みボール";
} elseif (((twig_get_attribute($this->env, $this->source, // line 16
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 16, $this->source); })()), "id", [], "any", false, false, true, 16) == 7) && twig_in_filter(11, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 16, $this->source); })()), "ball-type", [], "array", false, false, true, 16)))) {
// line 17
$context["subtitle"] = "スリクソン";
} elseif (((twig_get_attribute($this->env, $this->source, // line 18
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 18, $this->source); })()), "id", [], "any", false, false, true, 18) == 7) && twig_in_filter(12, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 18, $this->source); })()), "ball-type", [], "array", false, false, true, 18)))) {
// line 19
$context["subtitle"] = "ゼクシオ";
} elseif (((twig_get_attribute($this->env, $this->source, // line 20
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 20, $this->source); })()), "id", [], "any", false, false, true, 20) == 7) && twig_in_filter(13, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 20, $this->source); })()), "ball-type", [], "array", false, false, true, 20)))) {
// line 21
$context["subtitle"] = "ツアースペシャル";
}
// line 23
if (((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.', 23, $this->source); })()), "id", [], "any", false, false, true, 23) == 9) && twig_in_filter(15, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 23, $this->source); })()), "design-cate", [], "array", false, false, true, 23)))) {
// line 24
$context["subtitle"] = "誕生日祝い";
} elseif (((twig_get_attribute($this->env, $this->source, // line 25
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 25, $this->source); })()), "id", [], "any", false, false, true, 25) == 9) && twig_in_filter(16, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 25, $this->source); })()), "design-cate", [], "array", false, false, true, 25)))) {
// line 26
$context["subtitle"] = "定年退職祝い";
} elseif (((twig_get_attribute($this->env, $this->source, // line 27
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 27, $this->source); })()), "id", [], "any", false, false, true, 27) == 9) && twig_in_filter(17, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 27, $this->source); })()), "design-cate", [], "array", false, false, true, 27)))) {
// line 28
$context["subtitle"] = "還暦祝い";
} elseif (((twig_get_attribute($this->env, $this->source, // line 29
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 29, $this->source); })()), "id", [], "any", false, false, true, 29) == 9) && twig_in_filter(18, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 29, $this->source); })()), "design-cate", [], "array", false, false, true, 29)))) {
// line 30
$context["subtitle"] = "コンペ景品";
} elseif (((twig_get_attribute($this->env, $this->source, // line 31
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 31, $this->source); })()), "id", [], "any", false, false, true, 31) == 9) && twig_in_filter(19, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 31, $this->source); })()), "design-cate", [], "array", false, false, true, 31)))) {
// line 32
$context["subtitle"] = "父の日祝い";
} elseif (((twig_get_attribute($this->env, $this->source, // line 33
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 33, $this->source); })()), "id", [], "any", false, false, true, 33) == 9) && twig_in_filter(20, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 33, $this->source); })()), "design-cate", [], "array", false, false, true, 33)))) {
// line 34
$context["subtitle"] = "母の日祝い";
} elseif (((twig_get_attribute($this->env, $this->source, // line 35
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 35, $this->source); })()), "id", [], "any", false, false, true, 35) == 9) && twig_in_filter(21, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 35, $this->source); })()), "design-cate", [], "array", false, false, true, 35)))) {
// line 36
$context["subtitle"] = "GOLFPRINT オリジナル";
}
}
// line 41
$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 43
public function block_stylesheet($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", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 44
echo " <style>
#modalWrapAlert {
display: none;
background: 0 0;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 100;
overflow: hidden
}
.modalBoxAlert {
position: fixed;
width: 85%;
max-width: 420px;
height: 0;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
overflow: hidden;
opacity: 1;
display: none;
border-radius: 3px;
z-index: 1000
}
.modalInnerAlert {
padding: 10px;
text-align: center;
box-sizing: border-box;
background: rgba(0, 0, 0, .7);
color: #fff
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 84
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 85
echo " <script>
eccube.productsClassCategories = {
";
// line 87
$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.', 87, $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 88
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, 88), 88, $this->source), "js"), "html", null, true);
echo "\": ";
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 88, $this->source));
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 88) == false)) {
echo ", ";
}
// line 89
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 90
echo " };
\$(function() {
// 表示件数を変更
\$('.disp-number').change(function() {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
checkAndSetVal();
\$(\"#form1\").submit();
});
// 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
checkAndSetVal();
\$(\"#form1\").submit();
});
";
// line 113
echo " \$('.ball_type').change(function() {
let selCnt = 0;
const ballType = document.forms.formSelPC.ball_type;
for( let i=0; i < ballType.length; i++ ) {
if( ballType[i].checked ) {
selCnt++;
}
}
if( selCnt == ballType.length ) {
for( let i=0; i < ballType.length; i++ ) {
ballType[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
\$('.ball_nums').change(function() {
let selCnt = 0;
const ballNums = document.forms.formSelPC.ball_nums;
for( let i=0; i < ballNums.length; i++ ) {
if( ballNums[i].checked ) {
selCnt++;
}
}
if( selCnt == ballNums.length ) {
for( let i=0; i < ballNums.length; i++ ) {
ballNums[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
\$('.ball_price').change(function() {
let selCnt = 0;
const ballPrice = document.forms.formSelPC.ball_price;
for( let i=0; i < ballPrice.length; i++ ) {
if( ballPrice[i].checked ) {
selCnt++;
}
}
if( selCnt == ballPrice.length ) {
for( let i=0; i < ballPrice.length; i++ ) {
ballPrice[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
\$('.ball_type_sp').change(function() {
let selCnt = 0;
const ballType = document.forms.formSelSP.ball_type;
for( let i=0; i < ballType.length; i++ ) {
if( ballType[i].checked ) {
selCnt++;
}
}
if( selCnt == ballType.length ) {
for( let i=0; i < ballType.length; i++ ) {
ballType[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
\$('.ball_nums_sp').change(function() {
let selCnt = 0;
const ballNums = document.forms.formSelSP.ball_nums;
for( let i=0; i < ballNums.length; i++ ) {
if( ballNums[i].checked ) {
selCnt++;
}
}
if( selCnt == ballNums.length ) {
for( let i=0; i < ballNums.length; i++ ) {
ballNums[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
\$('.ball_price_sp').change(function() {
let selCnt = 0;
const ballPrice = document.forms.formSelSP.ball_price;
for( let i=0; i < ballPrice.length; i++ ) {
if( ballPrice[i].checked ) {
selCnt++;
}
}
if( selCnt == ballPrice.length ) {
for( let i=0; i < ballPrice.length; i++ ) {
ballPrice[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
";
// line 216
echo "
";
// line 218
echo " \$('.design_cate').change(function() {
let selCnt = 0;
const designCate = document.forms.formSelPC.design_cate;
for( let i=0; i < designCate.length; i++ ) {
if( designCate[i].checked ) {
selCnt++;
}
}
if( selCnt == designCate.length ) {
for( let i=0; i < designCate.length; i++ ) {
designCate[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
\$('.design_cate_sp').change(function() {
let selCnt = 0;
const designCate = document.forms.formSelSP.design_cate;
for( let i=0; i < designCate.length; i++ ) {
if( designCate[i].checked ) {
selCnt++;
}
}
if( selCnt == designCate.length ) {
for( let i=0; i < designCate.length; i++ ) {
designCate[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
";
// line 253
echo "
\$('.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 260
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 288
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 295
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>
<script>
";
// line 312
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 312, $this->source); })()))) {
// line 313
echo " ";
if ((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.', 313, $this->source); })()), "id", [], "any", false, false, true, 313) == 7)) {
// line 314
echo " function setValPC( rst = 1 ) {
let sels_type = '';
const ballType = document.forms.formSelPC.ball_type;
for( let i=0; i < ballType.length; i++ ) {
if( ballType[i].checked ) {
if( sels_type ) {
sels_type = sels_type + ',';
}
sels_type = sels_type + ballType[i].value;
}
}
\$('#ball-type').val(sels_type);
let sels_nums = '';
const ballNums = document.forms.formSelPC.ball_nums;
for( let i=0; i < ballNums.length; i++ ) {
if( ballNums[i].checked ) {
if( sels_nums ) {
sels_nums = sels_nums + ',';
}
sels_nums = sels_nums + ballNums[i].value;
}
}
\$('#ball-nums').val(sels_nums);
let sels_price = '';
const ballPrice = document.forms.formSelPC.ball_price;
for( let i=0; i < ballPrice.length; i++ ) {
if( ballPrice[i].checked ) {
if( sels_price ) {
sels_price = sels_price + ',';
}
sels_price = sels_price + ballPrice[i].value;
}
}
\$('#ball-price').val(sels_price);
if( rst == 1 ) {
\$('#pageno').val(1);
\$('#disp_number').val(21);
\$('#orderby').val(2);
}
\$(\"#form1\").submit();
}
function setValSP( rst = 1 ) {
let sels_type = '';
const ballType = document.forms.formSelSP.ball_type;
for( let i=0; i < ballType.length; i++ ) {
if( ballType[i].checked ) {
if( sels_type ) {
sels_type = sels_type + ',';
}
sels_type = sels_type + ballType[i].value;
}
}
\$('#ball-type').val(sels_type);
let sels_nums = '';
const ballNums = document.forms.formSelSP.ball_nums;
for( let i=0; i < ballNums.length; i++ ) {
if( ballNums[i].checked ) {
if( sels_nums ) {
sels_nums = sels_nums + ',';
}
sels_nums = sels_nums + ballNums[i].value;
}
}
\$('#ball-nums').val(sels_nums);
let sels_price = '';
const ballPrice = document.forms.formSelSP.ball_price;
for( let i=0; i < ballPrice.length; i++ ) {
if( ballPrice[i].checked ) {
if( sels_price ) {
sels_price = sels_price + ',';
}
sels_price = sels_price + ballPrice[i].value;
}
}
\$('#ball-price').val(sels_price);
if( rst == 1 ) {
\$('#pageno').val(1);
\$('#disp_number').val(21);
\$('#orderby').val(2);
}
\$(\"#form1\").submit();
}
function checkAndSetVal() {
let selCntPC = 0;
const ballType = document.forms.formSelPC.ball_type;
for( let i=0; i < ballType.length; i++ ) {
if( ballType[i].checked ) {
selCntPC++;
}
}
const ballNums = document.forms.formSelPC.ball_nums;
for( let i=0; i < ballNums.length; i++ ) {
if( ballNums[i].checked ) {
selCntPC++;
}
}
const ballPrice = document.forms.formSelPC.ball_price;
for( let i=0; i < ballPrice.length; i++ ) {
if( ballPrice[i].checked ) {
selCntPC++;
}
}
let selCntSP = 0;
const ballTypeSP = document.forms.formSelSP.ball_type;
for( let i=0; i < ballTypeSP.length; i++ ) {
if( ballTypeSP[i].checked ) {
selCntSP++;
}
}
const ballNumsSP = document.forms.formSelSP.ball_nums;
for( let i=0; i < ballNumsSP.length; i++ ) {
if( ballNumsSP[i].checked ) {
selCntSP++;
}
}
const ballPriceSP = document.forms.formSelSP.ball_price;
for( let i=0; i < ballPriceSP.length; i++ ) {
if( ballPriceSP[i].checked ) {
selCntSP++;
}
}
if( selCntPC > 0 && selCntSP == 0 ) {
setValPC(0);
}
else if( selCntPC == 0 && selCntSP > 0 ) {
setValSP(0);
}
";
// line 444
echo " else if( selCntPC > 0 && selCntSP > 0 ) {
setValPC(0);
}
else {
return false;
}
}
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 451
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 451, $this->source); })()), "id", [], "any", false, false, true, 451) == 8)) {
// line 452
echo " ";
} elseif ((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.', 452, $this->source); })()), "id", [], "any", false, false, true, 452) == 9)) {
// line 453
echo " function setValPC( rst = 1 ) {
let sels_design = '';
const designCate = document.forms.formSelPC.design_cate;
for( let i=0; i < designCate.length; i++ ) {
if( designCate[i].checked ) {
if( sels_design ) {
sels_design = sels_design + ',';
}
sels_design = sels_design + designCate[i].value;
}
}
\$('#design-cate').val(sels_design);
if( rst == 1 ) {
\$('#pageno').val(1);
\$('#disp_number').val(21);
\$('#orderby').val(2);
}
\$(\"#form1\").submit();
}
function setValSP( rst = 1 ) {
let sels_design = '';
const designCate = document.forms.formSelSP.design_cate;
for( let i=0; i < designCate.length; i++ ) {
if( designCate[i].checked ) {
if( sels_design ) {
sels_design = sels_design + ',';
}
sels_design = sels_design + designCate[i].value;
}
}
\$('#design-cate').val(sels_design);
if( rst == 1 ) {
\$('#pageno').val(1);
\$('#disp_number').val(21);
\$('#orderby').val(2);
}
\$(\"#form1\").submit();
}
function checkAndSetVal() {
let selCntPC = 0;
const designCate = document.forms.formSelPC.design_cate;
for( let i=0; i < designCate.length; i++ ) {
if( designCate[i].checked ) {
selCntPC++;
}
}
let selCntSP = 0;
const designCateSP = document.forms.formSelSP.design_cate;
for( let i=0; i < designCateSP.length; i++ ) {
if( designCateSP[i].checked ) {
selCntSP++;
}
}
if( selCntPC > 0 && selCntSP == 0 ) {
setValPC(0);
}
else if( selCntPC == 0 && selCntSP > 0 ) {
setValSP(0);
}
";
// line 515
echo " else if( selCntPC > 0 && selCntSP > 0 ) {
setValPC(0);
}
else {
return false;
}
}
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 522
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 522, $this->source); })()), "id", [], "any", false, false, true, 522) == 10)) {
// line 523
echo " ";
}
// line 524
echo " ";
}
// line 525
echo " </script>
<script>
function selAlert() {
var modalThis = \$('body').find('#alert01');
//bodyの最下にwrapを作る
\$('body').append('<div id=\"modalWrapAlert\" />');
var wrap = \$('#modalWrapAlert');
wrap.fadeIn('200');
modalThis.fadeIn('200');
//モーダルの高さを取ってくる
function mdlHeight() {
var wh = \$(window).innerHeight();
var attH = modalThis.find('.modalInnerAlert').innerHeight();
modalThis.css({
height: attH
});
}
mdlHeight();
\$(window).on('resize', function () {
mdlHeight();
});
function clickAction() {
modalThis.fadeOut('200');
wrap.fadeOut('200', function () {
wrap.remove();
});
}
//wrapクリックされたら
wrap.on('click', function () {
clickAction();
return false;
});
//2秒後に消える
setTimeout(clickAction, 2000);
return false;
}
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 568
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 569
echo " ";
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.', 569, $this->source); })()), "category_id", [], "any", false, false, true, 569), "vars", [], "any", false, false, true, 569), "errors", [], "any", false, false, true, 569)) > 0)) {
// line 570
echo " <div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">";
// line 571
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
</div>
";
} else {
// line 574
echo " <div class=\"container\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 576
$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.', 576, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 577
echo " <input type=\"hidden\" id=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, true, 577), "id", [], "any", false, false, true, 577), 577, $this->source), "html", null, true);
echo "\"
name=\"";
// line 578
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, true, 578), "full_name", [], "any", false, false, true, 578), 578, $this->source), "html", null, true);
echo "\"
";
// line 579
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, true, 579), "value", [], "any", false, false, true, 579))) {
echo "value=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, true, 579), "value", [], "any", false, false, true, 579), 579, $this->source), "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 581
echo " ";
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 581, $this->source); })()))) {
// line 582
echo " ";
if ((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.', 582, $this->source); })()), "id", [], "any", false, false, true, 582) == 7)) {
// line 583
echo " <input type=\"hidden\" id=\"ball-type\" name=\"ball-type\">
<input type=\"hidden\" id=\"ball-nums\" name=\"ball-nums\">
<input type=\"hidden\" id=\"ball-price\" name=\"ball-price\">
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 586
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 586, $this->source); })()), "id", [], "any", false, false, true, 586) == 8)) {
// line 587
echo " ";
} elseif ((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.', 587, $this->source); })()), "id", [], "any", false, false, true, 587) == 9)) {
// line 588
echo " <input type=\"hidden\" id=\"design-cate\" name=\"design-cate\">
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 589
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 589, $this->source); })()), "id", [], "any", false, false, true, 589) == 10)) {
// line 590
echo " ";
}
// line 591
echo " ";
}
// line 592
echo " </form>
<!-- パンくずリスト -->
<nav aria-label=\"breadcrumb\" class=\"my-3\">
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 596
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">ホーム</a></li>
";
// line 597
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 597, $this->source); })()))) {
// line 598
echo " ";
if ((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.', 598, $this->source); })()), "id", [], "any", false, false, true, 598) == 7)) {
// line 599
echo " <li class=\"breadcrumb-item active\" aria-current=\"page\">ボールを選ぶ</li>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 600
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 600, $this->source); })()), "id", [], "any", false, false, true, 600) == 8)) {
// line 601
echo " ";
} elseif ((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.', 601, $this->source); })()), "id", [], "any", false, false, true, 601) == 9)) {
// line 602
echo " <li class=\"breadcrumb-item active\" aria-current=\"page\">デザインを選ぶ</li>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 603
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 603, $this->source); })()), "id", [], "any", false, false, true, 603) == 10)) {
// line 604
echo " ";
}
// line 605
echo " ";
} else {
// line 606
echo " <li class=\"breadcrumb-item active\" aria-current=\"page\">全商品</li>
";
}
// line 608
echo " </ol>
</nav>
<div class=\"layout-2colmun\">
";
// line 611
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 611, $this->source); })()))) {
// line 612
echo " ";
if ((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.', 612, $this->source); })()), "id", [], "any", false, false, true, 612) == 7)) {
// line 613
echo " ";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Product/aside_ball.twig");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 614
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 614, $this->source); })()), "id", [], "any", false, false, true, 614) == 8)) {
// line 615
echo " ";
} elseif ((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.', 615, $this->source); })()), "id", [], "any", false, false, true, 615) == 9)) {
// line 616
echo " ";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Product/aside_design.twig");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 617
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 617, $this->source); })()), "id", [], "any", false, false, true, 617) == 10)) {
// line 618
echo " ";
}
// line 619
echo " ";
} else {
// line 620
echo " ";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/aside_others.twig");
echo "
";
}
// line 622
echo " <main class=\"main\">
";
// line 623
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 623, $this->source); })()))) {
// line 624
echo " ";
if ((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.', 624, $this->source); })()), "id", [], "any", false, false, true, 624) == 7)) {
// line 625
echo " <h1 class=\"fw-bold mb-5\">名入れゴルフボール</h1>
<p>
お好きなデザインをゴルフボールに印刷します。<br>
<span class=\"text-danger\">表示価格にはボール代・印刷代が税込みで含まれています。</span>
</p>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 630
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 630, $this->source); })()), "id", [], "any", false, false, true, 630) == 8)) {
// line 631
echo " ";
} elseif ((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.', 631, $this->source); })()), "id", [], "any", false, false, true, 631) == 9)) {
// line 632
echo " <h1 class=\"fw-bold mb-5\">名入れデザイン</h1>
<p>
お好きなデザインをゴルフボールに印刷します。<br>
ボールに印刷したいデザインをカートに入れてご注文ください。<br>
お客様の方でデザインのご用意がある場合は「<a href=\"";
// line 636
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => 99]);
echo "\">デザインを入稿する</a>」を選んでデータをアップロードしてください。<br>
<span class=\"text-danger\">デザインの内容によって料金・納期は変わりません。(印刷代も含め、全てボールの代金に含まれています)</span>
</p>
<p class=\"my-3\">導入事例から参考デザインを選ぶこともできます。</p>
<a href=\"\" class=\"btn btn-lg btn-dark py-3 rounded-0\" data-bs-toggle=\"modal\" data-bs-target=\"#fullScreenModal\"><i class=\"icon-arrow_circle_right\"></i>導入事例参考デザインを見る</a>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 641
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 641, $this->source); })()), "id", [], "any", false, false, true, 641) == 10)) {
// line 642
echo " ";
}
// line 643
echo " ";
}
// line 644
echo " ";
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.', 644, $this->source); })()), "totalItemCount", [], "any", false, false, true, 644) > 0)) {
// line 645
echo " <div class=\"d-flex justify-content-between mb-4 border-bottom py-3 align-items-center flex-column flex-md-row\">
";
// line 646
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<div><span class=\"fw-bold\">%count%件</span>の商品が見つかりました。</div>", ["%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.', 646, $this->source); })()), "totalItemCount", [], "any", false, false, true, 646)]);
echo "
<div class=\"d-flex mt-3 mt-md-0\">
<div class=\"me-2 d-block d-lg-none\">
";
// line 649
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 649, $this->source); })()))) {
// line 650
echo " ";
if ((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.', 650, $this->source); })()), "id", [], "any", false, false, true, 650) == 7)) {
// line 651
echo " <a href=\"\" class=\"btn btn-outline-dark btn-sm\" data-bs-toggle=\"modal\" data-bs-target=\"#filterModalBall\">絞込</a>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 652
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 652, $this->source); })()), "id", [], "any", false, false, true, 652) == 8)) {
// line 653
echo " ";
} elseif ((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.', 653, $this->source); })()), "id", [], "any", false, false, true, 653) == 9)) {
// line 654
echo " <a href=\"\" class=\"btn btn-outline-dark btn-sm\" data-bs-toggle=\"modal\" data-bs-target=\"#filterModal\">絞込</a>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 655
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 655, $this->source); })()), "id", [], "any", false, false, true, 655) == 10)) {
// line 656
echo " ";
}
// line 657
echo " ";
}
// line 658
echo " </div>
";
// line 659
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.', 659, $this->source); })()), "totalItemCount", [], "any", false, false, true, 659) > 0)) {
// line 660
echo " <div class=\"me-1\">
";
// line 661
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 661, $this->source); })()), "disp_number", [], "any", false, false, true, 661), 661, $this->source), 'widget', ["id" => "", "attr" => ["class" => "disp-number form-select form-select-sm"]]);
echo "
</div>
";
// line 663
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 663, $this->source); })()))) {
// line 664
echo " <div class=\"ms-1";
if ((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.', 664, $this->source); })()), "id", [], "any", false, false, true, 664) == 9)) {
echo " d-none";
}
echo "\">
";
// line 665
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 665, $this->source); })()), "orderby", [], "any", false, false, true, 665), 665, $this->source), 'widget', ["id" => "", "attr" => ["class" => "order-by form-select form-select-sm"]]);
echo "
</div>
";
} else {
// line 668
echo " <div class=\"ms-1\">
";
// line 669
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 669, $this->source); })()), "orderby", [], "any", false, false, true, 669), 669, $this->source), 'widget', ["id" => "", "attr" => ["class" => "order-by form-select form-select-sm"]]);
echo "
</div>
";
}
// line 672
echo " ";
}
// line 673
echo " </div>
</div>
<div class=\"row\">
";
// line 676
$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.', 676, $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 677
echo " ";
// line 678
echo " <div class=\"col-6 col-lg-4 mb-4\">
<a href=\"";
// line 679
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, 679)]), "html", null, true);
echo "\" class=\"item-thumb\">
<img src=\"";
// line 680
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, 680), 680, $this->source)), "save_image"), "html", null, true);
echo "\" class=\"thumb\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 680), 680, $this->source), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 680) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
<div class=\"name\">";
// line 681
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 681), 681, $this->source), "html", null, true);
echo "</div>
";
// line 682
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["Product"], "ProductTag", [], "any", false, false, true, 682));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 683
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Tag"], "Tag", [], "any", false, false, true, 683), "name", [], "any", false, false, true, 683) == "一番人気")) {
// line 684
echo " <span class=\"icon -popular\">一番人気</span>
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 685
$context["Tag"], "Tag", [], "any", false, false, true, 685), "name", [], "any", false, false, true, 685) == "即日配送")) {
// line 686
echo " <span class=\"icon -rapid\">即日配送</span>
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 687
$context["Tag"], "Tag", [], "any", false, false, true, 687), "name", [], "any", false, false, true, 687) == "代引手数料無料")) {
// line 688
echo " <span class=\"icon -free\">代引手数料無料</span>
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 689
$context["Tag"], "Tag", [], "any", false, false, true, 689), "name", [], "any", false, false, true, 689) == "送料無料")) {
// line 690
echo " <span class=\"icon -free\">送料無料</span>
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 691
$context["Tag"], "Tag", [], "any", false, false, true, 691), "name", [], "any", false, false, true, 691) == "3%還元")) {
// line 692
echo " <span class=\"icon -point\">3%還元</span>
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 693
$context["Tag"], "Tag", [], "any", false, false, true, 693), "name", [], "any", false, false, true, 693) == "人気")) {
// line 694
echo " <span class=\"icon -popular\">人気</span>
";
}
// line 696
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 697
echo " ";
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 697, $this->source); })()))) {
// line 698
echo " ";
if ((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.', 698, $this->source); })()), "id", [], "any", false, false, true, 698) == 7)) {
// line 699
echo " <div class=\"price\">
";
// line 700
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, true, 700)) {
// line 701
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, true, 701) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, true, 701))) {
// line 702
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 702), 702, $this->source)), "html", null, true);
echo " 円 (税込)
";
} else {
// line 704
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 704), 704, $this->source)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMax", [], "any", false, false, true, 704), 704, $this->source)), "html", null, true);
echo " 円 (税込)
";
}
// line 706
echo " ";
} else {
// line 707
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 707), 707, $this->source)), "html", null, true);
echo " 円 (税込)
";
}
// line 709
echo " </div>
";
}
// line 711
echo " ";
} else {
// line 712
echo " <div class=\"price\">
";
// line 713
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, true, 713)) {
// line 714
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, true, 714) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, true, 714))) {
// line 715
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 715), 715, $this->source)), "html", null, true);
echo " 円 (税込)
";
} else {
// line 717
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 717), 717, $this->source)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMax", [], "any", false, false, true, 717), 717, $this->source)), "html", null, true);
echo " 円 (税込)
";
}
// line 719
echo " ";
} else {
// line 720
echo " ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, true, 720), 720, $this->source)), "html", null, true);
echo " 円 (税込)
";
}
// line 722
echo " </div>
";
}
// line 724
echo " </a>
</div>
";
++$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 727
echo " </div>
";
// line 737
echo " ";
$this->loadTemplate("pager.twig", "Product/list.twig", 737)->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.', 737, $this->source); })()), "paginationData", [], "any", false, false, true, 737)]));
// line 738
echo " ";
} else {
// line 739
echo " <div class=\"d-flex justify-content-between mb-4 border-bottom py-3 align-items-center flex-column flex-md-row\">
<div><span>";
// line 740
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま準備中です"), "html", null, true);
echo "</span></div>
</div>
";
}
// line 743
echo " <div class=\"modalBoxAlert\" id=\"alert01\">
<div class=\"modalInnerAlert\">
絞り込みたい項目がある場合のみチェックしてください。
</div>
</div>
</main>
</div>
</div>
<!-- modal -->
";
// line 753
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 753, $this->source); })()))) {
// line 754
echo " ";
if ((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.', 754, $this->source); })()), "id", [], "any", false, false, true, 754) == 7)) {
// line 755
echo " <div class=\"modal fade\" id=\"filterModalBall\" tabindex=\"-1\" aria-labelledby=\"filterModalBallLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"filterModalBallLabel\">絞り込み</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<form name=\"formSelSP\" id=\"formSelSP\" method=\"get\" action=\"?\">
<div class=\"modal-body\">
<!-- 絞り込みフォームの内容をここに追加 -->
<div class=\"aside-filter _modal\">
<div class=\"title\">
ボールの種類から選ぶ
</div>
<ul class=\"list-unstyled mb-0 list\">
<li>
<label>
<input type=\"checkbox\" name=\"ball_type\" class=\"ball_type_sp\" value=\"14\"";
// line 772
if (twig_in_filter(14, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 772, $this->source); })()), "ball-type", [], "array", false, false, true, 772))) {
echo " checked";
}
echo ">
持ち込みボール
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_type\" class=\"ball_type_sp\" value=\"11\"";
// line 778
if (twig_in_filter(11, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 778, $this->source); })()), "ball-type", [], "array", false, false, true, 778))) {
echo " checked";
}
echo ">
スリクソン
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_type\" class=\"ball_type_sp\" value=\"12\"";
// line 784
if (twig_in_filter(12, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 784, $this->source); })()), "ball-type", [], "array", false, false, true, 784))) {
echo " checked";
}
echo ">
ゼクシオ
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_type\" class=\"ball_type_sp\" value=\"13\"";
// line 790
if (twig_in_filter(13, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 790, $this->source); })()), "ball-type", [], "array", false, false, true, 790))) {
echo " checked";
}
echo ">
ツアースペシャル
</label>
</li>
</ul>
<div class=\"title\">
ボールの球数から選ぶ
</div>
<ul class=\"list-unstyled mb-0 list\">
<li>
<label>
<input type=\"checkbox\" name=\"ball_nums\" class=\"ball_nums_sp\" value=\"8,13\"";
// line 801
if ((twig_in_filter(8, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 801, $this->source); })()), "ball-nums", [], "array", false, false, true, 801)) || twig_in_filter(13, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 801, $this->source); })()), "ball-nums", [], "array", false, false, true, 801)))) {
echo " checked";
}
echo ">
3球
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_nums\" class=\"ball_nums_sp\" value=\"11,14\"";
// line 807
if ((twig_in_filter(11, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 807, $this->source); })()), "ball-nums", [], "array", false, false, true, 807)) || twig_in_filter(14, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 807, $this->source); })()), "ball-nums", [], "array", false, false, true, 807)))) {
echo " checked";
}
echo ">
6球
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_nums\" class=\"ball_nums_sp\" value=\"12,15\"";
// line 813
if ((twig_in_filter(12, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 813, $this->source); })()), "ball-nums", [], "array", false, false, true, 813)) || twig_in_filter(15, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 813, $this->source); })()), "ball-nums", [], "array", false, false, true, 813)))) {
echo " checked";
}
echo ">
12球
</label>
</li>
</ul>
<div class=\"title\">
価格で選ぶ
</div>
<ul class=\"list-unstyled mb-0 list\">
<li>
<label>
<input type=\"checkbox\" name=\"ball_price\" class=\"ball_price_sp\" value=\"1\"";
// line 824
if (twig_in_filter(1, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 824, $this->source); })()), "ball-price", [], "array", false, false, true, 824))) {
echo " checked";
}
echo ">
~2,999円
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_price\" class=\"ball_price_sp\" value=\"2\"";
// line 830
if (twig_in_filter(2, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 830, $this->source); })()), "ball-price", [], "array", false, false, true, 830))) {
echo " checked";
}
echo ">
3,000円~4,999円
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_price\" class=\"ball_price_sp\" value=\"3\"";
// line 836
if (twig_in_filter(3, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 836, $this->source); })()), "ball-price", [], "array", false, false, true, 836))) {
echo " checked";
}
echo ">
5,000円~9,999円
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_price\" class=\"ball_price_sp\" value=\"4\"";
// line 842
if (twig_in_filter(4, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 842, $this->source); })()), "ball-price", [], "array", false, false, true, 842))) {
echo " checked";
}
echo ">
10,000円以上
</label>
</li>
</ul>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-outline-dark\" data-bs-dismiss=\"modal\">閉じる</button>
<button type=\"button\" class=\"btn btn-outline-dark\" onclick=\"location.href='";
// line 851
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=7'\">クリア</button>
<button type=\"button\" class=\"btn btn-primary\" onclick=\"setValSP();\">絞り込む</button>
</div>
</form>
</div>
</div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 858
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 858, $this->source); })()), "id", [], "any", false, false, true, 858) == 8)) {
// line 859
echo " ";
} elseif ((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.', 859, $this->source); })()), "id", [], "any", false, false, true, 859) == 9)) {
// line 860
echo " <div class=\"modal fade\" id=\"filterModal\" tabindex=\"-1\" aria-labelledby=\"filterModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"filterModalLabel\">絞り込み</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<form name=\"formSelSP\" id=\"formSelSP\" method=\"get\" action=\"?\">
<div class=\"modal-body\">
<!-- 絞り込みフォームの内容をここに追加 -->
<div class=\"aside-filter _modal\">
<div class=\"title\">
カテゴリから選ぶ
</div>
<ul class=\"list-unstyled mb-0 list\">
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"15\"";
// line 877
if (twig_in_filter(15, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 877, $this->source); })()), "design-cate", [], "array", false, false, true, 877))) {
echo " checked";
}
echo ">
誕生日祝い
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"16\"";
// line 883
if (twig_in_filter(16, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 883, $this->source); })()), "design-cate", [], "array", false, false, true, 883))) {
echo " checked";
}
echo ">
定年退職祝い
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"17\"";
// line 889
if (twig_in_filter(17, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 889, $this->source); })()), "design-cate", [], "array", false, false, true, 889))) {
echo " checked";
}
echo ">
還暦祝い
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"18\"";
// line 895
if (twig_in_filter(18, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 895, $this->source); })()), "design-cate", [], "array", false, false, true, 895))) {
echo " checked";
}
echo ">
コンペ景品
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"19\"";
// line 901
if (twig_in_filter(19, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 901, $this->source); })()), "design-cate", [], "array", false, false, true, 901))) {
echo " checked";
}
echo ">
父の日祝い
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"20\"";
// line 907
if (twig_in_filter(20, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 907, $this->source); })()), "design-cate", [], "array", false, false, true, 907))) {
echo " checked";
}
echo ">
母の日祝い
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"21\"";
// line 913
if (twig_in_filter(21, twig_get_attribute($this->env, $this->source, (isset($context["Selects"]) || array_key_exists("Selects", $context) ? $context["Selects"] : (function () { throw new RuntimeError('Variable "Selects" does not exist.', 913, $this->source); })()), "design-cate", [], "array", false, false, true, 913))) {
echo " checked";
}
echo ">
GOLFPRINT オリジナル
</label>
</li>
</ul>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-outline-dark\" data-bs-dismiss=\"modal\">閉じる</button>
<button type=\"button\" class=\"btn btn-outline-dark\" onclick=\"location.href='";
// line 922
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=9'\">クリア</button>
<button type=\"button\" class=\"btn btn-primary\" onclick=\"setValSP();\">絞り込む</button>
</div>
</form>
</div>
</div>
</div>
<!-- modal 導入事例事例参考デザイン -->
<div class=\"modal fade\" id=\"fullScreenModal\" tabindex=\"-1\" aria-labelledby=\"fullScreenModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered modal-dialog-scrollable\" style=\"max-width: 100vw; margin: 0;\">
<div class=\"modal-content\" style=\"height: 100vh;\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"fullScreenModalLabel\">導入事例参考デザイン</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body\">
<div class=\"row\">
";
// line 940
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["CaseDataList"]) || array_key_exists("CaseDataList", $context) ? $context["CaseDataList"] : (function () { throw new RuntimeError('Variable "CaseDataList" does not exist.', 940, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["CaseData"]) {
// line 941
echo " <div class=\"col-6 col-md-4 col-lg-3 col-xxl-2 mb-4\">
<div class=\"bg-secondary p-3 rounded\">
<form name=\"formCase";
// line 943
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CaseData"], "id", [], "any", false, false, true, 943), 943, $this->source), "html", null, true);
echo "\" id=\"productFormCase";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CaseData"], "id", [], "any", false, false, true, 943), 943, $this->source), "html", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart_case", ["id" => twig_get_attribute($this->env, $this->source, $context["CaseData"], "id", [], "any", false, false, true, 943)]), "html", null, true);
echo "\" method=\"post\">
<input type=\"hidden\" id=\"quantityCase";
// line 944
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CaseData"], "id", [], "any", false, false, true, 944), 944, $this->source), "html", null, true);
echo "\" name=\"quantity\" value=\"1\">
<input type=\"hidden\" id=\"product_idCase";
// line 945
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CaseData"], "id", [], "any", false, false, true, 945), 945, $this->source), "html", null, true);
echo "\" name=\"product_id\" value=\"101\">
<input type=\"hidden\" id=\"ProductClassCase";
// line 946
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CaseData"], "id", [], "any", false, false, true, 946), 946, $this->source), "html", null, true);
echo "\" name=\"ProductClass\" value=\"320\">
<input type=\"hidden\" id=\"_tokenCase";
// line 947
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CaseData"], "id", [], "any", false, false, true, 947), 947, $this->source), "html", null, true);
echo "\" name=\"_token\" value=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("_token"), "html", null, true);
echo "\">
<a href=\"javascript:formCase";
// line 948
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CaseData"], "id", [], "any", false, false, true, 948), 948, $this->source), "html", null, true);
echo ".submit()\" class=\"numbering-container\">
<div class=\"number\">";
// line 949
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CaseData"], "id", [], "any", false, false, true, 949), 949, $this->source), "html", null, true);
echo "</div>
<img src=\"/icms/user_data/image/Voice1/";
// line 950
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CaseData"], "thumbnail_gazo", [], "any", false, false, true, 950), 950, $this->source), "html", null, true);
echo "\" class=\"img-fluid text-dark mb-3\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CaseData"], "title", [], "any", false, false, true, 950), 950, $this->source), "html", null, true);
echo "\" width=\"500\" height=\"500\">
<p class=\"text-center text-dark mb-1\">[NO.";
// line 951
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CaseData"], "id", [], "any", false, false, true, 951), 951, $this->source), "html", null, true);
echo "]</p>
<p class=\"text-center text-dark mb-0\">";
// line 952
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CaseData"], "title", [], "any", false, false, true, 952), 952, $this->source);
echo "</p>
</a>
</form>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CaseData'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 958
echo " </div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-outline-dark\" data-bs-dismiss=\"modal\">閉じる</button>
</div>
</div>
</div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 967
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 967, $this->source); })()), "id", [], "any", false, false, true, 967) == 10)) {
// line 968
echo " ";
}
// line 969
echo " ";
}
// line 970
echo " ";
}
$__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 ( 1604 => 970, 1601 => 969, 1598 => 968, 1596 => 967, 1585 => 958, 1573 => 952, 1569 => 951, 1563 => 950, 1559 => 949, 1555 => 948, 1549 => 947, 1545 => 946, 1541 => 945, 1537 => 944, 1529 => 943, 1525 => 941, 1521 => 940, 1500 => 922, 1486 => 913, 1475 => 907, 1464 => 901, 1453 => 895, 1442 => 889, 1431 => 883, 1420 => 877, 1401 => 860, 1398 => 859, 1396 => 858, 1386 => 851, 1372 => 842, 1361 => 836, 1350 => 830, 1339 => 824, 1323 => 813, 1312 => 807, 1301 => 801, 1285 => 790, 1274 => 784, 1263 => 778, 1252 => 772, 1233 => 755, 1230 => 754, 1228 => 753, 1216 => 743, 1210 => 740, 1207 => 739, 1204 => 738, 1201 => 737, 1198 => 727, 1182 => 724, 1178 => 722, 1172 => 720, 1169 => 719, 1161 => 717, 1155 => 715, 1152 => 714, 1150 => 713, 1147 => 712, 1144 => 711, 1140 => 709, 1134 => 707, 1131 => 706, 1123 => 704, 1117 => 702, 1114 => 701, 1112 => 700, 1109 => 699, 1106 => 698, 1103 => 697, 1097 => 696, 1093 => 694, 1091 => 693, 1088 => 692, 1086 => 691, 1083 => 690, 1081 => 689, 1078 => 688, 1076 => 687, 1073 => 686, 1071 => 685, 1068 => 684, 1065 => 683, 1061 => 682, 1057 => 681, 1047 => 680, 1043 => 679, 1040 => 678, 1038 => 677, 1021 => 676, 1016 => 673, 1013 => 672, 1007 => 669, 1004 => 668, 998 => 665, 991 => 664, 989 => 663, 984 => 661, 981 => 660, 979 => 659, 976 => 658, 973 => 657, 970 => 656, 968 => 655, 965 => 654, 962 => 653, 960 => 652, 957 => 651, 954 => 650, 952 => 649, 946 => 646, 943 => 645, 940 => 644, 937 => 643, 934 => 642, 932 => 641, 924 => 636, 918 => 632, 915 => 631, 913 => 630, 906 => 625, 903 => 624, 901 => 623, 898 => 622, 892 => 620, 889 => 619, 886 => 618, 884 => 617, 879 => 616, 876 => 615, 874 => 614, 869 => 613, 866 => 612, 864 => 611, 859 => 608, 855 => 606, 852 => 605, 849 => 604, 847 => 603, 844 => 602, 841 => 601, 839 => 600, 836 => 599, 833 => 598, 831 => 597, 827 => 596, 821 => 592, 818 => 591, 815 => 590, 813 => 589, 810 => 588, 807 => 587, 805 => 586, 800 => 583, 797 => 582, 794 => 581, 782 => 579, 778 => 578, 773 => 577, 769 => 576, 765 => 574, 759 => 571, 756 => 570, 753 => 569, 743 => 568, 692 => 525, 689 => 524, 686 => 523, 684 => 522, 675 => 515, 612 => 453, 609 => 452, 607 => 451, 598 => 444, 467 => 314, 464 => 313, 462 => 312, 442 => 295, 432 => 288, 401 => 260, 392 => 253, 356 => 218, 353 => 216, 249 => 113, 225 => 90, 211 => 89, 203 => 88, 186 => 87, 182 => 85, 172 => 84, 124 => 44, 114 => 43, 103 => 11, 101 => 41, 97 => 36, 95 => 35, 93 => 34, 91 => 33, 89 => 32, 87 => 31, 85 => 30, 83 => 29, 81 => 28, 79 => 27, 77 => 26, 75 => 25, 73 => 24, 71 => 23, 68 => 21, 66 => 20, 64 => 19, 62 => 18, 60 => 17, 58 => 16, 56 => 15, 54 => 14, 52 => 13, 39 => 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' %}
{% if Category is not null %}
{% if Category.id == 7 and 14 in Selects['ball-type'] %}
{% set subtitle = '持ち込みボール' %}
{% elseif Category.id == 7 and 11 in Selects['ball-type'] %}
{% set subtitle = 'スリクソン' %}
{% elseif Category.id == 7 and 12 in Selects['ball-type'] %}
{% set subtitle = 'ゼクシオ' %}
{% elseif Category.id == 7 and 13 in Selects['ball-type'] %}
{% set subtitle = 'ツアースペシャル' %}
{% endif %}
{% if Category.id == 9 and 15 in Selects['design-cate'] %}
{% set subtitle = '誕生日祝い' %}
{% elseif Category.id == 9 and 16 in Selects['design-cate'] %}
{% set subtitle = '定年退職祝い' %}
{% elseif Category.id == 9 and 17 in Selects['design-cate'] %}
{% set subtitle = '還暦祝い' %}
{% elseif Category.id == 9 and 18 in Selects['design-cate'] %}
{% set subtitle = 'コンペ景品' %}
{% elseif Category.id == 9 and 19 in Selects['design-cate'] %}
{% set subtitle = '父の日祝い' %}
{% elseif Category.id == 9 and 20 in Selects['design-cate'] %}
{% set subtitle = '母の日祝い' %}
{% elseif Category.id == 9 and 21 in Selects['design-cate'] %}
{% set subtitle = 'GOLFPRINT オリジナル' %}
{% endif %}
{% endif %}
{% set body_class = 'product_page' %}
{% block stylesheet %}
<style>
#modalWrapAlert {
display: none;
background: 0 0;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 100;
overflow: hidden
}
.modalBoxAlert {
position: fixed;
width: 85%;
max-width: 420px;
height: 0;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
overflow: hidden;
opacity: 1;
display: none;
border-radius: 3px;
z-index: 1000
}
.modalInnerAlert {
padding: 10px;
text-align: center;
box-sizing: border-box;
background: rgba(0, 0, 0, .7);
color: #fff
}
</style>
{% endblock %}
{% 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);
checkAndSetVal();
\$(\"#form1\").submit();
});
// 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
checkAndSetVal();
\$(\"#form1\").submit();
});
{# Category.id:7 ボールを選ぶ用 #}
\$('.ball_type').change(function() {
let selCnt = 0;
const ballType = document.forms.formSelPC.ball_type;
for( let i=0; i < ballType.length; i++ ) {
if( ballType[i].checked ) {
selCnt++;
}
}
if( selCnt == ballType.length ) {
for( let i=0; i < ballType.length; i++ ) {
ballType[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
\$('.ball_nums').change(function() {
let selCnt = 0;
const ballNums = document.forms.formSelPC.ball_nums;
for( let i=0; i < ballNums.length; i++ ) {
if( ballNums[i].checked ) {
selCnt++;
}
}
if( selCnt == ballNums.length ) {
for( let i=0; i < ballNums.length; i++ ) {
ballNums[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
\$('.ball_price').change(function() {
let selCnt = 0;
const ballPrice = document.forms.formSelPC.ball_price;
for( let i=0; i < ballPrice.length; i++ ) {
if( ballPrice[i].checked ) {
selCnt++;
}
}
if( selCnt == ballPrice.length ) {
for( let i=0; i < ballPrice.length; i++ ) {
ballPrice[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
\$('.ball_type_sp').change(function() {
let selCnt = 0;
const ballType = document.forms.formSelSP.ball_type;
for( let i=0; i < ballType.length; i++ ) {
if( ballType[i].checked ) {
selCnt++;
}
}
if( selCnt == ballType.length ) {
for( let i=0; i < ballType.length; i++ ) {
ballType[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
\$('.ball_nums_sp').change(function() {
let selCnt = 0;
const ballNums = document.forms.formSelSP.ball_nums;
for( let i=0; i < ballNums.length; i++ ) {
if( ballNums[i].checked ) {
selCnt++;
}
}
if( selCnt == ballNums.length ) {
for( let i=0; i < ballNums.length; i++ ) {
ballNums[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
\$('.ball_price_sp').change(function() {
let selCnt = 0;
const ballPrice = document.forms.formSelSP.ball_price;
for( let i=0; i < ballPrice.length; i++ ) {
if( ballPrice[i].checked ) {
selCnt++;
}
}
if( selCnt == ballPrice.length ) {
for( let i=0; i < ballPrice.length; i++ ) {
ballPrice[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
{# Category.id:8 マーカーを選ぶ用 #}
{# Category.id:9 デザインを選ぶ用 #}
\$('.design_cate').change(function() {
let selCnt = 0;
const designCate = document.forms.formSelPC.design_cate;
for( let i=0; i < designCate.length; i++ ) {
if( designCate[i].checked ) {
selCnt++;
}
}
if( selCnt == designCate.length ) {
for( let i=0; i < designCate.length; i++ ) {
designCate[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
\$('.design_cate_sp').change(function() {
let selCnt = 0;
const designCate = document.forms.formSelSP.design_cate;
for( let i=0; i < designCate.length; i++ ) {
if( designCate[i].checked ) {
selCnt++;
}
}
if( selCnt == designCate.length ) {
for( let i=0; i < designCate.length; i++ ) {
designCate[i].checked = false;
}
//alert('絞り込みたい項目がある場合のみチェックしてください。');
selAlert();
}
});
{# Category.id:10 ラッピング用 #}
\$('.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>
<script>
{% if Category is not null %}
{% if Category.id == 7 %}{# ボールを選ぶ #}
function setValPC( rst = 1 ) {
let sels_type = '';
const ballType = document.forms.formSelPC.ball_type;
for( let i=0; i < ballType.length; i++ ) {
if( ballType[i].checked ) {
if( sels_type ) {
sels_type = sels_type + ',';
}
sels_type = sels_type + ballType[i].value;
}
}
\$('#ball-type').val(sels_type);
let sels_nums = '';
const ballNums = document.forms.formSelPC.ball_nums;
for( let i=0; i < ballNums.length; i++ ) {
if( ballNums[i].checked ) {
if( sels_nums ) {
sels_nums = sels_nums + ',';
}
sels_nums = sels_nums + ballNums[i].value;
}
}
\$('#ball-nums').val(sels_nums);
let sels_price = '';
const ballPrice = document.forms.formSelPC.ball_price;
for( let i=0; i < ballPrice.length; i++ ) {
if( ballPrice[i].checked ) {
if( sels_price ) {
sels_price = sels_price + ',';
}
sels_price = sels_price + ballPrice[i].value;
}
}
\$('#ball-price').val(sels_price);
if( rst == 1 ) {
\$('#pageno').val(1);
\$('#disp_number').val(21);
\$('#orderby').val(2);
}
\$(\"#form1\").submit();
}
function setValSP( rst = 1 ) {
let sels_type = '';
const ballType = document.forms.formSelSP.ball_type;
for( let i=0; i < ballType.length; i++ ) {
if( ballType[i].checked ) {
if( sels_type ) {
sels_type = sels_type + ',';
}
sels_type = sels_type + ballType[i].value;
}
}
\$('#ball-type').val(sels_type);
let sels_nums = '';
const ballNums = document.forms.formSelSP.ball_nums;
for( let i=0; i < ballNums.length; i++ ) {
if( ballNums[i].checked ) {
if( sels_nums ) {
sels_nums = sels_nums + ',';
}
sels_nums = sels_nums + ballNums[i].value;
}
}
\$('#ball-nums').val(sels_nums);
let sels_price = '';
const ballPrice = document.forms.formSelSP.ball_price;
for( let i=0; i < ballPrice.length; i++ ) {
if( ballPrice[i].checked ) {
if( sels_price ) {
sels_price = sels_price + ',';
}
sels_price = sels_price + ballPrice[i].value;
}
}
\$('#ball-price').val(sels_price);
if( rst == 1 ) {
\$('#pageno').val(1);
\$('#disp_number').val(21);
\$('#orderby').val(2);
}
\$(\"#form1\").submit();
}
function checkAndSetVal() {
let selCntPC = 0;
const ballType = document.forms.formSelPC.ball_type;
for( let i=0; i < ballType.length; i++ ) {
if( ballType[i].checked ) {
selCntPC++;
}
}
const ballNums = document.forms.formSelPC.ball_nums;
for( let i=0; i < ballNums.length; i++ ) {
if( ballNums[i].checked ) {
selCntPC++;
}
}
const ballPrice = document.forms.formSelPC.ball_price;
for( let i=0; i < ballPrice.length; i++ ) {
if( ballPrice[i].checked ) {
selCntPC++;
}
}
let selCntSP = 0;
const ballTypeSP = document.forms.formSelSP.ball_type;
for( let i=0; i < ballTypeSP.length; i++ ) {
if( ballTypeSP[i].checked ) {
selCntSP++;
}
}
const ballNumsSP = document.forms.formSelSP.ball_nums;
for( let i=0; i < ballNumsSP.length; i++ ) {
if( ballNumsSP[i].checked ) {
selCntSP++;
}
}
const ballPriceSP = document.forms.formSelSP.ball_price;
for( let i=0; i < ballPriceSP.length; i++ ) {
if( ballPriceSP[i].checked ) {
selCntSP++;
}
}
if( selCntPC > 0 && selCntSP == 0 ) {
setValPC(0);
}
else if( selCntPC == 0 && selCntSP > 0 ) {
setValSP(0);
}
{# 絞り込み2回目以降はPC版、SP版両方の絞り込みが選択されている #}
else if( selCntPC > 0 && selCntSP > 0 ) {
setValPC(0);
}
else {
return false;
}
}
{% elseif Category.id == 8 %}{# マーカーを選ぶ #}
{% elseif Category.id == 9 %}{# デザインを選ぶ #}
function setValPC( rst = 1 ) {
let sels_design = '';
const designCate = document.forms.formSelPC.design_cate;
for( let i=0; i < designCate.length; i++ ) {
if( designCate[i].checked ) {
if( sels_design ) {
sels_design = sels_design + ',';
}
sels_design = sels_design + designCate[i].value;
}
}
\$('#design-cate').val(sels_design);
if( rst == 1 ) {
\$('#pageno').val(1);
\$('#disp_number').val(21);
\$('#orderby').val(2);
}
\$(\"#form1\").submit();
}
function setValSP( rst = 1 ) {
let sels_design = '';
const designCate = document.forms.formSelSP.design_cate;
for( let i=0; i < designCate.length; i++ ) {
if( designCate[i].checked ) {
if( sels_design ) {
sels_design = sels_design + ',';
}
sels_design = sels_design + designCate[i].value;
}
}
\$('#design-cate').val(sels_design);
if( rst == 1 ) {
\$('#pageno').val(1);
\$('#disp_number').val(21);
\$('#orderby').val(2);
}
\$(\"#form1\").submit();
}
function checkAndSetVal() {
let selCntPC = 0;
const designCate = document.forms.formSelPC.design_cate;
for( let i=0; i < designCate.length; i++ ) {
if( designCate[i].checked ) {
selCntPC++;
}
}
let selCntSP = 0;
const designCateSP = document.forms.formSelSP.design_cate;
for( let i=0; i < designCateSP.length; i++ ) {
if( designCateSP[i].checked ) {
selCntSP++;
}
}
if( selCntPC > 0 && selCntSP == 0 ) {
setValPC(0);
}
else if( selCntPC == 0 && selCntSP > 0 ) {
setValSP(0);
}
{# 絞り込み2回目以降はPC版、SP版両方の絞り込みが選択されている #}
else if( selCntPC > 0 && selCntSP > 0 ) {
setValPC(0);
}
else {
return false;
}
}
{% elseif Category.id == 10 %}{# ラッピング #}
{% endif %}
{% endif %}
</script>
<script>
function selAlert() {
var modalThis = \$('body').find('#alert01');
//bodyの最下にwrapを作る
\$('body').append('<div id=\"modalWrapAlert\" />');
var wrap = \$('#modalWrapAlert');
wrap.fadeIn('200');
modalThis.fadeIn('200');
//モーダルの高さを取ってくる
function mdlHeight() {
var wh = \$(window).innerHeight();
var attH = modalThis.find('.modalInnerAlert').innerHeight();
modalThis.css({
height: attH
});
}
mdlHeight();
\$(window).on('resize', function () {
mdlHeight();
});
function clickAction() {
modalThis.fadeOut('200');
wrap.fadeOut('200', function () {
wrap.remove();
});
}
//wrapクリックされたら
wrap.on('click', function () {
clickAction();
return false;
});
//2秒後に消える
setTimeout(clickAction, 2000);
return false;
}
</script>
{% endblock %}
{% block main %}
{% if search_form.category_id.vars.errors|length > 0 %}
<div class=\"ec-searchnavRole\">
<p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
</div>
{% else %}
<div class=\"container\">
<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 %}
{% if Category is not null %}
{% if Category.id == 7 %}{# ボールを選ぶ #}
<input type=\"hidden\" id=\"ball-type\" name=\"ball-type\">
<input type=\"hidden\" id=\"ball-nums\" name=\"ball-nums\">
<input type=\"hidden\" id=\"ball-price\" name=\"ball-price\">
{% elseif Category.id == 8 %}{# マーカーを選ぶ #}
{% elseif Category.id == 9 %}{# デザインを選ぶ #}
<input type=\"hidden\" id=\"design-cate\" name=\"design-cate\">
{% elseif Category.id == 10 %}{# ラッピング #}
{% endif %}
{% endif %}
</form>
<!-- パンくずリスト -->
<nav aria-label=\"breadcrumb\" class=\"my-3\">
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\"><a href=\"{{ url('homepage') }}\">ホーム</a></li>
{% if Category is not null %}
{% if Category.id == 7 %}
<li class=\"breadcrumb-item active\" aria-current=\"page\">ボールを選ぶ</li>
{% elseif Category.id == 8 %}{# マーカーを選ぶ #}
{% elseif Category.id == 9 %}{# デザインを選ぶ #}
<li class=\"breadcrumb-item active\" aria-current=\"page\">デザインを選ぶ</li>
{% elseif Category.id == 10 %}{# ラッピング #}
{% endif %}
{% else %}
<li class=\"breadcrumb-item active\" aria-current=\"page\">全商品</li>
{% endif %}
</ol>
</nav>
<div class=\"layout-2colmun\">
{% if Category is not null %}
{% if Category.id == 7 %}{# ボールを選ぶ #}
{{ include('Product/aside_ball.twig') }}
{% elseif Category.id == 8 %}{# マーカーを選ぶ #}
{% elseif Category.id == 9 %}{# デザインを選ぶ #}
{{ include('Product/aside_design.twig') }}
{% elseif Category.id == 10 %}{# ラッピング #}
{% endif %}
{% else %}
{{ include('Block/aside_others.twig') }}
{% endif %}
<main class=\"main\">
{% if Category is not null %}
{% if Category.id == 7 %}{# ボールを選ぶ #}
<h1 class=\"fw-bold mb-5\">名入れゴルフボール</h1>
<p>
お好きなデザインをゴルフボールに印刷します。<br>
<span class=\"text-danger\">表示価格にはボール代・印刷代が税込みで含まれています。</span>
</p>
{% elseif Category.id == 8 %}{# マーカーを選ぶ #}
{% elseif Category.id == 9 %}{# デザインを選ぶ #}
<h1 class=\"fw-bold mb-5\">名入れデザイン</h1>
<p>
お好きなデザインをゴルフボールに印刷します。<br>
ボールに印刷したいデザインをカートに入れてご注文ください。<br>
お客様の方でデザインのご用意がある場合は「<a href=\"{{ url('product_detail', {'id': 99}) }}\">デザインを入稿する</a>」を選んでデータをアップロードしてください。<br>
<span class=\"text-danger\">デザインの内容によって料金・納期は変わりません。(印刷代も含め、全てボールの代金に含まれています)</span>
</p>
<p class=\"my-3\">導入事例から参考デザインを選ぶこともできます。</p>
<a href=\"\" class=\"btn btn-lg btn-dark py-3 rounded-0\" data-bs-toggle=\"modal\" data-bs-target=\"#fullScreenModal\"><i class=\"icon-arrow_circle_right\"></i>導入事例参考デザインを見る</a>
{% elseif Category.id == 10 %}{# ラッピング #}
{% endif %}
{% endif %}
{% if pagination.totalItemCount > 0 %}
<div class=\"d-flex justify-content-between mb-4 border-bottom py-3 align-items-center flex-column flex-md-row\">
{{ '<div><span class=\"fw-bold\">%count%件</span>の商品が見つかりました。</div>'|trans({ '%count%': pagination.totalItemCount })|raw }}
<div class=\"d-flex mt-3 mt-md-0\">
<div class=\"me-2 d-block d-lg-none\">
{% if Category is not null %}
{% if Category.id == 7 %}{# ボールを選ぶ #}
<a href=\"\" class=\"btn btn-outline-dark btn-sm\" data-bs-toggle=\"modal\" data-bs-target=\"#filterModalBall\">絞込</a>
{% elseif Category.id == 8 %}{# マーカーを選ぶ #}
{% elseif Category.id == 9 %}{# デザインを選ぶ #}
<a href=\"\" class=\"btn btn-outline-dark btn-sm\" data-bs-toggle=\"modal\" data-bs-target=\"#filterModal\">絞込</a>
{% elseif Category.id == 10 %}{# ラッピング #}
{% endif %}
{% endif %}
</div>
{% if pagination.totalItemCount > 0 %}
<div class=\"me-1\">
{{ form_widget(search_form.disp_number, {'id': '', 'attr': {'class': 'disp-number form-select form-select-sm'}}) }}
</div>
{% if Category is not null %}
<div class=\"ms-1{% if Category.id == 9 %} d-none{% endif %}\">
{{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by form-select form-select-sm'}}) }}
</div>
{% else %}
<div class=\"ms-1\">
{{ form_widget(search_form.orderby, {'id': '', 'attr': {'class': 'order-by form-select form-select-sm'}}) }}
</div>
{% endif %}
{% endif %}
</div>
</div>
<div class=\"row\">
{% for Product in pagination %}
{# ▼ 導入事例参考デザインは表示しない #}
<div class=\"col-6 col-lg-4 mb-4\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\" class=\"item-thumb\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" class=\"thumb\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
<div class=\"name\">{{ Product.name }}</div>
{% for Tag in Product.ProductTag %}
{% if Tag.Tag.name == '一番人気' %}
<span class=\"icon -popular\">一番人気</span>
{% elseif Tag.Tag.name == '即日配送' %}
<span class=\"icon -rapid\">即日配送</span>
{% elseif Tag.Tag.name == '代引手数料無料' %}
<span class=\"icon -free\">代引手数料無料</span>
{% elseif Tag.Tag.name == '送料無料' %}
<span class=\"icon -free\">送料無料</span>
{% elseif Tag.Tag.name == '3%還元' %}
<span class=\"icon -point\">3%還元</span>
{% elseif Tag.Tag.name == '人気' %}
<span class=\"icon -popular\">人気</span>
{% endif %}
{% endfor %}
{% if Category is not null %}
{% if Category.id == 7 %}{# ボールを選ぶ #}
<div class=\"price\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|number_format }} 円 (税込)
{% else %}
{{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }} 円 (税込)
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|number_format }} 円 (税込)
{% endif %}
</div>
{% endif %}
{% else %}
<div class=\"price\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|number_format }} 円 (税込)
{% else %}
{{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }} 円 (税込)
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|number_format }} 円 (税込)
{% endif %}
</div>
{% endif %}
</a>
</div>
{% endfor %}
</div>
{#
<ul class=\"pagination justify-content-center mt-5\">
<li class=\"page-item\"><a class=\"page-link text-dark\" href=\"#\">前へ</a></li>
<li class=\"page-item\"><a class=\"page-link text-dark active\" href=\"#\">1</a></li>
<li class=\"page-item\"><a class=\"page-link text-dark\" href=\"#\">2</a></li>
<li class=\"page-item\"><a class=\"page-link text-dark\" href=\"#\">3</a></li>
<li class=\"page-item\"><a class=\"page-link text-dark\" href=\"#\">次へ</a></li>
</ul>
#}
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
{% else %}
<div class=\"d-flex justify-content-between mb-4 border-bottom py-3 align-items-center flex-column flex-md-row\">
<div><span>{{ 'ただいま準備中です'|trans }}</span></div>
</div>
{% endif %}
<div class=\"modalBoxAlert\" id=\"alert01\">
<div class=\"modalInnerAlert\">
絞り込みたい項目がある場合のみチェックしてください。
</div>
</div>
</main>
</div>
</div>
<!-- modal -->
{% if Category is not null %}
{% if Category.id == 7 %}{# ボールを選ぶ #}
<div class=\"modal fade\" id=\"filterModalBall\" tabindex=\"-1\" aria-labelledby=\"filterModalBallLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"filterModalBallLabel\">絞り込み</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<form name=\"formSelSP\" id=\"formSelSP\" method=\"get\" action=\"?\">
<div class=\"modal-body\">
<!-- 絞り込みフォームの内容をここに追加 -->
<div class=\"aside-filter _modal\">
<div class=\"title\">
ボールの種類から選ぶ
</div>
<ul class=\"list-unstyled mb-0 list\">
<li>
<label>
<input type=\"checkbox\" name=\"ball_type\" class=\"ball_type_sp\" value=\"14\"{% if( 14 in Selects['ball-type'] ) %} checked{% endif %}>
持ち込みボール
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_type\" class=\"ball_type_sp\" value=\"11\"{% if( 11 in Selects['ball-type'] ) %} checked{% endif %}>
スリクソン
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_type\" class=\"ball_type_sp\" value=\"12\"{% if( 12 in Selects['ball-type'] ) %} checked{% endif %}>
ゼクシオ
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_type\" class=\"ball_type_sp\" value=\"13\"{% if( 13 in Selects['ball-type'] ) %} checked{% endif %}>
ツアースペシャル
</label>
</li>
</ul>
<div class=\"title\">
ボールの球数から選ぶ
</div>
<ul class=\"list-unstyled mb-0 list\">
<li>
<label>
<input type=\"checkbox\" name=\"ball_nums\" class=\"ball_nums_sp\" value=\"8,13\"{% if( 8 in Selects['ball-nums'] or 13 in Selects['ball-nums'] ) %} checked{% endif %}>
3球
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_nums\" class=\"ball_nums_sp\" value=\"11,14\"{% if( 11 in Selects['ball-nums'] or 14 in Selects['ball-nums'] ) %} checked{% endif %}>
6球
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_nums\" class=\"ball_nums_sp\" value=\"12,15\"{% if( 12 in Selects['ball-nums'] or 15 in Selects['ball-nums'] ) %} checked{% endif %}>
12球
</label>
</li>
</ul>
<div class=\"title\">
価格で選ぶ
</div>
<ul class=\"list-unstyled mb-0 list\">
<li>
<label>
<input type=\"checkbox\" name=\"ball_price\" class=\"ball_price_sp\" value=\"1\"{% if( 1 in Selects['ball-price'] ) %} checked{% endif %}>
~2,999円
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_price\" class=\"ball_price_sp\" value=\"2\"{% if( 2 in Selects['ball-price'] ) %} checked{% endif %}>
3,000円~4,999円
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_price\" class=\"ball_price_sp\" value=\"3\"{% if( 3 in Selects['ball-price'] ) %} checked{% endif %}>
5,000円~9,999円
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"ball_price\" class=\"ball_price_sp\" value=\"4\"{% if( 4 in Selects['ball-price'] ) %} checked{% endif %}>
10,000円以上
</label>
</li>
</ul>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-outline-dark\" data-bs-dismiss=\"modal\">閉じる</button>
<button type=\"button\" class=\"btn btn-outline-dark\" onclick=\"location.href='{{ url('product_list') }}?category_id=7'\">クリア</button>
<button type=\"button\" class=\"btn btn-primary\" onclick=\"setValSP();\">絞り込む</button>
</div>
</form>
</div>
</div>
</div>
{% elseif Category.id == 8 %}{# マーカーを選ぶ #}
{% elseif Category.id == 9 %}{# デザインを選ぶ #}
<div class=\"modal fade\" id=\"filterModal\" tabindex=\"-1\" aria-labelledby=\"filterModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"filterModalLabel\">絞り込み</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<form name=\"formSelSP\" id=\"formSelSP\" method=\"get\" action=\"?\">
<div class=\"modal-body\">
<!-- 絞り込みフォームの内容をここに追加 -->
<div class=\"aside-filter _modal\">
<div class=\"title\">
カテゴリから選ぶ
</div>
<ul class=\"list-unstyled mb-0 list\">
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"15\"{% if( 15 in Selects['design-cate'] ) %} checked{% endif %}>
誕生日祝い
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"16\"{% if( 16 in Selects['design-cate'] ) %} checked{% endif %}>
定年退職祝い
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"17\"{% if( 17 in Selects['design-cate'] ) %} checked{% endif %}>
還暦祝い
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"18\"{% if( 18 in Selects['design-cate'] ) %} checked{% endif %}>
コンペ景品
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"19\"{% if( 19 in Selects['design-cate'] ) %} checked{% endif %}>
父の日祝い
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"20\"{% if( 20 in Selects['design-cate'] ) %} checked{% endif %}>
母の日祝い
</label>
</li>
<li>
<label>
<input type=\"checkbox\" name=\"design_cate\" class=\"design_cate_sp\" value=\"21\"{% if( 21 in Selects['design-cate'] ) %} checked{% endif %}>
GOLFPRINT オリジナル
</label>
</li>
</ul>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-outline-dark\" data-bs-dismiss=\"modal\">閉じる</button>
<button type=\"button\" class=\"btn btn-outline-dark\" onclick=\"location.href='{{ url('product_list') }}?category_id=9'\">クリア</button>
<button type=\"button\" class=\"btn btn-primary\" onclick=\"setValSP();\">絞り込む</button>
</div>
</form>
</div>
</div>
</div>
<!-- modal 導入事例事例参考デザイン -->
<div class=\"modal fade\" id=\"fullScreenModal\" tabindex=\"-1\" aria-labelledby=\"fullScreenModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered modal-dialog-scrollable\" style=\"max-width: 100vw; margin: 0;\">
<div class=\"modal-content\" style=\"height: 100vh;\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"fullScreenModalLabel\">導入事例参考デザイン</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body\">
<div class=\"row\">
{% for CaseData in CaseDataList %}
<div class=\"col-6 col-md-4 col-lg-3 col-xxl-2 mb-4\">
<div class=\"bg-secondary p-3 rounded\">
<form name=\"formCase{{ CaseData.id }}\" id=\"productFormCase{{ CaseData.id }}\" action=\"{{ url('product_add_cart_case', {id:CaseData.id}) }}\" method=\"post\">
<input type=\"hidden\" id=\"quantityCase{{ CaseData.id }}\" name=\"quantity\" value=\"1\">
<input type=\"hidden\" id=\"product_idCase{{ CaseData.id }}\" name=\"product_id\" value=\"101\">
<input type=\"hidden\" id=\"ProductClassCase{{ CaseData.id }}\" name=\"ProductClass\" value=\"320\">
<input type=\"hidden\" id=\"_tokenCase{{ CaseData.id }}\" name=\"_token\" value=\"{{ csrf_token('_token') }}\">
<a href=\"javascript:formCase{{ CaseData.id }}.submit()\" class=\"numbering-container\">
<div class=\"number\">{{ CaseData.id }}</div>
<img src=\"/icms/user_data/image/Voice1/{{ CaseData.thumbnail_gazo }}\" class=\"img-fluid text-dark mb-3\" alt=\"{{ CaseData.title }}\" width=\"500\" height=\"500\">
<p class=\"text-center text-dark mb-1\">[NO.{{ CaseData.id }}]</p>
<p class=\"text-center text-dark mb-0\">{{ CaseData.title|raw }}</p>
</a>
</form>
</div>
</div>
{% endfor %}
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-outline-dark\" data-bs-dismiss=\"modal\">閉じる</button>
</div>
</div>
</div>
</div>
{% elseif Category.id == 10 %}{# ラッピング #}
{% endif %}
{% endif %}
{% endif %}
{% endblock %}
", "Product/list.twig", "/home/insp/insp.sixcore.jp/public_html/app/template/default/Product/list.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 13, "set" => 15, "for" => 87, "include" => 737);
static $filters = array("escape" => 88, "raw" => 88, "trans" => 260, "length" => 569, "no_image_product" => 680, "number_format" => 702);
static $functions = array("class_categories_as_json" => 88, "url" => 288, "include" => 613, "form_widget" => 661, "asset" => 680, "csrf_token" => 947);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'for', 'include'],
['escape', 'raw', 'trans', 'length', 'no_image_product', 'number_format'],
['class_categories_as_json', 'url', 'include', 'form_widget', 'asset', 'csrf_token']
);
} 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;
}
}
}