<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Product/detail.twig */
class __TwigTemplate_fd9f6ce4cf5bdfb2244925ed9abe0c3c239c55d32929ac08d7e32df2adc87a24 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/detail.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/detail.twig"));
// line 13
$context["body_class"] = "product_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Product/detail.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 15
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 16
echo " <style>
.slick-slider {
margin-bottom: 14px;
}
.manual-margin {
margin: 14px 0;
}
.slick-dots {
position: absolute;
bottom: -45px;
display: block;
width: 100%;
padding: 0;
list-style: none;
text-align: center;
}
.slick-dots li {
position: relative;
display: inline-block;
width: 20px;
height: 20px;
margin: 0 5px;
padding: 0;
cursor: pointer;
}
.slick-dots li button {
font-size: 0;
line-height: 0;
display: block;
width: 20px;
height: 20px;
padding: 5px;
cursor: pointer;
color: transparent;
border: 0;
outline: none;
background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
opacity: 1;
}
.slick-dots li button:before {
content: \" \";
line-height: 20px;
position: absolute;
top: 0;
left: 0;
width: 12px;
height: 12px;
text-align: center;
opacity: .25;
background-color: black;
border-radius: 50%;
}
.slick-dots li.slick-active button:before {
opacity: .75;
background-color: black;
}
.slick-dots li button.thumbnail img {
width: 0;
height: 0;
}
</style>
<style type=\"text/css\">
.remodal-wrapper .loading {
height: 100px;
background-image: url(/html/template/akracing/assets/img/loadinfo.gif);
background-repeat: no-repeat;
background-position: 50% 50%;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 104
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 105
echo " <script>
eccube.classCategories = ";
// line 106
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($this->sandbox->ensureToStringAllowed((isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 106, $this->source); })()), 106, $this->source));
echo ";
// 規格2に選択肢を割り当てる。
function fnSetClassCategories(form, classcat_id2_selected) {
var \$form = \$(form);
var product_id = \$form.find('input[name=product_id]').val();
var \$sele1 = \$form.find('select[name=classcategory_id1]');
var \$sele2 = \$form.find('select[name=classcategory_id2]');
eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
}
";
// line 117
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 117)) {
// line 118
echo " fnSetClassCategories(
\$('#form1'), ";
// line 119
echo json_encode($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 119, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 119), "vars", [], "any", false, false, true, 119), "value", [], "any", false, false, true, 119), 119, $this->source));
echo "
);
";
} elseif (twig_get_attribute($this->env, $this->source, // line 121
($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 121)) {
// line 122
echo " eccube.checkStock(\$('#form1'), ";
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.', 122, $this->source); })()), "id", [], "any", false, false, true, 122), 122, $this->source), "html", null, true);
echo ", ";
echo json_encode($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 122, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 122), "vars", [], "any", false, false, true, 122), "value", [], "any", false, false, true, 122), 122, $this->source));
echo ", null);
";
}
// line 124
echo " </script>
<script>
\$(function() {
// bfcache無効化
\$(window).bind('pageshow', function(event) {
if (event.originalEvent.persisted) {
location.reload(true);
}
});
\$('.item_visual').slick({
dots: false,
arrows: false,
responsive: [{
breakpoint: 768,
settings: {
dots: true
}
}]
});
\$('.slideThumb').on('mouseover click', function() {
var index = \$(this).attr('data-index');
\$('.item_visual').slick('slickGoTo', index, false);
})
});
</script>
<script>
\$(function() {
\$('.add-cart').on('click', function(event) {
";
// line 154
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 154)) {
// line 155
echo " // 規格1フォームの必須チェック
if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
\$('#classcategory_id1')[0].setCustomValidity('";
// line 157
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html", null, true);
echo "');
return true;
} else {
\$('#classcategory_id1')[0].setCustomValidity('');
}
";
}
// line 163
echo "
";
// line 164
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 164)) {
// line 165
echo " // 規格2フォームの必須チェック
if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
\$('#classcategory_id2')[0].setCustomValidity('";
// line 167
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html", null, true);
echo "');
return true;
} else {
\$('#classcategory_id2')[0].setCustomValidity('');
}
";
}
// line 173
echo "
// 個数フォームのチェック
if (\$('#quantity').val() < 1) {
\$('#quantity')[0].setCustomValidity('";
// line 176
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html", null, true);
echo "');
return true;
} else {
\$('#quantity')[0].setCustomValidity('');
}
event.preventDefault();
\$form = \$('#form1');
\$.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').show()
// カートブロックを更新する
\$.ajax({
url: \"";
// line 203
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 210
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html", null, true);
echo "');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
\$('.ec-modal-overlay, .ec-modal .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
\t<script>
\t//説明表示@hanari
\t\$(function(){
\t\tconst productSelect = document.getElementById(\"classcategory_id1\");
\t\tconst hideDoms = document.getElementsByClassName('explanation');
\t\thideObj(hideDoms);
\t\tproductSelect.addEventListener(\"change\",function(){
\t\t\tconst num = productSelect.selectedIndex;
\t\t\tif(num == 0){
\t\t\t\thideObj(hideDoms);
\t\t\t}else{
\t\t\t\thideObj(hideDoms);
\t\t\t\tlet standardName = 'standard' + num;
\t\t\t\tstandarObj = document.getElementsByClassName(standardName);
\t\t\t\tif(standarObj.length > 0){
\t\t\t\t\tstandarObj[0].style.display = 'block';
\t\t\t\t}
\t\t\t}
\t\t})
\t\tfunction hideObj(obj){
\t\t\tfor(let i = 0 ; i < obj.length ; i++){
\t\t\t\tobj[i].style.display = 'none';
\t\t\t}
\t\t}
\t})
\t</script>
";
// line 259
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.', 259, $this->source); })()), "path_3d", [], "any", false, false, true, 259) != null)) {
// line 260
echo "
<div class=\"remodal\" data-remodal-id=\"modal\" data-remodal-options=\"hashTracking: false, closeOnOutsideClick: false\">
<div class=\"spin\" id=\"mySpriteSpin\"></div>
<button data-remodal-action=\"close\" class=\"remodal-close\"></button>
<button data-remodal-action=\"cancel\" class=\"remodal-cancel\">閉じる</button>
</div>
<link rel=\"stylesheet\" href=\"";
// line 268
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/modal/remodal.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 269
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/modal/remodal-default-theme.css"), "html", null, true);
echo "\">
<script src=\"";
// line 270
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/spritespin.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 271
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/modal/remodal.js"), "html", null, true);
echo "\"></script>
<script type='text/javascript'>
\$(function() {
let windowWidth = \$(window).width();
let windowHeight = \$(window).height();
";
// line 279
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.', 279, $this->source); })()), "path_3d", [], "any", false, false, true, 279) != "/user_data/product/gyokuza/spin/")) {
// line 280
echo " if(windowWidth < 500 ){
windowWidth = \$(window).width()-100;
windowHeight = windowWidth * 1.5 ;
}else{
windowWidth = 500;
windowHeight = 750;
}
";
} else {
// line 288
echo " if(windowWidth < 500 ){
windowWidth = \$(window).width()-100;
windowHeight = windowWidth * 1 ;
}else{
windowWidth = 500;
windowHeight = 500;
}
";
}
// line 296
echo "
\$(\"#mySpriteSpin\").spritespin({
// path to the source images.
source: [
\"/html/";
// line 301
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.', 301, $this->source); })()), "path_3d", [], "any", false, false, true, 301), 301, $this->source), "html", null, true);
echo "0001.png\",
\"/html/";
// line 302
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.', 302, $this->source); })()), "path_3d", [], "any", false, false, true, 302), 302, $this->source), "html", null, true);
echo "0002.png\",
\"/html/";
// line 303
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.', 303, $this->source); })()), "path_3d", [], "any", false, false, true, 303), 303, $this->source), "html", null, true);
echo "0003.png\",
\"/html/";
// line 304
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.', 304, $this->source); })()), "path_3d", [], "any", false, false, true, 304), 304, $this->source), "html", null, true);
echo "0004.png\",
\"/html/";
// line 305
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.', 305, $this->source); })()), "path_3d", [], "any", false, false, true, 305), 305, $this->source), "html", null, true);
echo "0005.png\",
\"/html/";
// line 306
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.', 306, $this->source); })()), "path_3d", [], "any", false, false, true, 306), 306, $this->source), "html", null, true);
echo "0006.png\",
\"/html/";
// line 307
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.', 307, $this->source); })()), "path_3d", [], "any", false, false, true, 307), 307, $this->source), "html", null, true);
echo "0007.png\",
\"/html/";
// line 308
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.', 308, $this->source); })()), "path_3d", [], "any", false, false, true, 308), 308, $this->source), "html", null, true);
echo "0008.png\",
\"/html/";
// line 309
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.', 309, $this->source); })()), "path_3d", [], "any", false, false, true, 309), 309, $this->source), "html", null, true);
echo "0009.png\",
\"/html/";
// 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); })()), "path_3d", [], "any", false, false, true, 310), 310, $this->source), "html", null, true);
echo "0010.png\",
\"/html/";
// line 311
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.', 311, $this->source); })()), "path_3d", [], "any", false, false, true, 311), 311, $this->source), "html", null, true);
echo "0011.png\",
\"/html/";
// line 312
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.', 312, $this->source); })()), "path_3d", [], "any", false, false, true, 312), 312, $this->source), "html", null, true);
echo "0012.png\",
\"/html/";
// line 313
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.', 313, $this->source); })()), "path_3d", [], "any", false, false, true, 313), 313, $this->source), "html", null, true);
echo "0013.png\",
\"/html/";
// line 314
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.', 314, $this->source); })()), "path_3d", [], "any", false, false, true, 314), 314, $this->source), "html", null, true);
echo "0014.png\",
\"/html/";
// line 315
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.', 315, $this->source); })()), "path_3d", [], "any", false, false, true, 315), 315, $this->source), "html", null, true);
echo "0015.png\",
\"/html/";
// line 316
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.', 316, $this->source); })()), "path_3d", [], "any", false, false, true, 316), 316, $this->source), "html", null, true);
echo "0016.png\",
\"/html/";
// line 317
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.', 317, $this->source); })()), "path_3d", [], "any", false, false, true, 317), 317, $this->source), "html", null, true);
echo "0017.png\",
\"/html/";
// line 318
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.', 318, $this->source); })()), "path_3d", [], "any", false, false, true, 318), 318, $this->source), "html", null, true);
echo "0018.png\",
\"/html/";
// line 319
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.', 319, $this->source); })()), "path_3d", [], "any", false, false, true, 319), 319, $this->source), "html", null, true);
echo "0019.png\",
\"/html/";
// line 320
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.', 320, $this->source); })()), "path_3d", [], "any", false, false, true, 320), 320, $this->source), "html", null, true);
echo "0020.png\",
\"/html/";
// line 321
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.', 321, $this->source); })()), "path_3d", [], "any", false, false, true, 321), 321, $this->source), "html", null, true);
echo "0021.png\",
\"/html/";
// line 322
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.', 322, $this->source); })()), "path_3d", [], "any", false, false, true, 322), 322, $this->source), "html", null, true);
echo "0022.png\",
\"/html/";
// line 323
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.', 323, $this->source); })()), "path_3d", [], "any", false, false, true, 323), 323, $this->source), "html", null, true);
echo "0023.png\",
\"/html/";
// line 324
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.', 324, $this->source); })()), "path_3d", [], "any", false, false, true, 324), 324, $this->source), "html", null, true);
echo "0024.png\",
\"/html/";
// line 325
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.', 325, $this->source); })()), "path_3d", [], "any", false, false, true, 325), 325, $this->source), "html", null, true);
echo "0025.png\",
\"/html/";
// line 326
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.', 326, $this->source); })()), "path_3d", [], "any", false, false, true, 326), 326, $this->source), "html", null, true);
echo "0026.png\",
\"/html/";
// line 327
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.', 327, $this->source); })()), "path_3d", [], "any", false, false, true, 327), 327, $this->source), "html", null, true);
echo "0027.png\",
\"/html/";
// line 328
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.', 328, $this->source); })()), "path_3d", [], "any", false, false, true, 328), 328, $this->source), "html", null, true);
echo "0028.png\",
\"/html/";
// line 329
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.', 329, $this->source); })()), "path_3d", [], "any", false, false, true, 329), 329, $this->source), "html", null, true);
echo "0029.png\",
\"/html/";
// line 330
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.', 330, $this->source); })()), "path_3d", [], "any", false, false, true, 330), 330, $this->source), "html", null, true);
echo "0030.png\",
\"/html/";
// line 331
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.', 331, $this->source); })()), "path_3d", [], "any", false, false, true, 331), 331, $this->source), "html", null, true);
echo "0031.png\",
\"/html/";
// line 332
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.', 332, $this->source); })()), "path_3d", [], "any", false, false, true, 332), 332, $this->source), "html", null, true);
echo "0032.png\",
\"/html/";
// line 333
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.', 333, $this->source); })()), "path_3d", [], "any", false, false, true, 333), 333, $this->source), "html", null, true);
echo "0033.png\",
\"/html/";
// line 334
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.', 334, $this->source); })()), "path_3d", [], "any", false, false, true, 334), 334, $this->source), "html", null, true);
echo "0034.png\",
\"/html/";
// line 335
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.', 335, $this->source); })()), "path_3d", [], "any", false, false, true, 335), 335, $this->source), "html", null, true);
echo "0035.png\",
\"/html/";
// line 336
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.', 336, $this->source); })()), "path_3d", [], "any", false, false, true, 336), 336, $this->source), "html", null, true);
echo "0036.png\",
],
width: windowWidth, // width in pixels of the window/frame
height: windowHeight, // height in pixels of the window/frame
animate: true,
frames : 36, //使用するイメージの枚数
frameTime : 120
}).attr(\"style\", \"margin: 0 auto;\");
});
</script>
";
}
// line 347
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 351
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 352
if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") || (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.', 352, $this->source); })()), "member", [], "any", false, false, true, 352) != 1))) {
// line 353
echo " <div class=\"ec-productRole\">
<div class=\"ak-header\">
<div class=\"ak-pageHeader\">
<div class=\"ec-productRole__title\">
<h2 class=\"ec-headingTitle\">";
// line 357
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.', 357, $this->source); })()), "name", [], "any", false, false, true, 357), 357, $this->source), "html", null, true);
echo "</h2>
</div>
";
// line 359
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); })()), "description_list", [], "any", false, false, true, 359)) {
// line 360
echo " <div class=\"ec-productRole__description\">
";
// line 361
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, twig_template_from_string($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.', 361, $this->source); })()), "description_list", [], "any", false, false, true, 361), 361, $this->source)));
echo "
</div>
";
}
// line 364
echo " </div>
</div><!-- ak-header -->
";
// line 367
echo "
<div class=\"ec-grid2\">
<div class=\"ec-grid2__cell cell_left\">
<div class=\"ec-sliderItemRole\">
<div class=\"item_visual\">
";
// line 372
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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); })()), "ProductImage", [], "any", false, false, true, 372));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["ProductImage"]) {
// line 373
echo " <div class=\"slide-item\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed($context["ProductImage"], 373, $this->source), "save_image"), "html", null, true);
echo "\"></div>
";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 375
echo " <div class=\"slide-item\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(""), "save_image"), "html", null, true);
echo "\"/></div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 377
echo " </div>
<div class=\"item_nav ak-link\">
";
// line 380
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 380, $this->source); })()), "ProductImage", [], "any", false, false, true, 380));
$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["ProductImage"]) {
// line 381
echo " <div class=\"slideThumb\" data-index=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, true, 381), 381, $this->source), "html", null, true);
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed($context["ProductImage"], 381, $this->source), "save_image"), "html", null, true);
echo "\"></div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 383
echo " </div>
";
// line 384
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.', 384, $this->source); })()), "path_3d", [], "any", false, false, true, 384) != null)) {
// line 385
echo " <div>
<p data-remodal-target=\"modal\" class=\"ak-link\">
<a id=\"360_view\">360° view</a>
</p>
</div>
";
}
// line 391
echo "\t\t\t\t\t";
// line 392
echo "\t\t\t\t\t";
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.', 392, $this->source); })()), "manual_url", [], "any", false, false, true, 392) != null)) {
// line 393
echo "\t\t\t\t\t<div>
\t\t\t\t\t\t<p class=\"ak-link\">
\t\t\t\t\t\t\t<a href=\"/html/upload/save_image/manual/";
// 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); })()), "manual_url", [], "any", false, false, true, 395), 395, $this->source), "html", null, true);
echo "\" target=\"_blank\">組み立てマニュアル</a>
\t\t\t\t\t\t</p>
\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 399
echo "\t\t\t\t\t";
// line 400
echo " </div>
</div>
<div class=\"ec-grid2__cell cell_right\">
<div class=\"ec-productRole__profile\">
";
// line 407
echo " <ul class=\"ec-productRole__tags\">
";
// line 408
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 408, $this->source); })()), "Tags", [], "any", false, false, true, 408));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 409
echo " <li class=\"ec-productRole__tag tag_";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Tag"], "id", [], "any", false, false, true, 409), 409, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["Tag"], 409, $this->source), "html", null, true);
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 411
echo " </ul>
";
// line 439
echo " ";
// line 440
echo " ";
// line 441
echo " <div class=\"ec-productRole__price\">
";
// line 442
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.', 442, $this->source); })()), "hasProductClass", [], "any", false, false, true, 442)) {
// 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); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 443) == 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); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 443))) {
// line 444
echo "\t\t\t\t\t\t\t\t";
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); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 444) == 0)) {
// line 445
echo " <div class=\"ec-price\">
<span></span>
<span class=\"ec-price__price price02-default\">オープン価格</span>
</div>
\t\t\t\t\t\t\t\t";
} else {
// line 450
echo " <div class=\"ec-price\">
<span>¥</span>
<span class=\"ec-price__price price02-default\">";
// line 452
echo twig_escape_filter($this->env, twig_number_format_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.', 452, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 452), 452, $this->source)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">(";
// line 453
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo ")</span>
</div>
\t\t\t\t\t\t\t\t";
}
// line 456
echo " ";
} else {
// line 457
echo " <div class=\"ec-price\">
<span>¥</span>
<span class=\"ec-price__price price02-default\">";
// line 459
echo twig_escape_filter($this->env, twig_number_format_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.', 459, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 459), 459, $this->source)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 459, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 459), 459, $this->source)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">(";
// line 460
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo ")</span>
</div>
";
}
// line 463
echo " ";
} else {
// line 464
echo "\t\t\t\t\t\t\t\t";
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.', 464, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 464) == 0)) {
// line 465
echo " <div class=\"ec-price\">
<span></span>
<span class=\"ec-price__price price02-default\">オープン価格</span>
</div>
\t\t\t\t\t\t\t\t";
} else {
// line 470
echo " <div class=\"ec-price\">
<span>¥</span>
<span class=\"ec-price__price price02-default\">";
// line 472
echo twig_escape_filter($this->env, twig_number_format_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.', 472, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 472), 472, $this->source)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\">(";
// line 473
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo ")</span>
</div>
\t\t\t\t\t\t\t\t";
}
// line 476
echo " ";
}
// line 477
echo "\t\t\t\t\t\t
</div>
";
// line 480
echo "\t\t\t\t\t<div>
\t\t\t\t\t";
// line 481
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "@ProductOption42/default/Product/option_price.twig", array(), true, true);
echo "
</div>
\t\t\t\t\t";
// line 484
echo " ";
if ( !twig_test_empty(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.', 484, $this->source); })()), "code_min", [], "any", false, false, true, 484))) {
// line 485
echo " <div class=\"ec-productRole__code\">
";
// line 486
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("テックウインド型番"), "html", null, true);
echo ": <span class=\"product-code-default\">";
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.', 486, $this->source); })()), "code_min", [], "any", false, false, true, 486), 486, $this->source), "html", null, true);
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.', 486, $this->source); })()), "code_min", [], "any", false, false, true, 486) != 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.', 486, $this->source); })()), "code_max", [], "any", false, false, true, 486))) {
echo " ~ ";
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.', 486, $this->source); })()), "code_max", [], "any", false, false, true, 486), 486, $this->source), "html", null, true);
}
echo "</span>
</div>
";
}
// line 489
echo "
<form action=\"";
// line 491
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.', 491, $this->source); })()), "id", [], "any", false, false, true, 491)]), "html", null, true);
echo "\" method=\"post\" id=\"form1\" name=\"form1\">
";
// line 492
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.', 492, $this->source); })()), "stock_find", [], "any", false, false, true, 492)) {
// line 493
echo " ";
if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") && (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.', 493, $this->source); })()), "sale", [], "any", false, false, true, 493) != null))) {
// line 494
echo " <div class=\"ec-productRole__actions\">
";
// line 495
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 495)) {
// line 496
echo " <div class=\"ec-select\">
";
// line 497
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.', 497, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 497), 497, $this->source), 'widget');
echo "
";
// line 498
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.', 498, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 498), 498, $this->source), 'errors');
echo "
</div>
";
// line 500
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 500)) {
// line 501
echo " <div class=\"ec-select\">
";
// line 502
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.', 502, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 502), 502, $this->source), 'widget');
echo "
";
// line 503
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.', 503, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 503), 503, $this->source), 'errors');
echo "
</div>
";
}
// line 506
echo " ";
}
// line 507
echo "
<div class=\"ec-numberInput\"><span>";
// line 508
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html", null, true);
echo "</span>
";
// line 509
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.', 509, $this->source); })()), "quantity", [], "any", false, false, true, 509), 509, $this->source), 'widget');
echo "
";
// line 510
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.', 510, $this->source); })()), "quantity", [], "any", false, false, true, 510), 510, $this->source), 'errors');
echo "
</div>
</div>
";
} else {
// line 514
echo " <div class=\"ec-productRole__actions\">
";
// line 515
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 515)) {
// line 516
echo " <div class=\"ec-select\">
";
// line 517
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.', 517, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 517), 517, $this->source), 'widget');
echo "
";
// line 518
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.', 518, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 518), 518, $this->source), 'errors');
echo "
</div>
";
// line 520
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 520)) {
// line 521
echo " <div class=\"ec-select\">
";
// line 522
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.', 522, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 522), 522, $this->source), 'widget');
echo "
";
// line 523
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.', 523, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 523), 523, $this->source), 'errors');
echo "
</div>
";
}
// line 526
echo " ";
}
// line 527
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 528
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.', 528, $this->source); })()), "quantity", [], "any", false, false, true, 528), 528, $this->source), 'widget');
echo "
";
// line 529
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.', 529, $this->source); })()), "quantity", [], "any", false, false, true, 529), 529, $this->source), 'errors');
echo "
</div>
</div>
";
}
// line 533
echo "
";
// line 535
echo "\t\t\t\t\t\t\t";
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.', 535, $this->source); })()), "getPrice02IncTaxMax", [], "any", false, false, true, 535) != 0)) {
// line 536
echo "\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\" style=\"margin-bottom: 0;\">
\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
\t\t\t\t\t\t\t\t\t\t";
// line 538
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn_info\">
【法人のお客様へ】<br>
まとめ買いの特価お見積り、組み立て配送、納期相談は<a href=\"";
// line 543
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
echo "\">お問い合わせページ</a>からご連絡ください。法人さま専任スタッフが対応します。
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
}
// line 547
echo " ";
// line 548
echo " ";
// line 549
echo " ";
} else {
// line 550
echo "
";
// line 551
if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") && (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.', 551, $this->source); })()), "sale", [], "any", false, false, true, 551) != null))) {
// line 552
echo " <div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 554
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
</div>
";
}
// line 558
echo " ";
}
// line 559
echo "
";
// line 560
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.', 560, $this->source); })()), 560, $this->source), 'rest');
echo "
<div class=\"ec-productRole__btn\">
<div class=\"ak-banner\" class=\"ec-productRole__btn_info\">
<a href=\"https://www.tekwind.co.jp/AKR/information/entry_1250.php\" target=\"_blank\">
<img src=\"/html/user_data/campaign/akracing_ana_dcard_200x200_250120.jpg\" class=\"ana_mile\" alt=\"\">
</a>
\t\t\t\t\t\t\t\t<a href=\"https://www.akracing.jp/news/115/\" target=\"_blank\">
<img src=\"/html/user_data/campaign/akracing_banner_400x200_250331.jpg\" class=\"ana_mile\" alt=\"\">
</a>
</div>
</div>
<style>
\t\t\t\t\t\t\t#page_product_detail .ak-banner{
\t\t\t\t\t\t\t\tdisplay: flex;
\t\t\t\t\t\t\t\tjustify-content: space-between;
\t\t\t\t\t\t\t\tgap: 1em;
\t\t\t\t\t\t\t\tpadding-top: 1em;
\t\t\t\t\t\t\t\tpadding-bottom: 1em;
\t\t\t\t\t\t\t}
</style>
</form>
";
// line 583
echo " <div class=\"ec-modal\">
<div class=\"ec-modal-overlay\">
<div class=\"ec-modal-wrap\">
<span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
// line 586
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html", null, true);
echo "\" alt=\"\"/></span></span>
<div id=\"ec-modal-header\" class=\"text-center\">";
// line 587
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html", null, true);
echo "</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<span class=\"ec-inlineBtn--cancel\">";
// line 590
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 591
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>
";
// line 599
echo " ";
// line 600
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 600, $this->source); })()), "option_favorite_product", [], "any", false, false, true, 600)) {
// line 601
echo " <form action=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_favorite", ["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.', 601, $this->source); })()), "id", [], "any", false, false, true, 601)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"ec-productRole__btn\">
";
// line 603
if (((isset($context["is_favorite"]) || array_key_exists("is_favorite", $context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.', 603, $this->source); })()) == false)) {
// line 604
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
";
// line 605
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加"), "html", null, true);
echo "
</button>
";
} else {
// line 608
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
disabled=\"disabled\">";
// line 609
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに追加済です。"), "html", null, true);
echo "
</button>
";
}
// line 612
echo " </div>
</form>
";
}
// line 615
echo " ";
// line 616
echo "
";
// line 618
echo " ";
// line 628
echo " ";
// line 629
echo "
";
// line 640
echo "\t\t\t\t\t
\t\t\t\t\t
\t\t\t\t\t
";
// line 650
echo "\t\t\t\t\t
<div class=\"ec-productRole__description\">
";
// line 652
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.', 652, $this->source); })()), "description_detail", [], "any", false, false, true, 652), 652, $this->source));
echo "
</div>
</div>
</div>
</div>
";
// line 657
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.', 657, $this->source); })()), "freearea", [], "any", false, false, true, 657)) {
// line 658
echo " <div class=\"ec-productRole__description\">
";
// line 659
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, twig_template_from_string($this->env, 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.', 659, $this->source); })()), "freearea", [], "any", false, false, true, 659), 659, $this->source))));
echo "
</div>
";
}
// line 662
echo " </div>
";
} else {
// line 664
echo " ";
// line 665
echo " <div class=\"ec-productRole\">
<div class=\"ak-header\">
<div class=\"ak-pageHeader\">
<div class=\"ec-productRole__title\">
<h2 class=\"ec-headingTitle\">会員限定ページ</h2>
</div>
";
// line 671
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.', 671, $this->source); })()), "description_list", [], "any", false, false, true, 671)) {
// line 672
echo " <div class=\"ec-productRole__description\">
このページは、ユーザ登録が必要になります。
</div>
";
}
// line 676
echo " </div>
</div><!-- ak-header -->
</div>
<style>
#product_review_area,
.ec-layoutRole__mainBottom{
display:none !important;
}
</style>
";
}
// line 687
echo "
<style>
";
// line 693
echo " .required,
.quantity{
display:none;
}
";
// line 698
echo "
.item_nav{
display:flex;
flex-wrap:wrap;
/*justify-content:space-between;*/
width:100%;
}
.item_nav .slideThumb{
width:10%;
padding:0.5%;
}
.item_nav .slideThumb img{
width:100%;
}
.ec-productRole .ec-productRole__tags{
border:none;
}
.ec-productRole .ec-productRole__price{
border:none;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Product/detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1234 => 698, 1228 => 693, 1222 => 687, 1209 => 676, 1203 => 672, 1201 => 671, 1193 => 665, 1191 => 664, 1187 => 662, 1181 => 659, 1178 => 658, 1176 => 657, 1168 => 652, 1164 => 650, 1159 => 640, 1156 => 629, 1154 => 628, 1152 => 618, 1149 => 616, 1147 => 615, 1142 => 612, 1136 => 609, 1133 => 608, 1127 => 605, 1124 => 604, 1122 => 603, 1116 => 601, 1113 => 600, 1111 => 599, 1099 => 591, 1095 => 590, 1089 => 587, 1085 => 586, 1080 => 583, 1055 => 560, 1052 => 559, 1049 => 558, 1042 => 554, 1038 => 552, 1036 => 551, 1033 => 550, 1030 => 549, 1028 => 548, 1026 => 547, 1019 => 543, 1011 => 538, 1007 => 536, 1004 => 535, 1001 => 533, 994 => 529, 990 => 528, 985 => 527, 982 => 526, 976 => 523, 972 => 522, 969 => 521, 967 => 520, 962 => 518, 958 => 517, 955 => 516, 953 => 515, 950 => 514, 943 => 510, 939 => 509, 935 => 508, 932 => 507, 929 => 506, 923 => 503, 919 => 502, 916 => 501, 914 => 500, 909 => 498, 905 => 497, 902 => 496, 900 => 495, 897 => 494, 894 => 493, 892 => 492, 888 => 491, 884 => 489, 872 => 486, 869 => 485, 866 => 484, 861 => 481, 858 => 480, 854 => 477, 851 => 476, 845 => 473, 841 => 472, 837 => 470, 830 => 465, 827 => 464, 824 => 463, 818 => 460, 812 => 459, 808 => 457, 805 => 456, 799 => 453, 795 => 452, 791 => 450, 784 => 445, 781 => 444, 779 => 443, 777 => 442, 774 => 441, 772 => 440, 770 => 439, 767 => 411, 756 => 409, 752 => 408, 749 => 407, 741 => 400, 739 => 399, 732 => 395, 728 => 393, 725 => 392, 723 => 391, 715 => 385, 713 => 384, 710 => 383, 691 => 381, 674 => 380, 669 => 377, 660 => 375, 652 => 373, 647 => 372, 640 => 367, 636 => 364, 630 => 361, 627 => 360, 625 => 359, 620 => 357, 614 => 353, 612 => 352, 602 => 351, 590 => 347, 576 => 336, 572 => 335, 568 => 334, 564 => 333, 560 => 332, 556 => 331, 552 => 330, 548 => 329, 544 => 328, 540 => 327, 536 => 326, 532 => 325, 528 => 324, 524 => 323, 520 => 322, 516 => 321, 512 => 320, 508 => 319, 504 => 318, 500 => 317, 496 => 316, 492 => 315, 488 => 314, 484 => 313, 480 => 312, 476 => 311, 472 => 310, 468 => 309, 464 => 308, 460 => 307, 456 => 306, 452 => 305, 448 => 304, 444 => 303, 440 => 302, 436 => 301, 429 => 296, 419 => 288, 409 => 280, 407 => 279, 396 => 271, 392 => 270, 388 => 269, 384 => 268, 374 => 260, 371 => 259, 328 => 210, 318 => 203, 288 => 176, 283 => 173, 274 => 167, 270 => 165, 268 => 164, 265 => 163, 256 => 157, 252 => 155, 250 => 154, 218 => 124, 210 => 122, 208 => 121, 203 => 119, 200 => 118, 198 => 117, 184 => 106, 181 => 105, 171 => 104, 75 => 16, 65 => 15, 54 => 11, 52 => 13, 39 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block stylesheet %}
<style>
.slick-slider {
margin-bottom: 14px;
}
.manual-margin {
margin: 14px 0;
}
.slick-dots {
position: absolute;
bottom: -45px;
display: block;
width: 100%;
padding: 0;
list-style: none;
text-align: center;
}
.slick-dots li {
position: relative;
display: inline-block;
width: 20px;
height: 20px;
margin: 0 5px;
padding: 0;
cursor: pointer;
}
.slick-dots li button {
font-size: 0;
line-height: 0;
display: block;
width: 20px;
height: 20px;
padding: 5px;
cursor: pointer;
color: transparent;
border: 0;
outline: none;
background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
opacity: 1;
}
.slick-dots li button:before {
content: \" \";
line-height: 20px;
position: absolute;
top: 0;
left: 0;
width: 12px;
height: 12px;
text-align: center;
opacity: .25;
background-color: black;
border-radius: 50%;
}
.slick-dots li.slick-active button:before {
opacity: .75;
background-color: black;
}
.slick-dots li button.thumbnail img {
width: 0;
height: 0;
}
</style>
<style type=\"text/css\">
.remodal-wrapper .loading {
height: 100px;
background-image: url(/html/template/akracing/assets/img/loadinfo.gif);
background-repeat: no-repeat;
background-position: 50% 50%;
}
</style>
{% endblock %}
{% block javascript %}
<script>
eccube.classCategories = {{ class_categories_as_json(Product)|raw }};
// 規格2に選択肢を割り当てる。
function fnSetClassCategories(form, classcat_id2_selected) {
var \$form = \$(form);
var product_id = \$form.find('input[name=product_id]').val();
var \$sele1 = \$form.find('select[name=classcategory_id1]');
var \$sele2 = \$form.find('select[name=classcategory_id2]');
eccube.setClassCategories(\$form, product_id, \$sele1, \$sele2, classcat_id2_selected);
}
{% if form.classcategory_id2 is defined %}
fnSetClassCategories(
\$('#form1'), {{ form.classcategory_id2.vars.value|json_encode|raw }}
);
{% elseif form.classcategory_id1 is defined %}
eccube.checkStock(\$('#form1'), {{ Product.id }}, {{ form.classcategory_id1.vars.value|json_encode|raw }}, null);
{% endif %}
</script>
<script>
\$(function() {
// bfcache無効化
\$(window).bind('pageshow', function(event) {
if (event.originalEvent.persisted) {
location.reload(true);
}
});
\$('.item_visual').slick({
dots: false,
arrows: false,
responsive: [{
breakpoint: 768,
settings: {
dots: true
}
}]
});
\$('.slideThumb').on('mouseover click', function() {
var index = \$(this).attr('data-index');
\$('.item_visual').slick('slickGoTo', index, false);
})
});
</script>
<script>
\$(function() {
\$('.add-cart').on('click', function(event) {
{% if form.classcategory_id1 is defined %}
// 規格1フォームの必須チェック
if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
\$('#classcategory_id1')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
return true;
} else {
\$('#classcategory_id1')[0].setCustomValidity('');
}
{% endif %}
{% if form.classcategory_id2 is defined %}
// 規格2フォームの必須チェック
if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
\$('#classcategory_id2')[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
return true;
} else {
\$('#classcategory_id2')[0].setCustomValidity('');
}
{% endif %}
// 個数フォームのチェック
if (\$('#quantity').val() < 1) {
\$('#quantity')[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
return true;
} else {
\$('#quantity')[0].setCustomValidity('');
}
event.preventDefault();
\$form = \$('#form1');
\$.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').show()
// カートブロックを更新する
\$.ajax({
url: \"{{ url('block_cart') }}\",
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('{{ 'カートへの追加に失敗しました。'|trans }}');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
\$('.ec-modal-overlay, .ec-modal .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
</script>
\t<script>
\t//説明表示@hanari
\t\$(function(){
\t\tconst productSelect = document.getElementById(\"classcategory_id1\");
\t\tconst hideDoms = document.getElementsByClassName('explanation');
\t\thideObj(hideDoms);
\t\tproductSelect.addEventListener(\"change\",function(){
\t\t\tconst num = productSelect.selectedIndex;
\t\t\tif(num == 0){
\t\t\t\thideObj(hideDoms);
\t\t\t}else{
\t\t\t\thideObj(hideDoms);
\t\t\t\tlet standardName = 'standard' + num;
\t\t\t\tstandarObj = document.getElementsByClassName(standardName);
\t\t\t\tif(standarObj.length > 0){
\t\t\t\t\tstandarObj[0].style.display = 'block';
\t\t\t\t}
\t\t\t}
\t\t})
\t\tfunction hideObj(obj){
\t\t\tfor(let i = 0 ; i < obj.length ; i++){
\t\t\t\tobj[i].style.display = 'none';
\t\t\t}
\t\t}
\t})
\t</script>
{#
360 view
https://spritespin.ginie.eu/
http://pannyatto.firebird.jp/archives/1020
modalプラグイン
https://125naroom.com/web/3202
http://vodkabears.github.io/remodal/
#}
{% if Product.path_3d != null %}
<div class=\"remodal\" data-remodal-id=\"modal\" data-remodal-options=\"hashTracking: false, closeOnOutsideClick: false\">
<div class=\"spin\" id=\"mySpriteSpin\"></div>
<button data-remodal-action=\"close\" class=\"remodal-close\"></button>
<button data-remodal-action=\"cancel\" class=\"remodal-cancel\">閉じる</button>
</div>
<link rel=\"stylesheet\" href=\"{{ asset('assets/modal/remodal.css')}}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/modal/remodal-default-theme.css')}}\">
<script src=\"{{ asset('assets/js/spritespin.js')}}\"></script>
<script src=\"{{ asset('assets/modal/remodal.js')}}\"></script>
<script type='text/javascript'>
\$(function() {
let windowWidth = \$(window).width();
let windowHeight = \$(window).height();
{% if Product.path_3d != \"/user_data/product/gyokuza/spin/\" %}
if(windowWidth < 500 ){
windowWidth = \$(window).width()-100;
windowHeight = windowWidth * 1.5 ;
}else{
windowWidth = 500;
windowHeight = 750;
}
{% else %}
if(windowWidth < 500 ){
windowWidth = \$(window).width()-100;
windowHeight = windowWidth * 1 ;
}else{
windowWidth = 500;
windowHeight = 500;
}
{% endif %}
\$(\"#mySpriteSpin\").spritespin({
// path to the source images.
source: [
\"/html/{{Product.path_3d}}0001.png\",
\"/html/{{Product.path_3d}}0002.png\",
\"/html/{{Product.path_3d}}0003.png\",
\"/html/{{Product.path_3d}}0004.png\",
\"/html/{{Product.path_3d}}0005.png\",
\"/html/{{Product.path_3d}}0006.png\",
\"/html/{{Product.path_3d}}0007.png\",
\"/html/{{Product.path_3d}}0008.png\",
\"/html/{{Product.path_3d}}0009.png\",
\"/html/{{Product.path_3d}}0010.png\",
\"/html/{{Product.path_3d}}0011.png\",
\"/html/{{Product.path_3d}}0012.png\",
\"/html/{{Product.path_3d}}0013.png\",
\"/html/{{Product.path_3d}}0014.png\",
\"/html/{{Product.path_3d}}0015.png\",
\"/html/{{Product.path_3d}}0016.png\",
\"/html/{{Product.path_3d}}0017.png\",
\"/html/{{Product.path_3d}}0018.png\",
\"/html/{{Product.path_3d}}0019.png\",
\"/html/{{Product.path_3d}}0020.png\",
\"/html/{{Product.path_3d}}0021.png\",
\"/html/{{Product.path_3d}}0022.png\",
\"/html/{{Product.path_3d}}0023.png\",
\"/html/{{Product.path_3d}}0024.png\",
\"/html/{{Product.path_3d}}0025.png\",
\"/html/{{Product.path_3d}}0026.png\",
\"/html/{{Product.path_3d}}0027.png\",
\"/html/{{Product.path_3d}}0028.png\",
\"/html/{{Product.path_3d}}0029.png\",
\"/html/{{Product.path_3d}}0030.png\",
\"/html/{{Product.path_3d}}0031.png\",
\"/html/{{Product.path_3d}}0032.png\",
\"/html/{{Product.path_3d}}0033.png\",
\"/html/{{Product.path_3d}}0034.png\",
\"/html/{{Product.path_3d}}0035.png\",
\"/html/{{Product.path_3d}}0036.png\",
],
width: windowWidth, // width in pixels of the window/frame
height: windowHeight, // height in pixels of the window/frame
animate: true,
frames : 36, //使用するイメージの枚数
frameTime : 120
}).attr(\"style\", \"margin: 0 auto;\");
});
</script>
{% endif %}
{% endblock %}
{% block main %}
{% if is_granted('ROLE_USER') or Product.member != 1 %}{# 会員限定 #}
<div class=\"ec-productRole\">
<div class=\"ak-header\">
<div class=\"ak-pageHeader\">
<div class=\"ec-productRole__title\">
<h2 class=\"ec-headingTitle\">{{ Product.name }}</h2>
</div>
{% if Product.description_list %}
<div class=\"ec-productRole__description\">
{{ include(template_from_string(Product.description_list)) }}
</div>
{% endif %}
</div>
</div><!-- ak-header -->
{# 商品名 #}
<div class=\"ec-grid2\">
<div class=\"ec-grid2__cell cell_left\">
<div class=\"ec-sliderItemRole\">
<div class=\"item_visual\">
{% for ProductImage in Product.ProductImage %}
<div class=\"slide-item\"><img src=\"{{ asset(ProductImage, 'save_image') }}\"></div>
{% else %}
<div class=\"slide-item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\"/></div>
{% endfor %}
</div>
<div class=\"item_nav ak-link\">
{% for ProductImage in Product.ProductImage %}
<div class=\"slideThumb\" data-index=\"{{ loop.index0 }}\"><img src=\"{{ asset(ProductImage, 'save_image') }}\"></div>
{% endfor %}
</div>
{% if Product.path_3d != null %}
<div>
<p data-remodal-target=\"modal\" class=\"ak-link\">
<a id=\"360_view\">360° view</a>
</p>
</div>
{% endif %}
\t\t\t\t\t{# 組み立てマニュアル #}
\t\t\t\t\t{% if Product.manual_url != null %}
\t\t\t\t\t<div>
\t\t\t\t\t\t<p class=\"ak-link\">
\t\t\t\t\t\t\t<a href=\"/html/upload/save_image/manual/{{Product.manual_url}}\" target=\"_blank\">組み立てマニュアル</a>
\t\t\t\t\t\t</p>
\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{# 組み立てマニュアル #}
</div>
</div>
<div class=\"ec-grid2__cell cell_right\">
<div class=\"ec-productRole__profile\">
{# タグ #}
<ul class=\"ec-productRole__tags\">
{% for Tag in Product.Tags %}
<li class=\"ec-productRole__tag tag_{{ Tag.id }}\">{{ Tag }}</li>
{% endfor %}
</ul>
{# 通常価格 #}
{# 20230921@hanari
{% if Product.hasProductClass -%}
<div class=\"ec-productRole__priceRegular\">
{% if Product.getPrice01Min == 0 %}
オープン価格
{% else %}
{% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
<span class=\"ec-productRole__priceRegularPrice\">{{ '想定売価'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|number_format }}</span></span>
<span class=\"ec-productRole__priceRegularTax\">({{ '税込'|trans }})</span>
{% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
<span class=\"ec-productRole__priceRegularPrice\">{{ '想定売価'|trans }}:<span class=\"price01-default\">{{ Product.getPrice01IncTaxMin|number_format }}~ {{ Product.getPrice01IncTaxMax|price }}</span></span>
<span class=\"ec-productRole__priceRegularTax\">({{ '税込'|trans }})</span>
{% endif %}
{% endif %}
</div>
{% else %}
{% if Product.getPrice01Min == 0 %}
オープン価格
{% else %}
{% if Product.getPrice01Max is not null %}
<span class=\"ec-productRole__priceRegularPrice\">{{ '想定売価'|trans }}:{{ Product.getPrice01IncTaxMin|number_format }}</span>
<span class=\"ec-productRole__priceRegularTax\">({{ '税込'|trans }})</span>
{% endif %}
{% endif %}
{% endif %}
#}
{# if is_granted('ROLE_USER') and Product.sale != null #}{# ログイン後表示 #}
{# 販売価格 #}
<div class=\"ec-productRole__price\">
{% if Product.hasProductClass -%}
{% if Product.getPrice02IncTaxMin == Product.getPrice02IncTaxMax %}
\t\t\t\t\t\t\t\t{% if Product.getPrice02IncTaxMin == 0 %}
<div class=\"ec-price\">
<span></span>
<span class=\"ec-price__price price02-default\">オープン価格</span>
</div>
\t\t\t\t\t\t\t\t{% else %}
<div class=\"ec-price\">
<span>¥</span>
<span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|number_format }}</span>
<span class=\"ec-price__tax\">({{ '税込'|trans }})</span>
</div>
\t\t\t\t\t\t\t\t{% endif %}
{% else %}
<div class=\"ec-price\">
<span>¥</span>
<span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }}</span>
<span class=\"ec-price__tax\">({{ '税込'|trans }})</span>
</div>
{% endif %}
{% else %}
\t\t\t\t\t\t\t\t{% if Product.getPrice02IncTaxMax == 0 %}
<div class=\"ec-price\">
<span></span>
<span class=\"ec-price__price price02-default\">オープン価格</span>
</div>
\t\t\t\t\t\t\t\t{% else %}
<div class=\"ec-price\">
<span>¥</span>
<span class=\"ec-price__price price02-default\">{{ Product.getPrice02IncTaxMax|number_format }}</span>
<span class=\"ec-price__tax\">({{ '税込'|trans }})</span>
</div>
\t\t\t\t\t\t\t\t{% endif %}
{% endif %}
\t\t\t\t\t\t
</div>
{# endif #}{# ログイン後表示 #}
\t\t\t\t\t<div>
\t\t\t\t\t{{ include('@ProductOption42/default/Product/option_price.twig', ignore_missing=true)}}
</div>
\t\t\t\t\t{# 商品コード #}
{% if Product.code_min is not empty %}
<div class=\"ec-productRole__code\">
{{ 'テックウインド型番'|trans }}: <span class=\"product-code-default\">{{ Product.code_min }}{% if Product.code_min != Product.code_max %} ~ {{ Product.code_max }}{% endif %}</span>
</div>
{% endif %}
<form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
{% if Product.stock_find %}
{% if is_granted('ROLE_USER') and Product.sale != null %}{# 販売開始後表示 #}
<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) }}
{{ form_errors(form.quantity) }}
</div>
</div>
{% else %}{# 販売開始後表示 #}
<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) }}
{{ form_errors(form.quantity) }}
</div>
</div>
{% endif %}{# 販売開始後表示 #}
{# if is_granted('ROLE_USER') and Product.sale != null #}{# 販売開始後表示 #}
\t\t\t\t\t\t\t{% if Product.getPrice02IncTaxMax != 0 %}
\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn\" style=\"margin-bottom: 0;\">
\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
\t\t\t\t\t\t\t\t\t\t{{ 'カートに入れる'|trans }}
\t\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t<div class=\"ec-productRole__btn_info\">
【法人のお客様へ】<br>
まとめ買いの特価お見積り、組み立て配送、納期相談は<a href=\"{{ url('contact') }}\">お問い合わせページ</a>からご連絡ください。法人さま専任スタッフが対応します。
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% endif %}
{# else #}{# 販売開始後表示 #}
{# endif #}{# 販売開始後表示 #}
{% else %}
{% if is_granted('ROLE_USER') and Product.sale != null %}{# ログイン後表示 #}
<div class=\"ec-productRole__btn\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'ただいま品切れ中です。'|trans }}
</button>
</div>
{% endif %}{# ログイン後表示 #}
{% endif %}
{{ form_rest(form) }}
<div class=\"ec-productRole__btn\">
<div class=\"ak-banner\" class=\"ec-productRole__btn_info\">
<a href=\"https://www.tekwind.co.jp/AKR/information/entry_1250.php\" target=\"_blank\">
<img src=\"/html/user_data/campaign/akracing_ana_dcard_200x200_250120.jpg\" class=\"ana_mile\" alt=\"\">
</a>
\t\t\t\t\t\t\t\t<a href=\"https://www.akracing.jp/news/115/\" target=\"_blank\">
<img src=\"/html/user_data/campaign/akracing_banner_400x200_250331.jpg\" class=\"ana_mile\" alt=\"\">
</a>
</div>
</div>
<style>
\t\t\t\t\t\t\t#page_product_detail .ak-banner{
\t\t\t\t\t\t\t\tdisplay: flex;
\t\t\t\t\t\t\t\tjustify-content: space-between;
\t\t\t\t\t\t\t\tgap: 1em;
\t\t\t\t\t\t\t\tpadding-top: 1em;
\t\t\t\t\t\t\t\tpadding-bottom: 1em;
\t\t\t\t\t\t\t}
</style>
</form>
{# if is_granted('ROLE_USER') #}{# ログイン後表示 #}
<div class=\"ec-modal\">
<div class=\"ec-modal-overlay\">
<div class=\"ec-modal-wrap\">
<span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
<div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
<a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
</div>
</div>
</div>
</div>
</div>
{# endif #}{# ログイン後表示 #}
{# if is_granted('ROLE_USER') #}{# ログイン後表示 #}
{% if BaseInfo.option_favorite_product %}
<form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\">
<div class=\"ec-productRole__btn\">
{% if is_favorite == false %}
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\">
{{ 'お気に入りに追加'|trans }}
</button>
{% else %}
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel\"
disabled=\"disabled\">{{ 'お気に入りに追加済です。'|trans }}
</button>
{% endif %}
</div>
</form>
{% endif %}
{# endif #}{# ログイン後表示 #}
{# 直販 リンクボタン #}
{# dump(Product) #}
{# 20230921@hanari
{% if Product.direct_shop_url != null %}
<div class=\"direct_shop_url\">
<p class=\"ak-link\">
<a href=\"{{Product.direct_shop_url}}\" target=\"_blank\">直販サイトはこちら</a>
</p>
</div>
{% endif %}
#}
{# 直販 リンクボタン #}
{# Amazon リンクボタン
{% if Product.amazon_url != null %}
<div class=\"amazon_url\">
<p class=\"ak-link\">
<a href=\"{{Product.amazon_url}}\" target=\"_blank\">Amazon で購入</a>
</p>
</div>
{% endif %}
\t\t\t\t\t#}
\t\t\t\t\t
\t\t\t\t\t
\t\t\t\t\t
{# shop - list
<div class=\"shopList_url\">
<p class=\"ak-link\">
<a href=\"{{ url('homepage') }}shop\">お近くの販売店をさがす</a>
</p>
</div>
\t\t\t\t\t#}
\t\t\t\t\t
<div class=\"ec-productRole__description\">
{{ Product.description_detail|raw|nl2br }}
</div>
</div>
</div>
</div>
{% if Product.freearea %}
<div class=\"ec-productRole__description\">
{{ include(template_from_string(Product.freearea|raw|nl2br)) }}
</div>
{% endif %}
</div>
{% else %}{# 会員限定 #}
{# 会員限定 エラー表示 #}
<div class=\"ec-productRole\">
<div class=\"ak-header\">
<div class=\"ak-pageHeader\">
<div class=\"ec-productRole__title\">
<h2 class=\"ec-headingTitle\">会員限定ページ</h2>
</div>
{% if Product.description_list %}
<div class=\"ec-productRole__description\">
このページは、ユーザ登録が必要になります。
</div>
{% endif %}
</div>
</div><!-- ak-header -->
</div>
<style>
#product_review_area,
.ec-layoutRole__mainBottom{
display:none !important;
}
</style>
{% endif %}{# 会員限定 #}
<style>
{# if is_granted('ROLE_USER') and Product.sale != null #}{# 販売開始後表示 #}
{# else #}
.required,
.quantity{
display:none;
}
{# endif #}
.item_nav{
display:flex;
flex-wrap:wrap;
/*justify-content:space-between;*/
width:100%;
}
.item_nav .slideThumb{
width:10%;
padding:0.5%;
}
.item_nav .slideThumb img{
width:100%;
}
.ec-productRole .ec-productRole__tags{
border:none;
}
.ec-productRole .ec-productRole__price{
border:none;
}
</style>
{% endblock %}", "Product/detail.twig", "/home/akracing/www/akracing.dev/app/template/akracing/Product/detail.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "if" => 117, "for" => 372);
static $filters = array("raw" => 106, "json_encode" => 119, "escape" => 122, "trans" => 157, "no_image_product" => 375, "number_format" => 452, "nl2br" => 652);
static $functions = array("class_categories_as_json" => 106, "url" => 203, "asset" => 268, "is_granted" => 352, "include" => 361, "template_from_string" => 361, "form_widget" => 497, "form_errors" => 498, "form_rest" => 560);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['raw', 'json_encode', 'escape', 'trans', 'no_image_product', 'number_format', 'nl2br'],
['class_categories_as_json', 'url', 'asset', 'is_granted', 'include', 'template_from_string', '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;
}
}
}