app/template/myTemplate/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.     <meta charset="utf-8">
  12.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  13.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  14. {% if app.request.get('_route') == 'homepage' %}
  15.     <title>RENEN JAPAN 全商品</title>
  16. {% elseif app.request.get('_route') == 'product_detail' %}
  17.     <title>{{ Product.name }}</title>
  18. {% elseif app.request.get('_route') == 'product_list' %}
  19.     {% if app.request.get('category_id') != "" %}
  20.         {% set Category = repository('Eccube\\Entity\\Category').find(app.request.get('category_id')) %}
  21.         <title>{{Category.name }}</title>
  22.     {% elseif app.request.get('name') != "" %}
  23.         <title>{{ app.request.get('name') }} での検索結果</title>
  24.     {% else %}
  25.         <title>商品一覧</title>
  26.     {% endif %}
  27. {% else %}
  28.     <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>
  29. {% endif %}
  30.     {% if Page.meta_tags is not empty %}
  31.         {{ include(template_from_string(Page.meta_tags)) }}
  32.         {% if Page.description is not empty %}
  33.             <meta name="description" content="{{ Page.description }}">
  34.         {% endif %}
  35.     {% else %}
  36.         {{ include('meta.twig') }}
  37.         {% if app.request.get('_route') == 'product_detail' %}
  38.             <meta name="description" content="{{ Product.name }}の説明文です。">
  39.         {% elseif app.request.get('_route') == 'product_list' %}
  40.             {% if app.request.get('category_id') != "" %}
  41.                 {% set Category = repository('Eccube\\Entity\\Category').find(app.request.get('category_id')) %}
  42.                 <meta name="description" content="{{Category.name }}一覧の説明文です。">
  43.             {% elseif app.request.get('name') != "" %}
  44.                 <meta name="description" content="{{ app.request.get('name') }} での検索結果の説明文です">
  45.             {% else %}
  46.                 <meta name="description" content="商品一覧の説明文です">
  47.             {% endif %}
  48.         {% endif %}
  49.     {% endif %}
  50.     {% if Page.author is not empty %}
  51.         <meta name="author" content="{{ Page.author }}">
  52.     {% endif %}
  53.     {% if Page.keyword is not empty %}
  54.         <meta name="keywords" content="{{ Page.keyword }}">
  55.     {% else %}
  56.         {% if app.request.get('_route') == 'product_detail' %}
  57.             <meta name="keywords" content="{{ Product.name }}のキーワードです。">
  58.         {% elseif app.request.get('_route') == 'product_list' %}
  59.             {% if app.request.get('category_id') != "" %}
  60.                 {% set Category = repository('Eccube\\Entity\\Category').find(app.request.get('category_id')) %}
  61.                 <meta name="keywords" content="{{Category.name }}一覧のキーワードです。">
  62.             {% elseif app.request.get('name') != "" %}
  63.                 <meta name="keywords" content="{{ app.request.get('name') }} での検索結果のキーワードです">
  64.             {% else %}
  65.                 <meta name="keywords" content="商品一覧のキーワードです">
  66.             {% endif %}
  67.         {% endif %}
  68.     {% endif %}
  69.     {% if Page.meta_robots is not empty %}
  70.         <meta name="robots" content="{{ Page.meta_robots }}">
  71.     {% endif %}
  72.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  73.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  74.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  75.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  76.     {% block stylesheet %}{% endblock %}
  77.     <script>
  78.         $(function() {
  79.             $.ajaxSetup({
  80.                 'headers': {
  81.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  82.                 }
  83.             });
  84.         });
  85.     </script>
  86.     {# Layout: HEAD #}
  87.     {% if Layout.Head %}
  88.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  89.     {% endif %}
  90.     {# プラグイン用styleseetやmetatagなど #}
  91.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  92.     
  93. <link rel='stylesheet' id='reset_style-css' href='//unpkg.com/ress/dist/ress.min.css?ver=1.0' type='text/css' media='all' />
  94. <link rel='stylesheet' id='swiper-css' href='//cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.css?ver=1.0' type='text/css' media='all' />
  95. <link rel='stylesheet' id='slick_style1-css' href='//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.min.css?ver=1.0' type='text/css' media='all' />
  96. <link rel='stylesheet' id='slick_style2-css' href='//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.css?ver=1.0' type='text/css' media='all' />
  97. <link rel='stylesheet' id='main_style-css' href='https://mx-build.jp/wp-content/themes/%E3%82%BF%E3%82%A4%E3%82%A8%E3%82%A4%E5%8C%97%E6%B5%B7%E9%81%93%E3%82%A8%E3%83%B3%E3%82%B7%E3%82%99%E3%83%8B%E3%82%A2%E3%82%A2%E3%83%AA%E3%83%B3%E3%82%AF%E3%82%99/css/style1.css?ver=1.0' type='text/css' media='all' />
  98. <link rel='stylesheet' id='google_fonts-css' href='//fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&#038;display=swap' type='text/css' media='all' />
  99. <link rel="stylesheet" href="{{ asset('assets/css/common.css') }}" type="text/css" media="all" />
  100. </head>
  101. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  102. {# Layout: BODY_AFTER #}
  103. {% if Layout.BodyAfter %}
  104.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  105. {% endif %}
  106. {% if isMaintenance %}
  107.     <div class="ec-maintenanceAlert">
  108.         <div>
  109.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  110.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  111.         </div>
  112.     </div>
  113. {% endif %}
  114. {# Layout: HEADER #}
  115. {% if Layout.Header %}
  116.     {{ include('block.twig', {'Blocks': Layout.Header}) }}
  117. {% endif %}
  118. <div class="ec-layoutRole">
  119.     {# Layout: CONTENTS_TOP #}
  120.     {% if Layout.ContentsTop %}
  121.         <div class="ec-layoutRole__contentTop">
  122.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  123.         </div>
  124.     {% endif %}
  125.     <div class="ec-layoutRole__contents">
  126.         {# Layout: SIDE_LEFT #}
  127.         {% if Layout.SideLeft %}
  128.             <aside class="ec-layoutRole__left">
  129.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  130.             </aside>
  131.         {% endif %}
  132.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  133.         {% if Layout.ColumnNum == 2 %}
  134.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  135.         {% elseif Layout.ColumnNum == 3 %}
  136.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  137.         {% endif %}
  138.         <main class="{{ layoutRoleMain }}">
  139.             {# Layout: MAIN_TOP #}
  140.             {% if Layout.MainTop %}
  141.                 <div class="ec-layoutRole__mainTop">
  142.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  143.                 </div>
  144.             {% endif %}
  145.             {# MAIN AREA #}
  146.             {% block main %}{% endblock %}
  147.             {# Layout: MAIN_Bottom #}
  148.             {% if Layout.MainBottom %}
  149.                 <div class="ec-layoutRole__mainBottom">
  150.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  151.                 </div>
  152.             {% endif %}
  153.         </main>
  154.         {# Layout: SIDE_RIGHT #}
  155.         {% if Layout.SideRight %}
  156.             <aside class="ec-layoutRole__right">
  157.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  158.             </aside>
  159.         {% endif %}
  160.     </div>
  161.     {# Layout: CONTENTS_BOTTOM #}
  162.     {% if Layout.ContentsBottom %}
  163.         <div class="ec-layoutRole__contentBottom">
  164.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  165.         </div>
  166.     {% endif %}
  167. </div><!-- ec-layoutRole -->
  168. {# Layout: CONTENTS_FOOTER #}
  169. {% if Layout.Footer %}
  170.     {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  171. {% endif %}
  172. <div class="ec-overlayRole"></div>
  173. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  174. <div class="ec-drawerRole">
  175.     {# Layout: DRAWER #}
  176.     {% if Layout.Drawer %}
  177.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  178.     {% endif %}
  179. </div>
  180. {% include('@common/lang.twig') %}
  181. <script src="{{ asset('assets/js/function.js') }}"></script>
  182. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  183. {% block javascript %}{% endblock %}
  184. {# Layout: CLOSE_BODY_BEFORE #}
  185. {% if Layout.CloseBodyBefore %}
  186.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  187. {% endif %}
  188. {# プラグイン用Snippet #}
  189. {% if plugin_snippets is defined %}
  190.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  191. {% endif %}
  192.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  193. <!-- font awesome -->
  194. <script src="//kit.fontawesome.com/fc16dddf6d.js" crossorigin="anonymous"></script>
  195. <script src="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.js"></script>
  196. <script type="text/javascript" src="https://mx-build.jp/wp-content/themes/%E3%82%BF%E3%82%A4%E3%82%A8%E3%82%A4%E5%8C%97%E6%B5%B7%E9%81%93%E3%82%A8%E3%83%B3%E3%82%B7%E3%82%99%E3%83%8B%E3%82%A2%E3%82%A2%E3%83%AA%E3%83%B3%E3%82%AF%E3%82%99/Slick/slick.min.js"></script>
  197. <script type='text/javascript' src='https://mx-build.jp/wp-content/themes/%E3%82%BF%E3%82%A4%E3%82%A8%E3%82%A4%E5%8C%97%E6%B5%B7%E9%81%93%E3%82%A8%E3%83%B3%E3%82%B7%E3%82%99%E3%83%8B%E3%82%A2%E3%82%A2%E3%83%AA%E3%83%B3%E3%82%AF%E3%82%99/js/cmn.js?ver=1.0' id='common_script-js'></script>
  198. <script type='text/javascript' src='https://mx-build.jp/wp-content/themes/%E3%82%BF%E3%82%A4%E3%82%A8%E3%82%A4%E5%8C%97%E6%B5%B7%E9%81%93%E3%82%A8%E3%83%B3%E3%82%B7%E3%82%99%E3%83%8B%E3%82%A2%E3%82%A2%E3%83%AA%E3%83%B3%E3%82%AF%E3%82%99/js/main.js?ver=1.0' id='main_script-js'></script>
  199. </body>
  200. </html>