app/template/default/Block/lm_global_header.twig line 1

Open in your IDE?
  1. <div id="header-1-wrapper">
  2.   <div id="header-1">
  3.     <div id="header-1-1">
  4.       <div id="header-1-1-1" class="s">
  5.       </div>
  6.       <div class="cart-in-box">
  7.         {% set totalPrice = get_carts_total_price() %}
  8.         {% set totalQuantity = get_carts_total_quantity() %}
  9.         <a href="{{ url('cart') }}" rel="nofollow">
  10.           <img class="cart-img" width="150px" height="50px" src="https://img0.land-mark.biz/ut_img/public_images/header/cart.png" alt="カートを見る" onmouseover="this.src='https://img0.land-mark.biz/ut_img/public_images/header/cart_on.png'" onmouseout="this.src='https://img0.land-mark.biz/ut_img/public_images/header/cart.png'">
  11.         </a>
  12.         <div class="item-count">
  13.           商品合計:&nbsp;
  14.           <span><b>{{ totalQuantity | number_format }}</b>点</span>
  15.         </div>
  16.         <div class="return-shipping">
  17.           &yen;&nbsp;<b>{{ totalPrice | number_format }}</b>
  18.         </div>
  19.         <div class="tax-in">(税込)</div>
  20.         <a href="/contact/fax/" rel="nofollow">
  21.           <img width="110px" height="50px" class="fax-img" src="https://img0.land-mark.biz/ut_img/public_images/header/fax.png" alt="FAX" onmouseover="this.src='https://img0.land-mark.biz/ut_img/public_images/header/fax_on.png'" onmouseout="this.src='https://img0.land-mark.biz/ut_img/public_images/header/fax.png'">
  22.         </a>
  23.         <a href="{{ url('contact') }}" rel="nofollow">
  24.           <img width="130px" height="50px" class="mail-img" src="https://img0.land-mark.biz/ut_img/public_images/header/mail.png" alt="メール" onmouseover="this.src='https://img0.land-mark.biz/ut_img/public_images/header/mail_on.png'" onmouseout="this.src='https://img0.land-mark.biz/ut_img/public_images/header/mail.png'">
  25.         </a>
  26.       </div>
  27.     </div>
  28.   </div>
  29. </div>
  30. <div id="header-2">
  31.     {% set current_path = app.request.get('_route') %}
  32.   <div class="header-2-inner">
  33.     <div class="fl">
  34.       <div id="logo">
  35.           {% if current_path == 'homepage' %}
  36.           <a href="{{ url('homepage') }}"><h1><img width="230px" height="75px" src="https://img0.land-mark.biz/ut_img/public_images/header/site_logo.jpg" alt="{{ HeaderH1() }}"></h1></a>
  37.         {% else %}
  38.           <a href="{{ url('homepage') }}"><img width="230px" height="75px" src="https://img0.land-mark.biz/ut_img/public_images/header/site_logo.jpg" alt="{{ HeaderH1() }}"></a>
  39.         {% endif %}
  40.       </div>
  41.     </div>
  42.     <div class="fr">
  43.       <img width="450px" height="55px" src="https://img0.land-mark.biz/ut_img/public_images/header/service.jpg" alt="ユニフォーム ネット販売最大手の安心感が誇るサービスと実績">
  44.       <img width="280px" height="85px" src="https://img0.land-mark.biz/ut_img/public_images/header/freedial.jpg" alt="電話注文できます 見積り、お問合せは無料">
  45.     </div>
  46.   </div>
  47. </div>
  48. <div id="header-3">
  49.   <div class="header-3-inner">
  50.     <div class="fl">
  51.       <form class="d-flex flex-center-vertial" style="width: 492px; height: 46.5px" action="{{ url('item_searchlist') }}" method="get">
  52.         <input type="hidden" name="hantei" value="検索">
  53.         <div class="serch-box">
  54.           <input type="text" name="searchtext" value="{% if app.request.get('searchtext') is defined and app.request.get('searchtext') != '' %}{{ app.request.get('searchtext') }}{% endif %}" placeholder="商品名、品番、ブランド、キーワード" autocomplete="off" style="height: 34px; width: {{ is_granted('ROLE_USER') ? '436px;' : '442px;' }}" required />
  55.           <input type="image" name="image" src="https://img0.land-mark.biz/ut_img/public_images/header/search.png" class="fl" alt="検索" width="50" height="34" />
  56.         </div>
  57.       </form>
  58.     </div>
  59.     <div class="login-area fr">
  60.       {% if is_granted('ROLE_USER') %}
  61.         <div id="loggin">
  62.                     <div class="loggin-box">
  63.                         <div class="loggin-detail">
  64.               <span>{{ php_mb_strimwidth(app.user.company_name, 0, 50, "...") }}</span>
  65.                         </div>
  66.                         <div class="loggin-detail mt5px">
  67.               <span>{{ php_mb_strimwidth(app.user.full_name, 0, 50, "...") }}</span> 様 【お客様番号】<span>{{ GetCustomerBangou(app.user.LmCustomerId) }}</span>
  68.                         </div>
  69.                     </div>
  70.           <div class="mt10px fl">
  71.             <a href="{{ url('mypage') }}" rel="nofollow">
  72.               <img src="https://img0.land-mark.biz/ut_img/public_images/header/mypage.png" alt="マイページ" width="80" height="25" />
  73.             </a>
  74.             <a class="ml10px" href="{{ url('logout') }}" rel="nofollow">
  75.               <img src="https://img0.land-mark.biz/ut_img/public_images/header/logout.png" alt="ログアウト" width="80" height="25" />
  76.             </a>
  77.           </div>
  78.                 </div>
  79.       {% else %}
  80.         <div class="welcome-area flex">
  81.                     <div class="sitemap-link">
  82.                         <a href="/sitemap/">サイトマップ</a>
  83.                     </div>
  84.                     <ul id="welcome-msg">
  85.                         <li>
  86.                             <span>ようこそ ゲスト様</span>
  87.                             <a href="{{ url('entry') }}" rel="nofollow"><img src="https://img0.land-mark.biz/ut_img/public_images/header/member.png" alt="新規会員登録" width="95" height="25" /></a>
  88.                         </li>
  89.                         <li>
  90.                             <span><b>再注文</b></span>
  91.                             <span>ならまずログイン!</span><a href="/mypage/login/" rel="nofollow"><img src="https://img0.land-mark.biz/ut_img/public_images/header/login.png" alt="ログイン" width="75" height="25" /></a>
  92.                         </li>
  93.                     </ul>
  94.                 </div><!-- /.flex -->
  95.       {% endif %}
  96.     </div>
  97.   </div>
  98. </div>