<?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;
/* default_frame.twig */
class __TwigTemplate_94b861fb5fcbea82fea3e75553324001b008ae25beea481bbdfdd17a29b3c795 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
'javascript' => [$this, 'block_javascript'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default_frame.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default_frame.twig"));
// line 1
echo "<!doctype html>
";
// line 12
echo "<html lang=\"";
echo twig_escape_filter($this->env, 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.', 12, $this->source); })()), "locale", [], "any", false, false, false, 12), "html", null, true);
echo "\">
<head prefix=\"og: https://ogp.me/ns# fb: https://ogp.me/ns/fb# product: https://ogp.me/ns/product#\">
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
<meta name=\"eccube-csrf-token\" content=\"";
// line 16
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken(twig_constant("Eccube\\Common\\Constant::TOKEN_NAME")), "html", null, true);
echo "\">
<title>";
// line 17
echo twig_escape_filter($this->env, 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.', 17, $this->source); })()), "shop_name", [], "any", false, false, false, 17), "html", null, true);
if ((array_key_exists("subtitle", $context) && !twig_test_empty((isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 17, $this->source); })())))) {
echo " / ";
echo twig_escape_filter($this->env, (isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 17, $this->source); })()), "html", null, true);
} elseif ((array_key_exists("title", $context) && !twig_test_empty((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 17, $this->source); })())))) {
echo " / ";
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 17, $this->source); })()), "html", null, true);
}
echo "</title>
";
// line 18
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 18, $this->source); })()), "meta_tags", [], "any", false, false, false, 18))) {
// line 19
echo " ";
echo twig_include($this->env, $context, twig_template_from_string($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 19, $this->source); })()), "meta_tags", [], "any", false, false, false, 19)));
echo "
";
// line 20
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 20, $this->source); })()), "description", [], "any", false, false, false, 20))) {
// line 21
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 21, $this->source); })()), "description", [], "any", false, false, false, 21), "html", null, true);
echo "\">
";
}
// line 23
echo " ";
} else {
// line 24
echo " ";
echo twig_include($this->env, $context, "meta.twig");
echo "
";
}
// line 26
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 26, $this->source); })()), "author", [], "any", false, false, false, 26))) {
// line 27
echo " <meta name=\"author\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 27, $this->source); })()), "author", [], "any", false, false, false, 27), "html", null, true);
echo "\">
";
}
// line 29
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 29, $this->source); })()), "keyword", [], "any", false, false, false, 29))) {
// line 30
echo " <meta name=\"keywords\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 30, $this->source); })()), "keyword", [], "any", false, false, false, 30), "html", null, true);
echo "\">
";
}
// line 32
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 32, $this->source); })()), "meta_robots", [], "any", false, false, false, 32))) {
// line 33
echo " <meta name=\"robots\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 33, $this->source); })()), "meta_robots", [], "any", false, false, false, 33), "html", null, true);
echo "\">
";
}
// line 35
echo " ";
if ((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.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "get", [0 => "_route"], "method", false, false, false, 35) == "product_detail")) {
// line 36
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/swiper-bundle.min.css", "user_data"), "html", null, true);
echo "\">
";
}
// line 38
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/customize.css", "user_data"), "html", null, true);
echo "\">
<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/favicon/apple-touch-icon.png", "user_data"), "html", null, true);
echo "\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/favicon/favicon-32x32.png", "user_data"), "html", null, true);
echo "\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/favicon/favicon-16x16.png", "user_data"), "html", null, true);
echo "\">
<link rel=\"manifest\" href=\"";
// line 42
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/favicon/site.webmanifest", "user_data"), "html", null, true);
echo "\">
<link rel=\"mask-icon\" href=\"";
// line 43
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/favicon/safari-pinned-tab.svg", "user_data"), "html", null, true);
echo "\" color=\"#5bbad5\">
<meta name=\"msapplication-TileColor\" content=\"#da532c\">
<meta name=\"theme-color\" content=\"#ffffff\">
<link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.3.1/css/all.css\" integrity=\"sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU\" crossorigin=\"anonymous\">
<link rel=\"stylesheet\" href=\"";
// line 47
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/style.css"), "html", null, true);
echo "\">
<script src=\"";
// line 48
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front.bundle.js", "bundle"), "html", null, true);
echo "\"></script>
<!-- OGP -->
<meta property=\"og:url\" content=\"";
// line 50
echo twig_escape_filter($this->env, 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.', 50, $this->source); })()), "request", [], "any", false, false, false, 50), "uri", [], "any", false, false, false, 50), "html", null, true);
echo "\" />
<meta property=\"og:type\" content=\"website\" />
<meta property=\"og:title\" content=\"";
// line 52
echo twig_escape_filter($this->env, 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.', 52, $this->source); })()), "shop_name", [], "any", false, false, false, 52), "html", null, true);
if ((array_key_exists("subtitle", $context) && !twig_test_empty((isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 52, $this->source); })())))) {
echo " / ";
echo twig_escape_filter($this->env, (isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 52, $this->source); })()), "html", null, true);
} elseif ((array_key_exists("title", $context) && !twig_test_empty((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 52, $this->source); })())))) {
echo " / ";
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 52, $this->source); })()), "html", null, true);
}
echo "\" />
<meta property=\"og:description\" content=\"";
// line 53
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Page"]) || array_key_exists("Page", $context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.', 53, $this->source); })()), "description", [], "any", false, false, false, 53), "html", null, true);
echo "\" />
<meta property=\"og:site_name\" content=\"";
// line 54
echo twig_escape_filter($this->env, 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.', 54, $this->source); })()), "shop_name", [], "any", false, false, false, 54), "html", null, true);
echo "\" />
<meta property=\"og:image\" content=\"";
// line 55
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/ogp/ogp.jpg", "user_data"), "html", null, true);
echo "\" />
";
// line 56
$this->displayBlock('stylesheet', $context, $blocks);
// line 57
echo " <script>
\$(function() {
\$.ajaxSetup({
'headers': {
'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content')
}
});
});
</script>
<script>
WebFontConfig = {google: {families: ['Noto+Sans+JP:400,500,700']}};
(function () {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
</script>
<script>
function onAddCart(e, self, quantity, callback) {
e.stopImmediatePropagation();
e.preventDefault();
var \$form = \$(self).parents('.popular-item').find('form.topBlocks__form');
var productId = \$(self).parents('.popular-item').find('input[name=\"product_id\"]').val() * 1;
// 個数フォームのチェック
\$form.parent().find('.quantity').val(quantity);
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$(self).prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').text(this);
});
var \$currentQuantityLabelEl = \$(self).parents('.popular-item').find(\".quantity_label\");
var \$quantityLabelEl = \$(document).find(`.quantity_label_\${productId}`);
var newQuantity = \$currentQuantityLabelEl.text() * 1 + quantity * 1;
\$quantityLabelEl.text(newQuantity);
if(callback) {
callback();
}
// カートブロックを更新する
\$.ajax({
url: '";
// line 111
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
echo "',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('";
// line 118
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html", null, true);
echo "');
\$(self).prop('disabled', false);
}).always(function(data) {
checkRenderButton();
});
return false;
}
function checkRenderButton() {
\$itemEls = \$(\".popular-item\");
\$itemEls.each(function(index, el) {
let stockVal = \$(el).find('.stock').val() * 1;
var \$quantityLabelEl = \$(el).find('.quantity_label');
var productId = \$(el).find('input[name=\"product_id\"]').val() * 1;
var _quantity = \$quantityLabelEl.text() * 1;
if(_quantity == 0) {
// enable minus button
\$(el).find(\".minus__btn\").prop('disabled', false);
\$(el).find(\".ec-productRole__btn--only\").removeClass(\"d-none\");
\$(el).find(\".ec-regular__btn\").prop('disabled', false);
\$(el).find(\".ec-productRole__btn--group\").addClass(\"d-none\");
}
if(_quantity > 0 && _quantity <= stockVal) {
// Buttonを有効にする
if (_quantity < stockVal) {
\$(el).find('.minus__btn').prop('disabled', false);
\$(el).find('.plus__btn').prop('disabled', false);
}
\$(el).find(\".ec-productRole__btn--only\").addClass(\"d-none\");
\$(el).find(\".ec-productRole__btn--group\").removeClass(\"d-none\");
} else {
\$(el).find('.plus__btn').prop('disabled', true);
}
});
}
\$(document).ready(function() {
\$('.ec-blockFavoriteBtn').on(\"click\", function(e) {
e.stopImmediatePropagation();
e.preventDefault();
event.stopPropagation();
var \$form = \$(this).parents('form.ec-favoriteForm');
\$form.attr('action', \$(this).attr(\"data-action\"));
\$form.attr('method', \$(this).attr(\"data-method\"));
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
}).done(function(data) {
\$(\$form).find(\".ec-blockFavoriteBtnDisable\").removeClass(\"d-none\");
\$(\$form).find(\".ec-blockFavoriteBtn\").addClass(\"d-none\");
}).fail(function(data) {
alert('";
// line 171
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りの追加に失敗しました。"), "html", null, true);
echo "');
});
return false;
})
\$('.ec-blockFavoriteBtnDisable').on(\"click\", function(e) {
e.stopImmediatePropagation();
e.preventDefault();
event.stopPropagation();
var \$form = \$(this).parents('form.ec-favoriteForm');
\$form.attr('action', \$(this).attr(\"data-action\"));
\$form.attr('method', \$(this).attr(\"data-method\"));
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
}).done(function(data) {
\$(\$form).find(\".ec-blockFavoriteBtnDisable\").addClass(\"d-none\");
\$(\$form).find(\".ec-blockFavoriteBtn\").removeClass(\"d-none\");
}).fail(function(data) {
alert('";
// line 189
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お気に入りの追加に失敗しました。"), "html", null, true);
echo "');
});
return false;
})
})
</script>
";
// line 196
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 196, $this->source); })()), "Head", [], "any", false, false, false, 196)) {
// line 197
echo " ";
echo twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 197, $this->source); })()), "Head", [], "any", false, false, false, 197)]);
echo "
";
}
// line 199
echo " ";
// line 200
echo " ";
if (array_key_exists("plugin_assets", $context)) {
echo twig_include($this->env, $context, "@admin/snippet.twig", ["snippets" => (isset($context["plugin_assets"]) || array_key_exists("plugin_assets", $context) ? $context["plugin_assets"] : (function () { throw new RuntimeError('Variable "plugin_assets" does not exist.', 200, $this->source); })())]);
}
// line 201
echo "</head>
<body id=\"page_";
// line 202
echo twig_escape_filter($this->env, 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.', 202, $this->source); })()), "request", [], "any", false, false, false, 202), "get", [0 => "_route"], "method", false, false, false, 202), "html", null, true);
echo "\" class=\"";
echo twig_escape_filter($this->env, ((array_key_exists("body_class", $context)) ? (_twig_default_filter((isset($context["body_class"]) || array_key_exists("body_class", $context) ? $context["body_class"] : (function () { throw new RuntimeError('Variable "body_class" does not exist.', 202, $this->source); })()), "other_page")) : ("other_page")), "html", null, true);
echo "\">
";
// line 204
if (twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 204, $this->source); })()), "BodyAfter", [], "any", false, false, false, 204)) {
// line 205
echo " ";
echo twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 205, $this->source); })()), "BodyAfter", [], "any", false, false, false, 205)]);
echo "
";
}
// line 207
echo "
";
// line 208
if ((isset($context["isMaintenance"]) || array_key_exists("isMaintenance", $context) ? $context["isMaintenance"] : (function () { throw new RuntimeError('Variable "isMaintenance" does not exist.', 208, $this->source); })())) {
// line 209
echo " <div class=\"ec-maintenanceAlert\">
<div>
<div class=\"ec-maintenanceAlert__icon\"><img src=\"";
// line 211
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html", null, true);
echo "\"/></div>
";
// line 212
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メンテナンスモードが有効になっています。"), "html", null, true);
echo "
</div>
</div>
";
}
// line 216
echo "
<div class=\"ec-layoutRole\">
";
// line 219
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 219, $this->source); })()), "Header", [], "any", false, false, false, 219)) {
// line 220
echo " <header class=\"ec-layoutRole__header\">
";
// line 221
echo twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 221, $this->source); })()), "Header", [], "any", false, false, false, 221)]);
echo "
</header>
";
}
// line 224
echo "
";
// line 226
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 226, $this->source); })()), "ContentsTop", [], "any", false, false, false, 226)) {
// line 227
echo " <div class=\"ec-layoutRole__contentTop\">
";
// line 228
echo twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 228, $this->source); })()), "ContentsTop", [], "any", false, false, false, 228)]);
echo "
</div>
";
}
// line 231
echo "
<div class=\"ec-layoutRole__contents\">
";
// line 234
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 234, $this->source); })()), "SideLeft", [], "any", false, false, false, 234)) {
// line 235
echo " <aside class=\"ec-layoutRole__left\">
";
// line 236
echo twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 236, $this->source); })()), "SideLeft", [], "any", false, false, false, 236)]);
echo "
</aside>
";
}
// line 239
echo "
";
// line 240
$context["layoutRoleMain"] = "ec-layoutRole__main";
// line 241
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 241, $this->source); })()), "ColumnNum", [], "any", false, false, false, 241) == 2)) {
// line 242
echo " ";
$context["layoutRoleMain"] = "ec-layoutRole__mainWithColumn";
// line 243
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 243, $this->source); })()), "ColumnNum", [], "any", false, false, false, 243) == 3)) {
// line 244
echo " ";
$context["layoutRoleMain"] = "ec-layoutRole__mainBetweenColumn";
// line 245
echo " ";
}
// line 246
echo "
<main class=\"";
// line 247
echo twig_escape_filter($this->env, (isset($context["layoutRoleMain"]) || array_key_exists("layoutRoleMain", $context) ? $context["layoutRoleMain"] : (function () { throw new RuntimeError('Variable "layoutRoleMain" does not exist.', 247, $this->source); })()), "html", null, true);
echo "\">
";
// line 249
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 249, $this->source); })()), "MainTop", [], "any", false, false, false, 249)) {
// line 250
echo " <div class=\"ec-layoutRole__mainTop\">
";
// line 251
echo twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 251, $this->source); })()), "MainTop", [], "any", false, false, false, 251)]);
echo "
</div>
";
}
// line 254
echo "
";
// line 256
echo " ";
$this->displayBlock('main', $context, $blocks);
// line 257
echo "
";
// line 259
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 259, $this->source); })()), "MainBottom", [], "any", false, false, false, 259)) {
// line 260
echo " <div class=\"ec-layoutRole__mainBottom\">
";
// line 261
echo twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 261, $this->source); })()), "MainBottom", [], "any", false, false, false, 261)]);
echo "
</div>
";
}
// line 264
echo " </main>
";
// line 267
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 267, $this->source); })()), "SideRight", [], "any", false, false, false, 267)) {
// line 268
echo " <aside class=\"ec-layoutRole__right\">
";
// line 269
echo twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 269, $this->source); })()), "SideRight", [], "any", false, false, false, 269)]);
echo "
</aside>
";
}
// line 272
echo " </div>
";
// line 275
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 275, $this->source); })()), "ContentsBottom", [], "any", false, false, false, 275)) {
// line 276
echo " <div class=\"ec-layoutRole__contentBottom\">
";
// line 277
echo twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 277, $this->source); })()), "ContentsBottom", [], "any", false, false, false, 277)]);
echo "
</div>
";
}
// line 280
echo "
";
// line 282
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 282, $this->source); })()), "Footer", [], "any", false, false, false, 282)) {
// line 283
echo " <footer class=\"ec-layoutRole__footer\">
";
// line 284
echo twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 284, $this->source); })()), "Footer", [], "any", false, false, false, 284)]);
echo "
</footer>
";
}
// line 287
echo "</div><!-- ec-layoutRole -->
<div class=\"ec-overlayRole\"></div>
<div class=\"ec-drawerRole\">
<div class=\"ec-drawerRoleClose\"><i class=\"fas fa-times\"></i></div>
";
// line 293
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 293, $this->source); })()), "Drawer", [], "any", false, false, false, 293)) {
// line 294
echo " ";
echo twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 294, $this->source); })()), "Drawer", [], "any", false, false, false, 294)]);
echo "
";
}
// line 296
echo "</div>
<div class=\"sp-hamburger-content\" id=\"hamburger_menu\">
";
// line 298
echo twig_include($this->env, $context, "Block/hamburger_menu.twig");
echo "
</div>
";
// line 301
$this->loadTemplate("@common/lang.twig", "default_frame.twig", 301)->display($context);
// line 302
echo "<script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/function.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 303
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/eccube.js"), "html", null, true);
echo "\"></script>
";
// line 304
if ((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.', 304, $this->source); })()), "request", [], "any", false, false, false, 304), "get", [0 => "_route"], "method", false, false, false, 304) == "product_detail")) {
// line 305
echo "<script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/swiper-bundle.min.js"), "html", null, true);
echo "\"></script>
";
}
// line 307
$this->displayBlock('javascript', $context, $blocks);
// line 309
if (twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 309, $this->source); })()), "CloseBodyBefore", [], "any", false, false, false, 309)) {
// line 310
echo " ";
echo twig_include($this->env, $context, "block.twig", ["Blocks" => twig_get_attribute($this->env, $this->source, (isset($context["Layout"]) || array_key_exists("Layout", $context) ? $context["Layout"] : (function () { throw new RuntimeError('Variable "Layout" does not exist.', 310, $this->source); })()), "CloseBodyBefore", [], "any", false, false, false, 310)]);
echo "
";
}
// line 313
if (array_key_exists("plugin_snippets", $context)) {
// line 314
echo " ";
echo twig_include($this->env, $context, "snippet.twig", ["snippets" => (isset($context["plugin_snippets"]) || array_key_exists("plugin_snippets", $context) ? $context["plugin_snippets"] : (function () { throw new RuntimeError('Variable "plugin_snippets" does not exist.', 314, $this->source); })())]);
echo "
";
}
// line 316
echo "<script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/customize.js", "user_data"), "html", null, true);
echo "\"></script>
";
// line 317
$context["currentRoute"] = 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.', 317, $this->source); })()), "request", [], "any", false, false, false, 317), "get", [0 => "_route"], "method", false, false, false, 317);
// line 318
$context["currentUrl"] = 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.', 318, $this->source); })()), "request", [], "any", false, false, false, 318), "pathinfo", [], "any", false, false, false, 318);
// line 319
$context["routeParams"] = 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.', 319, $this->source); })()), "request", [], "any", false, false, false, 319), "get", [0 => "_route_params"], "method", false, false, false, 319);
// line 320
echo "
";
// line 321
if ((((((((((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 321, $this->source); })()) != "cart") && ((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 321, $this->source); })()) != "mypage_login")) && !twig_in_filter("shopping", (isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 321, $this->source); })()))) && !twig_in_filter("shopping", (isset($context["routeParams"]) || array_key_exists("routeParams", $context) ? $context["routeParams"] : (function () { throw new RuntimeError('Variable "routeParams" does not exist.', 321, $this->source); })()))) && !twig_in_filter("forgot", (isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 321, $this->source); })()))) && !twig_in_filter("forgot", (isset($context["routeParams"]) || array_key_exists("routeParams", $context) ? $context["routeParams"] : (function () { throw new RuntimeError('Variable "routeParams" does not exist.', 321, $this->source); })()))) && !twig_in_filter("mypage", (isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 321, $this->source); })()))) && !twig_in_filter("mypage", (isset($context["routeParams"]) || array_key_exists("routeParams", $context) ? $context["routeParams"] : (function () { throw new RuntimeError('Variable "routeParams" does not exist.', 321, $this->source); })())))) {
// line 322
echo " ";
// line 323
echo " <div class=\"sp-fixed-footer\">
<div class=\"sp-fixed-footer__inner ";
// line 324
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
echo " ";
} else {
echo " flex ";
}
echo "\">
";
// line 325
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 326
echo " ";
echo twig_include($this->env, $context, "Block/cart.twig");
echo "
";
} else {
// line 328
echo " <div class=\"sp-fixed-footer__left\">
<p class=\"sp-fixed-footer__text\">ブレイバーズ<br>ネットショッピング</p>
<a href=\"\" class=\"sp-fixed-footer__link\">新規会員はこちら</a>
</div>
<div class=\"sp-fixed-footer__right\">
<a href=\"";
// line 333
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
echo "\" class=\"sp-fixed-footer__btn\">
";
// line 334
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ログイン"), "html", null, true);
echo "
</a>
</div>
";
}
// line 338
echo " </div>
</div>
";
}
// line 341
echo "<div id=\"loginModal\" class=\"modal-outer\">
<div class=\"modal-inner modal-login\">
<p class=\"modal-login__title\">
サービスをご利用いただくには、
<br>ブレイバーズショップへのログインが必要です。
</p>
<a href=\"";
// line 347
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
echo "\" class=\"modal-login__btn\">ログイン</a>
</div>
</div>
</body>
</html>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 56
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 256
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 307
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "default_frame.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 740 => 307, 722 => 256, 704 => 56, 688 => 347, 680 => 341, 675 => 338, 668 => 334, 664 => 333, 657 => 328, 651 => 326, 649 => 325, 641 => 324, 638 => 323, 636 => 322, 634 => 321, 631 => 320, 629 => 319, 627 => 318, 625 => 317, 620 => 316, 614 => 314, 612 => 313, 606 => 310, 604 => 309, 602 => 307, 596 => 305, 594 => 304, 590 => 303, 585 => 302, 583 => 301, 578 => 298, 574 => 296, 568 => 294, 565 => 293, 558 => 287, 552 => 284, 549 => 283, 546 => 282, 543 => 280, 537 => 277, 534 => 276, 531 => 275, 527 => 272, 521 => 269, 518 => 268, 515 => 267, 511 => 264, 505 => 261, 502 => 260, 499 => 259, 496 => 257, 493 => 256, 490 => 254, 484 => 251, 481 => 250, 478 => 249, 474 => 247, 471 => 246, 468 => 245, 465 => 244, 462 => 243, 459 => 242, 456 => 241, 454 => 240, 451 => 239, 445 => 236, 442 => 235, 439 => 234, 435 => 231, 429 => 228, 426 => 227, 423 => 226, 420 => 224, 414 => 221, 411 => 220, 408 => 219, 404 => 216, 397 => 212, 393 => 211, 389 => 209, 387 => 208, 384 => 207, 378 => 205, 376 => 204, 370 => 202, 367 => 201, 362 => 200, 360 => 199, 354 => 197, 351 => 196, 342 => 189, 321 => 171, 265 => 118, 255 => 111, 199 => 57, 197 => 56, 193 => 55, 189 => 54, 185 => 53, 174 => 52, 169 => 50, 164 => 48, 160 => 47, 153 => 43, 149 => 42, 145 => 41, 141 => 40, 137 => 39, 132 => 38, 126 => 36, 123 => 35, 117 => 33, 114 => 32, 108 => 30, 105 => 29, 99 => 27, 96 => 26, 90 => 24, 87 => 23, 81 => 21, 79 => 20, 74 => 19, 72 => 18, 61 => 17, 57 => 16, 49 => 12, 46 => 1,);
}
public function getSourceContext()
{
return new Source("<!doctype html>
{#
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.
#}
<html lang=\"{{ eccube_config.locale }}\">
<head prefix=\"og: https://ogp.me/ns# fb: https://ogp.me/ns/fb# product: https://ogp.me/ns/product#\">
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
<meta name=\"eccube-csrf-token\" content=\"{{ csrf_token(constant('Eccube\\\\Common\\\\Constant::TOKEN_NAME')) }}\">
<title>{{ BaseInfo.shop_name }}{% if subtitle is defined and subtitle is not empty %} / {{ subtitle }}{% elseif title is defined and title is not empty %} / {{ title }}{% endif %}</title>
{% if Page.meta_tags is not empty %}
{{ include(template_from_string(Page.meta_tags)) }}
{% if Page.description is not empty %}
<meta name=\"description\" content=\"{{ Page.description }}\">
{% endif %}
{% else %}
{{ include('meta.twig') }}
{% endif %}
{% if Page.author is not empty %}
<meta name=\"author\" content=\"{{ Page.author }}\">
{% endif %}
{% if Page.keyword is not empty %}
<meta name=\"keywords\" content=\"{{ Page.keyword }}\">
{% endif %}
{% if Page.meta_robots is not empty %}
<meta name=\"robots\" content=\"{{ Page.meta_robots }}\">
{% endif %}
{% if app.request.get('_route') == 'product_detail' %}
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/swiper-bundle.min.css', 'user_data') }}\">
{% endif %}
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/customize.css', 'user_data') }}\">
<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"{{ asset('assets/favicon/apple-touch-icon.png', 'user_data') }}\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"{{ asset('assets/favicon/favicon-32x32.png', 'user_data') }}\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"{{ asset('assets/favicon/favicon-16x16.png', 'user_data') }}\">
<link rel=\"manifest\" href=\"{{ asset('assets/favicon/site.webmanifest', 'user_data') }}\">
<link rel=\"mask-icon\" href=\"{{ asset('assets/favicon/safari-pinned-tab.svg', 'user_data') }}\" color=\"#5bbad5\">
<meta name=\"msapplication-TileColor\" content=\"#da532c\">
<meta name=\"theme-color\" content=\"#ffffff\">
<link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.3.1/css/all.css\" integrity=\"sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU\" crossorigin=\"anonymous\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/style.css') }}\">
<script src=\"{{ asset('front.bundle.js', 'bundle') }}\"></script>
<!-- OGP -->
<meta property=\"og:url\" content=\"{{ app.request.uri }}\" />
<meta property=\"og:type\" content=\"website\" />
<meta property=\"og:title\" content=\"{{ BaseInfo.shop_name }}{% if subtitle is defined and subtitle is not empty %} / {{ subtitle }}{% elseif title is defined and title is not empty %} / {{ title }}{% endif %}\" />
<meta property=\"og:description\" content=\"{{ Page.description }}\" />
<meta property=\"og:site_name\" content=\"{{ BaseInfo.shop_name }}\" />
<meta property=\"og:image\" content=\"{{ asset('assets/ogp/ogp.jpg' , 'user_data') }}\" />
{% block stylesheet %}{% endblock %}
<script>
\$(function() {
\$.ajaxSetup({
'headers': {
'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content')
}
});
});
</script>
<script>
WebFontConfig = {google: {families: ['Noto+Sans+JP:400,500,700']}};
(function () {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
</script>
<script>
function onAddCart(e, self, quantity, callback) {
e.stopImmediatePropagation();
e.preventDefault();
var \$form = \$(self).parents('.popular-item').find('form.topBlocks__form');
var productId = \$(self).parents('.popular-item').find('input[name=\"product_id\"]').val() * 1;
// 個数フォームのチェック
\$form.parent().find('.quantity').val(quantity);
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$(self).prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').text(this);
});
var \$currentQuantityLabelEl = \$(self).parents('.popular-item').find(\".quantity_label\");
var \$quantityLabelEl = \$(document).find(`.quantity_label_\${productId}`);
var newQuantity = \$currentQuantityLabelEl.text() * 1 + quantity * 1;
\$quantityLabelEl.text(newQuantity);
if(callback) {
callback();
}
// カートブロックを更新する
\$.ajax({
url: '{{ url('block_cart') }}',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('.ec-headerRole__cart').html(html);
});
}).fail(function(data) {
alert('{{ 'カートへの追加に失敗しました。'|trans }}');
\$(self).prop('disabled', false);
}).always(function(data) {
checkRenderButton();
});
return false;
}
function checkRenderButton() {
\$itemEls = \$(\".popular-item\");
\$itemEls.each(function(index, el) {
let stockVal = \$(el).find('.stock').val() * 1;
var \$quantityLabelEl = \$(el).find('.quantity_label');
var productId = \$(el).find('input[name=\"product_id\"]').val() * 1;
var _quantity = \$quantityLabelEl.text() * 1;
if(_quantity == 0) {
// enable minus button
\$(el).find(\".minus__btn\").prop('disabled', false);
\$(el).find(\".ec-productRole__btn--only\").removeClass(\"d-none\");
\$(el).find(\".ec-regular__btn\").prop('disabled', false);
\$(el).find(\".ec-productRole__btn--group\").addClass(\"d-none\");
}
if(_quantity > 0 && _quantity <= stockVal) {
// Buttonを有効にする
if (_quantity < stockVal) {
\$(el).find('.minus__btn').prop('disabled', false);
\$(el).find('.plus__btn').prop('disabled', false);
}
\$(el).find(\".ec-productRole__btn--only\").addClass(\"d-none\");
\$(el).find(\".ec-productRole__btn--group\").removeClass(\"d-none\");
} else {
\$(el).find('.plus__btn').prop('disabled', true);
}
});
}
\$(document).ready(function() {
\$('.ec-blockFavoriteBtn').on(\"click\", function(e) {
e.stopImmediatePropagation();
e.preventDefault();
event.stopPropagation();
var \$form = \$(this).parents('form.ec-favoriteForm');
\$form.attr('action', \$(this).attr(\"data-action\"));
\$form.attr('method', \$(this).attr(\"data-method\"));
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
}).done(function(data) {
\$(\$form).find(\".ec-blockFavoriteBtnDisable\").removeClass(\"d-none\");
\$(\$form).find(\".ec-blockFavoriteBtn\").addClass(\"d-none\");
}).fail(function(data) {
alert('{{ 'お気に入りの追加に失敗しました。'|trans }}');
});
return false;
})
\$('.ec-blockFavoriteBtnDisable').on(\"click\", function(e) {
e.stopImmediatePropagation();
e.preventDefault();
event.stopPropagation();
var \$form = \$(this).parents('form.ec-favoriteForm');
\$form.attr('action', \$(this).attr(\"data-action\"));
\$form.attr('method', \$(this).attr(\"data-method\"));
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
}).done(function(data) {
\$(\$form).find(\".ec-blockFavoriteBtnDisable\").addClass(\"d-none\");
\$(\$form).find(\".ec-blockFavoriteBtn\").removeClass(\"d-none\");
}).fail(function(data) {
alert('{{ 'お気に入りの追加に失敗しました。'|trans }}');
});
return false;
})
})
</script>
{# Layout: HEAD #}
{% if Layout.Head %}
{{ include('block.twig', {'Blocks': Layout.Head}) }}
{% endif %}
{# プラグイン用styleseetやmetatagなど #}
{% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
</head>
<body id=\"page_{{ app.request.get('_route') }}\" class=\"{{ body_class|default('other_page') }}\">
{# Layout: BODY_AFTER #}
{% if Layout.BodyAfter %}
{{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
{% endif %}
{% if isMaintenance %}
<div class=\"ec-maintenanceAlert\">
<div>
<div class=\"ec-maintenanceAlert__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"/></div>
{{ 'メンテナンスモードが有効になっています。'|trans }}
</div>
</div>
{% endif %}
<div class=\"ec-layoutRole\">
{# Layout: HEADER #}
{% if Layout.Header %}
<header class=\"ec-layoutRole__header\">
{{ include('block.twig', {'Blocks': Layout.Header}) }}
</header>
{% endif %}
{# Layout: CONTENTS_TOP #}
{% if Layout.ContentsTop %}
<div class=\"ec-layoutRole__contentTop\">
{{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
</div>
{% endif %}
<div class=\"ec-layoutRole__contents\">
{# Layout: SIDE_LEFT #}
{% if Layout.SideLeft %}
<aside class=\"ec-layoutRole__left\">
{{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
</aside>
{% endif %}
{% set layoutRoleMain = 'ec-layoutRole__main' %}
{% if Layout.ColumnNum == 2 %}
{% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
{% elseif Layout.ColumnNum == 3 %}
{% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
{% endif %}
<main class=\"{{ layoutRoleMain }}\">
{# Layout: MAIN_TOP #}
{% if Layout.MainTop %}
<div class=\"ec-layoutRole__mainTop\">
{{ include('block.twig', {'Blocks': Layout.MainTop}) }}
</div>
{% endif %}
{# MAIN AREA #}
{% block main %}{% endblock %}
{# Layout: MAIN_Bottom #}
{% if Layout.MainBottom %}
<div class=\"ec-layoutRole__mainBottom\">
{{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
</div>
{% endif %}
</main>
{# Layout: SIDE_RIGHT #}
{% if Layout.SideRight %}
<aside class=\"ec-layoutRole__right\">
{{ include('block.twig', {'Blocks': Layout.SideRight}) }}
</aside>
{% endif %}
</div>
{# Layout: CONTENTS_BOTTOM #}
{% if Layout.ContentsBottom %}
<div class=\"ec-layoutRole__contentBottom\">
{{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
</div>
{% endif %}
{# Layout: CONTENTS_FOOTER #}
{% if Layout.Footer %}
<footer class=\"ec-layoutRole__footer\">
{{ include('block.twig', {'Blocks': Layout.Footer}) }}
</footer>
{% endif %}
</div><!-- ec-layoutRole -->
<div class=\"ec-overlayRole\"></div>
<div class=\"ec-drawerRole\">
<div class=\"ec-drawerRoleClose\"><i class=\"fas fa-times\"></i></div>
{# Layout: DRAWER #}
{% if Layout.Drawer %}
{{ include('block.twig', {'Blocks': Layout.Drawer}) }}
{% endif %}
</div>
<div class=\"sp-hamburger-content\" id=\"hamburger_menu\">
{{ include('Block/hamburger_menu.twig') }}
</div>
{# <div class=\"ec-blockTopBtn pagetop\">{{'ページトップへ'|trans}}</div> #}
{% include('@common/lang.twig') %}
<script src=\"{{ asset('assets/js/function.js') }}\"></script>
<script src=\"{{ asset('assets/js/eccube.js') }}\"></script>
{% if app.request.get('_route') == 'product_detail' %}
<script src=\"{{ asset('assets/js/swiper-bundle.min.js') }}\"></script>
{% endif %}
{% block javascript %}{% endblock %}
{# Layout: CLOSE_BODY_BEFORE #}
{% if Layout.CloseBodyBefore %}
{{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
{% endif %}
{# プラグイン用Snippet #}
{% if plugin_snippets is defined %}
{{ include('snippet.twig', { snippets: plugin_snippets }) }}
{% endif %}
<script src=\"{{ asset('assets/js/customize.js', 'user_data') }}\"></script>
{% set currentRoute = app.request.get('_route') %}
{% set currentUrl = app.request.pathinfo %}
{% set routeParams = app.request.get('_route_params') %}
{% if currentRoute != 'cart' and currentRoute != 'mypage_login' and 'shopping' not in currentRoute and 'shopping' not in routeParams and 'forgot' not in currentRoute and 'forgot' not in routeParams and 'mypage' not in currentRoute and 'mypage' not in routeParams %}
{# ここに条件が満たされる場合のコードを追加 #}
<div class=\"sp-fixed-footer\">
<div class=\"sp-fixed-footer__inner {% if is_granted('ROLE_USER') %} {% else %} flex {% endif %}\">
{% if is_granted('ROLE_USER') %}
{{ include('Block/cart.twig') }}
{% else %}
<div class=\"sp-fixed-footer__left\">
<p class=\"sp-fixed-footer__text\">ブレイバーズ<br>ネットショッピング</p>
<a href=\"\" class=\"sp-fixed-footer__link\">新規会員はこちら</a>
</div>
<div class=\"sp-fixed-footer__right\">
<a href=\"{{ url('mypage_login') }}\" class=\"sp-fixed-footer__btn\">
{{ 'ログイン'|trans }}
</a>
</div>
{% endif %}
</div>
</div>
{% endif %}
<div id=\"loginModal\" class=\"modal-outer\">
<div class=\"modal-inner modal-login\">
<p class=\"modal-login__title\">
サービスをご利用いただくには、
<br>ブレイバーズショップへのログインが必要です。
</p>
<a href=\"{{ url('mypage_login') }}\" class=\"modal-login__btn\">ログイン</a>
</div>
</div>
</body>
</html>
", "default_frame.twig", "/home/bravers/bravers.xbiz.jp/public_html/app/template/bravers/default_frame.twig");
}
}