header.tpl 1.86 KB
Newer Older
1
2
3
4
5
6
7
8
9
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>{$title|default:"Mahara"|escape}</title>
        {strip}
            {foreach from=$JAVASCRIPT item=script}
                <script language="javascript" type="text/javascript" src="{$script}">
                </script>
            {/foreach}
10
            {if isset($INLINEJAVASCRIPT)}
Penny Leach's avatar
Penny Leach committed
11
12
13
14
               <script language="javascript" type="text/javascript">
                   {$INLINEJAVASCRIPT}
               </script>
            {/if}   
15
16
            {foreach from=$HEADERS item=header}{$header}{/foreach}
        {/strip}
17
        <link rel="stylesheet" type="text/css" href="{$THEMEURL}style/style.css">
18
    </head>
Nigel McNie's avatar
Nigel McNie committed
19
    <body>
20
21
22
23
        <div id="header">
            <h1>Mahara</h1>
{if $USER}
            <a href="{$WWWROOT}?logout">Logout</a>
Martyn Smith's avatar
Martyn Smith committed
24
25
26
    {if $USER->admin}
            <a href="{$WWWROOT}admin/">Site Administration</a>
    {/if}
27
28
29
30
31
{/if}
        </div>
{if $MAINNAV}
        <ul id="mainnav">
{foreach from=$MAINNAV item=item}
Martyn Smith's avatar
Martyn Smith committed
32
    {if $item.selected}{assign var=MAINNAVSELECTED value=$item}
33
34
35
36
37
38
            <li class="selected"><a href="{$item.link|escape}">{str section=$item.section tag=$item.name}</a></li>
    {else}
            <li><a href="{$item.link|escape}">{str section=$item.section tag=$item.name}</a></li>
    {/if}
{/foreach}
        </ul>
Martyn Smith's avatar
Martyn Smith committed
39
40
41
42
43
44
45
46
47
48
49
    {if $MAINNAVSELECTED.submenu}
        <ul id="subnav">
        {foreach from=$MAINNAVSELECTED.submenu item=item}
        {if $item.selected}{assign var=MAINNAVSELECTED value=$item}
            <li class="selected"><a href="{$item.link|escape}">{str section=$item.section tag=$item.name}</a></li>
        {else}
            <li><a href="{$item.link|escape}">{str section=$item.section tag=$item.name}</a></li>
        {/if}
        {/foreach}
        </ul>
    {/if}
50
51
{/if}
        {insert name="messages"}