<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{lang:meta_direction}">
<head>
<title>{PAGE_NAME} • {SITE_NAME}</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
{JS_DYNAMIC_VARS}
<link rel="stylesheet" type="text/css" href="{CDNPATH}/includes/clientside/css/enano-shared.css?{ENANO_VERSION}" />
<link id="mdgCss" rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css?{ENANO_VERSION}" />
<link rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css-extra/{lang:meta_direction}.css?{ENANO_VERSION}" />
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css-extra/ie6.css" />
<![endif]-->
{JS_HEADER}
{ADDITIONAL_HEADERS}
<script type="text/javascript">//<![CDATA[
var auth_rename = <!-- BEGIN auth_rename -->true<!-- BEGINELSE auth_rename -->false<!-- END auth_rename -->;
// ]]>
</script>
<script type="text/javascript" src="{CDNPATH}/themes/{THEME_ID}/js/inlinerename.js"></script>
</head>
<body>
<div id="header">
<?php
global $session;
if ( is_object($paths) && $head = $paths->sysMsg('SiteHeader') )
{
echo '<a class="header-placeholder" href="' . makeUrl(get_main_page()) . '"> </a>';
echo $head;
}
else
{
?>
<div class="logo"></div>
<h1><a href="<?php echo is_object($session) ? makeUrl(get_main_page(), false, true) : scriptPath . '/'; ?>">{SITE_NAME}</a></h1>
<?php
}
?>
</div>
<!-- Of course, plugins can do anything they want here -->
<!-- HOOK enanium_main_header -->
<!-- BEGINNOT stupid_mode -->
<!-- This section is bypassed entirely if "stupid mode" (failsafe/no-database template rendering) has been switched on, i.e. by grinding_halt() -->
<form class="searchform" action="{SCRIPTPATH}/index.php" method="get">
<div>
<input type="hidden" name="title" value="{NS_SPECIAL}Search" />
<input type="hidden" name="auth" value="{ADMIN_SID_RAW}" />
<input type="text" name="q" value="" />
<input type="submit" value="search" />
</div>
<!-- HOOK enanium_search_form -->
</form>
<ul class="useropts">
<!-- A first look at typical template logic!
This is the simple case of showing one set of buttons (user page, user CP, log out) for
logged-in users, and for everyone else we show "log in" and "register" buttons. -->
<!-- BEGIN user_logged_in -->
<!-- The "em" class changes the color of the button slightly -->
<li class="em"><a href="{url:User:{USERNAME}}">{USERNAME}</a></li>
<li><a href="{url:Special:Preferences}">{lang:sidebar_btn_preferences_short}</a></li>
<!-- The "logout" class causes the button to turn red when you hover over it -->
<li class="logout"><a href="{url:Special:Logout/{CSRF_TOKEN}/{PAGE_URLNAME}}" onclick="mb_logout(); return false;">{lang:sidebar_btn_logout}</a></li>
<!-- BEGINELSE user_logged_in -->
<li class="em"><a href="{url:Special:Login}" onclick="ajaxStartLogin(); return false;">{lang:sidebar_btn_login}</a></li>
<!-- BEGINNOT registration_disabled -->
<li><a href="{url:Special:Register}">{lang:sidebar_btn_register}</a></li>
<!-- END registration_disabled -->
<!-- END user_logged_in -->
</ul>
<!-- END stupid_mode -->
<!-- Yes this is table based. For reliability reasons. -->
<table border="0" cellspacing="0" cellpadding="0" id="body-wrapper">
<tr>
<td valign="top" id="cell-sbleft">
<div class="left sidebar" id="enanium_sidebar_left">
<a class="closebtn" onclick="enanium_toggle_sidebar_left(); return false;">«</a>
<!-- You have (almost) complete control over the structure of the SIDEBAR_LEFT variable.
See elements.tpl -->
{SIDEBAR_LEFT}
</div>
<div class="left-sidebar-hidden" id="enanium_sidebar_left_hidden">
<a class="openbtn" onclick="enanium_toggle_sidebar_left(); return false;">»</a>
</div>
<!-- HOOK sidebar_left_post -->
</td>
<td valign="top" id="cell-content">
<!-- BEGINNOT stupid_mode -->
<div class="menu_nojs global_menu">
<a href="#" onclick="return false;">{lang:onpage_lbl_changes}</a>
<ul class="jbox_right">
<li><a href="{url:Special:Log/user={USERNAME}|escape}">{lang:onpage_btn_changes_mine}</a></li>
<li><a href="{url:Special:Log/within=1w|escape}">{lang:onpage_btn_changes_recent}</a></li>
<li><a href="{url:Special:Log/page={PAGE_URLNAME}|escape}">{lang:onpage_btn_changes_history}</a></li>
</ul>
<a href="#" onclick="return false;">{lang:onpage_lbl_sitetools}</a>
<ul class="jbox_right">
<li><a href="{url:Special:CreatePage|escape}">{lang:sidebar_btn_createpage}</a></li>
<li><a href="{url:Special:UploadFile|escape}">{lang:sidebar_btn_uploadfile}</a></li>
<li><a href="{url:Special:SpecialPages|escape}">{lang:sidebar_btn_specialpages}</a></li>
<!-- BEGIN user_logged_in -->
<li><a href="{url:Special:Memberlist|escape}">{lang:specialpage_member_list}</a></li>
<!-- END user_logged_in -->
<!-- BEGIN auth_admin -->
<!-- Be warned, ADMIN_LINK is built from sidebar_button in elements. This works in Enanium because it
uses <li> everywhere and handles styling exclusively with CSS (as all good themes should).
You'll want to make sure that if you include a "site tools" menu, your sidebar code relies
on <li> for links. -->
{ADMIN_LINK}
<!-- END auth_admin -->
</ul>
<span class="menuclear"></span>
</div>
<!-- END stupid_mode -->
<div class="menu_nojs" id="pagebar_main">
<div class="label">
<!-- Stupid localization hack -->
<!-- BEGIN stupid_mode -->
Page tools
<!-- BEGINELSE stupid_mode -->
{lang:onpage_lbl_pagetools}
<!-- END stupid_mode -->
</div>
<!-- The jBox "page tools" bar, generated from elements.tpl -->
{TOOLBAR}
<ul>
{TOOLBAR_EXTRAS}
</ul>
<span class="menuclear"></span>
</div>
<div id="content-wrapper" class="content">
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
<tr>
<td valign="top" style="width: 100%;">
<!-- The spinny icon shown when ajax operations are taking place -->
<div style="float: right;">
<img alt=" " src="{CDNPATH}/images/spacer.gif" id="ajaxloadicon" />
</div>
<!-- The double-clickable page title -->
<h1 <!-- BEGIN auth_rename -->title="{lang:onpage_btn_rename_inline}" <!-- END auth_rename -->id="h2PageName">{PAGE_NAME}</h1>
<!-- Everything below here is inner page content -->
<div id="ajaxEditContainer">