app/template/default/default_frame.twig line 169

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. <!-- Global site tag (gtag.js) - Google Analytics -->
  12. {# <script async src="https://www.googletagmanager.com/gtag/js?id=G-1R2PB5YGNR"></script>
  13. <script>
  14.   window.dataLayer = window.dataLayer || [];
  15.   function gtag(){dataLayer.push(arguments);}
  16.   gtag('js', new Date());
  17.   gtag('config', 'G-1R2PB5YGNR');
  18. </script> #}
  19. {% if app.request.get('_route') == 'product_list' %}
  20.     {% if app.request.query.get('category_id') is not empty %}
  21.         <link rel="canonical" href="{{ url('homepage') }}products/list?category_id={{ app.request.query.get('category_id') }}" />
  22.     {% else %}
  23.         <link rel="canonical" href="{{ url('homepage') }}products/list" />
  24.     {% endif %}
  25.     {% set pages = pagination.paginationData %}
  26.     {% if pages.pageCount > 1 %}
  27.         {% if pages.previous is defined %}
  28.             <link rel="prev" href="{{ app.request.schemeAndHttpHost() ~ path(app.request.attributes.get('_route'),app.request.query.all|merge({'pageno': pages.previous})) }}">
  29.         {% endif %}
  30.         {% if pages.next is defined %}
  31.             <link rel="next" href="{{ app.request.schemeAndHttpHost() ~ path(app.request.attributes.get('_route'),app.request.query.all|merge({'pageno': pages.next})) }}">
  32.         {% endif %}
  33.     {% endif %}
  34. {% else %}
  35.     <link rel="canonical" href="{% if app.request.server.get('HTTPS') %}https{% else %}http{% endif %}://{{ app.request.server.get('SERVER_NAME') }}{{ app.request.server.get('REQUEST_URI') }}">
  36. {% endif %}
  37.     <meta charset="utf-8">
  38.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  39.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  40. {% set EnUser = app.request.cookies.get('en_user') == 'Y' %}
  41. {% if app.request.attributes.get('_route') == 'homepage' %}
  42.     <title>ギルトフリーアイス|ダシーズファクトリー公式 TOP</title>
  43. {% elseif app.request.attributes.get('_route') == 'company' %}
  44.     <title>会社概要|ギルトフリーアイスのダシーズファクトリー公式</title>
  45. {% elseif app.request.attributes.get('_route') == 'help_privacy' %}
  46.     <title>プライバシーポリシー|ギルトフリーアイスのダシーズファクトリー公式</title>
  47. {% elseif app.request.attributes.get('_route') == 'help_tradelaw' %}
  48.     <title>特商法に基づく表記|ギルトフリーアイスのダシーズファクトリー公式</title>
  49. {% elseif app.request.get('_route') == 'product_detail' and Product.itoben_seo_title is not empty %}
  50.     <title>{{ Product.itoben_seo_title }}</title>
  51. {% elseif app.request.get('_route') == 'product_list' and app.request.query.get('category_id') is empty %}
  52.     {% if EnUser == false %}
  53.         <title>製品のご購入|ギルトフリーアイスのダシーズファクトリー公式</title>
  54.     {% else %}
  55.         <title>Darcy's Factory Official|english</title>
  56.     {% endif %}
  57. {% elseif app.request.get('_route') == 'product_list' and Category.itoben_seo_title is not empty %}
  58.     <title>{{ Category.itoben_seo_title }}</title>
  59. {% else %}
  60. <title>{% if app.request.get('_route') == 'product_detail' 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>
  61. {% endif %}
  62. {% if app.request.get('_route') == 'product_detail' and Product.itoben_seo_author is not empty %}
  63. <meta name="author" content="{{ Product.itoben_seo_author }}">
  64. {% elseif app.request.get('_route') == 'product_list' and app.request.query.get('category_id') is empty %}
  65. {% if Page.author is not empty %}<meta name="author" content="{{ Page.author }}">{% endif %}
  66. {% elseif app.request.get('_route') == 'product_list' and Category.itoben_seo_author is not empty %}
  67. <meta name="author" content="{{ Category.itoben_seo_author }}">
  68. {% elseif Page.author is not empty %}
  69. <meta name="author" content="{{ Page.author }}">
  70. {% endif %}
  71. {% if app.request.get('_route') == 'product_detail' and Product.itoben_seo_description is not empty %}
  72. <meta name="description" content="{{ Product.itoben_seo_description }}">
  73. {% elseif app.request.get('_route') == 'product_list' and app.request.query.get('category_id') is empty %}
  74.     {% if EnUser == false %}
  75.         {% if Page.description is not empty %}<meta name="description" content="{{ Page.description }}">{% endif %}
  76.     {% else %}
  77.         <meta name="description" content="Shop now at Darcy’s Factory.What could be better than Darcy’s premium ice cream, delivered right to your door?">
  78.     {% endif %}
  79. {% elseif app.request.get('_route') == 'product_list' and Category.itoben_seo_description is not empty %}
  80. <meta name="description" content="{{ Category.itoben_seo_description }}">
  81. {% elseif Page.description is not empty %}
  82. <meta name="description" content="{{ Page.description }}">
  83. {% endif %}
  84. {% if app.request.get('_route') == 'product_detail' and Product.itoben_seo_keyword is not empty %}
  85. <meta name="keywords" content="{{ Product.itoben_seo_keyword }}">
  86. {% elseif app.request.get('_route') == 'product_list' and app.request.query.get('category_id') is empty %}
  87.     {% if EnUser == false %}
  88.         {% if Page.keyword is not empty %}<meta name="keywords" content="{{ Page.keyword }}">{% endif %}
  89.     {% endif %}
  90. {% elseif app.request.get('_route') == 'product_list' and Category.itoben_seo_keyword is not empty %}
  91. <meta name="keywords" content="{{ Category.itoben_seo_keyword }}">
  92. {% elseif Page.keyword is not empty %}
  93. <meta name="keywords" content="{{ Page.keyword }}">
  94. {% endif %}
  95. {% if app.request.get('_route') == 'product_detail' and Product.itoben_seo_meta_robots is not empty %}
  96. <meta name="robots" content="{{ Product.itoben_seo_meta_robots }}">
  97. {% elseif app.request.get('_route') == 'product_list' and app.request.query.get('category_id') is empty %}
  98. {% if Page.meta_robots is not empty %}<meta name="robots" content="{{ Page.meta_robots }}">{% endif %}
  99. {% elseif app.request.get('_route') == 'product_list' and Category.itoben_seo_meta_robots is not empty %}
  100. <meta name="robots" content="{{ Category.itoben_seo_meta_robots }}">
  101. {% elseif Page.meta_robots is not empty %}
  102. <meta name="robots" content="{{ Page.meta_robots }}">
  103. {% endif %}
  104. {% if Page.meta_tags is not empty %}
  105. {{ include(template_from_string(Page.meta_tags)) }}
  106. {% endif %}
  107. {% if app.request.get('_route') == 'product_detail' and Product.itoben_seo_meta_tags is not empty %}
  108. {{ include(template_from_string(Product.itoben_seo_meta_tags)) }}
  109. {% endif %}
  110. {% if app.request.get('_route') == 'product_list' and app.request.query.get('category_id') is empty %}
  111. {% elseif app.request.get('_route') == 'product_list' and Category.itoben_seo_meta_tags is not empty %}
  112.     {{ include(template_from_string(Category.itoben_seo_meta_tags)) }}
  113. {% endif %}
  114.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  115.     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  116.     <link rel="preconnect" href="https://fonts.googleapis.com">
  117.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  118.     <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap" rel="stylesheet">
  119.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  120.     <link rel="stylesheet" href="{{ asset('assets/css/style.min.css') }}">
  121.     <link rel="stylesheet" href="{{ asset('assets/css/add.css') }}">
  122.     {% if app.request.attributes.get('_route') == 'homepage' %}
  123.         <link rel="stylesheet" href="{{ asset('assets/css/modal-video.min.css') }}">
  124.     {% endif %}
  125.     <style>
  126.       /* 印刷したときにリンクのURLが勝手に表示されるのを修正 */
  127.       @media print { a[href]:after { content: "" !important; } abbr[title]:after { content: "" !important; } }
  128.     </style>
  129.     {% block stylesheet %}{% endblock %}
  130.     <script src="{{ asset('assets/js/jquery-3.6.0.min.js') }}"></script>
  131.     <script src="{{ asset('assets/js/slick.min.js') }}"></script>
  132.     {% if app.request.attributes.get('_route') == 'homepage' %}
  133.         <script src="{{ asset('assets/js/jquery-modal-video.min.js') }}"></script>
  134.         <script src="{{ asset('assets/js/modal-init.js') }}"></script>
  135.     {% endif %}
  136.     <script>
  137.         $(function() {
  138.             $.ajaxSetup({
  139.                 'headers': {
  140.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  141.                 }
  142.             });
  143.         });
  144.     </script>
  145.     {% if ChainStore %}
  146.     <script>
  147.         $(function() {
  148.             $('body').addClass('layout-store');
  149.         });
  150.     </script>
  151.     {% endif %}
  152.     {# Layout: HEAD #}
  153.     {% if Layout.Head %}
  154.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  155.     {% endif %}
  156.     {# プラグイン用styleseetやmetatagなど #}
  157.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  158.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  159. </head>
  160. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  161. {# Layout: BODY_AFTER #}
  162. {% if Layout.BodyAfter %}
  163.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  164. {% endif %}
  165. <div class="ec-layoutRole">
  166.     {# Layout: HEADER #}
  167.     {% if Layout.Header %}
  168.         <div class="ec-layoutRole__header">
  169.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  170.         </div>
  171.     {% endif %}
  172.     {# Layout: CONTENTS_TOP #}
  173.     {% if Layout.ContentsTop %}
  174.         <div class="ec-layoutRole__contentTop">
  175.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  176.         </div>
  177.     {% endif %}
  178.     <div class="ec-layoutRole__contents">
  179.         {# Layout: SIDE_LEFT #}
  180.         {% if Layout.SideLeft %}
  181.             <div class="ec-layoutRole__left">
  182.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  183.             </div>
  184.         {% endif %}
  185.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  186.         {% if Layout.ColumnNum == 2 %}
  187.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  188.         {% elseif Layout.ColumnNum == 3 %}
  189.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  190.         {% endif %}
  191.         <div class="{{ layoutRoleMain }}">
  192.             {# Layout: MAIN_TOP #}
  193.             {% if Layout.MainTop %}
  194.                 <div class="ec-layoutRole__mainTop">
  195.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  196.                 </div>
  197.             {% endif %}
  198.             {# MAIN AREA #}
  199.             {% block main %}{% endblock %}
  200.             {# Layout: MAIN_Bottom #}
  201.             {% if Layout.MainBottom %}
  202.                 <div class="ec-layoutRole__mainBottom">
  203.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  204.                 </div>
  205.             {% endif %}
  206.         </div>
  207.         {# Layout: SIDE_RIGHT #}
  208.         {% if Layout.SideRight %}
  209.             <div class="ec-layoutRole__right">
  210.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  211.             </div>
  212.         {% endif %}
  213.     </div>
  214.     {# Layout: CONTENTS_BOTTOM #}
  215.     {% if Layout.ContentsBottom %}
  216.         <div class="ec-layoutRole__contentBottom">
  217.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  218.         </div>
  219.     {% endif %}
  220.     {# Layout: CONTENTS_FOOTER #}
  221.     {% if Layout.Footer %}
  222.         <div class="ec-layoutRole__footer">
  223.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  224.         </div>
  225.     {% endif %}
  226. </div><!-- ec-layoutRole -->
  227. <div class="ec-overlay-role"></div>
  228. <div class="ec-drawer-role-close">
  229.   <div class="ec-drawer-role-close__bars">
  230.     <span></span>
  231.     <span></span>
  232.   </div>
  233. </div>
  234. <div class="ec-drawer-role">
  235.     <div class="ec-drawer-role__inner">
  236.         {# Layout: DRAWER #}
  237.         {% if Layout.Drawer %}
  238.             {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  239.         {% endif %}
  240.     </div>
  241. </div>
  242. <div class="ec-blockTopBtn pagetop"><img src="{{ asset('assets/img/common/totop.svg') }}" alt="" width="40" height="46"></div>
  243. <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
  244. <script src="https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js"></script>
  245. {% include('@common/lang.twig') %}
  246. <script src="{{ asset('assets/js/function.js') }}"></script>
  247. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  248. {% block javascript %}{% endblock %}
  249. {# Layout: CLOSE_BODY_BEFORE #}
  250. {% if Layout.CloseBodyBefore %}
  251.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  252. {% endif %}
  253. {# プラグイン用Snippet #}
  254. {% if plugin_snippets is defined %}
  255.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  256. {% endif %}
  257.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  258. </body>
  259. </html>