app/template/default/default_frame.twig line 1

Open in your IDE?
  1.     {% set cache = 'now'|date('U')  %}
  2.         {% set cache = "?#{cache}"  %}
  3.         {# {% set cache = ""  %} #}
  4.  {% set url = app.request.query.get('page') %}
  5.             <!doctype html>
  6. {#
  7. This file is part of EC-CUBE
  8. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  9. http://www.ec-cube.co.jp/
  10. For the full copyright and license information, please view the LICENSE
  11. file that was distributed with this source code.
  12. #}
  13. <html lang="{{ eccube_config.locale }}">
  14. <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# product: http://ogp.me/ns/product#">
  15.     <meta charset="utf-8">
  16.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  17.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  18.     {% if Page.url is same as('homepage') %}
  19.         <title>{{ BaseInfo.shop_name }}|{{ subtitle }}</title>
  20.     {% else %}
  21.         <title>{% if subtitle is defined and subtitle is not empty %}{{ subtitle }}|{% elseif title is defined and title is not empty %} {{ title }}|{% endif %}{{ BaseInfo.shop_name }}</title>
  22.     {% endif %}
  23.     {% if Page.author is not empty %}
  24.         <meta name="author" content="{{ Page.author }}">
  25.     {% endif %}
  26.     {% if Page.description is not empty %}
  27.         <meta name="description" content="{{ Page.description }}">
  28.     {% endif %}
  29.     {% if Page.keyword is not empty %}
  30.         <meta name="keywords" content="{{ Page.keyword }}">
  31.     {% endif %}
  32.     {% if Page.meta_robots is not empty %}
  33.         <meta name="robots" content="{{ Page.meta_robots }}">
  34.     {% endif %}
  35.     {% if Page.meta_tags is not empty %}
  36.         {{ include(template_from_string(Page.meta_tags)) }}
  37.     {% endif %}
  38.     {# <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}"> #}
  39.     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  40.     <link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css">
  41.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  42.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  43.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  44.     {{ include_dispatch('Block/heading.twig') }}
  45.     {% block stylesheet %}{% endblock %}
  46.         <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  47.         <script>
  48.             $(function() {
  49.                 $.ajaxSetup({
  50.                     'headers': {
  51.                         'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  52.                     }
  53.                 });
  54.             });
  55.         </script>
  56.         {# Layout: HEAD #}
  57.         {% if Layout.Head %}
  58.             {{ include('block.twig', {'Blocks': Layout.Head}) }}
  59.         {% endif %}
  60.         {# プラグイン用styleseetやmetatagなど #}
  61.         {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  62.             <meta name="google-site-verification" content="_KE2Cs_60EnqwBMe_c0_xGYfSEu7-WsjGbky2M7kSfo" />
  63.         </head>
  64.     {% if Page.url is same as('homepage') %}
  65. {% set bodyClass = '' %}
  66.     {% else %}
  67. {% set bodyClass = 'sub_page' %}
  68.         {% endif %}
  69.         <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }} {{ bodyClass }}">
  70.             <div class="ec-layoutRole">
  71.                 <div class="ec-layoutRole__header">
  72.     {% if (url == 'test') %}
  73.                     {{ include_dispatch('Block/test_header.twig') }}
  74.     {% else %}
  75.                     {{ include_dispatch('Block/header.twig') }}
  76.     {% endif %}
  77.                 </div>
  78.                 <div class="ec-layoutRole__contents">
  79.                     {% set layoutRoleMain = 'ec-layoutRole__main' %}
  80.             <div class="{{ layoutRoleMain }}">
  81.                 <main>
  82.                     {% if Page.url is not same as('homepage') %}
  83.                         {{ include_dispatch('Block/mainimg.twig') }}
  84.                     {% endif %}
  85.                     {% block main %}{% endblock %}
  86.                         
  87.                     </main>
  88.                 </div>
  89.                 
  90.             </div>
  91.             <div class="ec-layoutRole__footer">
  92.     {% if (url == 'test') %}
  93.                 {{ include_dispatch('Block/test_footer.twig') }}
  94.     {% else %}
  95.                 {{ include_dispatch('Block/footer.twig') }}
  96.     {% endif %}
  97.             </div>
  98.         </div><!-- ec-layoutRole -->
  99.         <div class="ec-overlayRole"></div>
  100.         <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  101.         <div class="ec-drawerRole">
  102.                 {{ include_dispatch('Block/login_sp.twig') }}
  103.                 {{ include_dispatch('Block/category_nav_sp.twig') }}
  104.             
  105.         {#     {% if Layout.Drawer %}
  106.                 {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  107.             {% endif %} #}
  108.         </div>
  109.         <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  110.         <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
  111.         <script src="https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js"></script>
  112.         {% include('@common/lang.twig') %}
  113.         <script src="{{ asset('assets/js/function.js') }}"></script>
  114.         <script src="{{ asset('assets/js/eccube.js') }}"></script>
  115.         {% block javascript %}{% endblock %}
  116. {# プラグイン用Snippet #}
  117. {% if plugin_snippets is defined %}
  118.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  119. {% endif %}
  120. <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  121. <script type="text/javascript" src="{{ asset('assets/js/vue.js') }}{{ cache }}"></script>
  122.     {% if (url == 'test') %}
  123.  <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
  124. <script type="text/javascript" src="{{ asset('assets/js/instagram.js') }}{{ cache }}"></script>
  125.     {% endif %}
  126. <script>
  127.     $(function() {
  128.         
  129.         // smoothScroll()
  130.     // naviMenu1();//ハンバーガーメニュー
  131.     retinaSrcset()//retina対応
  132.     // anchorLinkToOtherPage()//アンカーリンクのスムーズスクロール(アンカーリンク)
  133.     // smoothScroll()//スムーズスクロール
  134.     // GoToTop();
  135.     // if (window.matchMedia( "(min-width: 769px)" ).matches) {
  136.     //テスト用ページ
  137. // forTestPage()
  138. fixedHeader()
  139.     // }
  140.     // windowsSizeSrcset()
  141.     // mobileSizeSrcset()
  142. });
  143. </script>
  144. <script>
  145. </script>
  146. <script src="//cdnjs.cloudflare.com/ajax/libs/picturefill/3.0.3/picturefill.min.js"></script>
  147. <script src="//cdnjs.cloudflare.com/ajax/libs/object-fit-images/3.2.4/ofi.min.js"></script>
  148. <script>objectFitImages();</script>
  149. </body>
  150. </html>