<?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;
/* __string_template__c3a00b603c90224beffb6b5d5d755125 */
class __TwigTemplate_f0fb1820d875d35cab247a2ed501db7f extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "__string_template__c3a00b603c90224beffb6b5d5d755125"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "__string_template__c3a00b603c90224beffb6b5d5d755125"));
// line 13
$context["body_class"] = "product_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "__string_template__c3a00b603c90224beffb6b5d5d755125", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 15
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 16
echo " <style>
.slick-slider {
margin-bottom: 30px;
}
.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;
}
.ec-productRole .ec-productRole__title .ec-headingTitle {
font-size: 15px;
font-weight: 700;
}
@media only screen and (min-width: 768px) {
.ec-productRole .ec-productRole__title .ec-headingTitle {
font-size: 22px;
}
}
.ec-sliderItemRole .item_nav {
display: flex;
}
.slick-slide img{
width: 100%;
height: 350px;
object-fit: contain;
}
@media only screen and (max-width: 767px) {
.slick-slide img{
height: 230px;
}
}
.slick-slider {
margin-bottom: 5px;
}
.ec-sliderItemRole{
padding: 0px;
margin: 0px;
}
.ec-sliderItemRole .slideThumb img {
width: 102px;
height: 55px;
object-fit: cover;
}
.ec-sliderItemRole .slideThumb {
width: 17%;
margin-right: 10px;
margin-bottom: 10px;
}
.item_nav {
justify-content: flex-start;
flex-wrap: wrap;
margin-bottom: 0;
}
.ec-productRole__title .ec-headingTitle {
font-size: 4vw;
font-weight: bold;
color: #525263;
border-bottom: 2px solid #D8D8D8;
margin-bottom: 10px;
padding-bottom: 1.3333vw;
}
.freeze {
position: unset;
width: 60px;
display: inline-block;
line-height: 1em;
padding: 5px 0;
background-color: #00B0EC;
color: white;
text-align: center;
font-size: 11px;
font-weight: 700;
border-radius: 5px;
margin-bottom: 10px;
margin-top: 10px;
}
.original {
position: unset;
width: 90px;
display: inline-block;
line-height: 1em;
padding: 5px 0;
background-color: #fff100;
color: black;
text-align: center;
font-size: 11px;
font-weight: 700;
border-radius: 5px;
margin-bottom: 10px;
margin-top: 10px;
}
.ec-productRole .ec-productRole__tags {
margin-top: 0px;
padding: 0;
padding-bottom: 0px;
border-bottom: none;
}
.ec-blockBtn--cancel {
height: 40px;
border-radius: 5px;
line-height: 1.0;
/* background-color: #f5f5f5; */
color: #000333;
border: none;
font-weight: 400;
}
.ec-blockBtn--cancel:hover {
color: #000333;
background-color: #f5f5f5;
border-color: #f5f5f5;
opacity: .7;
}
.ec-blockBtn--cancel:disabled{
color: #000333;
background-color: #f5f5f5;
border-color: #f5f5f5;
}
.ec-blockBtn--action {
background-color: #e65f6e;
}
.ec-blockBtn--action:hover {
color: #fff;
background-color: #e65f6e;
border-color: #e65f6e;
opacity: .6;
}
.ec-numberInput input[type=number] {
max-width: 80px;
margin-bottom: 0px;
}
.ec-productRole .ec-productRole__actions {
padding: 0px;
margin-top: 10px;
margin-right: 10px;
}
.ec-productRole .ec-productRole__actions .ec-numberInput{
display: flex;
align-items: center;
}
.table-ProductDetail tbody tr td:first-child, .table-ReplacementProductDetail tbody tr td:first-child, .table-ReplacementProductDetail tbody tr td:nth-child(3) {
background-color: #F5F5F5;
width: 130px;
border: solid 1px #d3cbcb;
}
.table-ProductDetail tbody tr {
white-space: pre-wrap;
word-wrap: break-word;
}
.table-ProductDetail tbody tr td {
border: solid 1px #d3cbcb;
}
.ec-price .ec-price__price {
font-size: 24px;
font-weight: bold;
color: #b72704;
padding: 0px;\"
}
.ec-productRole__description img {
max-width: 100%;
}
.ec-productRole form div.ec-productRole__actions button.add-cart {
border-radius: 5px;
font-size: 16px;
width: 200px;
}
.ec-productRole__actions_area {
display: flex;
margin: auto;
align-items: baseline;
flex-wrap: wrap;
justify-content: end;
}
";
// line 278
echo " @media only screen and (max-width: 767px) {
.product_name_pc {
display: none;
}
.add_favorite_form{
width: 100%;
}
.ec-productRole form {
width: 100%;
}
.ec-productRole form div.ec-productRole__actions {
margin-right: 0px;
}
.ec-productRole form div.ec-productRole__actions button.add-cart {
width: 100%;
}
#product_video .ec-modal-wrap {
width: 343px;
height: 333px;
}
#video_iframe {
width: 311px;
height: 205px;
}
.ec-price {
text-align: end;
}
.ec-numberInput input[type=number] {
margin-right: 10px;
}
}
";
// line 311
echo " @media only screen and (min-width: 768px) {
.product_name_sp {
display: none;
}
#product_video .ec-modal-wrap {
width: 734px;
height: 544px;
}
#video_iframe {
width: 670px;
height: 422px;
}
}
@media only screen and (min-width: 1024px) {
.ec-price .ec-price__price {
font-size: 30px;
}
}
.youtube {
width: 100%;
aspect-ratio: 16 / 9;
}
.youtube iframe {
width: 100%;
height: 100%;
}
.recipe_book__image {
width: 170px;
border-style: solid;
border-width: 2px;
height: 170px;
object-fit: fill;
border-radius: 9px;
border-color: #d2d2d2;
}
.recipe_book__image:hover {
opacity: 0.7;
}
.recipe_book__name {
font-size: 14px;
height: 40px;
overflow: hidden;
display: -webkit-box;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
margin-top: 8px;
color: #525263;
font-weight: 600;
}
.favorite_button {
margin-top: 10px;
font-size: 16px;
height: 56px;
background-color: #ffffff;
border-color: #cccccc;
border-width: 1px;
border-style: solid;
border-radius: 4px;
}
.initial_purchase__message {
position: relative;
border: 1px solid #FFDA00;
padding: 8px 18px;
font-weight: 600;
font-size: 14px;
color: #525263;
background-color: #F6FF00;
border-radius: 4px;
margin-right: 8px;
margin-bottom: 4px;
display: inline-block;
text-align: start;
}
.initial_purchase__message::before {
content: '';
position: absolute;
top: 50%;
left: 100%;
transform: translateY(-50%);
border: 11px solid transparent;
border-left-color: #FFDA00;
}
.initial_purchase__message::after {
content: '';
position: absolute;
top: 50%;
left: 100%;
transform: translateY(-50%);
border: 10px solid transparent;
border-left-color: #F6FF00;
}
.ec-numberInput .ec-productRole__btn {
margin-left: 10px;
max-width: 350px;
min-width: 100px;
margin-bottom: 10px;
}
.buy_this_product__btn {
max-width: 500px;
margin: auto;
margin-top: 20px;
padding-right: 10px;
padding-left: 10px;
}
.purchased__btn {
max-width: 350px;
min-width: 100px;
margin-right: 0px;
margin-top: 10px;
}
.ec-productRole__btn span {
font-size: 10px;
color: #000000;
}
/* --- SP用の設定 (例: 画面幅が768px以下) --- */
@media (max-width: 768px) {
.sp-only {
display: flex; /* SPでは表示 */
margin-top: 10px;
max-width: 800px;
}
.recipe_book_carousel .slick-slide div {
width: 202px;
}
.recipe_book_carousel .slick-slide div img {
height: 190px;
}
.ec-productRole__btn {
width: 100%;
}
.pc-only {
display: none; /* SPでは非表示 */
}
.product_page .ec-productRole__btn {
max-width: 100% !important;
text-align: center;
}
.favorite_button {
margin-top: 0px;
width: 100%;
}
.add_favorite_form .ec-productRole__btn {
margin-top: 2px !important;
}
.ec-numberInput .ec-productRole__btn {
margin-left: 0px;
}
.buy_this_product__btn {
padding-right: 0px;
padding-left: 0px;
margin-top: 0px !important;
}
.purchased__btn {
margin-right: 0px;
}
}
/* --- PC用の設定 (例: 画面幅が769px以上) --- */
@media (min-width: 769px) {
.sp-only {
display: none; /* PCでは非表示 */
}
.pc-only {
display: flex; /* PCでは表示 */
margin-top: 10px;
max-width: 800px;
flex-wrap: wrap;
}
.pc-only .item {
flex: 1 1 calc(33.333% - 16px); /* 3カラム分の幅(隙間分を引く) */
max-width: calc(33.333% - 16px);
box-sizing: border-box;
}
.ec-productRole .ec-productRole__btn {
width: 90%;
}
}
/* 再入荷表示 */
.restock_date span {
font-size: 13px;
color: #E65F6E;
font-weight: 600;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 512
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 513
echo " <script>
eccube.classCategories = ";
// line 514
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.', 514, $this->source); })()), 514, $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 525
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 525)) {
// line 526
echo " fnSetClassCategories(
\$('#form1'), ";
// line 527
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.', 527, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 527), "vars", [], "any", false, false, true, 527), "value", [], "any", false, false, true, 527), 527, $this->source));
echo "
);
";
} elseif (twig_get_attribute($this->env, $this->source, // line 529
($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 529)) {
// line 530
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.', 530, $this->source); })()), "id", [], "any", false, false, true, 530), 530, $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.', 530, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 530), "vars", [], "any", false, false, true, 530), "value", [], "any", false, false, true, 530), 530, $this->source));
echo ", null);
";
}
// line 532
echo " </script>
<script>
\$(function() {
// 調理方法に遷移するよう制御
\$(window).on('load', function() {
if (window.location.hash === '#base-info') {
setTimeout(function() {
const target = document.getElementById('base-info');
if (target) {
const spOffset = 100;
const pcOffset = 120;
const breakpoint = 768;
const offset = window.innerWidth < breakpoint ? spOffset : pcOffset;
const targetPosition = target.getBoundingClientRect().top + window.pageYOffset;
const scrollToPosition = targetPosition - offset;
window.scrollTo({
top: scrollToPosition,
behavior: 'smooth'
});
}
}, 500);
}
});
// bfcache無効化
\$(window).bind('pageshow', function(event) {
if (event.originalEvent.persisted) {
location.reload(true);
}
});
// Core Web Vital の Cumulative Layout Shift(CLS)対策のため
// img タグに width, height が付与されている.
// 630px 未満の画面サイズでは縦横比が壊れるための対策
// see https://github.com/EC-CUBE/ec-cube/pull/5023
\$('.ec-grid2__cell').hide();
var removeSize = function () {
\$('.slide-item').height('');
\$('.slide-item img')
.removeAttr('width')
.removeAttr('height')
.removeAttr('style');
};
var slickInitial = function(slick) {
\$('.ec-grid2__cell').fadeIn(1500);
var baseHeight = \$(slick.target).height();
var baseWidth = \$(slick.target).width();
var rate = baseWidth / baseHeight;
\$('.slide-item').height(baseHeight * rate); // 余白を削除する
// transform を使用することでCLSの影響を受けないようにする
\$('.slide-item img')
.css(
{
'transform-origin': 'top left',
'transform': 'scaleY(' + rate + ')',
'transition': 'transform .1s'
}
);
// 正しいサイズに近くなったら属性を解除する
setTimeout(removeSize, 500);
};
\$('.item_visual').on('init', slickInitial);
// リサイズ時は CLS の影響を受けないため属性を解除する
\$(window).resize(removeSize);
\$('.item_visual').slick({
dots: false,
arrows: false,
infinite: false,
responsive: [{
breakpoint: 768,
settings: {
dots: false
}
}]
});
\$('.slideThumb').on('click', function() {
var index = \$(this).attr('data-index');
\$('.item_visual').slick('slickGoTo', index, false);
});
// サムネイル画像または再生ボタンをクリックしたら動画ダイアログを表示
\$(document).on(\"click\", \".thumbnail-image, .play-button-overlay\", function() {
// ダイアログを表示
\$(\"#product_video\").show();
});
// 閉じるボタンでダイアログを非表示
\$(document).on(\"click\", \"#product_video .close-btn\", function() {
\$(\"#product_video\").hide();
});
});
</script>
<script>
";
// line 628
$context["current_domain"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 628, $this->source); })()), "request", [], "any", false, false, true, 628), "getHost", [], "method", false, false, true, 628);
// line 629
echo "
";
// line 630
$context["is_prod"] = twig_in_filter("web-order.shikomel.com", (isset($context["current_domain"]) || array_key_exists("current_domain", $context) ? $context["current_domain"] : (function () { throw new RuntimeError('Variable "current_domain" does not exist.', 630, $this->source); })()));
// line 631
echo " ";
$context["is_stg"] = twig_in_filter("web-order-stg.shikomel.com", (isset($context["current_domain"]) || array_key_exists("current_domain", $context) ? $context["current_domain"] : (function () { throw new RuntimeError('Variable "current_domain" does not exist.', 631, $this->source); })()));
// line 632
echo "
\$(function() {
\$('.add-cart').on('click', function(event) {
";
// line 636
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 636)) {
// line 637
echo " // 規格1フォームの必須チェック
if (\$('#classcategory_id1').val() == '__unselected' || \$('#classcategory_id1').val() == '') {
\$('#classcategory_id1')[0].setCustomValidity('";
// line 639
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 645
echo "
";
// line 646
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 646)) {
// line 647
echo " // 規格2フォームの必須チェック
if (\$('#classcategory_id2').val() == '__unselected' || \$('#classcategory_id2').val() == '') {
\$('#classcategory_id2')[0].setCustomValidity('";
// line 649
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 655
echo "
// 個数フォームのチェック
if (\$('#quantity').val() < 1) {
\$('#quantity')[0].setCustomValidity('";
// line 658
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() {
var \$cartBtn = \$('div.ec-modal-overlay').find('a.ec-inlineBtn--action');
\$cartBtn.removeAttr('disabled');
\$cartBtn.off('click');
// responseを判別
if(data.product_id !== undefined) {
var product_id = data.product_id;
var under_quantity = data.under_quantity;
// 最低購入数を下回る場合は、選択数量を最低購入数に変更
if(\$('#quantity' + product_id).length) {
\$('#quantity' + product_id).val(under_quantity);
} else {
\$('#quantity').val(under_quantity);
}
// カートに進むボタンを無効化
\$cartBtn.attr('disabled', 'disabled');
\$cartBtn.on('click', function() {
return false;
})
}
\$('#ec-modal-header').text(this);
});
\$('#ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: \"";
// line 712
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
echo "\",
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
\$.ajax({
url: '";
// line 720
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("modal_cart");
echo "',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-Modalfooter__cart').html(html);
});
// カート追加イベントの送付
";
// line 728
if ((isset($context["is_prod"]) || array_key_exists("is_prod", $context) ? $context["is_prod"] : (function () { throw new RuntimeError('Variable "is_prod" does not exist.', 728, $this->source); })())) {
// line 729
echo "
fbq('track', 'AddToCart', {
content_type: \"Product\",
content_ids: \"";
// line 732
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.', 732, $this->source); })()), "id", [], "any", false, false, true, 732), 732, $this->source), "html", null, true);
echo "\",
contents:
[{
id: \"";
// line 735
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.', 735, $this->source); })()), "id", [], "any", false, false, true, 735), 735, $this->source), "html", null, true);
echo "\",
quantity: \$('#quantity').val()
}],
content_name: \"";
// line 738
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.', 738, $this->source); })()), "name", [], "any", false, false, true, 738), 738, $this->source), "html", null, true);
echo "\",
currency: \"JPY\",
value: 50,
});
fbq('trackCustom', 'ce_add_to_cart', {
content_type: \"Product\",
content_ids: \"";
// line 745
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.', 745, $this->source); })()), "id", [], "any", false, false, true, 745), 745, $this->source), "html", null, true);
echo "\",
contents:
[{
id: \"";
// line 748
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.', 748, $this->source); })()), "id", [], "any", false, false, true, 748), 748, $this->source), "html", null, true);
echo "\",
quantity: \$('#quantity').val()
}],
content_name: \"";
// line 751
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.', 751, $this->source); })()), "name", [], "any", false, false, true, 751), 751, $this->source), "html", null, true);
echo "\",
currency: \"JPY\",
value: 50,
});
window.dataLayer.push({
event: 'ce_add_to_cart',
custom_event_name: 'ce_add_to_cart',
custom_product_id: ";
// line 759
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.', 759, $this->source); })()), "id", [], "any", false, false, true, 759), 759, $this->source), "html", null, true);
echo ",
custom_product_name: '";
// line 760
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.', 760, $this->source); })()), "name", [], "any", false, false, true, 760), 760, $this->source), "html", null, true);
echo "',
custom_quantity: \$('#quantity').val(),
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'add_to_cart'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
";
}
// line 775
echo "
}).fail(function(data) {
alert('";
// line 777
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);
});
});
";
// line 784
if ((isset($context["is_prod"]) || array_key_exists("is_prod", $context) ? $context["is_prod"] : (function () { throw new RuntimeError('Variable "is_prod" does not exist.', 784, $this->source); })())) {
// line 785
echo "
// 詳細表示時にMetaとGTMとLineに閲覧イベントを送付する
fbq('track', 'ViewContent', {
content_type: \"Product\",
content_ids: \"";
// line 789
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.', 789, $this->source); })()), "id", [], "any", false, false, true, 789), 789, $this->source), "html", null, true);
echo "\",
content_name: \"";
// line 790
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.', 790, $this->source); })()), "name", [], "any", false, false, true, 790), 790, $this->source), "html", null, true);
echo "\",
currency: \"JPY\",
value: 25,
});
fbq('trackCustom', 'ce_view_product_detail', {
content_type: \"Product\",
content_ids: \"";
// line 797
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.', 797, $this->source); })()), "id", [], "any", false, false, true, 797), 797, $this->source), "html", null, true);
echo "\",
content_name: \"";
// line 798
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.', 798, $this->source); })()), "name", [], "any", false, false, true, 798), 798, $this->source), "html", null, true);
echo "\",
currency: \"JPY\",
value: 25,
});
window.dataLayer.push({
event: 'ce_view_product_detail',
custom_event_name: 'ce_view_product_detail',
custom_product_id: ";
// line 806
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.', 806, $this->source); })()), "id", [], "any", false, false, true, 806), 806, $this->source), "html", null, true);
echo ",
custom_product_name: '";
// line 807
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.', 807, $this->source); })()), "name", [], "any", false, false, true, 807), 807, $this->source), "html", null, true);
echo "',
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'product_detail'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
";
}
// line 821
echo " });
\$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
";
// line 831
if ((isset($context["is_prod"]) || array_key_exists("is_prod", $context) ? $context["is_prod"] : (function () { throw new RuntimeError('Variable "is_prod" does not exist.', 831, $this->source); })())) {
// line 832
echo " // お気に入り追加ボタンクリック時のトラッキングイベント
\$('#favorite').on('click', function(e) {
fbq('track', 'AddToWishlist', {
content_type: \"Product\",
content_ids: \"";
// line 837
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.', 837, $this->source); })()), "id", [], "any", false, false, true, 837), 837, $this->source), "html", null, true);
echo "\",
content_name: \"";
// line 838
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.', 838, $this->source); })()), "name", [], "any", false, false, true, 838), 838, $this->source), "html", null, true);
echo "\",
currency: \"JPY\",
value: 40,
});
fbq('trackCustom', 'ce_add_to_wishlist', {
content_type: \"Product\",
content_ids: \"";
// line 845
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.', 845, $this->source); })()), "id", [], "any", false, false, true, 845), 845, $this->source), "html", null, true);
echo "\",
content_name: \"";
// line 846
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.', 846, $this->source); })()), "name", [], "any", false, false, true, 846), 846, $this->source), "html", null, true);
echo "\",
currency: \"JPY\",
value: 40,
});
window.dataLayer.push({
event: 'ce_add_to_wishlist',
custom_event_name: 'ce_add_to_wishlist',
custom_product_id: ";
// line 854
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.', 854, $this->source); })()), "id", [], "any", false, false, true, 854), 854, $this->source), "html", null, true);
echo ",
custom_product_name: '";
// line 855
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.', 855, $this->source); })()), "name", [], "any", false, false, true, 855), 855, $this->source), "html", null, true);
echo "',
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'add_to_wishlist'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
});
// この商品を購入するボタンクリック時のトラッキングイベント
\$('#buy_this_product').on('click', function(e) {
fbq('trackCustom', 'ClickBuyProduct', {
content_type: \"Product\",
content_ids: \"";
// line 874
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.', 874, $this->source); })()), "id", [], "any", false, false, true, 874), 874, $this->source), "html", null, true);
echo "\",
content_name: \"";
// line 875
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.', 875, $this->source); })()), "name", [], "any", false, false, true, 875), 875, $this->source), "html", null, true);
echo "\",
currency: \"JPY\",
value: 30,
});
window.dataLayer.push({
event: 'ce_click_buy_product',
custom_event_name: 'ce_click_buy_product',
custom_product_id: ";
// line 883
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.', 883, $this->source); })()), "id", [], "any", false, false, true, 883), 883, $this->source), "html", null, true);
echo ",
custom_product_name: '";
// line 884
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.', 884, $this->source); })()), "name", [], "any", false, false, true, 884), 884, $this->source), "html", null, true);
echo "',
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'ce_click_buy_product'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
});
// Lineバナークリックイベント
\$('#line_link_detail').on('click', function(event) {
const currentPageUrl = window.location.href;
fbq('trackCustom', 'ce_click_line_btn', {
content_type: \"ClickLineBtn\",
content_name: currentPageUrl,
value: 50
});
window.dataLayer.push({
event: 'ce_click_line_btn',
custom_event_name: 'ce_click_line_btn',
custom_page_url: currentPageUrl,
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'ce_click_line_btn'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
});
";
}
// line 926
echo "
\$('.recipe_book_carousel').slick({
dots: false,
autoplay: false,
centerMode: false,
centerPadding: '0px',
arrows: false,
infinite: false,
slidesToShow: 1,
variableWidth: true,
swipeToSlide: true
});
function moveTop(){
const itemNav = document.querySelector('.ec-price');
if (itemNav) {
itemNav.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
}
function fnToLogin(url) {
window.location.href = url;
}
</script>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org/\",
\"@type\": \"Product\",
\"name\": \"";
// line 953
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.', 953, $this->source); })()), "name", [], "any", false, false, true, 953), 953, $this->source), "html", null, true);
echo "\",
\"image\": [
";
// line 955
$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.', 955, $this->source); })()), "ProductImage", [], "any", false, false, true, 955));
$context['_iterated'] = false;
$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["img"]) {
// line 956
echo " \"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 956, $this->source); })()), "request", [], "any", false, false, true, 956), "schemeAndHttpHost", [], "any", false, false, true, 956), 956, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed($context["img"], 956, $this->source), "save_image"), "html", null, true);
echo "\"";
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, true, 956)) {
echo ",";
}
// line 957
echo " ";
$context['_iterated'] = true;
++$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'];
}
}
if (!$context['_iterated']) {
// line 958
echo " \"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 958, $this->source); })()), "request", [], "any", false, false, true, 958), "schemeAndHttpHost", [], "any", false, false, true, 958), 958, $this->source), "html", null, true);
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 "\"
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 960
echo " ],
\"description\": \"";
// line 961
echo twig_escape_filter($this->env, twig_slice($this->env, twig_replace_filter(((twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "description_list", [], "any", true, true, true, 961)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "description_list", [], "any", false, false, true, 961), 961, $this->source), $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.', 961, $this->source); })()), "description_detail", [], "any", false, false, true, 961), 961, $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.', 961, $this->source); })()), "description_detail", [], "any", false, false, true, 961))), ["
" => "", "
" => ""]), 0, 300), "html", null, true);
echo "\",
";
// line 962
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.', 962, $this->source); })()), "code_min", [], "any", false, false, true, 962)) {
// line 963
echo " \"sku\": \"";
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.', 963, $this->source); })()), "code_min", [], "any", false, false, true, 963), 963, $this->source), "html", null, true);
echo "\",
";
}
// line 965
echo " \"offers\": {
\"@type\": \"Offer\",
\"url\": \"";
// line 967
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.', 967, $this->source); })()), "id", [], "any", false, false, true, 967)]), "html", null, true);
echo "\",
\"priceCurrency\": \"";
// line 968
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config", $context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.', 968, $this->source); })()), "currency", [], "any", false, false, true, 968), 968, $this->source), "html", null, true);
echo "\",
\"price\": ";
// line 969
((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.', 969, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 969)) ? (print (twig_escape_filter($this->env, 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.', 969, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 969), "html", null, true))) : (print (0)));
echo ",
\"availability\": \"";
// line 970
echo ((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.', 970, $this->source); })()), "stock_find", [], "any", false, false, true, 970)) ? ("InStock") : ("OutOfStock"));
echo "\"
}
}
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 976
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 977
echo " <div class=\"ec-productRole\">
<div class=\"ec-grid2\">
<div class=\"ec-grid2___ell product_name_sp\" style=\"margin-top: 10px;\">
<div class=\"ec-productRole__profile\">
<div class=\"productBadge sp_show\">
";
// line 982
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.', 982, $this->source); })()), "is_freeze", [], "any", false, false, true, 982) == "1")) {
// line 983
echo " <span class=\"freeze\">冷凍</span>
";
}
// line 985
echo " </div>
";
// line 987
echo " <div class=\"ec-productRole__title\">
<h2 class=\"ec-headingTitle\">";
// line 988
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.', 988, $this->source); })()), "name", [], "any", false, false, true, 988), 988, $this->source), "html", null, true);
echo "</h2>
</div>
</div>
</div>
<div class=\"ec-grid2__cell\">
<div class=\"ec-sliderItemRole\">
<div class=\"item_visual\">
";
// line 995
if ((twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "intro_video_embed_html", [], "any", true, true, true, 995) && 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.', 995, $this->source); })()), "intro_video_embed_html", [], "any", false, false, true, 995))) {
// line 996
echo " ";
$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.', 996, $this->source); })()), "ProductImage", [], "any", false, false, true, 996));
$context['_iterated'] = false;
$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 997
echo " <div class=\"slide-item\" style=\"position:relative;\">
";
// line 999
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, true, 999)) {
// line 1000
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed($context["ProductImage"], 1000, $this->source), "save_image"), "html", null, true);
echo "\" alt=\"";
((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, true, 1000)) ? (print (twig_escape_filter($this->env, 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.', 1000, $this->source); })()), "name", [], "any", false, false, true, 1000), "html", null, true))) : (print ("")));
echo "\" width=\"550\" height=\"550\"";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 1000) > 1)) {
echo " loading=\"lazy\"";
}
echo " class=\"play-button-overlay\">
";
} else {
// line 1002
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed($context["ProductImage"], 1002, $this->source), "save_image"), "html", null, true);
echo "\" alt=\"";
((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, true, 1002)) ? (print (twig_escape_filter($this->env, 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.', 1002, $this->source); })()), "name", [], "any", false, false, true, 1002), "html", null, true))) : (print ("")));
echo "\" width=\"550\" height=\"550\"";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 1002) > 1)) {
echo " loading=\"lazy\"";
}
echo ">
";
}
// line 1003
echo "
</div>
";
$context['_iterated'] = true;
++$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'];
}
}
if (!$context['_iterated']) {
// line 1006
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 "\" alt=\"";
((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, true, 1006)) ? (print (twig_escape_filter($this->env, 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.', 1006, $this->source); })()), "name", [], "any", false, false, true, 1006), "html", null, true))) : (print ("")));
echo "\" width=\"550\" height=\"550\"></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 1008
echo " ";
} else {
// line 1009
echo " ";
$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.', 1009, $this->source); })()), "ProductImage", [], "any", false, false, true, 1009));
$context['_iterated'] = false;
$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 1010
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"], 1010, $this->source), "save_image"), "html", null, true);
echo "\" alt=\"";
((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, true, 1010)) ? (print (twig_escape_filter($this->env, 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.', 1010, $this->source); })()), "name", [], "any", false, false, true, 1010), "html", null, true))) : (print ("")));
echo "\" width=\"550\" height=\"550\"";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 1010) > 1)) {
echo " loading=\"lazy\"";
}
echo "></div>
";
$context['_iterated'] = true;
++$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'];
}
}
if (!$context['_iterated']) {
// line 1012
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 "\" alt=\"";
((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, true, 1012)) ? (print (twig_escape_filter($this->env, 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.', 1012, $this->source); })()), "name", [], "any", false, false, true, 1012), "html", null, true))) : (print ("")));
echo "\" width=\"550\" height=\"550\"></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 1014
echo " ";
}
// line 1015
echo " </div>
<div class=\"item_nav\">
";
// line 1017
if ((twig_length_filter($this->env, 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.', 1017, $this->source); })()), "ProductImage", [], "any", false, false, true, 1017)) >= 2)) {
// line 1018
echo " ";
$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.', 1018, $this->source); })()), "ProductImage", [], "any", false, false, true, 1018));
$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 1019
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, 1019), 1019, $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"], 1019, $this->source), "save_image"), "html", null, true);
echo "\" alt=\"\" width=\"133\" height=\"133\" loading=\"lazy\"></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 1021
echo " ";
}
// line 1022
echo " </div>
</div>
</div>
<div class=\"ec-grid2__cell\" style=\"\">
<div class=\"ec-productRole__profile\">
";
// line 1028
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.', 1028, $this->source); })()), "ProductCategories", [], "any", false, false, true, 1028))) {
// line 1029
echo " <div class=\"\" style=\"font-size: 11px;\">
<div><a href=\"";
// line 1030
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">シコメルストア</a> > <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 1030, $this->source); })()), "ProductCategories", [], "any", false, false, true, 1030), 0, [], "array", false, false, true, 1030), "Category", [], "any", false, false, true, 1030), "id", [], "any", false, false, true, 1030), 1030, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 1030, $this->source); })()), "ProductCategories", [], "any", false, false, true, 1030), 0, [], "array", false, false, true, 1030), "Category", [], "any", false, false, true, 1030), "name", [], "any", false, false, true, 1030), 1030, $this->source), "html", null, true);
echo "</a> > ";
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.', 1030, $this->source); })()), "name", [], "any", false, false, true, 1030), 1030, $this->source), "html", null, true);
echo "</div>
</div>
";
}
// line 1033
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.', 1033, $this->source); })()), "is_recipe_book", [], "any", false, false, true, 1033)) {
// line 1034
echo " <div class=\"\" style=\"font-size: 11px; margin-bottom: 10px;\">
<div><a href=\"";
// line 1035
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">シコメルストア</a> > ";
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.', 1035, $this->source); })()), "name", [], "any", false, false, true, 1035), 1035, $this->source), "html", null, true);
echo "</div>
</div>
";
}
// line 1038
echo " ";
// line 1040
echo " ";
// line 1041
echo " <div class=\"productBadge product_name_pc\">
";
// line 1042
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.', 1042, $this->source); })()), "is_freeze", [], "any", false, false, true, 1042) == "1")) {
// line 1043
echo " <span class=\"freeze\">冷凍</span>
";
}
// line 1045
echo " </div>
";
// line 1047
echo " <div class=\"ec-productRole__title product_name_pc\">
<h2 class=\"ec-headingTitle\" style=\"padding-bottom: 5px;\">";
// line 1048
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.', 1048, $this->source); })()), "name", [], "any", false, false, true, 1048), 1048, $this->source), "html", null, true);
echo "</h2>
</div>
";
// line 1051
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.', 1051, $this->source); })()), "description_list", [], "any", false, false, true, 1051)) {
// line 1052
echo " <p style=\"margin-top: 10px; font-size: 14px; overflow: hidden; display: -webkit-box; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 5; max-height: 100px; margin-bottom: 10px;\">";
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.', 1052, $this->source); })()), "description_list", [], "any", false, false, true, 1052), 1052, $this->source));
echo "</p>
";
}
// line 1054
echo " ";
// line 1055
echo " <ul class=\"ec-productRole__tags\">
";
// line 1056
$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.', 1056, $this->source); })()), "Tags", [], "any", false, false, true, 1056));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 1057
echo " <a href=\"/products/list?name=";
echo twig_escape_filter($this->env, twig_urlencode_filter($this->sandbox->ensureToStringAllowed($context["Tag"], 1057, $this->source)), "html", null, true);
echo "\">
<li class=\"ec-productRole__tag tag_";
// line 1058
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Tag"], "id", [], "any", false, false, true, 1058), 1058, $this->source), "html", null, true);
echo "\" style=\"color: #337AB7; text-decoration: underline;\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["Tag"], 1058, $this->source), "html", null, true);
echo "</li>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1061
echo " </ul>
";
// line 1063
echo " <div class=\"ec-productRole__price\" style=\"padding: 0px;\">
<div class=\"ec-price\" style=\"margin-top: 10px;\">
";
// line 1066
echo " <div>
<span class=\"ec-headingTitle\" style=\"font-size: 16px; font-weight: bold; margin: 0px;\">";
// line 1067
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($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.', 1067, $this->source); })()), "cost_per_unit", [], "any", false, false, true, 1067), 1067, $this->source)), "html", null, true);
echo "</span>
";
// line 1068
if ( !(null === 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.', 1068, $this->source); })()), "cost_per_unit_gram", [], "any", false, false, true, 1068))) {
// line 1069
echo " <span class=\"ec-headingTitle\" style=\"font-size: 12px; font-weight: bold; margin: 0px;\">(";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($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.', 1069, $this->source); })()), "cost_per_unit_gram", [], "any", false, false, true, 1069), 1069, $this->source)), "html", null, true);
echo ")</span>
";
}
// line 1071
echo " </div>
";
// line 1074
echo " ";
if ( !(null === 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.', 1074, $this->source); })()), "getPrice01Max", [], "any", false, false, true, 1074))) {
// line 1075
echo " <div style=\"font-size: 16px; font-weight: 700; color: black; margin: 0px;\">
<span class=\"ec-productRole__priceRegularPrice\" style=\"font-weight: 700; text-decoration: line-through;\">";
// line 1076
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("通常価格"), "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.', 1076, $this->source); })()), "getPrice01IncTaxMin", [], "any", false, false, true, 1076), 1076, $this->source)), "html", null, true);
echo "</span>
<span class=\"ec-productRole__priceRegularTax\">";
// line 1077
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
</div>
";
}
// line 1080
echo " ";
// line 1081
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.', 1081, $this->source); })()), "standard_text", [], "any", false, false, true, 1081)) {
// line 1082
echo " <span class=\"ec-headingTitle\" style=\"font-size: 14px; font-weight: 700;\">規格:";
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.', 1082, $this->source); })()), "standard_text", [], "any", false, false, true, 1082), 1082, $this->source), "html", null, true);
echo "</span>
";
}
// line 1084
echo " ";
// line 1085
echo " ";
if (( !(isset($context["has_purchased_recipe"]) || array_key_exists("has_purchased_recipe", $context) ? $context["has_purchased_recipe"] : (function () { throw new RuntimeError('Variable "has_purchased_recipe" does not exist.', 1085, $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.', 1085, $this->source); })()), "is_recipe_book", [], "any", false, false, true, 1085))) {
// line 1086
echo " <div class=\"initial_purchase__message\">
<span>初回購入は無料!</span>
<br>
<span style=\"white-space: nowrap;\">ぜひお試しください。</span>
</div>
";
// line 1092
echo " <span class=\"ec-price__price\">¥0</span>
<span class=\"ec-price__tax\" style=\"color: #b72704;\">";
// line 1093
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
";
} else {
// line 1095
echo " ";
// line 1096
echo " <span class=\"ec-price__price\">";
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.', 1096, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, true, 1096), 1096, $this->source)), "html", null, true);
echo "</span>
<span class=\"ec-price__tax\" style=\"color: #b72704;\">";
// line 1097
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("税込"), "html", null, true);
echo "</span>
";
}
// line 1099
echo " </div>
</div>
";
// line 1102
echo " ";
// line 1103
echo " ";
// line 1104
echo " ";
// line 1105
echo " ";
// line 1106
echo " ";
// line 1107
echo " ";
// line 1108
echo " ";
// line 1122
echo " <div class=\"ec-productRole__actions_area\">
<form action=\"";
// line 1123
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.', 1123, $this->source); })()), "id", [], "any", false, false, true, 1123)]), "html", null, true);
echo "\" method=\"post\" id=\"form1\" name=\"form1\">
";
// line 1124
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.', 1124, $this->source); })()), "stock_find", [], "any", false, false, true, 1124)) {
// line 1125
echo " <div class=\"ec-productRole__actions\">
";
// line 1126
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, true, 1126)) {
// line 1127
echo " <div class=\"ec-select\">
";
// line 1128
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.', 1128, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 1128), 1128, $this->source), 'row');
echo "
";
// line 1129
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.', 1129, $this->source); })()), "classcategory_id1", [], "any", false, false, true, 1129), 1129, $this->source), 'errors');
echo "
</div>
";
// line 1131
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, true, 1131)) {
// line 1132
echo " <div class=\"ec-select\">
";
// line 1133
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.', 1133, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 1133), 1133, $this->source), 'row');
echo "
";
// line 1134
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.', 1134, $this->source); })()), "classcategory_id2", [], "any", false, false, true, 1134), 1134, $this->source), 'errors');
echo "
</div>
";
}
// line 1137
echo " ";
}
// line 1138
echo " <div class=\"ec-numberInput\">
";
// line 1139
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.', 1139, $this->source); })()), "is_recipe_book", [], "any", false, false, true, 1139)) {
// line 1140
echo " <span style=\"min-width: 40px; font-size: 14px;\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html", null, true);
echo "</span>
";
// line 1141
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.', 1141, $this->source); })()), "quantity", [], "any", false, false, true, 1141), 1141, $this->source), 'widget');
echo "
";
// line 1142
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.', 1142, $this->source); })()), "quantity", [], "any", false, false, true, 1142), 1142, $this->source), 'errors');
echo "
";
} else {
// line 1144
echo " ";
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.', 1144, $this->source); })()), "quantity", [], "any", false, false, true, 1144), 1144, $this->source), 'widget', ["type" => "hidden"]);
echo "
";
}
// line 1146
echo " ";
// line 1147
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.', 1147, $this->source); })()), "is_recipe_book", [], "any", false, false, true, 1147)) {
// line 1148
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1148, $this->source); })()), "user", [], "any", false, false, true, 1148) && !(isset($context["has_purchased_product"]) || array_key_exists("has_purchased_product", $context) ? $context["has_purchased_product"] : (function () { throw new RuntimeError('Variable "has_purchased_product" does not exist.', 1148, $this->source); })()))) {
// line 1149
echo " <div class=\"ec-productRole__btn purchased__btn\" style=\"\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
";
// line 1151
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 1154
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1154, $this->source); })()), "user", [], "any", false, false, true, 1154) && (isset($context["has_purchased_product"]) || array_key_exists("has_purchased_product", $context) ? $context["has_purchased_product"] : (function () { throw new RuntimeError('Variable "has_purchased_product" does not exist.', 1154, $this->source); })()))) {
// line 1155
echo " <div class=\"ec-productRole__btn purchased__btn\">
<button type=\"button\" class=\"ec-blockBtn--action add-cart\" disabled=\"disabled\">
";
// line 1157
echo "注文済みです";
echo "
</button>
</div>
";
} elseif ( !twig_get_attribute($this->env, $this->source, // line 1160
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1160, $this->source); })()), "user", [], "any", false, false, true, 1160)) {
// line 1161
echo " <div class=\"ec-productRole__btn purchased__btn\">
<button type=\"button\" class=\"ec-blockBtn--action add-cart\" disabled=\"disabled\">
";
// line 1163
echo "カートに入れる";
echo "
</button>
<span>※ログインするとカートに入れられます。</span>
</div>
";
}
// line 1168
echo " ";
} else {
// line 1169
echo " <div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
";
// line 1171
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "
</button>
</div>
";
}
// line 1175
echo " </div>
</div>
";
} else {
// line 1178
echo " <div class=\"ec-productRole__btn soldout__btn\" style=\"max-width: 350px; min-width: 100px; margin-right: 20px; margin-top: 10px;\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
";
// line 1180
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html", null, true);
echo "
</button>
";
// line 1182
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.', 1182, $this->source); })()), "restock_date", [], "any", false, false, true, 1182)) {
// line 1183
echo " <div class=\"restock_date\">
<span>※";
// line 1184
echo twig_escape_filter($this->env, twig_date_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.', 1184, $this->source); })()), "restock_date", [], "any", false, false, true, 1184), 1184, $this->source), "Y年n月j日"), "html", null, true);
echo "に入荷予定</span>
</div>
";
}
// line 1187
echo " </div>
";
}
// line 1189
echo "
";
// line 1190
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.', 1190, $this->source); })()), 1190, $this->source), 'rest');
echo "
</form>
";
// line 1192
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.', 1192, $this->source); })()), "option_favorite_product", [], "any", false, false, true, 1192)) {
// line 1193
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.', 1193, $this->source); })()), "id", [], "any", false, false, true, 1193)]), "html", null, true);
echo "\" method=\"post\" class=\"add_favorite_form\">
<div class=\"ec-productRole__btn\" style=\"width: 100%; min-width: auto;\">
";
// line 1195
if (((isset($context["is_favorite"]) || array_key_exists("is_favorite", $context) ? $context["is_favorite"] : (function () { throw new RuntimeError('Variable "is_favorite" does not exist.', 1195, $this->source); })()) == false)) {
// line 1196
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel favorite_button\">
";
// line 1197
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに登録"), "html", null, true);
echo "
</button>
";
} else {
// line 1200
echo " <button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel favorite_button\"
disabled=\"disabled\">";
// line 1201
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りに登録済"), "html", null, true);
echo "
</button>
";
}
// line 1204
echo " </div>
</form>
";
}
// line 1207
echo " </div>
<div class=\"ec-modal\" id=\"ec-modal\">
<div class=\"ec-modal-overlay\">
<div class=\"ec-modal-wrap\">
<span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
// line 1211
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 1212
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 1215
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
<a href=\"";
// line 1216
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 1223
echo " ";
if ( !twig_test_empty((isset($context["referencingProducts"]) || array_key_exists("referencingProducts", $context) ? $context["referencingProducts"] : (function () { throw new RuntimeError('Variable "referencingProducts" does not exist.', 1223, $this->source); })()))) {
// line 1224
echo " <div style=\"margin-top: 20px; font-weight: bold; display: flex; justify-content: space-between; align-items: center;\">
<span>ご一緒にいかがですか?</span>
<a href=\"https://web-order.shikomel.com/user_data/recipe_book_lp\" style=\"color: #337AB7; font-size: 14px;\" target=\"_blank\">
レシピ帖とは
<i class=\"far fa-question-circle\" style=\"margin-left: 5px;\"></i>
</a>
</div>
";
// line 1232
echo " <div class=\"recipe_book_carousel sp-only\">
";
// line 1233
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["referencingProducts"]) || array_key_exists("referencingProducts", $context) ? $context["referencingProducts"] : (function () { throw new RuntimeError('Variable "referencingProducts" does not exist.', 1233, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["RefProduct"]) {
// line 1234
echo " <div class=\"item slick-slide\" style=\"padding: 6px; width: 202px; display: inline-block;\" aria-hidden=\"true\">
<a href=\"";
// line 1235
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["RefProduct"], "id", [], "any", false, false, true, 1235)]), "html", null, true);
echo "\" tabindex=\"-1\">
<img class=\"recipe_book__image\" src=\"";
// line 1236
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["RefProduct"], "main_list_image", [], "any", false, false, true, 1236), 1236, $this->source)), "save_image"), "html", null, true);
echo "\">
<p class=\"recipe_book__name\">";
// line 1237
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["RefProduct"], "name", [], "any", false, false, true, 1237), 1237, $this->source), "html", null, true);
echo "</p>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['RefProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1241
echo " </div>
<div class=\"pc-only\">
";
// line 1243
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["referencingProducts"]) || array_key_exists("referencingProducts", $context) ? $context["referencingProducts"] : (function () { throw new RuntimeError('Variable "referencingProducts" does not exist.', 1243, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["RefProduct"]) {
// line 1244
echo " <div class=\"item\" style=\"padding: 6px; width: 100%; display: inline-block; max-width: 170px;\" aria-hidden=\"true\">
<a href=\"";
// line 1245
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["RefProduct"], "id", [], "any", false, false, true, 1245)]), "html", null, true);
echo "\" tabindex=\"-1\">
<img class=\"recipe_book__image\" src=\"";
// line 1246
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["RefProduct"], "main_list_image", [], "any", false, false, true, 1246), 1246, $this->source)), "save_image"), "html", null, true);
echo "\">
<p class=\"recipe_book__name\">";
// line 1247
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["RefProduct"], "name", [], "any", false, false, true, 1247), 1247, $this->source), "html", null, true);
echo "</p>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['RefProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1251
echo " </div>
";
}
// line 1253
echo " ";
// line 1254
echo "
";
// line 1256
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["Product"] ?? null), "intro_video_embed_html", [], "any", true, true, true, 1256) && 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.', 1256, $this->source); })()), "intro_video_embed_html", [], "any", false, false, true, 1256))) {
// line 1257
echo " <div class=\"ec-modal\" id=\"product_video\">
<div class=\"ec-modal-overlay\">
<div class=\"ec-modal-wrap\">
<div class=\"ec-modal-box\" style=\"margin-top: 24px;\">
<span class=\"ec-modal-close\">
<span class=\"ec-icon\"><img src=\"";
// line 1262
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>
<iframe id=\"video_iframe\" src=\"";
// line 1265
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.', 1265, $this->source); })()), "intro_video_embed_html", [], "any", false, false, true, 1265), 1265, $this->source), "html", null, true);
echo "\" title=\"商品紹介動画\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
";
}
// line 1271
echo "
";
// line 1272
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.', 1272, $this->source); })()), "cost_per_meal", [], "any", false, false, true, 1272) || 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.', 1272, $this->source); })()), "price_per_meal", [], "any", false, false, true, 1272)) || 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.', 1272, $this->source); })()), "profit_per_meal", [], "any", false, false, true, 1272))) {
// line 1273
echo " <div style=\"margin-top: 20px;\">
<span style=\"font-weight: bold;\">FLコスト参考</span>
<table class=\"table table-ProductDetail\" style=\"max-width: 800px; margin-bottom: 30px;\">
<tbody>
";
// line 1277
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.', 1277, $this->source); })()), "cost_per_meal", [], "any", false, false, true, 1277)) {
// line 1278
echo " <tr>
<td>1食当たり原価</td>
<td>";
// line 1280
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($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.', 1280, $this->source); })()), "cost_per_meal", [], "any", false, false, true, 1280), 1280, $this->source)), "html", null, true);
echo "</td>
</tr>
";
}
// line 1283
echo "
";
// line 1284
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.', 1284, $this->source); })()), "price_per_meal", [], "any", false, false, true, 1284)) {
// line 1285
echo " <tr>
<td>1食当たり売価</td>
<td>";
// line 1287
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($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.', 1287, $this->source); })()), "price_per_meal", [], "any", false, false, true, 1287), 1287, $this->source)), "html", null, true);
echo "</td>
</tr>
";
}
// line 1290
echo "
";
// line 1291
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.', 1291, $this->source); })()), "profit_per_meal", [], "any", false, false, true, 1291)) {
// line 1292
echo " <tr>
<td>1食当たり粗利</td>
<td>";
// line 1294
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($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.', 1294, $this->source); })()), "profit_per_meal", [], "any", false, false, true, 1294), 1294, $this->source)), "html", null, true);
echo "</td>
</tr>
";
}
// line 1297
echo " </tbody>
</table>
</div>
";
}
// line 1301
echo "
";
// line 1302
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.', 1302, $this->source); })()), "expiration_date", [], "any", false, false, true, 1302) || 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.', 1302, $this->source); })()), "cooking_instructions", [], "any", false, false, true, 1302)) || 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.', 1302, $this->source); })()), "storage_method", [], "any", false, false, true, 1302)) || 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.', 1302, $this->source); })()), "raw_materials", [], "any", false, false, true, 1302)) || 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.', 1302, $this->source); })()), "allergy_information", [], "any", false, false, true, 1302)) || 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.', 1302, $this->source); })()), "allergy_information_20", [], "any", false, false, true, 1302))) {
// line 1303
echo " <table class=\"table table-ProductDetail\" id=\"base-info\" style=\"max-width: 800px; margin-bottom: 30px;\">
<span style=\"font-weight: bold;\">商品基本情報</span>
<tbody>
";
// line 1307
echo " ";
// line 1313
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.', 1313, $this->source); })()), "cooking_instructions", [], "any", false, false, true, 1313)) {
// line 1314
echo " <tr>
<td>調理方法</td>
<td>";
// line 1316
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($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.', 1316, $this->source); })()), "cooking_instructions", [], "any", false, false, true, 1316), 1316, $this->source)), "html", null, true);
echo "
";
// line 1317
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.', 1317, $this->source); })()), "cooking_note_url", [], "any", false, false, true, 1317)) {
echo "<a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($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.', 1317, $this->source); })()), "cooking_note_url", [], "any", false, false, true, 1317), 1317, $this->source)), "html", null, true);
echo "\" style=\"font-weight: bold; text-decoration: underline; padding-top: 20px; display: block; padding-bottom: 20px;\" target=\"_blank\">さらに詳しい調理方法を見る";
}
echo "</td>
</tr>
";
}
// line 1320
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.', 1320, $this->source); })()), "storage_method", [], "any", false, false, true, 1320)) {
// line 1321
echo " <tr>
<td>保存方法</td>
<td>";
// line 1323
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($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.', 1323, $this->source); })()), "storage_method", [], "any", false, false, true, 1323), 1323, $this->source)), "html", null, true);
echo "</td>
</tr>
";
}
// line 1326
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.', 1326, $this->source); })()), "raw_materials", [], "any", false, false, true, 1326)) {
// line 1327
echo " <tr>
<td>原材料</td>
<td>";
// line 1329
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($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.', 1329, $this->source); })()), "raw_materials", [], "any", false, false, true, 1329), 1329, $this->source)), "html", null, true);
echo "</td>
</tr>
";
}
// line 1332
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.', 1332, $this->source); })()), "allergy_information", [], "any", false, false, true, 1332)) {
// line 1333
echo " <tr>
<td>アレルギー情報 主要8項目</td>
<td>";
// line 1335
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($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.', 1335, $this->source); })()), "allergy_information", [], "any", false, false, true, 1335), 1335, $this->source)), "html", null, true);
echo "</td>
</tr>
";
}
// line 1338
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.', 1338, $this->source); })()), "allergy_information_20", [], "any", false, false, true, 1338)) {
// line 1339
echo " <tr>
<td>アレルギー情報 その他20項目</td>
<td>";
// line 1341
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($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.', 1341, $this->source); })()), "allergy_information_20", [], "any", false, false, true, 1341), 1341, $this->source)), "html", null, true);
echo "</td>
</tr>
";
}
// line 1344
echo " </tbody>
</table>
";
}
// line 1347
echo " </div>
</div>
</div>
";
// line 1351
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.', 1351, $this->source); })()), "cook_movie_url", [], "any", false, false, true, 1351)) {
// line 1352
echo " <div class=\"youtube\" style=\"max-width: 500px; margin: auto; margin-top: 30px;\">
<span style=\"font-weight: bold;\">参考調理動画</span>
<iframe src=\"";
// line 1354
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.', 1354, $this->source); })()), "cook_movie_url", [], "any", false, false, true, 1354), 1354, $this->source), "html", null, true);
echo "\" title=\"参考調理動画 ";
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.', 1354, $this->source); })()), "name", [], "any", false, false, true, 1354), 1354, $this->source), "html", null, true);
echo "\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>
</div>
";
}
// line 1357
echo "
";
// line 1358
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.', 1358, $this->source); })()), "add_description_1_title", [], "any", false, false, true, 1358) || 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.', 1358, $this->source); })()), "add_description_1_image", [], "any", false, false, true, 1358)) || 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.', 1358, $this->source); })()), "add_description_1_content", [], "any", false, false, true, 1358))) {
// line 1359
echo " <div style=\"max-width: 500px; margin: auto; margin-top: 30px;\">
<div style=\"font-weight: bold; margin-bottom: 20px; text-align: center;\">活用事例・実食レビュー・詳細情報など</div>
";
// line 1361
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, 10));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 1362
echo " <div>
";
// line 1363
$context["title"] = 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.', 1363, $this->source); })()), (("add_description_" . $this->sandbox->ensureToStringAllowed($context["i"], 1363, $this->source)) . "_title"), [], "any", false, false, true, 1363);
// line 1364
echo " ";
$context["image"] = 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.', 1364, $this->source); })()), (("add_description_" . $this->sandbox->ensureToStringAllowed($context["i"], 1364, $this->source)) . "_image"), [], "any", false, false, true, 1364);
// line 1365
echo " ";
$context["content"] = 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.', 1365, $this->source); })()), (("add_description_" . $this->sandbox->ensureToStringAllowed($context["i"], 1365, $this->source)) . "_content"), [], "any", false, false, true, 1365);
// line 1366
echo "
";
// line 1367
if ((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 1367, $this->source); })())) {
// line 1368
echo " <div style=\"\">
<img src=\"";
// line 1369
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed((isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 1369, $this->source); })()), 1369, $this->source), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 1369, $this->source); })()), 1369, $this->source), "html", null, true);
echo "\" />
</div>
";
}
// line 1372
echo "
";
// line 1373
if ((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 1373, $this->source); })())) {
// line 1374
echo " <h2 class=\"product-title\" style=\"font-size: 16px; font-weight: bold; margin-top: 20px;\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 1374, $this->source); })()), 1374, $this->source), "html", null, true);
echo "</h2>
<hr>
";
}
// line 1377
echo "
";
// line 1378
if ((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 1378, $this->source); })())) {
// line 1379
echo " <div class=\"product-description\" style=\"margin-top:20px; margin-bottom:50px; font-size: 14px; white-space: pre-line;\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 1379, $this->source); })()), 1379, $this->source), "html", null, true);
echo "</div>
";
}
// line 1381
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1383
echo " </div>
";
}
// line 1385
echo "
";
// line 1386
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.', 1386, $this->source); })()), "freearea", [], "any", false, false, true, 1386)) {
// line 1387
echo " <div class=\"ec-productRole__description\" style=\"max-width: 500px; margin: auto; padding-right: 10px; padding-left: 10px;\">
";
// line 1388
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.', 1388, $this->source); })()), "freearea", [], "any", false, false, true, 1388), 1388, $this->source)));
echo "
</div>
";
}
// line 1391
echo "
";
// line 1397
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "__string_template__c3a00b603c90224beffb6b5d5d755125";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 2290 => 1397, 2287 => 1391, 2281 => 1388, 2278 => 1387, 2276 => 1386, 2273 => 1385, 2269 => 1383, 2262 => 1381, 2256 => 1379, 2254 => 1378, 2251 => 1377, 2244 => 1374, 2242 => 1373, 2239 => 1372, 2231 => 1369, 2228 => 1368, 2226 => 1367, 2223 => 1366, 2220 => 1365, 2217 => 1364, 2215 => 1363, 2212 => 1362, 2208 => 1361, 2204 => 1359, 2202 => 1358, 2199 => 1357, 2191 => 1354, 2187 => 1352, 2185 => 1351, 2179 => 1347, 2174 => 1344, 2168 => 1341, 2164 => 1339, 2161 => 1338, 2155 => 1335, 2151 => 1333, 2148 => 1332, 2142 => 1329, 2138 => 1327, 2135 => 1326, 2129 => 1323, 2125 => 1321, 2122 => 1320, 2112 => 1317, 2108 => 1316, 2104 => 1314, 2101 => 1313, 2099 => 1307, 2094 => 1303, 2092 => 1302, 2089 => 1301, 2083 => 1297, 2077 => 1294, 2073 => 1292, 2071 => 1291, 2068 => 1290, 2062 => 1287, 2058 => 1285, 2056 => 1284, 2053 => 1283, 2047 => 1280, 2043 => 1278, 2041 => 1277, 2035 => 1273, 2033 => 1272, 2030 => 1271, 2021 => 1265, 2015 => 1262, 2008 => 1257, 2005 => 1256, 2002 => 1254, 2000 => 1253, 1996 => 1251, 1986 => 1247, 1982 => 1246, 1978 => 1245, 1975 => 1244, 1971 => 1243, 1967 => 1241, 1957 => 1237, 1953 => 1236, 1949 => 1235, 1946 => 1234, 1942 => 1233, 1939 => 1232, 1930 => 1224, 1927 => 1223, 1916 => 1216, 1912 => 1215, 1906 => 1212, 1902 => 1211, 1896 => 1207, 1891 => 1204, 1885 => 1201, 1882 => 1200, 1876 => 1197, 1873 => 1196, 1871 => 1195, 1865 => 1193, 1863 => 1192, 1858 => 1190, 1855 => 1189, 1851 => 1187, 1845 => 1184, 1842 => 1183, 1840 => 1182, 1835 => 1180, 1831 => 1178, 1826 => 1175, 1819 => 1171, 1815 => 1169, 1812 => 1168, 1804 => 1163, 1800 => 1161, 1798 => 1160, 1792 => 1157, 1788 => 1155, 1786 => 1154, 1780 => 1151, 1776 => 1149, 1773 => 1148, 1770 => 1147, 1768 => 1146, 1762 => 1144, 1757 => 1142, 1753 => 1141, 1748 => 1140, 1746 => 1139, 1743 => 1138, 1740 => 1137, 1734 => 1134, 1730 => 1133, 1727 => 1132, 1725 => 1131, 1720 => 1129, 1716 => 1128, 1713 => 1127, 1711 => 1126, 1708 => 1125, 1706 => 1124, 1702 => 1123, 1699 => 1122, 1697 => 1108, 1695 => 1107, 1693 => 1106, 1691 => 1105, 1689 => 1104, 1687 => 1103, 1685 => 1102, 1681 => 1099, 1676 => 1097, 1671 => 1096, 1669 => 1095, 1664 => 1093, 1661 => 1092, 1654 => 1086, 1651 => 1085, 1649 => 1084, 1643 => 1082, 1640 => 1081, 1638 => 1080, 1632 => 1077, 1626 => 1076, 1623 => 1075, 1620 => 1074, 1616 => 1071, 1610 => 1069, 1608 => 1068, 1604 => 1067, 1601 => 1066, 1597 => 1063, 1594 => 1061, 1583 => 1058, 1578 => 1057, 1574 => 1056, 1571 => 1055, 1569 => 1054, 1563 => 1052, 1560 => 1051, 1555 => 1048, 1552 => 1047, 1549 => 1045, 1545 => 1043, 1543 => 1042, 1540 => 1041, 1538 => 1040, 1536 => 1038, 1528 => 1035, 1525 => 1034, 1522 => 1033, 1508 => 1030, 1505 => 1029, 1502 => 1028, 1495 => 1022, 1492 => 1021, 1473 => 1019, 1455 => 1018, 1453 => 1017, 1449 => 1015, 1446 => 1014, 1435 => 1012, 1413 => 1010, 1394 => 1009, 1391 => 1008, 1380 => 1006, 1365 => 1003, 1353 => 1002, 1341 => 1000, 1338 => 999, 1335 => 997, 1316 => 996, 1314 => 995, 1304 => 988, 1301 => 987, 1298 => 985, 1294 => 983, 1292 => 982, 1285 => 977, 1275 => 976, 1260 => 970, 1256 => 969, 1252 => 968, 1248 => 967, 1244 => 965, 1238 => 963, 1236 => 962, 1231 => 961, 1228 => 960, 1218 => 958, 1205 => 957, 1197 => 956, 1179 => 955, 1174 => 953, 1145 => 926, 1100 => 884, 1096 => 883, 1085 => 875, 1081 => 874, 1059 => 855, 1055 => 854, 1044 => 846, 1040 => 845, 1030 => 838, 1026 => 837, 1019 => 832, 1017 => 831, 1005 => 821, 988 => 807, 984 => 806, 973 => 798, 969 => 797, 959 => 790, 955 => 789, 949 => 785, 947 => 784, 937 => 777, 933 => 775, 915 => 760, 911 => 759, 900 => 751, 894 => 748, 888 => 745, 878 => 738, 872 => 735, 866 => 732, 861 => 729, 859 => 728, 848 => 720, 837 => 712, 780 => 658, 775 => 655, 766 => 649, 762 => 647, 760 => 646, 757 => 645, 748 => 639, 744 => 637, 742 => 636, 736 => 632, 733 => 631, 731 => 630, 728 => 629, 726 => 628, 628 => 532, 620 => 530, 618 => 529, 613 => 527, 610 => 526, 608 => 525, 594 => 514, 591 => 513, 581 => 512, 372 => 311, 338 => 278, 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: 30px;
}
.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;
}
.ec-productRole .ec-productRole__title .ec-headingTitle {
font-size: 15px;
font-weight: 700;
}
@media only screen and (min-width: 768px) {
.ec-productRole .ec-productRole__title .ec-headingTitle {
font-size: 22px;
}
}
.ec-sliderItemRole .item_nav {
display: flex;
}
.slick-slide img{
width: 100%;
height: 350px;
object-fit: contain;
}
@media only screen and (max-width: 767px) {
.slick-slide img{
height: 230px;
}
}
.slick-slider {
margin-bottom: 5px;
}
.ec-sliderItemRole{
padding: 0px;
margin: 0px;
}
.ec-sliderItemRole .slideThumb img {
width: 102px;
height: 55px;
object-fit: cover;
}
.ec-sliderItemRole .slideThumb {
width: 17%;
margin-right: 10px;
margin-bottom: 10px;
}
.item_nav {
justify-content: flex-start;
flex-wrap: wrap;
margin-bottom: 0;
}
.ec-productRole__title .ec-headingTitle {
font-size: 4vw;
font-weight: bold;
color: #525263;
border-bottom: 2px solid #D8D8D8;
margin-bottom: 10px;
padding-bottom: 1.3333vw;
}
.freeze {
position: unset;
width: 60px;
display: inline-block;
line-height: 1em;
padding: 5px 0;
background-color: #00B0EC;
color: white;
text-align: center;
font-size: 11px;
font-weight: 700;
border-radius: 5px;
margin-bottom: 10px;
margin-top: 10px;
}
.original {
position: unset;
width: 90px;
display: inline-block;
line-height: 1em;
padding: 5px 0;
background-color: #fff100;
color: black;
text-align: center;
font-size: 11px;
font-weight: 700;
border-radius: 5px;
margin-bottom: 10px;
margin-top: 10px;
}
.ec-productRole .ec-productRole__tags {
margin-top: 0px;
padding: 0;
padding-bottom: 0px;
border-bottom: none;
}
.ec-blockBtn--cancel {
height: 40px;
border-radius: 5px;
line-height: 1.0;
/* background-color: #f5f5f5; */
color: #000333;
border: none;
font-weight: 400;
}
.ec-blockBtn--cancel:hover {
color: #000333;
background-color: #f5f5f5;
border-color: #f5f5f5;
opacity: .7;
}
.ec-blockBtn--cancel:disabled{
color: #000333;
background-color: #f5f5f5;
border-color: #f5f5f5;
}
.ec-blockBtn--action {
background-color: #e65f6e;
}
.ec-blockBtn--action:hover {
color: #fff;
background-color: #e65f6e;
border-color: #e65f6e;
opacity: .6;
}
.ec-numberInput input[type=number] {
max-width: 80px;
margin-bottom: 0px;
}
.ec-productRole .ec-productRole__actions {
padding: 0px;
margin-top: 10px;
margin-right: 10px;
}
.ec-productRole .ec-productRole__actions .ec-numberInput{
display: flex;
align-items: center;
}
.table-ProductDetail tbody tr td:first-child, .table-ReplacementProductDetail tbody tr td:first-child, .table-ReplacementProductDetail tbody tr td:nth-child(3) {
background-color: #F5F5F5;
width: 130px;
border: solid 1px #d3cbcb;
}
.table-ProductDetail tbody tr {
white-space: pre-wrap;
word-wrap: break-word;
}
.table-ProductDetail tbody tr td {
border: solid 1px #d3cbcb;
}
.ec-price .ec-price__price {
font-size: 24px;
font-weight: bold;
color: #b72704;
padding: 0px;\"
}
.ec-productRole__description img {
max-width: 100%;
}
.ec-productRole form div.ec-productRole__actions button.add-cart {
border-radius: 5px;
font-size: 16px;
width: 200px;
}
.ec-productRole__actions_area {
display: flex;
margin: auto;
align-items: baseline;
flex-wrap: wrap;
justify-content: end;
}
{# モバイル #}
@media only screen and (max-width: 767px) {
.product_name_pc {
display: none;
}
.add_favorite_form{
width: 100%;
}
.ec-productRole form {
width: 100%;
}
.ec-productRole form div.ec-productRole__actions {
margin-right: 0px;
}
.ec-productRole form div.ec-productRole__actions button.add-cart {
width: 100%;
}
#product_video .ec-modal-wrap {
width: 343px;
height: 333px;
}
#video_iframe {
width: 311px;
height: 205px;
}
.ec-price {
text-align: end;
}
.ec-numberInput input[type=number] {
margin-right: 10px;
}
}
{# PC #}
@media only screen and (min-width: 768px) {
.product_name_sp {
display: none;
}
#product_video .ec-modal-wrap {
width: 734px;
height: 544px;
}
#video_iframe {
width: 670px;
height: 422px;
}
}
@media only screen and (min-width: 1024px) {
.ec-price .ec-price__price {
font-size: 30px;
}
}
.youtube {
width: 100%;
aspect-ratio: 16 / 9;
}
.youtube iframe {
width: 100%;
height: 100%;
}
.recipe_book__image {
width: 170px;
border-style: solid;
border-width: 2px;
height: 170px;
object-fit: fill;
border-radius: 9px;
border-color: #d2d2d2;
}
.recipe_book__image:hover {
opacity: 0.7;
}
.recipe_book__name {
font-size: 14px;
height: 40px;
overflow: hidden;
display: -webkit-box;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
margin-top: 8px;
color: #525263;
font-weight: 600;
}
.favorite_button {
margin-top: 10px;
font-size: 16px;
height: 56px;
background-color: #ffffff;
border-color: #cccccc;
border-width: 1px;
border-style: solid;
border-radius: 4px;
}
.initial_purchase__message {
position: relative;
border: 1px solid #FFDA00;
padding: 8px 18px;
font-weight: 600;
font-size: 14px;
color: #525263;
background-color: #F6FF00;
border-radius: 4px;
margin-right: 8px;
margin-bottom: 4px;
display: inline-block;
text-align: start;
}
.initial_purchase__message::before {
content: '';
position: absolute;
top: 50%;
left: 100%;
transform: translateY(-50%);
border: 11px solid transparent;
border-left-color: #FFDA00;
}
.initial_purchase__message::after {
content: '';
position: absolute;
top: 50%;
left: 100%;
transform: translateY(-50%);
border: 10px solid transparent;
border-left-color: #F6FF00;
}
.ec-numberInput .ec-productRole__btn {
margin-left: 10px;
max-width: 350px;
min-width: 100px;
margin-bottom: 10px;
}
.buy_this_product__btn {
max-width: 500px;
margin: auto;
margin-top: 20px;
padding-right: 10px;
padding-left: 10px;
}
.purchased__btn {
max-width: 350px;
min-width: 100px;
margin-right: 0px;
margin-top: 10px;
}
.ec-productRole__btn span {
font-size: 10px;
color: #000000;
}
/* --- SP用の設定 (例: 画面幅が768px以下) --- */
@media (max-width: 768px) {
.sp-only {
display: flex; /* SPでは表示 */
margin-top: 10px;
max-width: 800px;
}
.recipe_book_carousel .slick-slide div {
width: 202px;
}
.recipe_book_carousel .slick-slide div img {
height: 190px;
}
.ec-productRole__btn {
width: 100%;
}
.pc-only {
display: none; /* SPでは非表示 */
}
.product_page .ec-productRole__btn {
max-width: 100% !important;
text-align: center;
}
.favorite_button {
margin-top: 0px;
width: 100%;
}
.add_favorite_form .ec-productRole__btn {
margin-top: 2px !important;
}
.ec-numberInput .ec-productRole__btn {
margin-left: 0px;
}
.buy_this_product__btn {
padding-right: 0px;
padding-left: 0px;
margin-top: 0px !important;
}
.purchased__btn {
margin-right: 0px;
}
}
/* --- PC用の設定 (例: 画面幅が769px以上) --- */
@media (min-width: 769px) {
.sp-only {
display: none; /* PCでは非表示 */
}
.pc-only {
display: flex; /* PCでは表示 */
margin-top: 10px;
max-width: 800px;
flex-wrap: wrap;
}
.pc-only .item {
flex: 1 1 calc(33.333% - 16px); /* 3カラム分の幅(隙間分を引く) */
max-width: calc(33.333% - 16px);
box-sizing: border-box;
}
.ec-productRole .ec-productRole__btn {
width: 90%;
}
}
/* 再入荷表示 */
.restock_date span {
font-size: 13px;
color: #E65F6E;
font-weight: 600;
}
</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() {
// 調理方法に遷移するよう制御
\$(window).on('load', function() {
if (window.location.hash === '#base-info') {
setTimeout(function() {
const target = document.getElementById('base-info');
if (target) {
const spOffset = 100;
const pcOffset = 120;
const breakpoint = 768;
const offset = window.innerWidth < breakpoint ? spOffset : pcOffset;
const targetPosition = target.getBoundingClientRect().top + window.pageYOffset;
const scrollToPosition = targetPosition - offset;
window.scrollTo({
top: scrollToPosition,
behavior: 'smooth'
});
}
}, 500);
}
});
// bfcache無効化
\$(window).bind('pageshow', function(event) {
if (event.originalEvent.persisted) {
location.reload(true);
}
});
// Core Web Vital の Cumulative Layout Shift(CLS)対策のため
// img タグに width, height が付与されている.
// 630px 未満の画面サイズでは縦横比が壊れるための対策
// see https://github.com/EC-CUBE/ec-cube/pull/5023
\$('.ec-grid2__cell').hide();
var removeSize = function () {
\$('.slide-item').height('');
\$('.slide-item img')
.removeAttr('width')
.removeAttr('height')
.removeAttr('style');
};
var slickInitial = function(slick) {
\$('.ec-grid2__cell').fadeIn(1500);
var baseHeight = \$(slick.target).height();
var baseWidth = \$(slick.target).width();
var rate = baseWidth / baseHeight;
\$('.slide-item').height(baseHeight * rate); // 余白を削除する
// transform を使用することでCLSの影響を受けないようにする
\$('.slide-item img')
.css(
{
'transform-origin': 'top left',
'transform': 'scaleY(' + rate + ')',
'transition': 'transform .1s'
}
);
// 正しいサイズに近くなったら属性を解除する
setTimeout(removeSize, 500);
};
\$('.item_visual').on('init', slickInitial);
// リサイズ時は CLS の影響を受けないため属性を解除する
\$(window).resize(removeSize);
\$('.item_visual').slick({
dots: false,
arrows: false,
infinite: false,
responsive: [{
breakpoint: 768,
settings: {
dots: false
}
}]
});
\$('.slideThumb').on('click', function() {
var index = \$(this).attr('data-index');
\$('.item_visual').slick('slickGoTo', index, false);
});
// サムネイル画像または再生ボタンをクリックしたら動画ダイアログを表示
\$(document).on(\"click\", \".thumbnail-image, .play-button-overlay\", function() {
// ダイアログを表示
\$(\"#product_video\").show();
});
// 閉じるボタンでダイアログを非表示
\$(document).on(\"click\", \"#product_video .close-btn\", function() {
\$(\"#product_video\").hide();
});
});
</script>
<script>
{% set current_domain = app.request.getHost() %}
{% set is_prod = 'web-order.shikomel.com' in current_domain %}
{% set is_stg = 'web-order-stg.shikomel.com' in current_domain %}
\$(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() {
var \$cartBtn = \$('div.ec-modal-overlay').find('a.ec-inlineBtn--action');
\$cartBtn.removeAttr('disabled');
\$cartBtn.off('click');
// responseを判別
if(data.product_id !== undefined) {
var product_id = data.product_id;
var under_quantity = data.under_quantity;
// 最低購入数を下回る場合は、選択数量を最低購入数に変更
if(\$('#quantity' + product_id).length) {
\$('#quantity' + product_id).val(under_quantity);
} else {
\$('#quantity').val(under_quantity);
}
// カートに進むボタンを無効化
\$cartBtn.attr('disabled', 'disabled');
\$cartBtn.on('click', function() {
return false;
})
}
\$('#ec-modal-header').text(this);
});
\$('#ec-modal').show()
// カートブロックを更新する
\$.ajax({
url: \"{{ url('block_cart') }}\",
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
\$.ajax({
url: '{{ url('modal_cart') }}',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-Modalfooter__cart').html(html);
});
// カート追加イベントの送付
{% if is_prod %}
fbq('track', 'AddToCart', {
content_type: \"Product\",
content_ids: \"{{ Product.id }}\",
contents:
[{
id: \"{{ Product.id }}\",
quantity: \$('#quantity').val()
}],
content_name: \"{{ Product.name }}\",
currency: \"JPY\",
value: 50,
});
fbq('trackCustom', 'ce_add_to_cart', {
content_type: \"Product\",
content_ids: \"{{ Product.id }}\",
contents:
[{
id: \"{{ Product.id }}\",
quantity: \$('#quantity').val()
}],
content_name: \"{{ Product.name }}\",
currency: \"JPY\",
value: 50,
});
window.dataLayer.push({
event: 'ce_add_to_cart',
custom_event_name: 'ce_add_to_cart',
custom_product_id: {{ Product.id }},
custom_product_name: '{{ Product.name }}',
custom_quantity: \$('#quantity').val(),
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'add_to_cart'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
{% endif %}
}).fail(function(data) {
alert('{{ 'カートへの追加に失敗しました。'|trans }}');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
{% if is_prod %}
// 詳細表示時にMetaとGTMとLineに閲覧イベントを送付する
fbq('track', 'ViewContent', {
content_type: \"Product\",
content_ids: \"{{ Product.id }}\",
content_name: \"{{ Product.name }}\",
currency: \"JPY\",
value: 25,
});
fbq('trackCustom', 'ce_view_product_detail', {
content_type: \"Product\",
content_ids: \"{{ Product.id }}\",
content_name: \"{{ Product.name }}\",
currency: \"JPY\",
value: 25,
});
window.dataLayer.push({
event: 'ce_view_product_detail',
custom_event_name: 'ce_view_product_detail',
custom_product_id: {{ Product.id }},
custom_product_name: '{{ Product.name }}',
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'product_detail'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
{% endif %}
});
\$('.ec-modal-wrap').on('click', function(e) {
// モーダル内の処理は外側にバブリングさせない
e.stopPropagation();
});
\$('.ec-modal-overlay, .ec-modal, .ec-modal-close, .ec-inlineBtn--cancel').on('click', function() {
\$('.ec-modal').hide()
});
{% if is_prod %}
// お気に入り追加ボタンクリック時のトラッキングイベント
\$('#favorite').on('click', function(e) {
fbq('track', 'AddToWishlist', {
content_type: \"Product\",
content_ids: \"{{ Product.id }}\",
content_name: \"{{ Product.name }}\",
currency: \"JPY\",
value: 40,
});
fbq('trackCustom', 'ce_add_to_wishlist', {
content_type: \"Product\",
content_ids: \"{{ Product.id }}\",
content_name: \"{{ Product.name }}\",
currency: \"JPY\",
value: 40,
});
window.dataLayer.push({
event: 'ce_add_to_wishlist',
custom_event_name: 'ce_add_to_wishlist',
custom_product_id: {{ Product.id }},
custom_product_name: '{{ Product.name }}',
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'add_to_wishlist'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
});
// この商品を購入するボタンクリック時のトラッキングイベント
\$('#buy_this_product').on('click', function(e) {
fbq('trackCustom', 'ClickBuyProduct', {
content_type: \"Product\",
content_ids: \"{{ Product.id }}\",
content_name: \"{{ Product.name }}\",
currency: \"JPY\",
value: 30,
});
window.dataLayer.push({
event: 'ce_click_buy_product',
custom_event_name: 'ce_click_buy_product',
custom_product_id: {{ Product.id }},
custom_product_name: '{{ Product.name }}',
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'ce_click_buy_product'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
});
// Lineバナークリックイベント
\$('#line_link_detail').on('click', function(event) {
const currentPageUrl = window.location.href;
fbq('trackCustom', 'ce_click_line_btn', {
content_type: \"ClickLineBtn\",
content_name: currentPageUrl,
value: 50
});
window.dataLayer.push({
event: 'ce_click_line_btn',
custom_event_name: 'ce_click_line_btn',
custom_page_url: currentPageUrl,
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'ce_click_line_btn'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
});
{% endif %}
\$('.recipe_book_carousel').slick({
dots: false,
autoplay: false,
centerMode: false,
centerPadding: '0px',
arrows: false,
infinite: false,
slidesToShow: 1,
variableWidth: true,
swipeToSlide: true
});
function moveTop(){
const itemNav = document.querySelector('.ec-price');
if (itemNav) {
itemNav.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
}
function fnToLogin(url) {
window.location.href = url;
}
</script>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org/\",
\"@type\": \"Product\",
\"name\": \"{{ Product.name }}\",
\"image\": [
{% for img in Product.ProductImage %}
\"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}\"{% if not loop.last %},{% endif %}
{% else %}
\"{{ app.request.schemeAndHttpHost }}{{ asset(''|no_image_product, 'save_image') }}\"
{% endfor %}
],
\"description\": \"{{ Product.description_list | default(Product.description_detail) | replace({'\\n': '', '\\r': ''}) | slice(0,300) }}\",
{% if Product.code_min %}
\"sku\": \"{{ Product.code_min }}\",
{% endif %}
\"offers\": {
\"@type\": \"Offer\",
\"url\": \"{{ url('product_detail', {'id': Product.id}) }}\",
\"priceCurrency\": \"{{ eccube_config.currency }}\",
\"price\": {{ Product.getPrice02IncTaxMin ? Product.getPrice02IncTaxMin : 0}},
\"availability\": \"{{ Product.stock_find ? \"InStock\" : \"OutOfStock\" }}\"
}
}
</script>
{% endblock %}
{% block main %}
<div class=\"ec-productRole\">
<div class=\"ec-grid2\">
<div class=\"ec-grid2___ell product_name_sp\" style=\"margin-top: 10px;\">
<div class=\"ec-productRole__profile\">
<div class=\"productBadge sp_show\">
{% if Product.is_freeze == \"1\" %}
<span class=\"freeze\">冷凍</span>
{% endif %}
</div>
{# 商品名 #}
<div class=\"ec-productRole__title\">
<h2 class=\"ec-headingTitle\">{{ Product.name }}</h2>
</div>
</div>
</div>
<div class=\"ec-grid2__cell\">
<div class=\"ec-sliderItemRole\">
<div class=\"item_visual\">
{% if Product.intro_video_embed_html is defined and Product.intro_video_embed_html %}
{% for ProductImage in Product.ProductImage %}
<div class=\"slide-item\" style=\"position:relative;\">
{# 1枚目 → 再生ボタンを上乗せ #}
{% if loop.first %}
<img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" width=\"550\" height=\"550\"{% if loop.index > 1 %} loading=\"lazy\"{% endif %} class=\"play-button-overlay\">
{% else %}
<img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" width=\"550\" height=\"550\"{% if loop.index > 1 %} loading=\"lazy\"{% endif %}>
{% endif %}
</div>
{% else %}
<div class=\"slide-item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" width=\"550\" height=\"550\"></div>
{% endfor %}
{% else %}
{% for ProductImage in Product.ProductImage %}
<div class=\"slide-item\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" width=\"550\" height=\"550\"{% if loop.index > 1 %} loading=\"lazy\"{% endif %}></div>
{% else %}
<div class=\"slide-item\"><img src=\"{{ asset(''|no_image_product, 'save_image') }}\" alt=\"{{ loop.first ? Product.name : '' }}\" width=\"550\" height=\"550\"></div>
{% endfor %}
{% endif %}
</div>
<div class=\"item_nav\">
{% if Product.ProductImage|length >= 2 %}
{% for ProductImage in Product.ProductImage %}
<div class=\"slideThumb\" data-index=\"{{ loop.index0 }}\"><img src=\"{{ asset(ProductImage, 'save_image') }}\" alt=\"\" width=\"133\" height=\"133\" loading=\"lazy\"></div>
{% endfor %}
{% endif %}
</div>
</div>
</div>
<div class=\"ec-grid2__cell\" style=\"\">
<div class=\"ec-productRole__profile\">
{# パンくず #}
{% if Product.ProductCategories is not empty %}
<div class=\"\" style=\"font-size: 11px;\">
<div><a href=\"{{ url('homepage') }}\">シコメルストア</a> > <a href=\"{{ url('product_list') }}?category_id={{ Product.ProductCategories[0].Category.id }}\">{{ Product.ProductCategories[0].Category.name }}</a> > {{ Product.name }}</div>
</div>
{% endif %}
{% if Product.is_recipe_book %}
<div class=\"\" style=\"font-size: 11px; margin-bottom: 10px;\">
<div><a href=\"{{ url('homepage') }}\">シコメルストア</a> > {{ Product.name }}</div>
</div>
{% endif %}
{# <div class=\"ec-productRole__description\" style=\"font-weight: 700; font-size: large;\">{{ Product.description_detail|raw|nl2br }}
</div> #}
{# アイコン #}
<div class=\"productBadge product_name_pc\">
{% if Product.is_freeze == \"1\" %}
<span class=\"freeze\">冷凍</span>
{% endif %}
</div>
{# 商品名 #}
<div class=\"ec-productRole__title product_name_pc\">
<h2 class=\"ec-headingTitle\" style=\"padding-bottom: 5px;\">{{ Product.name }}</h2>
</div>
{# 商品説明 #}
{% if Product.description_list %}
<p style=\"margin-top: 10px; font-size: 14px; overflow: hidden; display: -webkit-box; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 5; max-height: 100px; margin-bottom: 10px;\">{{ Product.description_list|raw|nl2br }}</p>
{% endif %}
{# タグ #}
<ul class=\"ec-productRole__tags\">
{% for Tag in Product.Tags %}
<a href=\"/products/list?name={{ Tag|url_encode()}}\">
<li class=\"ec-productRole__tag tag_{{ Tag.id }}\" style=\"color: #337AB7; text-decoration: underline;\">{{ Tag }}</li>
</a>
{% endfor %}
</ul>
{# 販売価格 #}
<div class=\"ec-productRole__price\" style=\"padding: 0px;\">
<div class=\"ec-price\" style=\"margin-top: 10px;\">
{# g/個あたり単価 #}
<div>
<span class=\"ec-headingTitle\" style=\"font-size: 16px; font-weight: bold; margin: 0px;\">{{ Product.cost_per_unit|trans }}</span>
{% if Product.cost_per_unit_gram is not null %}
<span class=\"ec-headingTitle\" style=\"font-size: 12px; font-weight: bold; margin: 0px;\">({{ Product.cost_per_unit_gram|trans }})</span>
{% endif %}
</div>
{# 通常価格 #}
{% if Product.getPrice01Max is not null %}
<div style=\"font-size: 16px; font-weight: 700; color: black; margin: 0px;\">
<span class=\"ec-productRole__priceRegularPrice\" style=\"font-weight: 700; text-decoration: line-through;\">{{ '通常価格'|trans }}:{{ Product.getPrice01IncTaxMin|price }}</span>
<span class=\"ec-productRole__priceRegularTax\">{{ '税込'|trans }}</span>
</div>
{% endif %}
{# 規格 #}
{% if Product.standard_text %}
<span class=\"ec-headingTitle\" style=\"font-size: 14px; font-weight: 700;\">規格:{{ Product.standard_text }}</span>
{% endif %}
{# 初回購入無料メッセージ #}
{% if not has_purchased_recipe and Product.is_recipe_book %}
<div class=\"initial_purchase__message\">
<span>初回購入は無料!</span>
<br>
<span style=\"white-space: nowrap;\">ぜひお試しください。</span>
</div>
{# <span class=\"ec-price__price\">\\0</span><span>税込</span> #}
<span class=\"ec-price__price\">¥0</span>
<span class=\"ec-price__tax\" style=\"color: #b72704;\">{{ '税込'|trans }}</span>
{% else %}
{# 販売価格 #}
<span class=\"ec-price__price\">{{ Product.getPrice02IncTaxMin|price }}</span>
<span class=\"ec-price__tax\" style=\"color: #b72704;\">{{ '税込'|trans }}</span>
{% endif %}
</div>
</div>
{# 商品コード #}
{#{% 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 %}#}
{# 関連カテゴリ #}
{# {% if Product.ProductCategories is not empty %}
<div class=\"ec-productRole__category\">
{% for ProductCategory in Product.ProductCategories %}
<ul>
<li>
{% for Category in ProductCategory.Category.path %}
<a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">{{ Category.name }}</a> {%- if loop.last == false %}
<span>></span>{% endif -%}
{% endfor %}
</li>
</ul>
{% endfor %}
</div>
{% endif %} #}
<div class=\"ec-productRole__actions_area\">
<form action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\" id=\"form1\" name=\"form1\">
{% if Product.stock_find %}
<div class=\"ec-productRole__actions\">
{% if form.classcategory_id1 is defined %}
<div class=\"ec-select\">
{{ form_row(form.classcategory_id1) }}
{{ form_errors(form.classcategory_id1) }}
</div>
{% if form.classcategory_id2 is defined %}
<div class=\"ec-select\">
{{ form_row(form.classcategory_id2) }}
{{ form_errors(form.classcategory_id2) }}
</div>
{% endif %}
{% endif %}
<div class=\"ec-numberInput\">
{% if not Product.is_recipe_book %}
<span style=\"min-width: 40px; font-size: 14px;\">{{ '数量'|trans }}</span>
{{ form_widget(form.quantity) }}
{{ form_errors(form.quantity) }}
{% else %}
{{ form_widget(form.quantity, {'type': 'hidden'}) }}
{% endif %}
{# 食材の商品である(会員登録は必要なし) / レシピ帖である(ログイン済み、且つ未購入) #}
{% if Product.is_recipe_book %}
{% if app.user and not has_purchased_product %}
<div class=\"ec-productRole__btn purchased__btn\" style=\"\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% elseif app.user and has_purchased_product %}
<div class=\"ec-productRole__btn purchased__btn\">
<button type=\"button\" class=\"ec-blockBtn--action add-cart\" disabled=\"disabled\">
{{ '注文済みです' }}
</button>
</div>
{% elseif not app.user %}
<div class=\"ec-productRole__btn purchased__btn\">
<button type=\"button\" class=\"ec-blockBtn--action add-cart\" disabled=\"disabled\">
{{ 'カートに入れる' }}
</button>
<span>※ログインするとカートに入れられます。</span>
</div>
{% endif %}
{% else %}
<div class=\"ec-productRole__btn\">
<button type=\"submit\" class=\"ec-blockBtn--action add-cart\">
{{ 'カートに入れる'|trans }}
</button>
</div>
{% endif %}
</div>
</div>
{% else %}
<div class=\"ec-productRole__btn soldout__btn\" style=\"max-width: 350px; min-width: 100px; margin-right: 20px; margin-top: 10px;\">
<button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
{{ 'ただいま品切れ中です。'|trans }}
</button>
{% if Product.restock_date %}
<div class=\"restock_date\">
<span>※{{ Product.restock_date|date('Y年n月j日') }}に入荷予定</span>
</div>
{% endif %}
</div>
{% endif %}
{{ form_rest(form) }}
</form>
{% if BaseInfo.option_favorite_product %}
<form action=\"{{ url('product_add_favorite', {id:Product.id}) }}\" method=\"post\" class=\"add_favorite_form\">
<div class=\"ec-productRole__btn\" style=\"width: 100%; min-width: auto;\">
{% if is_favorite == false %}
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel favorite_button\">
{{ 'お気に入りに登録'|trans }}
</button>
{% else %}
<button type=\"submit\" id=\"favorite\" class=\"ec-blockBtn--cancel favorite_button\"
disabled=\"disabled\">{{ 'お気に入りに登録済'|trans }}
</button>
{% endif %}
</div>
</form>
{% endif %}
</div>
<div class=\"ec-modal\" id=\"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>
{# レシピ帖の表示 #}
{% if referencingProducts is not empty %}
<div style=\"margin-top: 20px; font-weight: bold; display: flex; justify-content: space-between; align-items: center;\">
<span>ご一緒にいかがですか?</span>
<a href=\"https://web-order.shikomel.com/user_data/recipe_book_lp\" style=\"color: #337AB7; font-size: 14px;\" target=\"_blank\">
レシピ帖とは
<i class=\"far fa-question-circle\" style=\"margin-left: 5px;\"></i>
</a>
</div>
{# main_carousel slick-initialized slick-slider #}
<div class=\"recipe_book_carousel sp-only\">
{% for RefProduct in referencingProducts %}
<div class=\"item slick-slide\" style=\"padding: 6px; width: 202px; display: inline-block;\" aria-hidden=\"true\">
<a href=\"{{ url('product_detail', {'id': RefProduct.id}) }}\" tabindex=\"-1\">
<img class=\"recipe_book__image\" src=\"{{ asset(RefProduct.main_list_image|no_image_product, 'save_image') }}\">
<p class=\"recipe_book__name\">{{ RefProduct.name }}</p>
</a>
</div>
{% endfor %}
</div>
<div class=\"pc-only\">
{% for RefProduct in referencingProducts %}
<div class=\"item\" style=\"padding: 6px; width: 100%; display: inline-block; max-width: 170px;\" aria-hidden=\"true\">
<a href=\"{{ url('product_detail', {'id': RefProduct.id}) }}\" tabindex=\"-1\">
<img class=\"recipe_book__image\" src=\"{{ asset(RefProduct.main_list_image|no_image_product, 'save_image') }}\">
<p class=\"recipe_book__name\">{{ RefProduct.name }}</p>
</a>
</div>
{% endfor %}
</div>
{% endif %}
{# FLコスト参考 #}
{# 動画再生モーダル #}
{% if Product.intro_video_embed_html is defined and Product.intro_video_embed_html %}
<div class=\"ec-modal\" id=\"product_video\">
<div class=\"ec-modal-overlay\">
<div class=\"ec-modal-wrap\">
<div class=\"ec-modal-box\" style=\"margin-top: 24px;\">
<span class=\"ec-modal-close\">
<span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/>
</span>
</span>
<iframe id=\"video_iframe\" src=\"{{ Product.intro_video_embed_html }}\" title=\"商品紹介動画\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
{% endif %}
{% if Product.cost_per_meal or Product.price_per_meal or Product.profit_per_meal %}
<div style=\"margin-top: 20px;\">
<span style=\"font-weight: bold;\">FLコスト参考</span>
<table class=\"table table-ProductDetail\" style=\"max-width: 800px; margin-bottom: 30px;\">
<tbody>
{% if Product.cost_per_meal %}
<tr>
<td>1食当たり原価</td>
<td>{{ Product.cost_per_meal|trans }}</td>
</tr>
{% endif %}
{% if Product.price_per_meal %}
<tr>
<td>1食当たり売価</td>
<td>{{ Product.price_per_meal|trans }}</td>
</tr>
{% endif %}
{% if Product.profit_per_meal %}
<tr>
<td>1食当たり粗利</td>
<td>{{ Product.profit_per_meal|trans }}</td>
</tr>
{% endif %}
</tbody>
</table>
</div>
{% endif %}
{% if Product.expiration_date or Product.cooking_instructions or Product.storage_method or Product.raw_materials or Product.allergy_information or Product.allergy_information_20 %}
<table class=\"table table-ProductDetail\" id=\"base-info\" style=\"max-width: 800px; margin-bottom: 30px;\">
<span style=\"font-weight: bold;\">商品基本情報</span>
<tbody>
{# NOTE: 賞味期限を自動で更新されていないので一旦隠す #}
{# {% if Product.expiration_date %}
<tr>
<td>賞味期限</td>
<td>{{ Product.expiration_date|trans }} {% if Product.is_freeze == \"1\" %}<span> ※解凍後はお早めにご使用ください。</span>{% endif %}</td>
</tr>
{% endif %} #}
{% if Product.cooking_instructions %}
<tr>
<td>調理方法</td>
<td>{{ Product.cooking_instructions|trans }}
{% if Product.cooking_note_url %}<a href=\"{{ Product.cooking_note_url|trans }}\" style=\"font-weight: bold; text-decoration: underline; padding-top: 20px; display: block; padding-bottom: 20px;\" target=\"_blank\">さらに詳しい調理方法を見る{% endif %}</td>
</tr>
{% endif %}
{% if Product.storage_method %}
<tr>
<td>保存方法</td>
<td>{{ Product.storage_method|trans }}</td>
</tr>
{% endif %}
{% if Product.raw_materials %}
<tr>
<td>原材料</td>
<td>{{ Product.raw_materials|trans }}</td>
</tr>
{% endif %}
{% if Product.allergy_information %}
<tr>
<td>アレルギー情報 主要8項目</td>
<td>{{ Product.allergy_information|trans }}</td>
</tr>
{% endif %}
{% if Product.allergy_information_20 %}
<tr>
<td>アレルギー情報 その他20項目</td>
<td>{{ Product.allergy_information_20|trans }}</td>
</tr>
{% endif %}
</tbody>
</table>
{% endif %}
</div>
</div>
</div>
{% if Product.cook_movie_url %}
<div class=\"youtube\" style=\"max-width: 500px; margin: auto; margin-top: 30px;\">
<span style=\"font-weight: bold;\">参考調理動画</span>
<iframe src=\"{{ Product.cook_movie_url }}\" title=\"参考調理動画 {{ Product.name }}\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>
</div>
{% endif %}
{% if Product.add_description_1_title or Product.add_description_1_image or Product.add_description_1_content %}
<div style=\"max-width: 500px; margin: auto; margin-top: 30px;\">
<div style=\"font-weight: bold; margin-bottom: 20px; text-align: center;\">活用事例・実食レビュー・詳細情報など</div>
{% for i in 1..10 %}
<div>
{% set title = attribute(Product, 'add_description_' ~ i ~ '_title') %}
{% set image = attribute(Product, 'add_description_' ~ i ~ '_image') %}
{% set content = attribute(Product, 'add_description_' ~ i ~ '_content') %}
{% if image %}
<div style=\"\">
<img src=\"{{ asset(image, 'save_image') }}\" alt=\"{{ title }}\" />
</div>
{% endif %}
{% if title %}
<h2 class=\"product-title\" style=\"font-size: 16px; font-weight: bold; margin-top: 20px;\">{{ title }}</h2>
<hr>
{% endif %}
{% if content %}
<div class=\"product-description\" style=\"margin-top:20px; margin-bottom:50px; font-size: 14px; white-space: pre-line;\">{{ content }}</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
{% if Product.freearea %}
<div class=\"ec-productRole__description\" style=\"max-width: 500px; margin: auto; padding-right: 10px; padding-left: 10px;\">
{{ include(template_from_string(Product.freearea)) }}
</div>
{% endif %}
{# <div class=\"ec-productRole__btn buy_this_product__btn\">
<button id=\"buy_this_product\" type=\"button\" class=\"ec-blockBtn--action\" onclick=\"moveTop()\">
{{ 'この商品を購入する'|trans }}
</button>
</div> #}
</div>
{% endblock %}
", "__string_template__c3a00b603c90224beffb6b5d5d755125", "");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "if" => 525, "for" => 955);
static $filters = array("raw" => 514, "json_encode" => 527, "escape" => 530, "trans" => 639, "no_image_product" => 958, "slice" => 961, "replace" => 961, "default" => 961, "length" => 1017, "nl2br" => 1052, "url_encode" => 1057, "price" => 1076, "date" => 1184);
static $functions = array("class_categories_as_json" => 514, "url" => 712, "asset" => 956, "form_row" => 1128, "form_errors" => 1129, "form_widget" => 1141, "form_rest" => 1190, "range" => 1361, "include" => 1388, "template_from_string" => 1388);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['raw', 'json_encode', 'escape', 'trans', 'no_image_product', 'slice', 'replace', 'default', 'length', 'nl2br', 'url_encode', 'price', 'date'],
['class_categories_as_json', 'url', 'asset', 'form_row', 'form_errors', 'form_widget', 'form_rest', 'range', 'include', 'template_from_string']
);
} 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;
}
}
}