<?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;
/* @tbsFeaturePage/default/feature_detail.twig */
class __TwigTemplate_3314f404788a0b4c6280ebbcd92b7115 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
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", "@tbsFeaturePage/default/feature_detail.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@tbsFeaturePage/default/feature_detail.twig"));
// line 3
$context["body_class"] = "Feature_detail_page product_page";
// line 1
$this->parent = $this->loadTemplate("default_frame.twig", "@tbsFeaturePage/default/feature_detail.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
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 6
echo "<script>
eccube.productsClassCategories = {
";
// line 8
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Products"]) || array_key_exists("Products", $context) ? $context["Products"] : (function () { throw new RuntimeError('Variable "Products" does not exist.', 8, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 9
echo " \"";
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, true, 9), 9, $this->source), "js"), "html", null, true);
echo "\": ";
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed($context["Product"], 9, $this->source));
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 9) == false)) {
echo ", ";
}
// line 10
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 11
echo " };
\$('.add-cart').click(function(e) {
var \$form = \$(this).parents('li').find('form');
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('";
// line 19
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').html(this);
});
\$('#ec-modal-checkbox').prop('checked', true);
// カートブロックを更新する
\$.ajax({
url: '";
// line 47
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 54
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);
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 63
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 64
echo "
<div>
<div class=\"col-md-12\">
\t\t\t<div class=\"inner\">
\t\t\t\t<div class=\"page_title\">
<div class=\"ec-shelfRole\">
\t\t\t\t\t<h1>";
// line 70
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 70, $this->source); })()), "title", [], "any", false, false, true, 70), 70, $this->source), "html", null, true);
echo "</h1>
</div>
\t\t\t\t</div><!-- /.page_title -->
\t\t\t\t<div class=\"cmn_box02\">
<div class=\"ec-shelfRole\">
";
// line 76
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 76, $this->source); })()), "main_content", [], "any", false, false, true, 76), 76, $this->source);
echo "
</div>
</div>
\t\t\t\t<div class=\"cmn_box02\">
<div class=\"ec-shelfRole\">
";
// line 82
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 82, $this->source); })()), "content1", [], "any", false, false, true, 82), 82, $this->source);
echo "
</div>
\t\t\t\t</div><!-- /.cmn_box02 -->
";
// line 86
if ((twig_get_attribute($this->env, $this->source, ($context["FeatureProducts"] ?? null), 1, [], "array", true, true, true, 86) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["FeatureProducts"]) || array_key_exists("FeatureProducts", $context) ? $context["FeatureProducts"] : (function () { throw new RuntimeError('Variable "FeatureProducts" does not exist.', 86, $this->source); })()), 1, [], "array", false, false, true, 86)))) {
// line 87
echo " <div class=\"cmn-itmBox\">
<!-- ▼item_list▼ -->
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
";
// line 92
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["FeatureProducts"]) || array_key_exists("FeatureProducts", $context) ? $context["FeatureProducts"] : (function () { throw new RuntimeError('Variable "FeatureProducts" does not exist.', 92, $this->source); })()), 1, [], "array", false, false, true, 92));
foreach ($context['_seq'] as $context["_key"] => $context["FeatureProduct"]) {
// line 93
echo " ";
$context["Product"] = twig_get_attribute($this->env, $this->source, $context["FeatureProduct"], "Product", [], "any", false, false, true, 93);
// line 94
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 95
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 95, $this->source); })()), "id", [], "any", false, false, true, 95)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"";
// line 97
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, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 97, $this->source); })()), "main_list_image", [], "any", false, false, true, 97), 97, $this->source)), "save_image"), "html", null, true);
echo "\">
</p>
<p class=\"ttl\">";
// line 99
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 99, $this->source); })()), "name", [], "any", false, false, true, 99), 99, $this->source), "html", null, true);
echo "</p>
";
// line 100
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 100, $this->source); })()), "description_list", [], "any", false, false, true, 100)) {
// line 101
echo " <p class=\"subtext\">";
echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 101, $this->source); })()), "description_list", [], "any", false, false, true, 101), 101, $this->source));
echo "</p>
";
}
// line 103
echo " <p class=\"price02-default\">
";
// line 104
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 104, $this->source); })()), "hasProductClass", [], "any", false, false, true, 104)) {
// line 105
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 105, $this->source); })()), "getPrice02Min", [], "any", false, false, true, 105) == twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 105, $this->source); })()), "getPrice02Max", [], "any", false, false, true, 105))) {
// line 106
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 106, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 106), 106, $this->source)), "html", null, true);
echo "
";
} else {
// line 108
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 108, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 108), 108, $this->source)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 108, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 108), 108, $this->source)), "html", null, true);
echo "
";
}
// line 110
echo " ";
} else {
// line 111
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 111, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 111), 111, $this->source)), "html", null, true);
echo "
";
}
// line 113
echo " <span>(税込)</span>
</p>
</a>
";
// line 116
if (twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 116, $this->source); })()), "display_cart", [], "any", false, false, true, 116)) {
// line 117
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 117, $this->source); })()), "stock_find", [], "any", false, false, true, 117)) {
// line 118
echo " ";
$context["form"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["forms"]) || array_key_exists("forms", $context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.', 118, $this->source); })()), 1, [], "array", false, false, true, 118), twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 118, $this->source); })()), "id", [], "any", false, false, true, 118), [], "array", false, false, true, 118);
// line 119
echo " <form name=\"form";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 119, $this->source); })()), "id", [], "any", false, false, true, 119), 119, $this->source), "html", null, true);
echo "\" id=\"productForm";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 119, $this->source); })()), "id", [], "any", false, false, true, 119), 119, $this->source), "html", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 119, $this->source); })()), "id", [], "any", false, false, true, 119)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"ec-productRole__actions\">
";
// line 121
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 121)) {
// line 122
echo " <div class=\"ec-select\">
";
// line 123
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 123, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 123), 123, $this->source), 'widget');
echo "
";
// line 124
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 124, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 124), 124, $this->source), 'errors');
echo "
</div>
";
// line 126
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 126)) {
// line 127
echo " <div class=\"ec-select\">
";
// line 128
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 128, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 128), 128, $this->source), 'widget');
echo "
";
// line 129
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 129, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 129), 129, $this->source), 'errors');
echo "
</div>
";
}
// line 132
echo " ";
}
// line 133
echo " <div class=\"ec-numberInput\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html", null, true);
echo "</span>
";
// line 134
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 134, $this->source); })()), "quantity", [], "any", false, false, true, 134), 134, $this->source), 'widget', ["attr" => ["class" => "quantity"]]);
echo "
";
// line 135
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 135, $this->source); })()), "quantity", [], "any", false, false, true, 135), 135, $this->source), 'errors');
echo "
</div>
</div>
";
// line 138
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 138, $this->source); })()), 138, $this->source), 'rest');
echo "
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
// line 141
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 141, $this->source); })()), "id", [], "any", false, false, true, 141), 141, $this->source), "html", null, true);
echo "\" form=\"productForm";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 141, $this->source); })()), "id", [], "any", false, false, true, 141), 141, $this->source), "html", null, true);
echo "\">
";
// line 142
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>
";
} else {
// line 146
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 148
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
</div>
";
}
// line 152
echo " ";
}
// line 153
echo " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['FeatureProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 155
echo " </ul>
</div>
<!-- ▲item_list▲ -->
</div><!-- /.cmn_box02 -->
";
}
// line 161
echo "
";
// line 162
if (twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 162, $this->source); })()), "content2", [], "any", false, false, true, 162)) {
// line 163
echo " <div class=\"cmn_box02\">
<div class=\"ec-shelfRole\">
";
// line 165
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 165, $this->source); })()), "content2", [], "any", false, false, true, 165), 165, $this->source);
echo "
</div>
</div><!-- /.cmn_box02 -->
";
// line 169
if ((twig_get_attribute($this->env, $this->source, ($context["FeatureProducts"] ?? null), 2, [], "array", true, true, true, 169) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["FeatureProducts"]) || array_key_exists("FeatureProducts", $context) ? $context["FeatureProducts"] : (function () { throw new RuntimeError('Variable "FeatureProducts" does not exist.', 169, $this->source); })()), 2, [], "array", false, false, true, 169)))) {
// line 170
echo " <div class=\"cmn-itmBox\">
<!-- ▼item_list▼ -->
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
";
// line 175
$context["formsPosition"] = twig_get_attribute($this->env, $this->source, (isset($context["forms"]) || array_key_exists("forms", $context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.', 175, $this->source); })()), 2, [], "array", false, false, true, 175);
// line 176
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["FeatureProducts"]) || array_key_exists("FeatureProducts", $context) ? $context["FeatureProducts"] : (function () { throw new RuntimeError('Variable "FeatureProducts" does not exist.', 176, $this->source); })()), 2, [], "array", false, false, true, 176));
foreach ($context['_seq'] as $context["_key"] => $context["FeatureProduct"]) {
// line 177
echo " ";
$context["Product"] = twig_get_attribute($this->env, $this->source, $context["FeatureProduct"], "Product", [], "any", false, false, true, 177);
// line 178
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 179
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 179, $this->source); })()), "id", [], "any", false, false, true, 179)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"";
// line 181
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, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 181, $this->source); })()), "main_list_image", [], "any", false, false, true, 181), 181, $this->source)), "save_image"), "html", null, true);
echo "\">
</p>
<p class=\"ttl\">";
// line 183
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 183, $this->source); })()), "name", [], "any", false, false, true, 183), 183, $this->source), "html", null, true);
echo "</p>
";
// line 184
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 184, $this->source); })()), "description_list", [], "any", false, false, true, 184)) {
// line 185
echo " <p class=\"subtext\">";
echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 185, $this->source); })()), "description_list", [], "any", false, false, true, 185), 185, $this->source));
echo "</p>
";
}
// line 187
echo " <p class=\"price02-default\">
";
// line 188
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 188, $this->source); })()), "hasProductClass", [], "any", false, false, true, 188)) {
// line 189
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 189, $this->source); })()), "getPrice02Min", [], "any", false, false, true, 189) == twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 189, $this->source); })()), "getPrice02Max", [], "any", false, false, true, 189))) {
// line 190
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 190, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 190), 190, $this->source)), "html", null, true);
echo "
";
} else {
// line 192
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 192, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 192), 192, $this->source)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 192, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 192), 192, $this->source)), "html", null, true);
echo "
";
}
// line 194
echo " ";
} else {
// line 195
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 195, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 195), 195, $this->source)), "html", null, true);
echo "
";
}
// line 197
echo " <span>(税込)</span>
</p>
</a>
";
// line 200
if (twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 200, $this->source); })()), "display_cart", [], "any", false, false, true, 200)) {
// line 201
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 201, $this->source); })()), "stock_find", [], "any", false, false, true, 201)) {
// line 202
echo " ";
$context["form"] = twig_get_attribute($this->env, $this->source, (isset($context["formsPosition"]) || array_key_exists("formsPosition", $context) ? $context["formsPosition"] : (function () { throw new RuntimeError('Variable "formsPosition" does not exist.', 202, $this->source); })()), twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 202, $this->source); })()), "id", [], "any", false, false, true, 202), [], "array", false, false, true, 202);
// line 203
echo " <form name=\"form";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 203, $this->source); })()), "id", [], "any", false, false, true, 203), 203, $this->source), "html", null, true);
echo "\" id=\"productForm";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 203, $this->source); })()), "id", [], "any", false, false, true, 203), 203, $this->source), "html", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 203, $this->source); })()), "id", [], "any", false, false, true, 203)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"ec-productRole__actions\">
";
// line 205
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 205)) {
// line 206
echo " <div class=\"ec-select\">
";
// line 207
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 207, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 207), 207, $this->source), 'widget');
echo "
";
// line 208
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 208, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 208), 208, $this->source), 'errors');
echo "
</div>
";
// line 210
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 210)) {
// line 211
echo " <div class=\"ec-select\">
";
// line 212
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 212, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 212), 212, $this->source), 'widget');
echo "
";
// line 213
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 213, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 213), 213, $this->source), 'errors');
echo "
</div>
";
}
// line 216
echo " ";
}
// line 217
echo " <div class=\"ec-numberInput\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html", null, true);
echo "</span>
";
// line 218
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 218, $this->source); })()), "quantity", [], "any", false, false, true, 218), 218, $this->source), 'widget', ["attr" => ["class" => "quantity"]]);
echo "
";
// line 219
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 219, $this->source); })()), "quantity", [], "any", false, false, true, 219), 219, $this->source), 'errors');
echo "
</div>
</div>
";
// line 222
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 222, $this->source); })()), 222, $this->source), 'rest');
echo "
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
// line 225
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 225, $this->source); })()), "id", [], "any", false, false, true, 225), 225, $this->source), "html", null, true);
echo "\" form=\"productForm";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 225, $this->source); })()), "id", [], "any", false, false, true, 225), 225, $this->source), "html", null, true);
echo "\">
";
// line 226
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>
";
} else {
// line 230
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 232
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
</div>
";
}
// line 236
echo " ";
}
// line 237
echo " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['FeatureProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 239
echo " </ul>
</div>
<!-- ▲item_list▲ -->
</div><!-- /.cmn_box02 -->
";
}
// line 245
echo " ";
}
// line 246
echo "
";
// line 247
if (twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 247, $this->source); })()), "content3", [], "any", false, false, true, 247)) {
// line 248
echo " <div class=\"cmn_box02\">
<div class=\"ec-shelfRole\">
";
// line 250
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 250, $this->source); })()), "content3", [], "any", false, false, true, 250), 250, $this->source);
echo "
</div>
</div><!-- /.cmn_box02 -->
";
// line 254
if ((twig_get_attribute($this->env, $this->source, ($context["FeatureProducts"] ?? null), 3, [], "array", true, true, true, 254) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["FeatureProducts"]) || array_key_exists("FeatureProducts", $context) ? $context["FeatureProducts"] : (function () { throw new RuntimeError('Variable "FeatureProducts" does not exist.', 254, $this->source); })()), 3, [], "array", false, false, true, 254)))) {
// line 255
echo " <div class=\"cmn-itmBox\">
<!-- ▼item_list▼ -->
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
";
// line 260
$context["formsPosition"] = twig_get_attribute($this->env, $this->source, (isset($context["forms"]) || array_key_exists("forms", $context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.', 260, $this->source); })()), 3, [], "array", false, false, true, 260);
// line 261
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["FeatureProducts"]) || array_key_exists("FeatureProducts", $context) ? $context["FeatureProducts"] : (function () { throw new RuntimeError('Variable "FeatureProducts" does not exist.', 261, $this->source); })()), 3, [], "array", false, false, true, 261));
foreach ($context['_seq'] as $context["_key"] => $context["FeatureProduct"]) {
// line 262
echo " ";
$context["Product"] = twig_get_attribute($this->env, $this->source, $context["FeatureProduct"], "Product", [], "any", false, false, true, 262);
// line 263
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 264
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 264, $this->source); })()), "id", [], "any", false, false, true, 264)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"";
// line 266
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, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 266, $this->source); })()), "main_list_image", [], "any", false, false, true, 266), 266, $this->source)), "save_image"), "html", null, true);
echo "\">
</p>
<p class=\"ttl\">";
// line 268
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 268, $this->source); })()), "name", [], "any", false, false, true, 268), 268, $this->source), "html", null, true);
echo "</p>
";
// line 269
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 269, $this->source); })()), "description_list", [], "any", false, false, true, 269)) {
// line 270
echo " <p class=\"subtext\">";
echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 270, $this->source); })()), "description_list", [], "any", false, false, true, 270), 270, $this->source));
echo "</p>
";
}
// line 272
echo " <p class=\"price02-default\">
";
// line 273
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 273, $this->source); })()), "hasProductClass", [], "any", false, false, true, 273)) {
// line 274
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 274, $this->source); })()), "getPrice02Min", [], "any", false, false, true, 274) == twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 274, $this->source); })()), "getPrice02Max", [], "any", false, false, true, 274))) {
// line 275
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 275, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 275), 275, $this->source)), "html", null, true);
echo "
";
} else {
// line 277
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 277, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 277), 277, $this->source)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 277, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 277), 277, $this->source)), "html", null, true);
echo "
";
}
// line 279
echo " ";
} else {
// line 280
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 280, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 280), 280, $this->source)), "html", null, true);
echo "
";
}
// line 282
echo " <span>(税込)</span>
</p>
</a>
";
// line 285
if (twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 285, $this->source); })()), "display_cart", [], "any", false, false, true, 285)) {
// line 286
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 286, $this->source); })()), "stock_find", [], "any", false, false, true, 286)) {
// line 287
echo " ";
$context["form"] = twig_get_attribute($this->env, $this->source, (isset($context["formsPosition"]) || array_key_exists("formsPosition", $context) ? $context["formsPosition"] : (function () { throw new RuntimeError('Variable "formsPosition" does not exist.', 287, $this->source); })()), twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 287, $this->source); })()), "id", [], "any", false, false, true, 287), [], "array", false, false, true, 287);
// line 288
echo " <form name=\"form";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 288, $this->source); })()), "id", [], "any", false, false, true, 288), 288, $this->source), "html", null, true);
echo "\" id=\"productForm";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 288, $this->source); })()), "id", [], "any", false, false, true, 288), 288, $this->source), "html", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 288, $this->source); })()), "id", [], "any", false, false, true, 288)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"ec-productRole__actions\">
";
// line 290
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 290)) {
// line 291
echo " <div class=\"ec-select\">
";
// line 292
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 292, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 292), 292, $this->source), 'widget');
echo "
";
// line 293
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 293, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 293), 293, $this->source), 'errors');
echo "
</div>
";
// line 295
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 295)) {
// line 296
echo " <div class=\"ec-select\">
";
// line 297
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 297, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 297), 297, $this->source), 'widget');
echo "
";
// line 298
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 298, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 298), 298, $this->source), 'errors');
echo "
</div>
";
}
// line 301
echo " ";
}
// line 302
echo " <div class=\"ec-numberInput\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html", null, true);
echo "</span>
";
// line 303
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 303, $this->source); })()), "quantity", [], "any", false, false, true, 303), 303, $this->source), 'widget', ["attr" => ["class" => "quantity"]]);
echo "
";
// line 304
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 304, $this->source); })()), "quantity", [], "any", false, false, true, 304), 304, $this->source), 'errors');
echo "
</div>
</div>
";
// line 307
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 307, $this->source); })()), 307, $this->source), 'rest');
echo "
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
// line 310
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 310, $this->source); })()), "id", [], "any", false, false, true, 310), 310, $this->source), "html", null, true);
echo "\" form=\"productForm";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 310, $this->source); })()), "id", [], "any", false, false, true, 310), 310, $this->source), "html", null, true);
echo "\">
";
// line 311
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>
";
} else {
// line 315
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 317
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
</div>
";
}
// line 321
echo " ";
}
// line 322
echo " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['FeatureProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 324
echo " </ul>
</div>
<!-- ▲item_list▲ -->
</div><!-- /.cmn_box02 -->
";
}
// line 330
echo " ";
}
// line 331
echo "
";
// line 332
if (twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 332, $this->source); })()), "content4", [], "any", false, false, true, 332)) {
// line 333
echo " <div class=\"cmn_box02\">
<div class=\"ec-shelfRole\">
";
// line 335
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 335, $this->source); })()), "content4", [], "any", false, false, true, 335), 335, $this->source);
echo "
</div>
</div><!-- /.cmn_box02 -->
";
// line 339
if ((twig_get_attribute($this->env, $this->source, ($context["FeatureProducts"] ?? null), 4, [], "array", true, true, true, 339) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["FeatureProducts"]) || array_key_exists("FeatureProducts", $context) ? $context["FeatureProducts"] : (function () { throw new RuntimeError('Variable "FeatureProducts" does not exist.', 339, $this->source); })()), 4, [], "array", false, false, true, 339)))) {
// line 340
echo " <div class=\"cmn-itmBox\">
<!-- ▼item_list▼ -->
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
";
// line 345
$context["formsPosition"] = twig_get_attribute($this->env, $this->source, (isset($context["forms"]) || array_key_exists("forms", $context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.', 345, $this->source); })()), 4, [], "array", false, false, true, 345);
// line 346
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["FeatureProducts"]) || array_key_exists("FeatureProducts", $context) ? $context["FeatureProducts"] : (function () { throw new RuntimeError('Variable "FeatureProducts" does not exist.', 346, $this->source); })()), 4, [], "array", false, false, true, 346));
foreach ($context['_seq'] as $context["_key"] => $context["FeatureProduct"]) {
// line 347
echo " ";
$context["Product"] = twig_get_attribute($this->env, $this->source, $context["FeatureProduct"], "Product", [], "any", false, false, true, 347);
// line 348
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 349
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 349, $this->source); })()), "id", [], "any", false, false, true, 349)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"";
// line 351
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, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 351, $this->source); })()), "main_list_image", [], "any", false, false, true, 351), 351, $this->source)), "save_image"), "html", null, true);
echo "\">
</p>
<p class=\"ttl\">";
// line 353
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 353, $this->source); })()), "name", [], "any", false, false, true, 353), 353, $this->source), "html", null, true);
echo "</p>
";
// line 354
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 354, $this->source); })()), "description_list", [], "any", false, false, true, 354)) {
// line 355
echo " <p class=\"subtext\">";
echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 355, $this->source); })()), "description_list", [], "any", false, false, true, 355), 355, $this->source));
echo "</p>
";
}
// line 357
echo " <p class=\"price02-default\">
";
// line 358
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 358, $this->source); })()), "hasProductClass", [], "any", false, false, true, 358)) {
// line 359
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 359, $this->source); })()), "getPrice02Min", [], "any", false, false, true, 359) == twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 359, $this->source); })()), "getPrice02Max", [], "any", false, false, true, 359))) {
// line 360
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 360, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 360), 360, $this->source)), "html", null, true);
echo "
";
} else {
// line 362
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 362, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 362), 362, $this->source)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 362, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 362), 362, $this->source)), "html", null, true);
echo "
";
}
// line 364
echo " ";
} else {
// line 365
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 365, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 365), 365, $this->source)), "html", null, true);
echo "
";
}
// line 367
echo " <span>(税込)</span>
</p>
</a>
";
// line 370
if (twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 370, $this->source); })()), "display_cart", [], "any", false, false, true, 370)) {
// line 371
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 371, $this->source); })()), "stock_find", [], "any", false, false, true, 371)) {
// line 372
echo " ";
$context["form"] = twig_get_attribute($this->env, $this->source, (isset($context["formsPosition"]) || array_key_exists("formsPosition", $context) ? $context["formsPosition"] : (function () { throw new RuntimeError('Variable "formsPosition" does not exist.', 372, $this->source); })()), twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 372, $this->source); })()), "id", [], "any", false, false, true, 372), [], "array", false, false, true, 372);
// line 373
echo " <form name=\"form";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 373, $this->source); })()), "id", [], "any", false, false, true, 373), 373, $this->source), "html", null, true);
echo "\" id=\"productForm";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 373, $this->source); })()), "id", [], "any", false, false, true, 373), 373, $this->source), "html", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 373, $this->source); })()), "id", [], "any", false, false, true, 373)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"ec-productRole__actions\">
";
// line 375
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 375)) {
// line 376
echo " <div class=\"ec-select\">
";
// line 377
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 377, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 377), 377, $this->source), 'widget');
echo "
";
// line 378
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 378, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 378), 378, $this->source), 'errors');
echo "
</div>
";
// line 380
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 380)) {
// line 381
echo " <div class=\"ec-select\">
";
// line 382
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 382, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 382), 382, $this->source), 'widget');
echo "
";
// line 383
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 383, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 383), 383, $this->source), 'errors');
echo "
</div>
";
}
// line 386
echo " ";
}
// line 387
echo " <div class=\"ec-numberInput\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html", null, true);
echo "</span>
";
// line 388
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 388, $this->source); })()), "quantity", [], "any", false, false, true, 388), 388, $this->source), 'widget', ["attr" => ["class" => "quantity"]]);
echo "
";
// line 389
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 389, $this->source); })()), "quantity", [], "any", false, false, true, 389), 389, $this->source), 'errors');
echo "
</div>
</div>
";
// line 392
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 392, $this->source); })()), 392, $this->source), 'rest');
echo "
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
// line 395
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 395, $this->source); })()), "id", [], "any", false, false, true, 395), 395, $this->source), "html", null, true);
echo "\" form=\"productForm";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 395, $this->source); })()), "id", [], "any", false, false, true, 395), 395, $this->source), "html", null, true);
echo "\">
";
// line 396
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>
";
} else {
// line 400
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 402
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
</div>
";
}
// line 406
echo " ";
}
// line 407
echo " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['FeatureProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 409
echo " </ul>
</div>
<!-- ▲item_list▲ -->
</div><!-- /.cmn_box02 -->
";
}
// line 415
echo " ";
}
// line 416
echo "
";
// line 417
if (twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 417, $this->source); })()), "content5", [], "any", false, false, true, 417)) {
// line 418
echo " <div class=\"cmn_box02\">
<div class=\"ec-shelfRole\">
";
// line 420
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 420, $this->source); })()), "content5", [], "any", false, false, true, 420), 420, $this->source);
echo "
</div>
</div><!-- /.cmn_box02 -->
";
// line 424
if ((twig_get_attribute($this->env, $this->source, ($context["FeatureProducts"] ?? null), 5, [], "array", true, true, true, 424) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["FeatureProducts"]) || array_key_exists("FeatureProducts", $context) ? $context["FeatureProducts"] : (function () { throw new RuntimeError('Variable "FeatureProducts" does not exist.', 424, $this->source); })()), 5, [], "array", false, false, true, 424)))) {
// line 425
echo " <div class=\"cmn-itmBox\">
<!-- ▼item_list▼ -->
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
";
// line 430
$context["formsPosition"] = twig_get_attribute($this->env, $this->source, (isset($context["forms"]) || array_key_exists("forms", $context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.', 430, $this->source); })()), 5, [], "array", false, false, true, 430);
// line 431
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["FeatureProducts"]) || array_key_exists("FeatureProducts", $context) ? $context["FeatureProducts"] : (function () { throw new RuntimeError('Variable "FeatureProducts" does not exist.', 431, $this->source); })()), 5, [], "array", false, false, true, 431));
foreach ($context['_seq'] as $context["_key"] => $context["FeatureProduct"]) {
// line 432
echo " ";
$context["Product"] = twig_get_attribute($this->env, $this->source, $context["FeatureProduct"], "Product", [], "any", false, false, true, 432);
// line 433
echo " <li class=\"ec-shelfGrid__item\">
<a href=\"";
// line 434
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 434, $this->source); })()), "id", [], "any", false, false, true, 434)]), "html", null, true);
echo "\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"";
// line 436
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, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 436, $this->source); })()), "main_list_image", [], "any", false, false, true, 436), 436, $this->source)), "save_image"), "html", null, true);
echo "\">
</p>
<p class=\"ttl\">";
// line 438
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 438, $this->source); })()), "name", [], "any", false, false, true, 438), 438, $this->source), "html", null, true);
echo "</p>
";
// line 439
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 439, $this->source); })()), "description_list", [], "any", false, false, true, 439)) {
// line 440
echo " <p class=\"subtext\">";
echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 440, $this->source); })()), "description_list", [], "any", false, false, true, 440), 440, $this->source));
echo "</p>
";
}
// line 442
echo " <p class=\"price02-default\">
";
// line 443
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 443, $this->source); })()), "hasProductClass", [], "any", false, false, true, 443)) {
// line 444
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 444, $this->source); })()), "getPrice02Min", [], "any", false, false, true, 444) == twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 444, $this->source); })()), "getPrice02Max", [], "any", false, false, true, 444))) {
// line 445
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 445, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 445), 445, $this->source)), "html", null, true);
echo "
";
} else {
// line 447
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 447, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 447), 447, $this->source)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 447, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 447), 447, $this->source)), "html", null, true);
echo "
";
}
// line 449
echo " ";
} else {
// line 450
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 450, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 450), 450, $this->source)), "html", null, true);
echo "
";
}
// line 452
echo " <span>(税込)</span>
</p>
</a>
";
// line 455
if (twig_get_attribute($this->env, $this->source, (isset($context["Feature"]) || array_key_exists("Feature", $context) ? $context["Feature"] : (function () { throw new RuntimeError('Variable "Feature" does not exist.', 455, $this->source); })()), "display_cart", [], "any", false, false, true, 455)) {
// line 456
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 456, $this->source); })()), "stock_find", [], "any", false, false, true, 456)) {
// line 457
echo " ";
$context["form"] = twig_get_attribute($this->env, $this->source, (isset($context["formsPosition"]) || array_key_exists("formsPosition", $context) ? $context["formsPosition"] : (function () { throw new RuntimeError('Variable "formsPosition" does not exist.', 457, $this->source); })()), twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 457, $this->source); })()), "id", [], "any", false, false, true, 457), [], "array", false, false, true, 457);
// line 458
echo " <form name=\"form";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 458, $this->source); })()), "id", [], "any", false, false, true, 458), 458, $this->source), "html", null, true);
echo "\" id=\"productForm";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 458, $this->source); })()), "id", [], "any", false, false, true, 458), 458, $this->source), "html", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 458, $this->source); })()), "id", [], "any", false, false, true, 458)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"ec-productRole__actions\">
";
// line 460
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 460)) {
// line 461
echo " <div class=\"ec-select\">
";
// line 462
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 462, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 462), 462, $this->source), 'widget');
echo "
";
// line 463
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 463, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 463), 463, $this->source), 'errors');
echo "
</div>
";
// line 465
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 465)) {
// line 466
echo " <div class=\"ec-select\">
";
// line 467
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 467, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 467), 467, $this->source), 'widget');
echo "
";
// line 468
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 468, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 468), 468, $this->source), 'errors');
echo "
</div>
";
}
// line 471
echo " ";
}
// line 472
echo " <div class=\"ec-numberInput\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html", null, true);
echo "</span>
";
// line 473
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 473, $this->source); })()), "quantity", [], "any", false, false, true, 473), 473, $this->source), 'widget', ["attr" => ["class" => "quantity"]]);
echo "
";
// line 474
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 474, $this->source); })()), "quantity", [], "any", false, false, true, 474), 474, $this->source), 'errors');
echo "
</div>
</div>
";
// line 477
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 477, $this->source); })()), 477, $this->source), 'rest');
echo "
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
// line 480
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 480, $this->source); })()), "id", [], "any", false, false, true, 480), 480, $this->source), "html", null, true);
echo "\" form=\"productForm";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 480, $this->source); })()), "id", [], "any", false, false, true, 480), 480, $this->source), "html", null, true);
echo "\">
";
// line 481
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>
";
} else {
// line 485
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 487
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
</div>
";
}
// line 491
echo " ";
}
// line 492
echo " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['FeatureProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 494
echo " </ul>
</div>
<!-- ▲item_list▲ -->
</div><!-- /.cmn_box02 -->
";
}
// line 500
echo " ";
}
// line 501
echo "
\t\t\t</div>
</div>
</div>
<div class=\"ec-modal\">
<input type=\"checkbox\" id=\"ec-modal-checkbox\" class=\"checkbox\">
<div class=\"ec-modal-overlay\">
<label for=\"ec-modal-checkbox\" class=\"ec-modal-overlay-close\"></label>
<div class=\"ec-modal-wrap\">
<label for=\"ec-modal-checkbox\" class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
// line 511
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html", null, true);
echo "\" alt=\"\"/></span></label>
<div id=\"ec-modal-header\" class=\"text-center\">";
// line 512
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html", null, true);
echo "</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<label for=\"ec-modal-checkbox\" class=\"ec-inlineBtn--cancel\">";
// line 515
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</label>
<a href=\"";
// line 516
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\" class=\"ec-inlineBtn--action\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@tbsFeaturePage/default/feature_detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1293 => 516, 1289 => 515, 1283 => 512, 1279 => 511, 1267 => 501, 1264 => 500, 1256 => 494, 1249 => 492, 1246 => 491, 1239 => 487, 1235 => 485, 1228 => 481, 1222 => 480, 1216 => 477, 1210 => 474, 1206 => 473, 1201 => 472, 1198 => 471, 1192 => 468, 1188 => 467, 1185 => 466, 1183 => 465, 1178 => 463, 1174 => 462, 1171 => 461, 1169 => 460, 1159 => 458, 1156 => 457, 1153 => 456, 1151 => 455, 1146 => 452, 1140 => 450, 1137 => 449, 1129 => 447, 1123 => 445, 1120 => 444, 1118 => 443, 1115 => 442, 1109 => 440, 1107 => 439, 1103 => 438, 1098 => 436, 1093 => 434, 1090 => 433, 1087 => 432, 1082 => 431, 1080 => 430, 1073 => 425, 1071 => 424, 1064 => 420, 1060 => 418, 1058 => 417, 1055 => 416, 1052 => 415, 1044 => 409, 1037 => 407, 1034 => 406, 1027 => 402, 1023 => 400, 1016 => 396, 1010 => 395, 1004 => 392, 998 => 389, 994 => 388, 989 => 387, 986 => 386, 980 => 383, 976 => 382, 973 => 381, 971 => 380, 966 => 378, 962 => 377, 959 => 376, 957 => 375, 947 => 373, 944 => 372, 941 => 371, 939 => 370, 934 => 367, 928 => 365, 925 => 364, 917 => 362, 911 => 360, 908 => 359, 906 => 358, 903 => 357, 897 => 355, 895 => 354, 891 => 353, 886 => 351, 881 => 349, 878 => 348, 875 => 347, 870 => 346, 868 => 345, 861 => 340, 859 => 339, 852 => 335, 848 => 333, 846 => 332, 843 => 331, 840 => 330, 832 => 324, 825 => 322, 822 => 321, 815 => 317, 811 => 315, 804 => 311, 798 => 310, 792 => 307, 786 => 304, 782 => 303, 777 => 302, 774 => 301, 768 => 298, 764 => 297, 761 => 296, 759 => 295, 754 => 293, 750 => 292, 747 => 291, 745 => 290, 735 => 288, 732 => 287, 729 => 286, 727 => 285, 722 => 282, 716 => 280, 713 => 279, 705 => 277, 699 => 275, 696 => 274, 694 => 273, 691 => 272, 685 => 270, 683 => 269, 679 => 268, 674 => 266, 669 => 264, 666 => 263, 663 => 262, 658 => 261, 656 => 260, 649 => 255, 647 => 254, 640 => 250, 636 => 248, 634 => 247, 631 => 246, 628 => 245, 620 => 239, 613 => 237, 610 => 236, 603 => 232, 599 => 230, 592 => 226, 586 => 225, 580 => 222, 574 => 219, 570 => 218, 565 => 217, 562 => 216, 556 => 213, 552 => 212, 549 => 211, 547 => 210, 542 => 208, 538 => 207, 535 => 206, 533 => 205, 523 => 203, 520 => 202, 517 => 201, 515 => 200, 510 => 197, 504 => 195, 501 => 194, 493 => 192, 487 => 190, 484 => 189, 482 => 188, 479 => 187, 473 => 185, 471 => 184, 467 => 183, 462 => 181, 457 => 179, 454 => 178, 451 => 177, 446 => 176, 444 => 175, 437 => 170, 435 => 169, 428 => 165, 424 => 163, 422 => 162, 419 => 161, 411 => 155, 404 => 153, 401 => 152, 394 => 148, 390 => 146, 383 => 142, 377 => 141, 371 => 138, 365 => 135, 361 => 134, 356 => 133, 353 => 132, 347 => 129, 343 => 128, 340 => 127, 338 => 126, 333 => 124, 329 => 123, 326 => 122, 324 => 121, 314 => 119, 311 => 118, 308 => 117, 306 => 116, 301 => 113, 295 => 111, 292 => 110, 284 => 108, 278 => 106, 275 => 105, 273 => 104, 270 => 103, 264 => 101, 262 => 100, 258 => 99, 253 => 97, 248 => 95, 245 => 94, 242 => 93, 238 => 92, 231 => 87, 229 => 86, 222 => 82, 213 => 76, 204 => 70, 196 => 64, 186 => 63, 168 => 54, 158 => 47, 127 => 19, 117 => 11, 103 => 10, 95 => 9, 78 => 8, 74 => 6, 64 => 5, 53 => 1, 51 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% set body_class = 'Feature_detail_page product_page' %}
{% block javascript %}
<script>
eccube.productsClassCategories = {
{% for Product in Products %}
\"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
{% endfor %}
};
\$('.add-cart').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').html(this);
});
\$('#ec-modal-checkbox').prop('checked', true);
// カートブロックを更新する
\$.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);
});
});
</script>
{% endblock %}
{% block main %}
<div>
<div class=\"col-md-12\">
\t\t\t<div class=\"inner\">
\t\t\t\t<div class=\"page_title\">
<div class=\"ec-shelfRole\">
\t\t\t\t\t<h1>{{ Feature.title }}</h1>
</div>
\t\t\t\t</div><!-- /.page_title -->
\t\t\t\t<div class=\"cmn_box02\">
<div class=\"ec-shelfRole\">
{{ Feature.main_content|raw }}
</div>
</div>
\t\t\t\t<div class=\"cmn_box02\">
<div class=\"ec-shelfRole\">
{{ Feature.content1|raw }}
</div>
\t\t\t\t</div><!-- /.cmn_box02 -->
{% if FeatureProducts[1] is defined and FeatureProducts[1] is not empty %}
<div class=\"cmn-itmBox\">
<!-- ▼item_list▼ -->
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
{% for FeatureProduct in FeatureProducts[1] %}
{% set Product = FeatureProduct.Product %}
<li class=\"ec-shelfGrid__item\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
</p>
<p class=\"ttl\">{{ Product.name }}</p>
{% if Product.description_list %}
<p class=\"subtext\">{{ Product.description_list|raw|nl2br }}</p>
{% endif %}
<p class=\"price02-default\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|price }}
{% else %}
{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|price }}
{% endif %}
<span>(税込)</span>
</p>
</a>
{% if Feature.display_cart %}
{% if Product.stock_find %}
{% set form = forms[1][Product.id] %}
<form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
<div class=\"ec-productRole__actions\">
{% if form.classcategory_id1 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>
{% if form.classcategory_id2 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</div>
{% endif %}
{% endif %}
<div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
{{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
{{ form_errors(form.quantity) }}
</div>
</div>
{{ form_rest(form) }}
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% else %}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'ただいま品切れ中です。'|trans }}
</button>
</div>
{% endif %}
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<!-- ▲item_list▲ -->
</div><!-- /.cmn_box02 -->
{% endif %}
{% if Feature.content2 %}
<div class=\"cmn_box02\">
<div class=\"ec-shelfRole\">
{{ Feature.content2|raw }}
</div>
</div><!-- /.cmn_box02 -->
{% if FeatureProducts[2] is defined and FeatureProducts[2] is not empty %}
<div class=\"cmn-itmBox\">
<!-- ▼item_list▼ -->
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
{% set formsPosition = forms[2] %}
{% for FeatureProduct in FeatureProducts[2] %}
{% set Product = FeatureProduct.Product %}
<li class=\"ec-shelfGrid__item\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
</p>
<p class=\"ttl\">{{ Product.name }}</p>
{% if Product.description_list %}
<p class=\"subtext\">{{ Product.description_list|raw|nl2br }}</p>
{% endif %}
<p class=\"price02-default\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|price }}
{% else %}
{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|price }}
{% endif %}
<span>(税込)</span>
</p>
</a>
{% if Feature.display_cart %}
{% if Product.stock_find %}
{% set form = formsPosition[Product.id] %}
<form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
<div class=\"ec-productRole__actions\">
{% if form.classcategory_id1 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>
{% if form.classcategory_id2 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</div>
{% endif %}
{% endif %}
<div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
{{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
{{ form_errors(form.quantity) }}
</div>
</div>
{{ form_rest(form) }}
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% else %}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'ただいま品切れ中です。'|trans }}
</button>
</div>
{% endif %}
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<!-- ▲item_list▲ -->
</div><!-- /.cmn_box02 -->
{% endif %}
{% endif %}
{% if Feature.content3 %}
<div class=\"cmn_box02\">
<div class=\"ec-shelfRole\">
{{ Feature.content3|raw }}
</div>
</div><!-- /.cmn_box02 -->
{% if FeatureProducts[3] is defined and FeatureProducts[3] is not empty %}
<div class=\"cmn-itmBox\">
<!-- ▼item_list▼ -->
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
{% set formsPosition = forms[3] %}
{% for FeatureProduct in FeatureProducts[3] %}
{% set Product = FeatureProduct.Product %}
<li class=\"ec-shelfGrid__item\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
</p>
<p class=\"ttl\">{{ Product.name }}</p>
{% if Product.description_list %}
<p class=\"subtext\">{{ Product.description_list|raw|nl2br }}</p>
{% endif %}
<p class=\"price02-default\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|price }}
{% else %}
{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|price }}
{% endif %}
<span>(税込)</span>
</p>
</a>
{% if Feature.display_cart %}
{% if Product.stock_find %}
{% set form = formsPosition[Product.id] %}
<form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
<div class=\"ec-productRole__actions\">
{% if form.classcategory_id1 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>
{% if form.classcategory_id2 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</div>
{% endif %}
{% endif %}
<div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
{{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
{{ form_errors(form.quantity) }}
</div>
</div>
{{ form_rest(form) }}
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% else %}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'ただいま品切れ中です。'|trans }}
</button>
</div>
{% endif %}
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<!-- ▲item_list▲ -->
</div><!-- /.cmn_box02 -->
{% endif %}
{% endif %}
{% if Feature.content4 %}
<div class=\"cmn_box02\">
<div class=\"ec-shelfRole\">
{{ Feature.content4|raw }}
</div>
</div><!-- /.cmn_box02 -->
{% if FeatureProducts[4] is defined and FeatureProducts[4] is not empty %}
<div class=\"cmn-itmBox\">
<!-- ▼item_list▼ -->
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
{% set formsPosition = forms[4] %}
{% for FeatureProduct in FeatureProducts[4] %}
{% set Product = FeatureProduct.Product %}
<li class=\"ec-shelfGrid__item\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
</p>
<p class=\"ttl\">{{ Product.name }}</p>
{% if Product.description_list %}
<p class=\"subtext\">{{ Product.description_list|raw|nl2br }}</p>
{% endif %}
<p class=\"price02-default\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|price }}
{% else %}
{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|price }}
{% endif %}
<span>(税込)</span>
</p>
</a>
{% if Feature.display_cart %}
{% if Product.stock_find %}
{% set form = formsPosition[Product.id] %}
<form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
<div class=\"ec-productRole__actions\">
{% if form.classcategory_id1 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>
{% if form.classcategory_id2 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</div>
{% endif %}
{% endif %}
<div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
{{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
{{ form_errors(form.quantity) }}
</div>
</div>
{{ form_rest(form) }}
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% else %}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'ただいま品切れ中です。'|trans }}
</button>
</div>
{% endif %}
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<!-- ▲item_list▲ -->
</div><!-- /.cmn_box02 -->
{% endif %}
{% endif %}
{% if Feature.content5 %}
<div class=\"cmn_box02\">
<div class=\"ec-shelfRole\">
{{ Feature.content5|raw }}
</div>
</div><!-- /.cmn_box02 -->
{% if FeatureProducts[5] is defined and FeatureProducts[5] is not empty %}
<div class=\"cmn-itmBox\">
<!-- ▼item_list▼ -->
<div class=\"ec-shelfRole\">
<ul class=\"ec-shelfGrid\">
{% set formsPosition = forms[5] %}
{% for FeatureProduct in FeatureProducts[5] %}
{% set Product = FeatureProduct.Product %}
<li class=\"ec-shelfGrid__item\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<p class=\"ec-shelfGrid__item-image\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">
</p>
<p class=\"ttl\">{{ Product.name }}</p>
{% if Product.description_list %}
<p class=\"subtext\">{{ Product.description_list|raw|nl2br }}</p>
{% endif %}
<p class=\"price02-default\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|price }}
{% else %}
{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|price }}
{% endif %}
<span>(税込)</span>
</p>
</a>
{% if Feature.display_cart %}
{% if Product.stock_find %}
{% set form = formsPosition[Product.id] %}
<form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
<div class=\"ec-productRole__actions\">
{% if form.classcategory_id1 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>
{% if form.classcategory_id2 is defined %}
<div class=\"ec-select\">
{{ form_widget(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</div>
{% endif %}
{% endif %}
<div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
{{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
{{ form_errors(form.quantity) }}
</div>
</div>
{{ form_rest(form) }}
</form>
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% else %}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'ただいま品切れ中です。'|trans }}
</button>
</div>
{% endif %}
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<!-- ▲item_list▲ -->
</div><!-- /.cmn_box02 -->
{% endif %}
{% endif %}
\t\t\t</div>
</div>
</div>
<div class=\"ec-modal\">
<input type=\"checkbox\" id=\"ec-modal-checkbox\" class=\"checkbox\">
<div class=\"ec-modal-overlay\">
<label for=\"ec-modal-checkbox\" class=\"ec-modal-overlay-close\"></label>
<div class=\"ec-modal-wrap\">
<label for=\"ec-modal-checkbox\" class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></label>
<div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<label for=\"ec-modal-checkbox\" class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</label>
<a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
</div>
</div>
</div>
</div>
</div>
{% endblock %}", "@tbsFeaturePage/default/feature_detail.twig", "/home/cajiya00/jklfdsa.com/public_html/shop-iizuka-nori.jklfdsa.com/app/template/plugin/tbsFeaturePage/default/feature_detail.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 3, "for" => 8, "if" => 9);
static $filters = array("escape" => 9, "raw" => 9, "trans" => 19, "no_image_product" => 97, "nl2br" => 101, "price" => 106);
static $functions = array("class_categories_as_json" => 9, "url" => 47, "asset" => 97, "form_widget" => 123, "form_errors" => 124, "form_rest" => 138);
try {
$this->sandbox->checkSecurity(
['set', 'for', 'if'],
['escape', 'raw', 'trans', 'no_image_product', 'nl2br', 'price'],
['class_categories_as_json', 'url', 'asset', 'form_widget', 'form_errors', 'form_rest']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}