navigation.tpl 1.72 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
{if $RIGHTNAV}
        <div id="right-nav">
            <ul>{strip}
{foreach from=$RIGHTNAV item=item}
                <li{if $item.selected}{assign var=MAINNAVSELECTED value=$item} class="selected"{/if}><a href="{if $item.url=='account/' && get_config('httpswwwroot')}{$HTTPSWWWROOT}{else}{$WWWROOT}{/if}{$item.url|escape}">{$item.title|escape}</a></li>
{/foreach}
                <li><a href="{$WWWROOT}?logout" accesskey="l">{str tag="logout"}</a></li>
            {/strip}</ul>
        </div>
{/if}

12
13
14
15
{if $MAINNAV}
        <div id="main-nav">
            <ul>{strip}
{foreach from=$MAINNAV item=item}
16
                <li{if $item.selected}{assign var=MAINNAVSELECTED value=$item} class="selected"{/if}><a href="{$WWWROOT}{$item.url|escape}"{if $item.accesskey} accesskey="{$item.accesskey}"{/if}>{$item.title|escape}</a></li>
17
18
{/foreach}
{if $ADMIN || $INSTITUTIONALADMIN}
19
                <li><a href="{$WWWROOT}" accesskey="h">{str tag="returntosite"}</a></li>
20
{elseif $USER->get('admin')}
21
                <li><a href="{$WWWROOT}admin/" accesskey="a">{str tag="siteadministration"}</a></li>
22
{elseif $USER->is_institutional_admin()}
23
                <li><a href="{$WWWROOT}admin/users/search.php" accesskey="a">{str tag="useradministration"}</a></li>
24
25
26
{/if}
            {/strip}</ul>
        </div>
27

28
        <div id="sub-nav">
29
{if $MAINNAVSELECTED.submenu}
30
31
            <ul>{strip}
{foreach from=$MAINNAVSELECTED.submenu item=item}
32
                <li{if $item.selected} class="selected"{/if}><a href="{if get_config('httpswwwroot') && $item.url=='account/'}{$HTTPSWWWROOT}{else}{$WWWROOT}{/if}{$item.url|escape}"{if $item.accesskey} accesskey="{$item.accesskey}"{/if}>{$item.title|escape}</a></li>
33
34
35
{/foreach}
            {/strip}</ul>
{/if}
36
        </div>
37
{/if}