themes/enanium/header.tpl
changeset 1227 bdac73ed481e
parent 1196 704ba4b9819b
child 1254 221d14331ebe
equal deleted inserted replaced
1226:de56132c008d 1227:bdac73ed481e
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     2 <html xmlns="http://www.w3.org/1999/xhtml">
     2 <html xmlns="http://www.w3.org/1999/xhtml">
     3   <head>
     3 	<head>
     4     <title>{PAGE_NAME} &bull; {SITE_NAME}</title>
     4 		<title>{PAGE_NAME} &bull; {SITE_NAME}</title>
     5     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
     5 		<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
     6     {JS_DYNAMIC_VARS}
     6 		{JS_DYNAMIC_VARS}
     7     <link rel="stylesheet" type="text/css" href="{CDNPATH}/includes/clientside/css/enano-shared.css?{ENANO_VERSION}" />
     7 		<link rel="stylesheet" type="text/css" href="{CDNPATH}/includes/clientside/css/enano-shared.css?{ENANO_VERSION}" />
     8     <link id="mdgCss" rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css?{ENANO_VERSION}" />
     8 		<link id="mdgCss" rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css?{ENANO_VERSION}" />
     9     <!--[if lte IE 6]>
     9 		<!--[if lte IE 6]>
    10     <link rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css-extra/ie6.css" />
    10 		<link rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css-extra/ie6.css" />
    11     <![endif]-->
    11 		<![endif]-->
    12     {JS_HEADER}
    12 		{JS_HEADER}
    13     {ADDITIONAL_HEADERS}
    13 		{ADDITIONAL_HEADERS}
    14     <script type="text/javascript">//<![CDATA[
    14 		<script type="text/javascript">//<![CDATA[
    15     var auth_rename = <!-- BEGIN auth_rename -->true<!-- BEGINELSE auth_rename -->false<!-- END auth_rename -->;
    15 		var auth_rename = <!-- BEGIN auth_rename -->true<!-- BEGINELSE auth_rename -->false<!-- END auth_rename -->;
    16     // ]]>
    16 		// ]]>
    17     </script>
    17 		</script>
    18     <script type="text/javascript" src="{CDNPATH}/themes/{THEME_ID}/js/inlinerename.js"></script>
    18 		<script type="text/javascript" src="{CDNPATH}/themes/{THEME_ID}/js/inlinerename.js"></script>
    19   </head>
    19 	</head>
    20   <body>
    20 	<body>
    21     <div id="header">
    21 		<div id="header">
    22       <?php
    22 			<?php
    23       global $session;
    23 			global $session;
    24       
    24 			
    25       if ( is_object($paths) && $head = $paths->sysMsg('SiteHeader') )
    25 			if ( is_object($paths) && $head = $paths->sysMsg('SiteHeader') )
    26       {
    26 			{
    27         echo '<a class="header-placeholder" href="' . makeUrl(get_main_page()) . '">&nbsp;</a>';
    27 				echo '<a class="header-placeholder" href="' . makeUrl(get_main_page()) . '">&nbsp;</a>';
    28         echo $head;
    28 				echo $head;
    29       }
    29 			}
    30       else
    30 			else
    31       {
    31 			{
    32       ?>
    32 			?>
    33         <div class="logo"></div>
    33 				<div class="logo"></div>
    34         <h1><a href="<?php echo is_object($session) ? makeUrl(get_main_page(), false, true) : scriptPath . '/'; ?>">{SITE_NAME}</a></h1>
    34 				<h1><a href="<?php echo is_object($session) ? makeUrl(get_main_page(), false, true) : scriptPath . '/'; ?>">{SITE_NAME}</a></h1>
    35       <?php
    35 			<?php
    36         }
    36 				}
    37       ?>
    37 			?>
    38     </div>
    38 		</div>
    39     <!-- HOOK enanium_main_header -->
    39 		<!-- HOOK enanium_main_header -->
    40     <!-- BEGINNOT stupid_mode -->
    40 		<!-- BEGINNOT stupid_mode -->
    41     <form class="searchform" action="{SCRIPTPATH}/index.php" method="get">
    41 		<form class="searchform" action="{SCRIPTPATH}/index.php" method="get">
    42       <div>
    42 			<div>
    43         <input type="hidden" name="title" value="{NS_SPECIAL}Search" />
    43 				<input type="hidden" name="title" value="{NS_SPECIAL}Search" />
    44         <input type="hidden" name="auth" value="{ADMIN_SID_RAW}" />
    44 				<input type="hidden" name="auth" value="{ADMIN_SID_RAW}" />
    45         <input type="text" name="q" value="" />
    45 				<input type="text" name="q" value="" />
    46         <input type="submit" value="search" />
    46 				<input type="submit" value="search" />
    47       </div>
    47 			</div>
    48       <!-- HOOK enanium_search_form -->
    48 			<!-- HOOK enanium_search_form -->
    49     </form>
    49 		</form>
    50     <ul class="useropts">
    50 		<ul class="useropts">
    51       <!-- BEGIN user_logged_in -->
    51 			<!-- BEGIN user_logged_in -->
    52       <li class="em"><a href="{url:User:{USERNAME}}">{USERNAME}</a></li>
    52 			<li class="em"><a href="{url:User:{USERNAME}}">{USERNAME}</a></li>
    53       <li><a href="{url:Special:Preferences}">{lang:sidebar_btn_preferences_short}</a></li>
    53 			<li><a href="{url:Special:Preferences}">{lang:sidebar_btn_preferences_short}</a></li>
    54       <li class="logout"><a href="{url:Special:Logout/{CSRF_TOKEN}/{PAGE_URLNAME}}" onclick="mb_logout(); return false;">{lang:sidebar_btn_logout}</a></li>
    54 			<li class="logout"><a href="{url:Special:Logout/{CSRF_TOKEN}/{PAGE_URLNAME}}" onclick="mb_logout(); return false;">{lang:sidebar_btn_logout}</a></li>
    55       <!-- BEGINELSE user_logged_in -->
    55 			<!-- BEGINELSE user_logged_in -->
    56       <li class="em"><a href="{url:Special:Login}" onclick="ajaxStartLogin(); return false;">{lang:sidebar_btn_login}</a></li>
    56 			<li class="em"><a href="{url:Special:Login}" onclick="ajaxStartLogin(); return false;">{lang:sidebar_btn_login}</a></li>
    57       <li><a href="{url:Special:Register}">{lang:sidebar_btn_register}</a></li>
    57 			<li><a href="{url:Special:Register}">{lang:sidebar_btn_register}</a></li>
    58       <!-- END user_logged_in -->
    58 			<!-- END user_logged_in -->
    59     </ul>
    59 		</ul>
    60     <!-- END stupid_mode -->
    60 		<!-- END stupid_mode -->
    61     <!-- Yes this is table based. For reliability reasons. -->
    61 		<!-- Yes this is table based. For reliability reasons. -->
    62     <table border="0" cellspacing="0" cellpadding="0" id="body-wrapper">
    62 		<table border="0" cellspacing="0" cellpadding="0" id="body-wrapper">
    63     <tr>
    63 		<tr>
    64       <td valign="top" id="cell-sbleft">
    64 			<td valign="top" id="cell-sbleft">
    65         <div class="left sidebar" id="enanium_sidebar_left">
    65 				<div class="left sidebar" id="enanium_sidebar_left">
    66           <a class="closebtn" onclick="enanium_toggle_sidebar_left(); return false;">&laquo;</a>
    66 					<a class="closebtn" onclick="enanium_toggle_sidebar_left(); return false;">&laquo;</a>
    67           {SIDEBAR_LEFT}
    67 					{SIDEBAR_LEFT}
    68         </div>
    68 				</div>
    69         <div class="left-sidebar-hidden" id="enanium_sidebar_left_hidden">
    69 				<div class="left-sidebar-hidden" id="enanium_sidebar_left_hidden">
    70           <a class="openbtn" onclick="enanium_toggle_sidebar_left(); return false;">&raquo;</a>
    70 					<a class="openbtn" onclick="enanium_toggle_sidebar_left(); return false;">&raquo;</a>
    71         </div>
    71 				</div>
    72         <!-- HOOK sidebar_left_post -->
    72 				<!-- HOOK sidebar_left_post -->
    73       </td>
    73 			</td>
    74       <td valign="top" id="cell-content">
    74 			<td valign="top" id="cell-content">
    75         <!-- BEGINNOT stupid_mode -->
    75 				<!-- BEGINNOT stupid_mode -->
    76         <div class="menu_nojs" style="float: right; margin-right: 10px;">
    76 				<div class="menu_nojs" style="float: right; margin-right: 10px;">
    77           <a href="#" onclick="return false;">{lang:onpage_lbl_changes}</a>
    77 					<a href="#" onclick="return false;">{lang:onpage_lbl_changes}</a>
    78           <ul class="jbox_right">
    78 					<ul class="jbox_right">
    79             <li><a href="{url:Special:Log/user={USERNAME}|escape}">{lang:onpage_btn_changes_mine}</a></li>
    79 						<li><a href="{url:Special:Log/user={USERNAME}|escape}">{lang:onpage_btn_changes_mine}</a></li>
    80             <li><a href="{url:Special:Log/within=1w|escape}">{lang:onpage_btn_changes_recent}</a></li>
    80 						<li><a href="{url:Special:Log/within=1w|escape}">{lang:onpage_btn_changes_recent}</a></li>
    81             <li><a href="{url:Special:Log/page={PAGE_URLNAME}|escape}">{lang:onpage_btn_changes_history}</a></li>
    81 						<li><a href="{url:Special:Log/page={PAGE_URLNAME}|escape}">{lang:onpage_btn_changes_history}</a></li>
    82           </ul>
    82 					</ul>
    83           <a href="#" onclick="return false;">{lang:onpage_lbl_sitetools}</a>
    83 					<a href="#" onclick="return false;">{lang:onpage_lbl_sitetools}</a>
    84           <ul class="jbox_right">
    84 					<ul class="jbox_right">
    85             <li><a href="{url:Special:CreatePage|escape}">{lang:sidebar_btn_createpage}</a></li>
    85 						<li><a href="{url:Special:CreatePage|escape}">{lang:sidebar_btn_createpage}</a></li>
    86             <li><a href="{url:Special:UploadFile|escape}">{lang:sidebar_btn_uploadfile}</a></li>
    86 						<li><a href="{url:Special:UploadFile|escape}">{lang:sidebar_btn_uploadfile}</a></li>
    87             <li><a href="{url:Special:SpecialPages|escape}">{lang:sidebar_btn_specialpages}</a></li>
    87 						<li><a href="{url:Special:SpecialPages|escape}">{lang:sidebar_btn_specialpages}</a></li>
    88             <!-- BEGIN user_logged_in -->
    88 						<!-- BEGIN user_logged_in -->
    89             <li><a href="{url:Special:Memberlist|escape}">{lang:specialpage_member_list}</a></li>
    89 						<li><a href="{url:Special:Memberlist|escape}">{lang:specialpage_member_list}</a></li>
    90             <!-- END user_logged_in -->
    90 						<!-- END user_logged_in -->
    91             <!-- BEGIN auth_admin -->
    91 						<!-- BEGIN auth_admin -->
    92             {SIDEBAR_LINK}
    92 						{SIDEBAR_LINK}
    93             {ADMIN_LINK}
    93 						{ADMIN_LINK}
    94             <!-- END auth_admin -->
    94 						<!-- END auth_admin -->
    95           </ul>
    95 					</ul>
    96           <span class="menuclear"></span>
    96 					<span class="menuclear"></span>
    97         </div>
    97 				</div>
    98         <!-- END stupid_mode -->
    98 				<!-- END stupid_mode -->
    99         <div class="menu_nojs" id="pagebar_main">
    99 				<div class="menu_nojs" id="pagebar_main">
   100           <div class="label">
   100 					<div class="label">
   101             <!-- BEGIN stupid_mode -->
   101 						<!-- BEGIN stupid_mode -->
   102             Page tools
   102 						Page tools
   103             <!-- BEGINELSE stupid_mode -->
   103 						<!-- BEGINELSE stupid_mode -->
   104             {lang:onpage_lbl_pagetools}
   104 						{lang:onpage_lbl_pagetools}
   105             <!-- END stupid_mode -->
   105 						<!-- END stupid_mode -->
   106           </div>
   106 					</div>
   107           {TOOLBAR}
   107 					{TOOLBAR}
   108           <ul>
   108 					<ul>
   109             {TOOLBAR_EXTRAS}
   109 						{TOOLBAR_EXTRAS}
   110           </ul>
   110 					</ul>
   111           <span class="menuclear"></span>
   111 					<span class="menuclear"></span>
   112         </div>
   112 				</div>
   113         <div id="content-wrapper" class="content">
   113 				<div id="content-wrapper" class="content">
   114           <table border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
   114 					<table border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
   115           <tr>
   115 					<tr>
   116           <td valign="top" style="width: 100%;">
   116 					<td valign="top" style="width: 100%;">
   117           <div style="float: right;">
   117 					<div style="float: right;">
   118             <img alt=" " src="{CDNPATH}/images/spacer.gif" id="ajaxloadicon" />
   118 						<img alt=" " src="{CDNPATH}/images/spacer.gif" id="ajaxloadicon" />
   119           </div>
   119 					</div>
   120           <h1 <!-- BEGIN auth_rename -->title="{lang:onpage_btn_rename_inline}" <!-- END auth_rename -->id="h2PageName">{PAGE_NAME}</h1>
   120 					<h1 <!-- BEGIN auth_rename -->title="{lang:onpage_btn_rename_inline}" <!-- END auth_rename -->id="h2PageName">{PAGE_NAME}</h1>
   121           <div id="ajaxEditContainer">
   121 					<div id="ajaxEditContainer">