viewmicroheader.tpl 2.94 KB
Newer Older
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if}>
3
{include file="header/head.tpl"}
Evonne Cheung's avatar
Evonne Cheung committed
4
<body id="micro">
5
{if $USERMASQUERADING}<div class="sitemessage"><img src="{theme_url filename='images/icon_problem.gif'}" alt="">{$masqueradedetails} {$becomeyouagain|safe}</div>{/if}
6
{if $SITECLOSED}<div class="sitemessage center">{if $SITECLOSED == 'logindisabled'}{str tag=siteclosedlogindisabled section=mahara arg1="`$WWWROOT`admin/upgrade.php"}{else}{str tag=siteclosed}{/if}</div>{/if}
7
<div id="containerX">
8
    <div id="loading-box"></div>
9
    <div id="top-wrapper">
Evonne Cheung's avatar
Evonne Cheung committed
10
      <div class="viewheadertop">
11
        <div class="fr links">
12
13
          {if $microheaderlinks}
            {foreach from=$microheaderlinks item=item}
Evonne Cheung's avatar
Evonne Cheung committed
14
              <a class="btn" href="{$item.url}">{$item.name}</a>
15
            {/foreach}
Evonne Cheung's avatar
Evonne Cheung committed
16
          {elseif $backurl}<a class="btn" href="{$backurl}">{str tag=back}</a> 
17
18
          {/if}
        </div>
19
        <div class="fl">
20
21
          <a class="small-logo" href="{$WWWROOT}"><img src="{theme_url filename='images/site-logo-small.png'}" alt="{$sitename}"></a>
        </div>
22
{if $LOGGEDIN}
23
24
        <div id="mainnav-container" class="nav">
         <div id="mainnav" class="js-hidden">
Evonne Cheung's avatar
Evonne Cheung committed
25
          <strong><a href="{$WWWROOT}user/view.php">{$USER|display_name:null:true|escape}</a>:</strong> 
26
27
          {foreach from=$MAINNAV item=item}
            {if $item.path}
28
              <a href="{$WWWROOT}{$item.url}">{$item.title}</a> |
29
30
            {/if}
          {/foreach}
31
          {if $USER->get('admin')}
Evonne Cheung's avatar
Evonne Cheung committed
32
            <a href="{$WWWROOT}admin/">{str tag="siteadministration"}</a> |
33
          {elseif $USER->is_institutional_admin()}
Evonne Cheung's avatar
Evonne Cheung committed
34
            <a href="{$WWWROOT}admin/users/search.php">{str tag="useradministration"}</a> |
35
36
          {/if}

37
          {if $mnethost}<a href="{$mnethost.url}">{str tag=backto arg1=$mnethost.name}</a>&nbsp;{/if}
38
          <a href="{$WWWROOT}?logout">{str tag="logout"}</a>
39
        </div>
40
        <script type="text/javascript">{literal}
41
42
43
44
45
46
47
48
49
        addLoadEvent(function(){
            setStyle('mainnav', {'display': 'none'});
            removeElementClass('mainnav', 'js-hidden');
            connect('mainnav-container', 'onmouseenter', function(e) { appear('mainnav', {'duration': 0.25}); });
            connect('mainnav-container', 'onmouseleave', function(e) { fade('mainnav', {'duration': 0.25}); });
        });
        {/literal}
        </script>
       </div>
50
{/if}
51
52
53
      </div>
      <div class="viewheader">

54
{if $collection}
55
        <div id="collection"><div class="collection-title">{$microheadertitle|safe}:</div>{include file=collectionnav.tpl}</div>
56
{else}
57
        <div class="center title">{$microheadertitle|safe}</div>
58
{/if}
Evonne Cheung's avatar
Evonne Cheung committed
59
		<div class="cb"></div>
60
      </div>
61
    </div>
Evonne Cheung's avatar
Evonne Cheung committed
62
	<div class="cb"></div>
63
64
    <div id="main-wrapper">
        <div class="main-column">
65
            {dynamic}{insert_messages}{/dynamic}
66
            <div id="main-column-container">