1
Hello !
I'm building my own xoops theme.
I want to integrate the user menu (Login + logged-in user) in the a menu bar.
i want to call and include functions of the block,
When i copy/past Language variants (messages ... ) it doesn't work !
I've added a new page : navbar.html
code :
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigationspan>
<span class="icon-bar">span>
<span class="icon-bar">span>
<span class="icon-bar">span>
button>
<a class="navbar-brand" href="#">Menua>
div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="divider-vertical">li>
<li>
<a href="http://www.tafraout.net/">Accueila>
li>
<li class="divider-vertical">li>
<li>
<a href="http://www.tafraout.net/modules/newbb">Forumsa>
li>
<li class="divider-vertical">li>
<li>
<a href="http://www.tafraout.net/modules/contact">Contacta>
li>
<li class="divider-vertical">li>
ul>
<ul class="nav navbar-nav navbar-right">
<{if $xoops_isuser}>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="glyphicon glyphicon-user">i> Espace Membre
<{if $block.new_messages>0}>
<span class="badge">
<{$block.new_messages}>
span>
<{else}>
<{/if}>
<b class="caret">b>
a>
<ul class="dropdown-menu">
<{if $xoops_isadmin}>
<li>
<a href="<{xoAppUrl admin.php}>" title="<{$block.lang_adminmenu}>">
<i class="glyphicon glyphicon-wrench">i>
<{$block.lang_adminmenu}>
a>
li>
<li class="divider">li>
<li>
<a href="<{xoAppUrl user.php}>" title="<{$block.lang_youraccount}>">
<i class="glyphicon glyphicon-user">i>
<{$block.lang_youraccount}>
a>
li>
<li class="divider">li>
<{else}>
<li>
<a href="<{xoAppUrl user.php}>" title="<{$block.lang_youraccount}>">
<i class="glyphicon glyphicon-user">i>
<{$block.lang_youraccount}>
a>
li>
<li class="divider">li>
<{/if}>
<li>
<a href="<{xoAppUrl edituser.php}>" title="<{$block.lang_editaccount}>">
<i class="glyphicon glyphicon-edit">i>
<{$block.lang_editaccount}>
a>
li>
<li class="divider">li>
<li>
<a href="<{xoAppUrl notifications.php}>" title="<{$block.lang_notifications}>">
<i class="glyphicon glyphicon-bell">i>
<{$block.lang_notifications}>
a>
li>
<li class="divider">li>
<{if $block.new_messages>0}>
<li>
<audio autoplay>
<source src="<{xoImgUrl sound/sound.ogg}>" type="audio/ogg">
<source src="<{xoImgUrl sound/sound.mp3}>" type="audio/mpeg">
audio>
<a class="highlight" href="<{xoAppUrl viewpmsg.php}>" title="<{$block.lang_inbox}>">
<i class="glyphicon glyphicon-envelope">i>
<{$block.lang_inbox}>(
<strong class="red">
<{$block.new_messages}>
strong>)a>
li>
<li class="divider">li>
<{else}>
<li>
<a href="<{xoAppUrl viewpmsg.php}>" title="<{$block.lang_inbox}>">
<i class="glyphicon glyphicon-envelope">i>
<{$block.lang_inbox}>
a>
li>
<li class="divider">li>
<{/if}>
<li>
<a href="<{xoAppUrl user.php?op=logout}>" title="<{$block.lang_logout}>">
<i class="glyphicon glyphicon-off">i>
<{$block.lang_logout}>
a>
li>
ul>
li>
<{else}>
<li class="divider-vertical">li>
<li>
<a href="http://www.tafraout.net/">
<i class="glyphicon glyphicon-plus">i> S'inscrire
Se Connecter
<{/if}>
<{if $xoops_isuser}>
<{else}>
Se connecter
display: block;" href="<{xoAppUrl user.php#lost}>" title="<{$block.lang_lostpass}>">Mot de passe perdu ?
Nouveau ?