Commit c74f0f2d authored by Elliot Pahl's avatar Elliot Pahl Committed by Elliot Pahl
Browse files

header.tpl and microheader.tpl code consistency fix.

parent 81126fcd
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<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}
<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>
<script type="text/javascript" src="{$script}"></script>
{/foreach}
{foreach from=$HEADERS item=header}
{$header}
{$header}
{/foreach}
{if isset($INLINEJAVASCRIPT)}
<script type="text/javascript">
<script type="text/javascript">
{$INLINEJAVASCRIPT}
</script>
</script>
{/if}
{foreach from=$STYLESHEETLIST item=cssurl}
<link rel="stylesheet" type="text/css" href="{$cssurl}">
<link rel="stylesheet" type="text/css" href="{$cssurl}">
{/foreach}
<link rel="stylesheet" type="text/css" href="{theme_path location='style/print.css'}" media="print">
<link rel="stylesheet" type="text/css" href="{theme_path location='style/print.css'}" media="print">
<link rel="shortcut icon" href="{$WWWROOT}favicon.ico" type="image/vnd.microsoft.icon">
</head>
<body>
{if $USERMASQUERADING}<div class="sitemessage"><img src="{theme_path location='images/icon_problem.gif'}" alt="">{$masqueradedetails} {$becomeyouagain}</div>{/if}
{if $SITECLOSED}<div class="sitemessage center">{$SITECLOSED}</div>{/if}
<div id="container">
<div id="loading_box" class="hidden"></div>
<div id="topwrapper">
<table cellspacing="0" class="searchbox fr">
<div id="loading_box" class="hidden"></div>
<div id="topwrapper">
<table cellspacing="0" class="searchbox fr">
{if !$nosearch && $LOGGEDIN}
<tr>
<td>{$searchform}</td>
</tr>
<tr>
<td>{$searchform}</td>
</tr>
{/if}
{if defined('MENUITEM') && MENUITEM == '' && !$LOGGEDIN && (count($LANGUAGES) > 1)}
<tr class="headerlanguage">
<td>
<form method="post">
<label>{str tag=language}: </label>
<select name="lang">
<option value="default" selected="selected">{$sitedefaultlang}</option>
<tr class="headerlanguage">
<td>
<form method="post">
<label>{str tag=language}: </label>
<select name="lang">
<option value="default" selected="selected">{$sitedefaultlang}</option>
{foreach from=$LANGUAGES key=k item=i}
<option value="{$k|escape}">{$i|escape}</option>
<option value="{$k|escape}">{$i|escape}</option>
{/foreach}
</select>
<input type="submit" class="submit" name="changelang" value="{str tag=change}" />
</form>
</td>
</tr>
</select>
<input type="submit" class="submit" name="changelang" value="{str tag=change}" />
</form>
</td>
</tr>
{/if}
</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>
</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>
{if $MAINNAV}
<div id="mainnav">
<ul>
<div id="mainnav">
<ul>
{foreach from=$MAINNAV item=item}
{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}
{if $LOGGEDIN}
......@@ -79,15 +79,15 @@
{/if}
<li><a href="{$WWWROOT}?logout">{str tag="logout"}</a></li>
{/if}
</ul>
</div>
</div>
<div id="subnav">
</ul>
</div>
</div>
<div id="subnav">
{if $MAINNAVSELECTED.submenu}
<ul>
<ul>
{foreach from=$MAINNAVSELECTED.submenu item=item}<li{if $item.selected} class="selected"{/if}><a href="{$WWWROOT}{$item.url|escape}">{$item.title|escape}</a></li>{/foreach}
</ul>
</ul>
{/if}
{/if}
</div>
<div id="mainwrapper">
</div>
<div id="mainwrapper">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<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>
<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>
{/foreach}
{foreach from=$HEADERS item=header} {$header}
{foreach from=$HEADERS item=header}
{$header}
{/foreach}
{if isset($INLINEJAVASCRIPT)}
<script type="text/javascript">
<script type="text/javascript">
{$INLINEJAVASCRIPT}
</script>
</script>
{/if}
{foreach from=$STYLESHEETLIST item=cssurl}
<link rel="stylesheet" type="text/css" href="{$cssurl}">
<link rel="stylesheet" type="text/css" href="{$cssurl}">
{/foreach}
<link rel="stylesheet" type="text/css" href="{theme_path location='style/print.css'}" media="print">
</head>
<body>
<div id="containerX">
<div id="loading_box" style="display: none;"></div>
<div id="topwrapper">
<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>
</div>
<div id="mainwrapper">
{insert name="messages"}
<div class="maincontent">
{if $PAGEHELPNAME && $heading} <h2>{$heading|escape}<span id="{$PAGEHELPNAME}_container" class="pagehelpicon">{$PAGEHELPICON}</span></h2>{/if}
<link rel="stylesheet" type="text/css" href="{theme_path location='style/print.css'}" media="print">
</head>
<body>
<div id="containerX">
<div id="loading_box" style="display: none;"></div>
<div id="topwrapper">
<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>
</div>
<div id="mainwrapper">
{insert name="messages"}
<div class="maincontent">
{if $PAGEHELPNAME && $heading} <h2>{$heading|escape}<span id="{$PAGEHELPNAME}_container" class="pagehelpicon">{$PAGEHELPICON}</span></h2>{/if}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment