{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
<div>
<div class="header-bar bg-blue">
<p class="d-none d-md-block">電機工事に安心して使える厳選した電材をお値打ちな価格でネット通販|電材Blue Wood</p>
</div>
<nav class="header-navi container">
<div class="d-flex justify-content-between align-items-center w-100">
<div>
<div class="d-flex align-items-center">
{# ハンバーガー #}
{{ include('Block/nav_sp.twig') }}
<div class="logo-wrapper">
<a href="{{ url('homepage') }}" aria-label="電材Blue Wood トップページへ移動します">
<img src="{{ asset('assets/img/logo.svg','user_data') }}" alt="電材Blue Wood" class="logo"/>
</a>
</div>
<div class="d-none d-md-block">
{{ render(path('block_search_product')) }}
</div>
</div>
</div>
<div>
<div class="hedaer-trailing">
{{ include('Block/login.twig') }}
{{ include('Block/cart.twig') }}
</div>
</div>
</div>
</nav>
{# SP用検索フォーム #}
<div class="d-md-none mt-6 xs-gutter">
{{ render(path('block_search_product')) }}
</div>
{# トップエージ以外はnewsを表示しない #}
{% set request_uri = app.request.server.get('REQUEST_URI') %}
{% if request_uri == '/' %}
{% set NewsList = repository('Eccube\\Entity\\News').getList() %}
<div class="mt-4 mt-md-0 xs-gutter">
<div id="header-news" class="header-news">
{% for News in NewsList %}
{% if loop.index == 1 %}
<a href={{ url('news_detail', {'id': News.id}) }} class="header-news__text">
{{ News.title }}
</a>
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
<div>