11
Html :
<div id="barnav-haut">
<ul>
<{if !$xoops_isuser}>
<li><a href="<{xoAppUrl user.php}>">Se connecter</a> | <a href="<{xoAppUrl register.php}>">S'enregistrer</a></li>
<{else}>
<!-- menu in recorded mode -->
Bienvenue <a href="<{xoAppUrl /user.php}>" title="<{$smarty.const.THEME_PROFILE}>"><{$xoops_uname}> :</a>
<!-- for my message box -->
<{xoInboxCount assign=pmcount}>
<a href="<{xoAppUrl viewpmsg.php}>">
<{if $pmcount}>
<!-- if I have messages -->
<a href="<{xoAppUrl viewpmsg.php}>">Messages (<{$pmcount}>)</a> |
<{else}>
<!-- if I do not have a message -->
<a href="<{xoAppUrl viewpmsg.php}>">Vous avez 0 message</a> |
<{/if}>
</a>
<!-- end my message box-->
<a href="<{xoAppUrl /user.php}>">Mon compte</a> |
<!-- additional link if I have rights of administration of module -->
<{if $xoops_isadmin}>
<a href="<{xoAppUrl /admin.php}>">Admin</a> |
<{/if}>
<!-- end additional link-->
<a href="<{xoAppUrl /user.php op=logout}>">Déconnexion</a> <{/if}></li>
</ul>
</div>
css :
#barnav-haut {
background: #515153;
height: 32px;
width: 100%;
}
#barnav-haut ul{
color: #FFFFFF;
margin-left: auto;
margin-right: auto;
text-align: right;
width: 900px;
padding: 8px;
}
#barnav-haut li{
display: inline;
color: #fff;
}
#barnav-haut li a{
color: #fff;
}
#barnav-haut a{
color: #fff;
}