app/template/default/default_frame.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. {#
  3. This file is part of EC-CUBE
  4. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  5. http://www.ec-cube.co.jp/
  6. For the full copyright and license information, please view the LICENSE
  7. file that was distributed with this source code.
  8. #}
  9. <html lang="{{ eccube_config.locale }}">
  10. <head prefix="og: https://ogp.me/ns# fb: https://ogp.me/ns/fb# product: https://ogp.me/ns/product#">
  11.     <!-- Global site tag (gtag.js) - Google Analytics -->
  12.     <script async src="https://www.googletagmanager.com/gtag/js?id=UA-116975419-2"></script>
  13.     <script>
  14.         window.dataLayer = window.dataLayer || [];
  15.         function gtag(){dataLayer.push(arguments);}
  16.         gtag('js', new Date());
  17.         gtag('config', 'UA-116975419-2');
  18.     </script>
  19.     <meta charset="utf-8">
  20.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  21.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  22.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  23.     {# ===== タイトルタグの設定(カスタマイズ) ===== #}
  24.     <title>
  25.         {%- if Page.meta_title is defined and Page.meta_title is not empty -%}
  26.             {{- Page.meta_title -}}
  27.         {%- elseif Page.name is defined and Page.name is not empty -%}
  28.             {{- Page.name ~ ' - ' ~ BaseInfo.shop_name -}}
  29.         {%- else -%}
  30.             {{- BaseInfo.shop_name -}}
  31.         {%- endif -%}
  32.     </title>
  33.     {# ===== タイトルタグ終了 ===== #}
  34.     {% if Page.meta_tags is not empty %}
  35.         {{ include(template_from_string(Page.meta_tags)) }}
  36.     {% else %}
  37.         {{ include('meta.twig') }}
  38.     {% endif %}
  39.     {% if Page.url == "product_detail" %}
  40.         <meta name="description" content="{{ include(template_from_string(Product.description_detail)) }}">
  41.         <meta name="keywords" content="{{ include(template_from_string(Product.search_word)) }}">
  42.     {% elseif Page.url == "product_list" %}
  43.         <meta name="description" content="{{ subtitle }}を集めた商品一覧ページです。{{ subtitle }}はこんな方におすすめです。">
  44.         <meta name="keywords" content="{{ subtitle }}">
  45.     {% else %}
  46.         {% if Page.description is not empty %}
  47.             <meta name="description" content="{{ Page.description }}">
  48.         {% endif %}
  49.         {% if Page.keyword is not empty %}
  50.             <meta name="keywords" content="{{ Page.keyword }}">
  51.         {% endif %}
  52.     {% endif %}
  53.     {% if Page.author is not empty %}
  54.         <meta name="author" content="{{ Page.author }}">
  55.     {% endif %}
  56.     {% if Page.meta_robots is not empty %}
  57.         <meta name="robots" content="{{ Page.meta_robots }}">
  58.     {% endif %}
  59.     {% block meta_tags %}{% endblock %}
  60.     <link rel="icon" href="{{ front_urlpath }}/img/common/favicon.ico">
  61.     <link rel="stylesheet" href="{{ front_urlpath }}/css/style.css?v={{ constant('Eccube\\Common\\Constant::VERSION') }}">
  62.     <link rel="stylesheet" href="{{ front_urlpath }}/css/slick.css?v={{ constant('Eccube\\Common\\Constant::VERSION') }}">
  63.     <link rel="stylesheet" href="{{ front_urlpath }}/css/default.css?v={{ constant('Eccube\\Common\\Constant::VERSION') }}">
  64.     <link rel="stylesheet" href="{{ front_urlpath }}/css/my-style.css?v={{ constant('Eccube\\Common\\Constant::VERSION') }}">
  65.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  66.     <!--link rel="stylesheet" href="{{ asset('assets/css/style.css') }}"-->
  67.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  68.     {% block stylesheet %}{% endblock %}
  69.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  70.     <script>window.jQuery || document.write('<script src="{{ front_urlpath }}/js/vendor/jquery-1.11.3.min.js?v={{ constant('Eccube\\Common\\Constant::VERSION') }}"><\/script>')</script>
  71.     <script src="{{ front_urlpath }}/js/matchHeight/jquery.matchHeight-min.js?v={{ constant('Eccube\\Common\\Constant::VERSION') }}"></script>
  72.     <script>
  73.         $(function() {
  74.             $.ajaxSetup({
  75.                 'headers': {
  76.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  77.                 }
  78.             });
  79.         });
  80.     </script>
  81.     {# Layout: HEAD #}
  82.     {% if Layout.Head %}
  83.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  84.     {% endif %}
  85.     {# プラグイン用styleseetやmetatagなど #}
  86.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  87.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  88.     <link rel="stylesheet" href="{{ asset('assets/css/related_product_plugin.css', 'user_data') }}">
  89. </head>
  90. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  91. {# Layout: BODY_AFTER #}
  92. {% if Layout.BodyAfter %}
  93.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  94. {% endif %}
  95. {% if isMaintenance %}
  96.     <div class="ec-maintenanceAlert">
  97.         <div>
  98.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  99.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  100.         </div>
  101.     </div>
  102. {% endif %}
  103. <div id="wrapper">
  104.     <header id="header">
  105.         <div class="container-fluid inner">
  106.             {% if Layout.Header %}
  107.                 {{ include('block.twig', {'Blocks': Layout.Header}) }}
  108.             {% endif %}
  109.             <p id="btn_menu"><a class="nav-trigger" href="#nav">Menu<span></span></a></p>
  110.         </div>
  111.     </header>
  112.     {% set PageLayout_theme = 'theme_main_only' %}
  113.     {% if Layout.ColumnNum == 2 %}
  114.         {% set PageLayout_theme = 'theme_side_left' %}
  115.     {% elseif Layout.ColumnNum == 3 %}
  116.         {% set PageLayout_theme = 'theme_side_both' %}
  117.     {% endif %}
  118.     <div id="contents" class="{{ PageLayout_theme }}">
  119.         <div id="contents_top">
  120.             {# ▼TOP COLUMN #}
  121.             {% if Layout.ContentsTop %}
  122.                 {# ▼上ナビ #}
  123.                 {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  124.                 {# ▲上ナビ #}
  125.             {% endif %}
  126.             {# ▲TOP COLUMN #}
  127.         </div>
  128.         <div class="container-fluid inner">
  129.             {# ▼LEFT COLUMN #}
  130.             {% if Layout.SideLeft %}
  131.                 <div id="side_left" class="side">
  132.                     {# ▼左ナビ #}
  133.                     {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  134.                     {# ▲左ナビ #}
  135.                 </div>
  136.             {% endif %}
  137.             {# ▲LEFT COLUMN #}
  138.             <div id="main">
  139.                 {# ▼メイン上部 #}
  140.                 {% if Layout.MainTop %}
  141.                     <div id="main_top">
  142.                         {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  143.                     </div>
  144.                 {% endif %}
  145.                 {# ▲メイン上部 #}
  146.                 <div id="main_middle">
  147.                     {# MAIN AREA #}
  148.                     {% block main %}{% endblock %}
  149.                 </div>
  150.                 {# ▼メイン下部 #}
  151.                 {% if Layout.MainBottom %}
  152.                     <div id="main_bottom">
  153.                         {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  154.                     </div>
  155.                 {% endif %}
  156.                 {# ▲メイン下部 #}
  157.             </div>
  158.             {# ▼RIGHT COLUMN #}
  159.             {% if Layout.SideRight %}
  160.                 <div id="side_right" class="side">
  161.                     {# ▼右ナビ #}
  162.                     {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  163.                     {# ▲右ナビ #}
  164.                 </div>
  165.             {% endif %}
  166.             {# ▲RIGHT COLUMN #}
  167.             {# ▼BOTTOM COLUMN #}
  168.             {% if Layout.ContentsBottom %}
  169.                 <div id="contents_bottom">
  170.                     {# ▼下ナビ #}
  171.                     {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  172.                     {# ▲下ナビ #}
  173.                 </div>
  174.             {% endif %}
  175.             {# ▲BOTTOM COLUMN #}
  176.         </div>
  177.         <div class="" style="text-align:center">
  178.             <a href="https://liquor-sato.com/minority/" target="_blank"><small>※ 未成年の飲酒は法律で禁止されています。20歳未満の方への酒類の販売は行なっておりません。</small></a>
  179.         </div>
  180.         <footer id="footer">
  181.             {# ▼Footer COLUMN#}
  182.             {% if Layout.Footer %}
  183.                 {# ▼上ナビ #}
  184.                 {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  185.                 {# ▲上ナビ #}
  186.             {% endif %}
  187.             {# ▲Footer COLUMN#}
  188.         </footer>
  189.     </div>
  190.     <div id="drawer" class="drawer sp">
  191.     </div>
  192. </div>
  193. <div class="overlay"></div>
  194. <script src="{{ front_urlpath }}/js/vendor/bootstrap.custom.min.js?v={{ constant('Eccube\\Common\\Constant::VERSION') }}"></script>
  195. <script src="{{ front_urlpath }}/js/vendor/slick.min.js?v={{ constant('Eccube\\Common\\Constant::VERSION') }}"></script>
  196. <script src="{{ front_urlpath }}/js/function.js?v={{ constant('Eccube\\Common\\Constant::VERSION') }}"></script>
  197. <script src="{{ asset('assets/js/function.js') }}"></script>
  198. <script src="{{ front_urlpath }}/js/eccube.js?v={{ constant('Eccube\\Common\\Constant::VERSION') }}"></script>
  199. <script src="{{ front_urlpath }}/js/jquery.elevatezoom.js?v={{ constant('Eccube\\Common\\Constant::VERSION') }}"></script>
  200. <script src="{{ front_urlpath }}/js/my.js?v={{ constant('Eccube\\Common\\Constant::VERSION') }}"></script>
  201. <script>
  202.     $(function () {
  203.         $('#category_select_pc').append($('#category_id_form').clone(true).children());
  204.         $('#category_select_sp').append($('#category_id_form').children());
  205.         //$('#drawer').append($('.drawer_block').clone(true).children());
  206.         $('.my-search').append($('#drawer_block_sp').clone(true).children());
  207.         $('#drawer').append($('.member_link').clone(true));
  208.         $('#drawer').append($('#category').clone(true).children());
  209.         $('#drawer').append($('#drawer_block_sp').children());
  210.         //$('#sp-category').append($('#category').clone(true).children());
  211.         $.ajax({
  212.             url: '{{ front_urlpath }}/img/common/svg.html',
  213.             type: 'GET',
  214.             dataType: 'html',
  215.         }).done(function(data){
  216.             $('body').prepend(data);
  217.         }).fail(function(data){
  218.         });
  219.     });
  220. </script>
  221. {% block javascript %}{% endblock %}
  222. {# Layout: CLOSE_BODY_BEFORE #}
  223. {% if Layout.CloseBodyBefore %}
  224.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  225. {% endif %}
  226. {# プラグイン用Snippet #}
  227. {% if plugin_snippets is defined %}
  228.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  229. {% endif %}
  230. <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  231. </body>
  232. </html>