first commit
This commit is contained in:
53
templates/frontend/basic/menu.html.twig
Normal file
53
templates/frontend/basic/menu.html.twig
Normal file
@@ -0,0 +1,53 @@
|
||||
<!-- ============================================== HEADER ============================================== -->
|
||||
<header class="header-style-1">
|
||||
|
||||
<!-- ============================================== TOP MENU ============================================== -->
|
||||
<div class="top-bar animate-dropdown">
|
||||
<div class="container">
|
||||
<div class="header-top-inner">
|
||||
<div class="cnt-account">
|
||||
<ul class="list-unstyled">
|
||||
{% if app.user %}
|
||||
{% if is_granted('ROLE_ADMIN') %}
|
||||
<li class="myaccount"><a href="{{ path('backend_admin_dashboard_index') }}"><span>Espace Admin</span></a></li>
|
||||
{% elseif is_granted('ROLE_PARTNER_ADVANCED') or is_granted('ROLE_PARTNER') %}
|
||||
{% if app.user.isActiveRolePartner() %}
|
||||
<li class="myaccount"><a href="{{ path('backend_partner_dashboard_index') }}"><span>Espace Partenaire</span></a></li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<li class="myaccount"><a href="{{ path('frontend_user_profile', {id:app.user.id} ) }}"><span>{{ app.user.firstname ~ ' ' ~ app.user.lastname|e }}</span></a></li>
|
||||
<li class="myaccount"><a href="{{ path('frontend_security_logout') }}"><span>Déconnexion</span></a></li>
|
||||
{% else %}
|
||||
<li class="check"><a href="{{ path('frontend_security_registration') }}"><span>Inscription</span></a></li>
|
||||
<li class="login"><a href="{{ path('frontend_security_login') }}"><span>Connexion</span></a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.cnt-account -->
|
||||
|
||||
<div class="cnt-block">
|
||||
<a href="{{ path ('frontend_demo_index') }}" >
|
||||
demo
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- /.cnt-cart -->
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<!-- /.header-top-inner -->
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
</div>
|
||||
<!-- /.header-top -->
|
||||
<!-- ============================================== TOP MENU : END ============================================== -->
|
||||
|
||||
{{ render(path('frontend_basic_search')) }}
|
||||
|
||||
<!-- ============================================== NAVBAR ============================================== -->
|
||||
{% if is_granted('ROLE_USER') %}
|
||||
{{ render(path('frontend_basic_navbar')) }}
|
||||
{% endif %}
|
||||
|
||||
</header>
|
||||
<!-- ============================================== NAVBAR : END ============================================== -->
|
||||
|
||||
Reference in New Issue
Block a user