app/Resources/views/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1">
  6.         <title>{% block title %}Welcome!{% endblock %}</title>
  7.         {% block stylesheets %}{% endblock %}
  8.         
  9.         <meta name="author" content="株式会社ステラリンク">
  10.         
  11.         <link rel="stylesheet" href="{{ asset('style.css') }}" type="text/css">
  12.         <link rel="stylesheet" href="{{ asset('html5doctor.css') }}" type="text/css">
  13.         <link rel="stylesheet" href="{{ asset('scroll-hint.css') }}" type="text/css">
  14.         
  15.         <script src="../js/jquery-3.6.0.min.js"></script>
  16.         <link href="https://use.fontawesome.com/releases/v5.13.0/css/all.css" rel="stylesheet">
  17.         <script src="../js/jquery.lazyload.min.js"></script>
  18.         
  19.         <link rel="apple-touch-icon" href="{{ asset('../image/favicons/apple-touch-icon-152x152.png') }}" sizes="152x152">
  20.         <link rel="icon" type="image/png" href="{{ asset('../image/favicons/icon-16x16.png') }}" sizes="16x16">
  21.         <link rel="icon" type="image/png" href="{{ asset('../image/favicons/icon-32x32.png') }}" sizes="32x32">
  22.     </head>
  23.     <body {% if app.request.attributes.get('_route') == 'area' %}class="area-top"{% elseif app.request.attributes.get('_route') == 'item' %}class="item-top"{% elseif app.request.attributes.get('_route') == 'complete' %}class="complete-top"{% endif %}>
  24.         <div id="screen_touch" class="wrapper">
  25.             <header>
  26.                 <div class="flexbox">
  27.                     <div class="login-top{% if app.request.attributes.get('_route') != 'area' %} top-logo{% endif %}"><a href="{{ path("item") }}"><img src="{{ asset('../image/logo.png') }}" alt=""></a>
  28.                     {% if app.session.get('AreaId')!= "" and app.session.get('StoreId')!= "" %}
  29.                         <h1 class="login-name">{{ app.session.get('StoreName') | length > 19? app.session.get('StoreName') | slice(0, 19) ~ '…' : app.session.get('StoreName') }}支店</h1></div>
  30.                         <div class="narrow-down-form">
  31.                             {% if app.request.attributes.get('_route') == 'item' %}
  32.                                 並べ替え
  33.                                 <select class="sort_select" name="sort" id="sort">
  34.                                     {% for sort in sorts %}
  35.                                         <option value="{{ sort.id }}" {% if (sortId is not null) and sortId == sort.id %}selected{% endif %}>{{ sort.name }}</option>
  36.                                     {% endfor %}
  37.                                 </select>
  38.                                 <button class="app-btn" name="searchBtn" onclick="return sortSelect();">適用</button>
  39.                             {% endif %}
  40.                             <button class="logout" type="button" name="logout" value="" onclick="location.href='{{ path("area") }}'">拠点選択へ戻る</button>
  41.                         </div>
  42.                     {% else %}
  43.                     </div>
  44.                     {% endif %}
  45.                 </div>
  46.                 {# インデックスタブ #}
  47.                 {% if app.request.attributes.get('_route') == 'item' %}
  48.                     <div class="tab-buttons sp-none">
  49.                         {% for key, indexTab in index %}
  50.                             <span {% if indexId == key %}class="tab-active"{% endif %} onclick="return tabChange({{ key }});">{{ indexTab }}</span>
  51.                         {% endfor %}
  52.                     </div>
  53.                     <div class="tab-buttons pc-none">
  54.                         {% for key, s_indexTab in s_index %}
  55.                             <span {% if indexId == key %}class="tab-active"{% endif %} onclick="return tabChange({{ key }});">{{ s_indexTab }}</span>
  56.                         {% endfor %}
  57.                     </div>
  58.                 {% endif %}
  59.             </header>
  60.             
  61.             <main>
  62.                 <div class="{% if app.request.attributes.get('_route') == 'item' %}main{% else %}main_top{% endif %}">
  63.                     {% block body %}{% endblock %}
  64.                 </div>
  65.             </main>
  66.             
  67.             <footer>
  68.                 <p class="copyright">Copyright © 2021 StellarLink CORPORATION. </p>
  69.             </footer>
  70.         </div>
  71.         {% block javascripts %}{% endblock %}
  72.     </body>
  73. </html>