viewmicroheader.tpl 3.52 KB
Newer Older
Evonne Cheung's avatar
Evonne Cheung committed
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
3
4
<!--[if IE 8 ]>    <html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if} lang="{$LANGUAGE}" class="ie ie8"> <![endif]-->
<!--[if IE 9 ]>    <html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if} lang="{$LANGUAGE}" class="ie ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->  <html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if} lang="{$LANGUAGE}"><!--<![endif]-->
Evonne Cheung's avatar
Evonne Cheung committed
5
6
7
<html{if $LANGDIRECTION == 'rtl'} dir="rtl"{/if}>
{include file="header/head.tpl"}
<body id="micro" class="no-js">
8
{if $USERMASQUERADING || !$PRODUCTIONMODE || $SITECLOSED || $SITETOP}<div class="sitemessages">{/if}
9
    {if $USERMASQUERADING}<div class="sitemessage"><img src="{theme_image_url filename='failure'}" alt="">{$masqueradedetails} {$becomeyouagain|safe}</div>{/if}
10
11
12
13
14
    {if !$PRODUCTIONMODE}<div class="sitemessage center">{str tag=notproductionsite section=error}</div>{/if}
    {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}
    {if $SITETOP}<div id="switchwrap">{$SITETOP|safe}</div>{/if}
{if $USERMASQUERADING || !$PRODUCTIONMODE || $SITECLOSED || $SITETOP}</div>{/if}
<div id="container">
15
    <div class="center"><a class="skiplink" href="#viewheader">{str tag=skipmenu}</a></div>
Evonne Cheung's avatar
Evonne Cheung committed
16
    <div id="loading-box"></div>
17
    <div id="top-wrapper"><div id="header">
Evonne Cheung's avatar
Evonne Cheung committed
18
19
      <div class="viewheadertop">
        <div class="fl">
20
          <a class="small-logo" href="{$WWWROOT}"><img src="{theme_image_url filename=$maharalogofilename}" alt="{$sitename}"></a>
Evonne Cheung's avatar
Evonne Cheung committed
21
22
23
24
25
26
27
        </div>
{if $LOGGEDIN}
        <div id="mainnav-container" class="nav">
         <div id="mainnav">
          <strong><a href="{profile_url($USER)}">{$USER|display_name:null:true}</a>:</strong>
          {foreach from=$MAINNAV item=item}
            {if $item.path}
28
              <a href="{if $item.wwwroot}{$item.wwwroot}{else}{$WWWROOT}{/if}{$item.url}">{$item.title}</a> |
Evonne Cheung's avatar
Evonne Cheung committed
29
30
31
            {/if}
          {/foreach}
          {if $USER->get('admin')}
32
            <a href="{$WWWROOT}admin/">{str tag="administration"}</a> |
Evonne Cheung's avatar
Evonne Cheung committed
33
          {elseif $USER->is_institutional_admin()}
34
            <a href="{$WWWROOT}admin/users/search.php">{str tag="administration"}</a> |
Evonne Cheung's avatar
Evonne Cheung committed
35
36
37
38
39
40
          {/if}
          {if $mnethost}<a href="{$mnethost.url}">{str tag=backto arg1=$mnethost.name}</a>&nbsp;{/if}
          <a href="{$WWWROOT}?logout">{str tag="logout"}</a>
        </div>
       </div>
{/if}
41
42
43
        <div class="fr links">
          {if $microheaderlinks}
            {foreach from=$microheaderlinks item=item}
44
              <a class="btn{if $item.class} {$item.class}{/if}" href="{$item.url}">{$item.name}</a>
45
46
47
48
            {/foreach}
          {/if}
          <a class="btn nojs-hidden-inline" href="javascript:history.back()"><span class="btn-back">{str tag=back}</span></a>
        </div>
Evonne Cheung's avatar
Evonne Cheung committed
49
      </div>
50
      <div id="viewheader" class="viewheader">
Evonne Cheung's avatar
Evonne Cheung committed
51
52
53
{if $collection}
        <div id="collection"><h1 class="collection-title">{$microheadertitle|safe}<span class="rd-coltab"></span></h1>{include file=collectionnav.tpl}<div class="cb"></div></div>
{else}
54
        <h1 class="center viewtitle">{$microheadertitle|safe}</h1>
Evonne Cheung's avatar
Evonne Cheung committed
55
56
57
{/if}
        <div class="cb"></div>
      </div>
58
    </div></div>
Evonne Cheung's avatar
Evonne Cheung committed
59
60
    <div class="cb"></div>
  <div id="mainmiddlewrap">
61
62
63
64
65
    <div id="mainmiddle">
      <div id="main-wrapper">
          <div class="main-column">
              <div id="main-column-container">
              {dynamic}{insert_messages}{/dynamic}