themes/oxygen/header.tpl
changeset 1227 bdac73ed481e
parent 1196 704ba4b9819b
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     <link rel="stylesheet" type="text/css" href="{CDNPATH}/includes/clientside/css/enano-shared.css?{ENANO_VERSION}" />
     6 		<link rel="stylesheet" type="text/css" href="{CDNPATH}/includes/clientside/css/enano-shared.css?{ENANO_VERSION}" />
     7     <!-- BEGIN msie -->
     7 		<!-- BEGIN msie -->
     8     <link rel="stylesheet" type="text/css" href="{CDNPATH}/includes/clientside/css/enano-shared-ie.css?{ENANO_VERSION}" />
     8 		<link rel="stylesheet" type="text/css" href="{CDNPATH}/includes/clientside/css/enano-shared-ie.css?{ENANO_VERSION}" />
     9     <!-- END msie -->
     9 		<!-- END msie -->
    10     <link id="mdgCss" rel="stylesheet" href="{CDNPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css?{ENANO_VERSION}" type="text/css" />
    10 		<link id="mdgCss" rel="stylesheet" href="{CDNPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css?{ENANO_VERSION}" type="text/css" />
    11     {JS_DYNAMIC_VARS}
    11 		{JS_DYNAMIC_VARS}
    12     {JS_HEADER}
    12 		{JS_HEADER}
    13     
    13 		
    14     <script type="text/javascript">
    14 		<script type="text/javascript">
    15       var tinymce_skin = 'o2k7';
    15 			var tinymce_skin = 'o2k7';
    16     </script>
    16 		</script>
    17     
    17 		
    18     {ADDITIONAL_HEADERS}
    18 		{ADDITIONAL_HEADERS}
    19     
    19 		
    20     <script type="text/javascript">
    20 		<script type="text/javascript">
    21     // <![CDATA[
    21 		// <![CDATA[
    22     
    22 		
    23       function collapseSidebar(side)
    23 			function collapseSidebar(side)
    24       {
    24 			{
    25         elem = document.getElementById(side+'-sidebar');
    25 				elem = document.getElementById(side+'-sidebar');
    26         if(!elem) return;
    26 				if(!elem) return;
    27         counter = document.getElementById(side+'-sidebar-showbutton');
    27 				counter = document.getElementById(side+'-sidebar-showbutton');
    28         if(elem.style.display=='none')
    28 				if(elem.style.display=='none')
    29         {
    29 				{
    30           elem.style.display = 'block';
    30 					elem.style.display = 'block';
    31           counter.style.display = 'none';
    31 					counter.style.display = 'none';
    32           elem.parentNode.style.width = '';
    32 					elem.parentNode.style.width = '';
    33           if ( !KILL_SWITCH )
    33 					if ( !KILL_SWITCH )
    34           {
    34 					{
    35             createCookie(side+'_sidebar', 'open', 365);
    35 						createCookie(side+'_sidebar', 'open', 365);
    36           }
    36 					}
    37         } else {
    37 				} else {
    38           elem.style.display = 'none';
    38 					elem.style.display = 'none';
    39           counter.style.display = 'block';
    39 					counter.style.display = 'block';
    40           elem.parentNode.style.width = '25px';
    40 					elem.parentNode.style.width = '25px';
    41           if ( !KILL_SWITCH )
    41 					if ( !KILL_SWITCH )
    42           {
    42 					{
    43             createCookie(side+'_sidebar', 'collapsed', 365);
    43 						createCookie(side+'_sidebar', 'collapsed', 365);
    44           }
    44 					}
    45         }
    45 				}
    46       }
    46 			}
    47       
    47 			
    48       /*
    48 			/*
    49       window.onload = function() {
    49 			window.onload = function() {
    50         if(typeof readCookie == 'function')
    50 				if(typeof readCookie == 'function')
    51         {
    51 				{
    52           if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left');
    52 					if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left');
    53           if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right');
    53 					if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right');
    54         }
    54 				}
    55         if(typeof mdgInnerLoader == 'function')
    55 				if(typeof mdgInnerLoader == 'function')
    56           mdgInnerLoader();
    56 					mdgInnerLoader();
    57       }
    57 			}
    58       */
    58 			*/
    59       
    59 			
    60       if ( typeof(KILL_SWITCH) != 'undefined' )
    60 			if ( typeof(KILL_SWITCH) != 'undefined' )
    61       {
    61 			{
    62         if ( !KILL_SWITCH )
    62 				if ( !KILL_SWITCH )
    63         {
    63 				{
    64           var oxygenSidebarSetup = function() {
    64 					var oxygenSidebarSetup = function() {
    65               if(typeof readCookie == 'function')
    65 							if(typeof readCookie == 'function')
    66               {
    66 							{
    67                 if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left');
    67 								if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left');
    68                 if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right');
    68 								if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right');
    69               }
    69 							}
    70             };
    70 						};
    71           addOnloadHook(oxygenSidebarSetup);
    71 					addOnloadHook(oxygenSidebarSetup);
    72         }
    72 				}
    73       }
    73 			}
    74       
    74 			
    75       function ajaxRenameInline()
    75 			function ajaxRenameInline()
    76       {
    76 			{
    77         if ( KILL_SWITCH || IE )
    77 				if ( KILL_SWITCH || IE )
    78           return false;
    78 					return false;
    79         // This trick is _so_ vBulletin...
    79 				// This trick is _so_ vBulletin...
    80         elem = document.getElementById('h2PageName');
    80 				elem = document.getElementById('h2PageName');
    81         if(!elem) return;
    81 				if(!elem) return;
    82         elem.style.display = 'none';
    82 				elem.style.display = 'none';
    83         name = elem.firstChild.nodeValue;
    83 				name = elem.firstChild.nodeValue;
    84         textbox = document.createElement('input');
    84 				textbox = document.createElement('input');
    85         textbox.type = 'text';
    85 				textbox.type = 'text';
    86         textbox.value = name;
    86 				textbox.value = name;
    87         textbox.id = 'pageheading';
    87 				textbox.id = 'pageheading';
    88         textbox.size = name.length + 7;
    88 				textbox.size = name.length + 7;
    89         textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); };
    89 				textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); };
    90         textbox.oldname = name;
    90 				textbox.oldname = name;
    91         elem.parentNode.insertBefore(textbox, elem);
    91 				elem.parentNode.insertBefore(textbox, elem);
    92         document.onclick = ajaxRenameInlineCancel;
    92 				document.onclick = ajaxRenameInlineCancel;
    93         
    93 				
    94         load_component(['l10n', 'fadefilter', 'messagebox']);
    94 				load_component(['l10n', 'fadefilter', 'messagebox']);
    95         textbox.focus();
    95 				textbox.focus();
    96         textbox.select();
    96 				textbox.select();
    97       }
    97 			}
    98       function ajaxRenameInlineSave()
    98 			function ajaxRenameInlineSave()
    99       {
    99 			{
   100         elem1 = document.getElementById('h2PageName');
   100 				elem1 = document.getElementById('h2PageName');
   101         elem2 = document.getElementById('pageheading');
   101 				elem2 = document.getElementById('pageheading');
   102         if(!elem1 || !elem2) return;
   102 				if(!elem1 || !elem2) return;
   103         value = elem2.value;
   103 				value = elem2.value;
   104         elem2.parentNode.removeChild(elem2); // just destroy the thing
   104 				elem2.parentNode.removeChild(elem2); // just destroy the thing
   105         elem1.removeChild(elem1.firstChild);
   105 				elem1.removeChild(elem1.firstChild);
   106         elem1.appendChild(document.createTextNode(value));
   106 				elem1.appendChild(document.createTextNode(value));
   107         elem1.style.display = 'block';
   107 				elem1.style.display = 'block';
   108         if(!value || value=='' || value==elem2.oldname) return;
   108 				if(!value || value=='' || value==elem2.oldname) return;
   109         setAjaxLoading();
   109 				setAjaxLoading();
   110         ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+ajaxEscape(value), function() {
   110 				ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+ajaxEscape(value), function() {
   111           if ( ajax.readyState == 4 )
   111 					if ( ajax.readyState == 4 )
   112           {
   112 					{
   113             unsetAjaxLoading();
   113 						unsetAjaxLoading();
   114             var response = String(ajax.responseText);
   114 						var response = String(ajax.responseText);
   115             if ( !check_json_response(response) )
   115 						if ( !check_json_response(response) )
   116             {
   116 						{
   117               handle_invalid_json(response);
   117 							handle_invalid_json(response);
   118               return false;
   118 							return false;
   119             }
   119 						}
   120             response = parseJSON(response);
   120 						response = parseJSON(response);
   121             if ( response.success )
   121 						if ( response.success )
   122             {
   122 						{
   123               new MessageBox( MB_OK|MB_ICONINFORMATION, $lang.get('ajax_rename_success_title'), $lang.get('ajax_rename_success_body', { page_name_new: value }) );
   123 							new MessageBox( MB_OK|MB_ICONINFORMATION, $lang.get('ajax_rename_success_title'), $lang.get('ajax_rename_success_body', { page_name_new: value }) );
   124             }
   124 						}
   125             else
   125 						else
   126             {
   126 						{
   127               alert(response.error);
   127 							alert(response.error);
   128             }
   128 						}
   129           }
   129 					}
   130         });
   130 				});
   131       }
   131 			}
   132       function ajaxRenameInlineCancel(e)
   132 			function ajaxRenameInlineCancel(e)
   133       {
   133 			{
   134         if ( typeof(e) != 'object' && IE )
   134 				if ( typeof(e) != 'object' && IE )
   135           e = window.event;
   135 					e = window.event;
   136         elem1 = document.getElementById('h2PageName');
   136 				elem1 = document.getElementById('h2PageName');
   137         elem2 = document.getElementById('pageheading');
   137 				elem2 = document.getElementById('pageheading');
   138         if(!elem1 || !elem2) return;
   138 				if(!elem1 || !elem2) return;
   139         if ( typeof(e) == 'object' && e.target )
   139 				if ( typeof(e) == 'object' && e.target )
   140         {
   140 				{
   141           if(e.target == elem2)
   141 					if(e.target == elem2)
   142             return;
   142 						return;
   143         }
   143 				}
   144         //value = elem2.value;
   144 				//value = elem2.value;
   145         elem2.parentNode.removeChild(elem2); // just destroy the thing
   145 				elem2.parentNode.removeChild(elem2); // just destroy the thing
   146         //elem1.innerHTML = value;
   146 				//elem1.innerHTML = value;
   147         elem1.style.display = 'block';
   147 				elem1.style.display = 'block';
   148         document.onclick = null;
   148 				document.onclick = null;
   149       }
   149 			}
   150     // ]]>
   150 		// ]]>
   151     </script>
   151 		</script>
   152     
   152 		
   153   </head>
   153 	</head>
   154   <body>
   154 	<body>
   155     <table border="0" cellspacing="0" cellpadding="3" id="enano-master" width="100%">
   155 		<table border="0" cellspacing="0" cellpadding="3" id="enano-master" width="100%">
   156       <tr>
   156 			<tr>
   157       <!-- BEGIN sidebar_left -->
   157 			<!-- BEGIN sidebar_left -->
   158       <td class="mdgSidebarHolder" valign="top">
   158 			<td class="mdgSidebarHolder" valign="top">
   159         <div id="left-sidebar">
   159 				<div id="left-sidebar">
   160           {SIDEBAR_LEFT}
   160 					{SIDEBAR_LEFT}
   161         </div>
   161 				</div>
   162         <div id="left-sidebar-showbutton" style="display: none; position: fixed; top: 3px; left: 3px;">
   162 				<div id="left-sidebar-showbutton" style="display: none; position: fixed; top: 3px; left: 3px;">
   163           <input type="button" onclick="collapseSidebar('left');" value="&gt;&gt;" />
   163 					<input type="button" onclick="collapseSidebar('left');" value="&gt;&gt;" />
   164         </div>
   164 				</div>
   165       </td>
   165 			</td>
   166       <!-- END sidebar_left -->
   166 			<!-- END sidebar_left -->
   167       <td valign="top">
   167 			<td valign="top">
   168         <table border="0" width="100%" cellspacing="0" cellpadding="0">
   168 				<table border="0" width="100%" cellspacing="0" cellpadding="0">
   169       
   169 			
   170         <tr><td id="mdg-tl"></td><td id="mdg-top"></td><td id="mdg-tr"></td></tr>
   170 				<tr><td id="mdg-tl"></td><td id="mdg-top"></td><td id="mdg-tr"></td></tr>
   171                                                                                   
   171 																																									
   172         <tr><td id="mdg-l"></td><td>
   172 				<tr><td id="mdg-l"></td><td>
   173         <table border="0" width="100%" id="title" cellspacing="0" cellpadding="0">
   173 				<table border="0" width="100%" id="title" cellspacing="0" cellpadding="0">
   174             <tr>
   174 						<tr>
   175               <td id="mainhead">
   175 							<td id="mainhead">
   176                 <h2><a href="{SCRIPTPATH}/{ADMIN_SID_QUES}">{SITE_NAME}</a></h2>
   176 								<h2><a href="{SCRIPTPATH}/{ADMIN_SID_QUES}">{SITE_NAME}</a></h2>
   177                 <h4>{SITE_DESC}</h4>
   177 								<h4>{SITE_DESC}</h4>
   178               </td>
   178 							</td>
   179             </tr>            
   179 						</tr>            
   180           </table>
   180 					</table>
   181         </td><td id="mdg-r"></td></tr>
   181 				</td><td id="mdg-r"></td></tr>
   182         
   182 				
   183         <tr><td id="mdg-brl"></td><td style="background-color: #FFFFFF;"></td><td id="mdg-brr"></td></tr>
   183 				<tr><td id="mdg-brl"></td><td style="background-color: #FFFFFF;"></td><td id="mdg-brr"></td></tr>
   184         
   184 				
   185         <tr>
   185 				<tr>
   186           <td id="mdg-bl"></td>
   186 					<td id="mdg-bl"></td>
   187           <td class="menu_bg">
   187 					<td class="menu_bg">
   188           <div class="menu_nojs" id="pagebar_main">
   188 					<div class="menu_nojs" id="pagebar_main">
   189             <div class="label">
   189 						<div class="label">
   190               <!-- BEGIN stupid_mode -->
   190 							<!-- BEGIN stupid_mode -->
   191               Page tools
   191 							Page tools
   192               <!-- BEGINELSE stupid_mode -->
   192 							<!-- BEGINELSE stupid_mode -->
   193               {lang:onpage_lbl_pagetools}
   193 							{lang:onpage_lbl_pagetools}
   194               <!-- END stupid_mode -->
   194 							<!-- END stupid_mode -->
   195             </div>
   195 						</div>
   196             {TOOLBAR}
   196 						{TOOLBAR}
   197             <ul>
   197 						<ul>
   198               {TOOLBAR_EXTRAS}
   198 							{TOOLBAR_EXTRAS}
   199             </ul>
   199 						</ul>
   200             <span class="menuclear"></span>
   200 						<span class="menuclear"></span>
   201           </div>
   201 					</div>
   202         </td><td id="mdg-br"></td></tr>
   202 				</td><td id="mdg-br"></td></tr>
   203         <tr><td id="mdg-ml"></td><td style="background-color: #FFFFFF;">
   203 				<tr><td id="mdg-ml"></td><td style="background-color: #FFFFFF;">
   204           <div class="pad"><div class="contentDiv">
   204 					<div class="pad"><div class="contentDiv">
   205           <div style="float: right;">
   205 					<div style="float: right;">
   206             <img alt=" " src="{CDNPATH}/images/spacer.gif" id="ajaxloadicon" />
   206 						<img alt=" " src="{CDNPATH}/images/spacer.gif" id="ajaxloadicon" />
   207           </div>
   207 					</div>
   208           <h1 <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="{lang:onpage_btn_rename_inline}" <!-- END auth_rename --> id="h2PageName">{PAGE_NAME}</h1>
   208 					<h1 <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="{lang:onpage_btn_rename_inline}" <!-- END auth_rename --> id="h2PageName">{PAGE_NAME}</h1>
   209             <div id="ajaxEditContainer">
   209 						<div id="ajaxEditContainer">