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.         <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.         <title>{{ BaseInfo.shop_name }}
  15.             {% if subtitle is defined and subtitle is not empty %}
  16.                 /
  17.                 {{ subtitle }}
  18.             {% elseif title is defined and title is not empty %}
  19.                 /
  20.                 {{ title }}
  21.             {% endif %}
  22.         </title>
  23.         {% if Page.meta_tags is not empty %}
  24.             {{ include(template_from_string(Page.meta_tags)) }}
  25.             {% if Page.description is not empty %}
  26.                 <meta name="description" content="{{ Page.description }}">
  27.             {% endif %}
  28.         {% else %}
  29.             {{ include('meta.twig') }}
  30.         {% endif %}
  31.         {% if Page.author is not empty %}
  32.             <meta name="author" content="{{ Page.author }}">
  33.         {% endif %}
  34.         {% if Page.keyword is not empty %}
  35.             <meta name="keywords" content="{{ Page.keyword }}">
  36.         {% endif %}
  37.         {% if Page.meta_robots is not empty %}
  38.             <meta name="robots" content="{{ Page.meta_robots }}">
  39.         {% endif %}
  40.         <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  41.         <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  42.         <link
  43.         href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap"
  44.         rel="stylesheet"
  45.           />
  46.         <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  47.         <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  48.         {% block stylesheet %}{% endblock %}
  49.         <script>
  50.         $(function () {
  51.             $.ajaxSetup({
  52.             'headers': {
  53.             'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  54.             }
  55.             });
  56.         });
  57.         </script>
  58.         <script>
  59.             $(function () {
  60.                 $('.main_visual').slick({
  61.                     dots: true,
  62.                     autoplay: true,
  63.                     speed: 300,
  64.                     slidesToShow: 1,
  65.                     centerMode: true,
  66.                     variableWidth: true,
  67.                     
  68.                     responsive: [
  69.                         {
  70.                             breakpoint: 768,
  71.                             settings: {
  72.                                 slidesToShow: 1,
  73.                                 slidesToScroll: 1,
  74.                                 variableWidth: true,
  75.                                 centerMode: true,
  76.                                 centerPadding: '0',
  77.                                 cssEase: 'linear',
  78.                                 speed: 300,
  79.                                 arrows: false,
  80.                                 dots: true,
  81.                             }
  82.                         }
  83.                     ]
  84.                 });
  85.             });
  86.         </script>
  87.         {# Layout: HEAD #}
  88.         {% if Layout.Head %}
  89.             {{ include('block.twig', {'Blocks': Layout.Head}) }}
  90.         {% endif %}
  91.         {# プラグイン用styleseetやmetatagなど #}
  92.         {% if plugin_assets is defined %}
  93.             {{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}
  94.         {% endif %}
  95.         <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  96.     </head>
  97.     <body
  98.         id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  99.         {# Layout: BODY_AFTER #}
  100.         {% if Layout.BodyAfter %}
  101.             {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  102.         {% endif %}
  103.         {% if isMaintenance %}
  104.             <div class="ec-maintenanceAlert">
  105.                 <div>
  106.                     <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  107.                     {{ 'メンテナンスモードが有効になっています。'|trans }}
  108.                 </div>
  109.             </div>
  110.         {% endif %}
  111.         <div
  112.             class="ec-layoutRole">
  113.             {# Layout: HEADER #}
  114.             {% if Layout.Header %}
  115.                 <header class="ec-layoutRole__header">
  116.                     {{ include('block.twig', {'Blocks': Layout.Header}) }}
  117.                 </header>
  118.             {% endif %}
  119.             {% block breadcrumb %}{% endblock %}
  120.             {# Layout: CONTENTS_TOP #}
  121.             {% if Layout.ContentsTop %}
  122.                 <div class="ec-layoutRole__contentTop">
  123.                     {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  124.                 </div>
  125.             {% endif %}
  126.             {% set request_uri = app.request.server.get('REQUEST_URI') %}
  127.             {% if request_uri == '/'  %}
  128.                 <div class="slick-wrapper">
  129.                     <div class="main_visual">
  130.                         <div class="slick-slide">
  131.                             <picture>
  132.                                 <source media="(max-width: 767px)" srcset="{{ asset('assets/img/sm-toujitu-banner2.png','user_data') }}">
  133.                                 <img src="{{ asset('assets/img/dammy-slide.png','user_data') }}" alt="電材Blue Wood 当社在庫品12時までのご注文で当日発送"/>
  134.                             </picture>
  135.                         </div>
  136.                         <div class="slick-slide">
  137.                             <a href ="{{ url('faq_index') }}#estimate">
  138.                             <picture>
  139.                                 <source media="(max-width: 767px)" srcset="{{ asset('assets/img/sp-tairyo-03.jpg','user_data') }}">
  140.                                 <img src="{{ asset('assets/img/pc-tairyo-03.jpg','user_data') }}" alt="電材Blue Wood 見積もり無料! 最短即日対応!"/>
  141.                             </picture>
  142.                             </a>
  143.                         </div>
  144.                         <div class="item slick-slide">
  145.                             <a href ="{{ url('faq_index') }}#estimate">
  146.                             <picture>
  147.                                 <source media="(max-width: 767px)" srcset="{{ asset('assets/img/sp-senyo.jpg','user_data') }}">
  148.                                 <img src="{{ asset('assets/img/pc-senyo.jpg','user_data') }}" alt="電材Blue Wood お客様のご要望に合わせた専用商品ページ作成します。"/>
  149.                             </picture>
  150.                             </a>
  151.                         </div>
  152.                     </div>
  153.                 </div>
  154.             {% endif %}
  155.             <div
  156.                 class="ec-layoutRole__contents layout-root">
  157.                 {# Layout: SIDE_LEFT #}
  158.                 {% if Layout.SideLeft %}
  159.                     <aside class="ec-layoutRole__left">
  160.                         {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  161.                     </aside>
  162.                 {% endif %}
  163.                 {% set layoutRoleMain = 'ec-layoutRole__main' %}
  164.                 {% if Layout.ColumnNum == 2 %}
  165.                     {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  166.                 {% elseif Layout.ColumnNum == 3 %}
  167.                     {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  168.                 {% endif %}
  169.                 <main
  170.                     class="{{ layoutRoleMain }}">
  171.                     {# Layout: MAIN_TOP #}
  172.                     {% if Layout.MainTop %}
  173.                         <div class="ec-layoutRole__mainTop">
  174.                             {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  175.                         </div>
  176.                     {% endif %}
  177.                     {# MAIN AREA #}
  178.                     {% block main %}{% endblock %}
  179.                     {# Layout: MAIN_Bottom #}
  180.                     {% if Layout.MainBottom %}
  181.                         <div class="ec-layoutRole__mainBottom">
  182.                             {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  183.                         </div>
  184.                     {% endif %}
  185.                 </main>
  186.                 {# Layout: SIDE_RIGHT #}
  187.                 {% if Layout.SideRight %}
  188.                     <aside class="ec-layoutRole__right">
  189.                         {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  190.                     </aside>
  191.                 {% endif %}
  192.             </div>
  193.             {# Layout: CONTENTS_BOTTOM #}
  194.             {% if Layout.ContentsBottom %}
  195.                 <div class="ec-layoutRole__contentBottom">
  196.                     {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  197.                 </div>
  198.             {% endif %}
  199.             {# Layout: CONTENTS_FOOTER #}
  200.             {% if Layout.Footer %}
  201.                 <footer class="ec-layoutRole__footer">
  202.                     {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  203.                 </footer>
  204.             {% endif %}
  205.         </div>
  206.         <!-- ec-layoutRole -->
  207.         <div class="ec-overlayRole"></div>
  208.         <div class="ec-drawerRoleClose">
  209.             <i class="fas fa-times"></i>
  210.         </div>
  211.         <div
  212.             class="ec-drawerRole">
  213.             {# Layout: DRAWER #}
  214.             {% if Layout.Drawer %}
  215.                 {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  216.             {% endif %}
  217.         </div>
  218.         <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  219.         {% include('@common/lang.twig') %}
  220.         <script src="{{ asset('assets/js/function.js') }}"></script>
  221.         <script src="{{ asset('assets/js/eccube.js') }}"></script>
  222.         {% block javascript %}{% endblock %}
  223.         {# Layout: CLOSE_BODY_BEFORE #}
  224.         {% if Layout.CloseBodyBefore %}
  225.             {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  226.         {% endif %}
  227.         {# プラグイン用Snippet #}
  228.         {% if plugin_snippets is defined %}
  229.             {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  230.         {% endif %}
  231.         <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  232.     </body>
  233. </html>