<!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), sandboxed = true) }}
{% 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 %}
<link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.5.2/css/all.css?{{ 'now'|date('His') }}" integrity="sha384-PPIZEGYM1v8zp5Py7UjFb79S58UeqCL9pYVnVPURKEqvioPROaVAJKKLzvH2rDnI" crossorigin="anonymous">
<link rel="stylesheet" href="{{ asset('assets/css/style.css') }}?{{ 'now'|date('His') }}">
<script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
{% block stylesheet %}{% endblock %}
<script>
$(function() {
$.ajaxSetup({
'headers': {
'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
}
});
});
</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 %}
<link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
</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 is defined and isMaintenance and isDebug %} #}
{# <dev class="ec-twoModeAlert">
<div class="ec-maintenanceAlert">
<div>
<div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
{{ 'メンテナンスモードが有効になっています。'|trans }}
</div>
</div>
<div class="ec-debugModeAlert bg-danger">
<div>
<div class="ec-debugModeAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
{{ 'デバッグモードが有効になっています。'|trans }}
</div>
</div>
</dev>
{% else %} #}
{% 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 %}
{# {% if isDebug %}
<div class="ec-debugModeAlert bg-danger">
<div>
<div class="ec-debugModeAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
{{ 'デバッグモードが有効になっています。'|trans }}
</div>
</div>
{% endif %} #}
{# {% endif %} #}
<div class="ec-layoutRole{% if app.request.get('_route') == 'homepage' %} homepage{% endif %}">
{# Layout: HEADER #}
{% if Layout.Header %}
<header class="ec-layoutRole__header">
{{ include('block.twig', {'Blocks': Layout.Header}) }}
</header>
{% endif %}
{# Layout: CONTENTS_TOP #}
{# {% if Layout.ContentsTop or app.request.get('_route') == 'homepage' or app.request.get('_route') == 'product_list' or app.request.get('_route') == 'product_list_vendor' %}
<div class="ec-layoutRole__contentTop">
{% if app.request.get('_route') == 'product_list' or app.request.get('_route') == 'product_list_vendor' %}{{ include('Product/list_banner.twig') }}{% endif %}
{{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
</div>
{% endif %} #}
<div class="ec-layoutRole__contents">
{% set layoutRoleMain = 'ec-layoutRole__main' %}
{% if Layout.ColumnNum == 2 and Layout.SideLeft %}
{% set layoutRoleMain = 'ec-layoutRole__mainWithColumn side_left' %}
{% elseif Layout.ColumnNum == 2 and Layout.SideRight %}
{% set layoutRoleMain = 'ec-layoutRole__mainWithColumn side_right' %}
{% 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_LEFT #}
{% if Layout.SideLeft %}
<aside class="ec-layoutRole__left">
{{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
</aside>
{% endif %}
{# 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-drawerRoleClose"><i class="fas fa-times"></i></div>
<div class="ec-drawerRole">
{# Layout: DRAWER #}
{% if Layout.Drawer %}
{{ include('block.twig', {'Blocks': Layout.Drawer}) }}
{% endif %}
</div>
<div class="ec-blockTopBtn pagetop"><i class="ec-headerNav__itemIcon fas fa-chevron-up fa-fw"></i></div>
{% include('@common/lang.twig') %}
<script src="{{ asset('assets/js/function.js') }}"></script>
<script src="{{ asset('assets/js/eccube.js') }}"></script>
{% 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>
{# ▼jquery.webticker ティッカー #}
<script src="{{ asset('assets/js/jquery.webticker/jquery.webticker.min.js') }}"></script>
<script type="text/javascript">
$("#webTicker").webTicker({
duplicate:true,
rssfrequency:0,
startEmpty:false,
hoverpause:true,
transition: "ease"
});
</script>
{# ▼ヘッダーの固定 #}
<script>
{# var navPos = jQuery( '.logo_area' ).offset().top; // グローバルメニューの位置
var navHeight = jQuery( '.logo_area' ).outerHeight(); // グローバルメニューの高さ
jQuery( window ).on( 'scroll', function() {
if ( jQuery( this ).scrollTop() > navPos ) {
jQuery( 'body' ).css( 'padding-top', navHeight );
jQuery( '.logo_area' ).addClass( 'is_fixed' );
jQuery( '.ec-headerRole__cart' ).addClass( 'is_fixed' );
} else {
jQuery( 'body' ).css( 'padding-top', 0 );
jQuery( '.logo_area' ).removeClass( 'is_fixed' );
jQuery( '.ec-headerRole__cart' ).removeClass( 'is_fixed' );
}
}); #}
let offsetTop = 0;
// ec-maintenanceAlert がある場合はその高さを取得
if ($('.ec-maintenanceAlert').length > 0) {
offsetTop = $('.ec-maintenanceAlert').outerHeight();
}
// ヘッダーに position: fixed を適用し、上部を調整
$('.customize_header_area').css({
'position': 'fixed',
'top': offsetTop + 'px',
'left': '0',
'width': '100%',
'z-index': 1000,
});
// .ec-layoutRole__contentTopにその分だけパディングをつけてコンテンツと重ならないようにする
let headerHeight = $('.customize_header_area').outerHeight();
console.log($('.ec-layoutRole__contentTop'));
if ($('.ec-layoutRole__contentTop').length === 0) {
$('.ec-layoutRole__contents').css('padding-top', headerHeight + 'px');
} else {
$('.ec-layoutRole__contentTop').css('padding-top', headerHeight + 'px');
}
</script>
{# ▼ブラウザの高さとカート #}
<script>
if (window.matchMedia('(min-width:768px)').matches) {
$('.ec-modal').click(function() {
var h = $(window).height();
$('.ec-cartNaviIsset').css('max-height', (h-40) + 'px');
});
$(window).on('load',function(){
var h = $(window).height();
$('.ec-cartNaviIsset').css('max-height', (h-40) + 'px');
});
$(window).on('resize',function(){
var h = $(window).height();
$('.ec-cartNaviIsset').css('max-height', (h-40) + 'px');
});
}
</script>
</body>
</html>