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: http://ogp.me/ns# fb: http://ogp.me/ns/fb# product: http://ogp.me/ns/product#">
  11. {% if app.request.get('_route') == 'product_list' %}
  12. {% if app.request.query.get('category_id') is not empty %}
  13. <link rel="canonical" href="{{ url('homepage') }}products/list?category_id={{ app.request.query.get('category_id') }}" />
  14. {% else %}
  15. <link rel="canonical" href="{{ url('homepage') }}products/list" />
  16. {% endif %}
  17. {% set pages = pagination.paginationData %}
  18. {% if pages.pageCount > 1 %}
  19. {% if pages.previous is defined %}
  20. <link rel="prev" href="{{ app.request.schemeAndHttpHost() ~ path(app.request.attributes.get('_route'),app.request.query.all|merge({'pageno': pages.previous})) }}">
  21. {% endif %}
  22. {% if pages.next is defined %}
  23. <link rel="next" href="{{ app.request.schemeAndHttpHost() ~ path(app.request.attributes.get('_route'),app.request.query.all|merge({'pageno': pages.next})) }}">
  24. {% endif %}
  25. {% endif %}
  26. {% endif %}
  27.     <meta charset="utf-8">
  28.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no,user-scalable=no">
  29.     <meta name="apple-itunes-app" content="app-id=com.digital-standard.shareslink, app-argument={{ app.request.uri }}">
  30.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  31. {% if app.request.get('_route') == 'lp' %}{# ▼LP条件★if #}
  32. {% if Lp.canonical is not empty %}
  33. <link rel="canonical" href="{{ Lp.canonical }}" />
  34. {% endif %}
  35. <title>{{ Lp.title }}</title>
  36. {% if Lp.author is not empty %}
  37. <meta name="author" content="{{ Lp.author }}">
  38. {% elseif Page.author is not empty %}
  39. <meta name="author" content="{{ Page.author }}">
  40. {% endif %}
  41. {% if Lp.description is not empty %}
  42. <meta name="description" content="{{ Lp.description }}">
  43. {% elseif Page.description is not empty %}
  44. <meta name="description" content="{{ Page.description }}">
  45. {% endif %}
  46. {% if Lp.keyword is not empty %}
  47. <meta name="keywords" content="{{ Lp.keyword }}">
  48. {% elseif Page.keyword is not empty %}
  49. <meta name="keywords" content="{{ Page.keyword }}">
  50. {% endif %}
  51. {% if Lp.meta_robots is not empty %}
  52. <meta name="robots" content="{{ Lp.meta_robots }}">
  53. {% elseif Page.meta_robots is not empty %}
  54. <meta name="robots" content="{{ Page.meta_robots }}">
  55. {% endif %}
  56. {% if Page.meta_tags is not empty %}
  57. {{ include(template_from_string(Page.meta_tags)) }}
  58. {% endif %}
  59. {% if Lp.meta_tags is not empty %}
  60. {{ include(template_from_string(Lp.meta_tags)) }}
  61. {% endif %}
  62. {% else %}{# ▼LP条件★else #}
  63. {% if (app.request.get('_route') == 'product_detail' or app.request.get('_route') == 'product_detailintro') and Product.seo_title is not empty %}
  64. <title>{{ Product.seo_title }}</title>
  65. {% elseif app.request.get('_route') == 'product_list' and app.request.query.get('category_id') is empty %}
  66. <title>全商品 / {{ BaseInfo.shop_name }}</title>
  67. {% elseif app.request.get('_route') == 'product_list' and Category.seo_title is not empty %}
  68. <title>{{ Category.seo_title }}</title>
  69. {% else %}
  70. <title>{% if app.request.get('_route') == 'product_detail' or app.request.get('_route') == 'product_detailintro' or app.request.get('_route') == 'product_list' %}{{ subtitle }} / {{ BaseInfo.shop_name }}{% else %}{{ BaseInfo.shop_name }}{% if subtitle is defined and subtitle is not empty %} / {{ subtitle }}{% elseif title is defined and title is not empty %} / {{ title }}{% endif %}{% endif %}</title>
  71. {% endif %}
  72. {% if  (app.request.get('_route') == 'product_detail' or app.request.get('_route') == 'product_detailintro') and Product.seo_author is not empty %}
  73. <meta name="author" content="{{ Product.seo_author }}">
  74. {% elseif app.request.get('_route') == 'product_list' and app.request.query.get('category_id') is empty %}
  75. {% if Page.author is not empty %}<meta name="author" content="{{ Page.author }}">{% endif %}
  76. {% elseif app.request.get('_route') == 'product_list' and Category.seo_author is not empty %}
  77. <meta name="author" content="{{ Category.seo_author }}">
  78. {% elseif Page.author is not empty %}
  79. <meta name="author" content="{{ Page.author }}">
  80. {% endif %}
  81. {% if  (app.request.get('_route') == 'product_detail' or app.request.get('_route') == 'product_detailintro') and Product.seo_description is not empty %}
  82. <meta name="description" content="{{ Product.seo_description }}">
  83. {% elseif app.request.get('_route') == 'product_list' and app.request.query.get('category_id') is empty %}
  84. {% if Page.description is not empty %}<meta name="description" content="{{ Page.description }}">{% endif %}
  85. {% elseif app.request.get('_route') == 'product_list' and Category.seo_description is not empty %}
  86. <meta name="description" content="{{ Category.seo_description }}">
  87. {% elseif Page.description is not empty %}
  88. <meta name="description" content="{{ Page.description }}">
  89. {% endif %}
  90. {% if  (app.request.get('_route') == 'product_detail' or app.request.get('_route') == 'product_detailintro') and Product.seo_keyword is not empty %}
  91. <meta name="keywords" content="{{ Product.seo_keyword }}">
  92. {% elseif app.request.get('_route') == 'product_list' and app.request.query.get('category_id') is empty %}
  93. {% if Page.keyword is not empty %}<meta name="keywords" content="{{ Page.keyword }}">{% endif %}
  94. {% elseif app.request.get('_route') == 'product_list' and Category.seo_keyword is not empty %}
  95. <meta name="keywords" content="{{ Category.seo_keyword }}">
  96. {% elseif Page.keyword is not empty %}
  97. <meta name="keywords" content="{{ Page.keyword }}">
  98. {% endif %}
  99. {% if  (app.request.get('_route') == 'product_detail' or app.request.get('_route') == 'product_detailintro') and Product.seo_meta_robots is not empty %}
  100. <meta name="robots" content="{{ Product.seo_meta_robots }}">
  101. {% elseif app.request.get('_route') == 'product_list' and app.request.query.get('category_id') is empty %}
  102. {% if Page.meta_robots is not empty %}<meta name="robots" content="{{ Page.meta_robots }}">{% endif %}
  103. {% elseif app.request.get('_route') == 'product_list' and Category.seo_meta_robots is not empty %}
  104. <meta name="robots" content="{{ Category.seo_meta_robots }}">
  105. {% elseif Page.meta_robots is not empty %}
  106. <meta name="robots" content="{{ Page.meta_robots }}">
  107. {% endif %}
  108. {% if Page.meta_tags is not empty %}
  109. {{ include(template_from_string(Page.meta_tags)) }}
  110. {% endif %}
  111. {% if  (app.request.get('_route') == 'product_detail' or app.request.get('_route') == 'product_detailintro') and Product.seo_meta_tags is not empty %}
  112. {{ include(template_from_string(Product.seo_meta_tags)) }}
  113. {% endif %}
  114. {% if app.request.get('_route') == 'product_list' and app.request.query.get('category_id') is empty %}
  115. {% elseif app.request.get('_route') == 'product_list' and Category.seo_meta_tags is not empty %}
  116. {{ include(template_from_string(Category.seo_meta_tags)) }}
  117. {% endif %}
  118. {% endif %}{# ▲LP条件★endif #}
  119.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  120.     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  121.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  122.     <link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css">
  123.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}?{{ 'now'|date('His') }}">
  124.     {# ▼ヘッダー・Bodyの背景 コメントアウトを解除し数値を変更→001~050 #}
  125.     {# <link rel="stylesheet" href="{{ asset('assets/css/design/001/style.css') }}"> #}
  126.     {% block stylesheet %}{% endblock %}
  127.     <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  128.     <script>
  129.         $(function() {
  130.             $.ajaxSetup({
  131.                 'headers': {
  132.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  133.                 }
  134.             });
  135.         });
  136.     </script>
  137.     {# Layout: HEAD #}
  138.     {% if Layout.Head %}
  139.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  140.     {% endif %}
  141.     {# プラグイン用styleseetやmetatagなど #}
  142.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  143.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  144. </head>
  145. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  146. {# Layout: BODY_AFTER #}
  147. {% if Layout.BodyAfter %}
  148.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  149. {% endif %}
  150. <div class="ec-layoutRole">
  151.     {# Layout: HEADER #}
  152.     {% if Layout.Header %}
  153.         <div class="ec-layoutRole__header">
  154.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  155.         </div>
  156.     {% endif %}
  157.     {# Layout: CONTENTS_TOP #}
  158.     {% if Layout.ContentsTop %}
  159.         <div class="ec-layoutRole__contentTop">
  160.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  161.         </div>
  162.     {% endif %}
  163.     <div class="ec-layoutRole__contents">
  164.         {# Layout: SIDE_LEFT #}
  165.         {% if Layout.SideLeft %}
  166.             <div class="ec-layoutRole__left">
  167.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  168.             </div>
  169.         {% endif %}
  170.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  171.         {% if Layout.ColumnNum == 2 %}
  172.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  173.         {% elseif Layout.ColumnNum == 3 %}
  174.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  175.         {% endif %}
  176.         <div class="{{ layoutRoleMain }}">
  177.             {# Layout: MAIN_TOP #}
  178.             {% if Layout.MainTop %}
  179.                 <div class="ec-layoutRole__mainTop">
  180.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  181.                 </div>
  182.             {% endif %}
  183.             {# MAIN AREA #}
  184.             {% block main %}{% endblock %}
  185.             {# Layout: MAIN_Bottom #}
  186.             {% if Layout.MainBottom %}
  187.                 <div class="ec-layoutRole__mainBottom">
  188.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  189.                 </div>
  190.             {% endif %}
  191.         </div>
  192.         {# Layout: SIDE_RIGHT #}
  193.         {% if Layout.SideRight %}
  194.             <div class="ec-layoutRole__right">
  195.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  196.             </div>
  197.         {% endif %}
  198.     </div>
  199.     {# Layout: CONTENTS_BOTTOM #}
  200.     {% if Layout.ContentsBottom %}
  201.         <div class="ec-layoutRole__contentBottom">
  202.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  203.         </div>
  204.     {% endif %}
  205.     {# Layout: CONTENTS_FOOTER #}
  206.     {% if Layout.Footer %}
  207.         <div class="ec-layoutRole__footer">
  208.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  209.         </div>
  210.     {% endif %}
  211. </div><!-- ec-layoutRole -->
  212. <div class="ec-overlayRole"></div>
  213. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  214. <div class="ec-drawerRole">
  215.     {# Layout: DRAWER #}
  216.     {% if Layout.Drawer %}
  217.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  218.     {% endif %}
  219. </div>
  220. <div class="dzx-fixed-menu">
  221.     <a href="{{ url('homepage') }}"><i class="fas fa-home fa-fw"></i><span>ホーム</span></a>
  222.     {% if is_granted('ROLE_USER') %}
  223.         <a href="{{ url('mypage') }}"><i class="fas fa-user fa-fw"></i><span>マイページ</span></a>
  224.         {% if BaseInfo.option_favorite_product %}
  225.             <a href="{{ url('mypage_favorite') }}"><i class="fas fa-heart fa-fw"></i><span>お気に入り</span></a>
  226.         {% endif %}
  227.     {% else %}
  228.         <a href="{{ url('mypage_login') }}"><i class="fas fa-user fa-fw"></i><span>マイページ</span></a>
  229.         {% if BaseInfo.option_favorite_product %}
  230.             <a href="{{ url('mypage_favorite') }}"><i class="fas fa-heart fa-fw"></i><span>お気に入り</span></a>
  231.         {% endif %}
  232.     {% endif %}
  233.     <a href="{{ url('cart') }}"><i class="fas fa-shopping-cart fa-fw"><span class="ec-cartNavi__badge_menu">0</span></i><span>カート</span></a>
  234. </div>
  235. <script>
  236.     $(function() {
  237.         $(".ec-cartNavi__badge_menu").html( $('.ec-headerNaviRole .ec-cartNavi__badge').text() );
  238.     });
  239. </script>
  240. <div class="ec-blockTopBtn pagetop"><i class="ec-headerNav__itemIcon fas fa-chevron-up fa-fw"></i></div>
  241. <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
  242. <script src="https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js"></script>
  243. {% include('@common/lang.twig') %}
  244. <script src="{{ asset('assets/js/function.js') }}"></script>
  245. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  246. {% block javascript %}{% endblock %}
  247. {# Layout: CLOSE_BODY_BEFORE #}
  248. {% if Layout.CloseBodyBefore %}
  249.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  250. {% endif %}
  251. {# プラグイン用Snippet #}
  252. {% if plugin_snippets is defined %}
  253.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  254. {% endif %}
  255.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  256. </body>
  257. </html>