{% if app.request.headers.get('WEB-VIEW-ACCESS') == null %}
{% set rules = {num: 7}|merge(draft.rules|default([])) %}
<header class="es-header
{% if app.request.requestUri in ['' ,'/', path('admin_homepage_decorate'), path('admin_homepage_preview'), path('admin_homepage_component_create', {code: 'navigation'})] %}
o-home-sec-navbar
{% endif %} navbar">
<div class="header-content">
<div class="header-left">
<a class="text-37393D text-18" href="{{ editing ? 'javascript:;' : path('homepage') }}">
{% if setting('site.logo') %}
<img style="height: 46px;" src="{{ filepath('../' ~ setting('site.logo'), '') }}">
{% else %}
{{ setting('site.name', 'EDUSOHO') }}
{% endif %}
</a>
<nav class="header-nav">
{% if app.user %}
<ul class="nav navbar-nav hidden-xs" id="nav">
{% include '@CorporateTraining/homepage/component/navigation/nav.html.twig' with {rules:rules} %}
</ul>
{% endif %}
</nav>
</div>
{% include '@CorporateTraining/homepage/component/navigation/user-operation.html.twig' %}
</div>
{% include '@CorporateTraining/admin/homepage/component/widgets/action.html.twig' %}
</header>
{% endif %}
<style>
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
height: 72px;
}
.header-content .header-left {
display: flex;
align-items: center;
}
.header-content .header-nav {
display: inline-block;
}
.header-content .header-nav .nav,
.header-content .header-nav .nav > li {
display: inline-block;
float: none;
}
.header-content .header-nav .nav > li.nav-more {
height: initial;
}
.header-content .header-nav .nav > li > a {
padding: 0 !important;
margin-left: 24px;
}
</style>