Add admin page in nav
This commit is contained in:
parent
3364c2a2d8
commit
494288ab9f
2 changed files with 9 additions and 2 deletions
|
@ -107,10 +107,15 @@ function nav(&$a) {
|
||||||
$nav['settings'] = array('settings', t('Settings'),"");
|
$nav['settings'] = array('settings', t('Settings'),"");
|
||||||
$nav['profiles'] = array('profiles', t('Profiles'),"");
|
$nav['profiles'] = array('profiles', t('Profiles'),"");
|
||||||
$nav['contacts'] = array('contacts', t('Contacts'),"");
|
$nav['contacts'] = array('contacts', t('Contacts'),"");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Admin page
|
||||||
|
*/
|
||||||
|
if (is_site_admin()){
|
||||||
|
$nav['admin'] = array('admin/', t('Admin'), "");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -16,6 +16,8 @@ $langselector
|
||||||
<a id="nav-search-link" class="nav-link $nav.search.2" href="$nav.search.0">$nav.search.1</a>
|
<a id="nav-search-link" class="nav-link $nav.search.2" href="$nav.search.0">$nav.search.1</a>
|
||||||
<a id="nav-directory-link" class="nav-link $nav.directory.2" href="$nav.directory.0">$nav.directory.1</a>
|
<a id="nav-directory-link" class="nav-link $nav.directory.2" href="$nav.directory.0">$nav.directory.1</a>
|
||||||
|
|
||||||
|
{{ if $nav.admin }}<a id="nav-admin-link" class="nav-link $nav.admin.2" href="$nav.admin.0">$nav.admin.1</a>{{ endif }}
|
||||||
|
|
||||||
{{ if $nav.network }}
|
{{ if $nav.network }}
|
||||||
<a id="nav-network-link" class="nav-commlink $nav.network.2" href="$nav.network.0">$nav.network.1</a>
|
<a id="nav-network-link" class="nav-commlink $nav.network.2" href="$nav.network.0">$nav.network.1</a>
|
||||||
<span id="net-update" class="nav-ajax-left"></span>
|
<span id="net-update" class="nav-ajax-left"></span>
|
||||||
|
|
Loading…
Reference in a new issue