header.tpl 3.26 KB
Newer Older
Penny Leach's avatar
Penny Leach committed
1
2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<head>
	<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
	<title>{$PAGETITLE|escape}</title>
	<script type="text/javascript">
	var config = {literal}{{/literal}
		'theme': {$THEMELIST},
		'sesskey' : '{$SESSKEY}',
		'wwwroot': '{$WWWROOT}',
		'loggedin': {$USER->is_logged_in()|intval},
		'userid': {$USER->get('id')}
	{literal}}{/literal};
	</script>
	{$STRINGJS}
{foreach from=$JAVASCRIPT item=script}
	<script type="text/javascript" src="{$script}"></script>
18
{/foreach}
19
20
{foreach from=$HEADERS item=header}
	{$header}
21
22
{/foreach}
{if isset($INLINEJAVASCRIPT)}
23
	<script type="text/javascript">
24
{$INLINEJAVASCRIPT}
25
	</script>
26
{/if}
27
{foreach from=$STYLESHEETLIST item=cssurl}
28
	<link rel="stylesheet" type="text/css" href="{$cssurl}">
29
{/foreach}
30
	<link rel="stylesheet" type="text/css" href="{theme_path location='style/print.css'}" media="print">
Nigel McNie's avatar
Nigel McNie committed
31
    <link rel="shortcut icon" href="{$WWWROOT}favicon.ico" type="image/vnd.microsoft.icon">
32
33
</head>
<body>
34
{if $USERMASQUERADING}<div id="masquerading-message"><img src="{theme_path location='images/icon_problem.gif'}" alt="">{$masqueradedetails} {$becomeyouagain}</div>{/if}
35
36
37
38
<div id="container">
	<div id="loading_box" class="hidden"></div>
	<div id="topwrapper">
	<table cellspacing="0" class="searchbox fr">
39
{if !$nosearch && $LOGGEDIN}
40
41
42
	<tr>
		<td>{$searchform}</td>
	</tr>
43
{/if}
44
{if defined('MENUITEM') && MENUITEM == '' && !$LOGGEDIN && (count($LANGUAGES) > 1)}
45
46
47
48
49
50
	<tr class="headerlanguage">
		<td>
		<form method="post">
		<label>{str tag=language}: </label>
		<select name="lang">
		<option value="default" selected="selected">{$sitedefaultlang}</option>
51
{foreach from=$LANGUAGES key=k item=i}
52
		<option value="{$k|escape}">{$i|escape}</option>
53
{/foreach}
54
55
56
57
58
		</select>
		<input type="submit" class="submit" name="changelang" value="{str tag=change}" />
		</form>
		</td>
	</tr>
59
{/if}
60
61
62
	</table>
		<div id="logo"><a href="{$WWWROOT}"><img src="{theme_path location='images/logo.gif'}" border="0" alt=""></a></div>
	<h1 class="hidden"><a href="{$WWWROOT}">{$hiddenheading|default:"Mahara"|escape}</a></h1>
Penny Leach's avatar
Penny Leach committed
63
{if $MAINNAV}
64
65
		<div id="mainnav">
		<ul>
Penny Leach's avatar
Penny Leach committed
66
{foreach from=$MAINNAV item=item}
67
{if $item.selected}{assign var=MAINNAVSELECTED value=$item}<li class="selected"><a href="{$WWWROOT}{$item.url|escape}">{$item.title|escape}</a></li>{else}<li><a href="{$WWWROOT}{$item.url|escape}">{$item.title|escape}</a></li>{/if}{/foreach}
68
69
70
{if $LOGGEDIN}
{if $USER->get('admin') || $USER->is_institutional_admin()}
{if $ADMIN || $INSTITUTIONALADMIN}
71
<li><a href="{$WWWROOT}">{str tag="returntosite"}</a></li>
72
{elseif $USER->get('admin')}
73
<li><a href="{$WWWROOT}admin/">{str tag="siteadministration"}</a></li>
74
{else}
75
<li><a href="{$WWWROOT}admin/users/search.php">{str tag="useradministration"}</a></li>
76
{/if}
77
{* <li><a href="" onclick="createLoggingPane(); return false;">Create Logging Pane</a></li> *}
78
{/if}
79
<li><a href="{$WWWROOT}?logout">{str tag="logout"}</a></li>
80
{/if}
81
82
83
84
		</ul>
		</div>
	</div>
	<div id="subnav">
85
{if $MAINNAVSELECTED.submenu}
86
87
88
	<ul>
{foreach from=$MAINNAVSELECTED.submenu item=item}<li{if $item.selected} class="selected"{/if}><a href="{$WWWROOT}{$item.url|escape}">{$item.title|escape}</a>{/foreach}
	</ul>
89
{/if}
90
{/if}
91
92
	</div>
	<div id="mainwrapper">