themes/stpatty/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     {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 rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css-extra/structure.css?{ENANO_VERSION}" />
     8 		<link rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css-extra/structure.css?{ENANO_VERSION}" />
     9     <link id="mdgCss" rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css?{ENANO_VERSION}" />
     9 		<link id="mdgCss" rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css?{ENANO_VERSION}" />
    10     {JS_HEADER}
    10 		{JS_HEADER}
    11     <!--[if lt IE 7]>
    11 		<!--[if lt IE 7]>
    12     <link rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css-extra/ie-fixes-{STYLE_ID}.css" />
    12 		<link rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css-extra/ie-fixes-{STYLE_ID}.css" />
    13     <![endif]-->
    13 		<![endif]-->
    14     <script type="text/javascript">
    14 		<script type="text/javascript">
    15     // <![CDATA[
    15 		// <![CDATA[
    16     
    16 		
    17       // Disable transition effects for the ACL editor
    17 			// Disable transition effects for the ACL editor
    18       // (they're real slow in this theme, at least in fx/opera/IE)
    18 			// (they're real slow in this theme, at least in fx/opera/IE)
    19       var aclDisableTransitionFX = true;
    19 			var aclDisableTransitionFX = true;
    20     
    20 		
    21       function ajaxRenameInline()
    21 			function ajaxRenameInline()
    22       {
    22 			{
    23         // This trick is _so_ vBulletin...
    23 				// This trick is _so_ vBulletin...
    24         elem = document.getElementById('pagetitle');
    24 				elem = document.getElementById('pagetitle');
    25         if(!elem) return;
    25 				if(!elem) return;
    26         elem.style.display = 'none';
    26 				elem.style.display = 'none';
    27         name = elem.firstChild.nodeValue;
    27 				name = elem.firstChild.nodeValue;
    28         textbox = document.createElement('input');
    28 				textbox = document.createElement('input');
    29         textbox.type = 'text';
    29 				textbox.type = 'text';
    30         textbox.value = name;
    30 				textbox.value = name;
    31         textbox.id = 'pageheading';
    31 				textbox.id = 'pageheading';
    32         textbox.size = name.length + 7;
    32 				textbox.size = name.length + 7;
    33         textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); };
    33 				textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); };
    34         elem.parentNode.insertBefore(textbox, elem);
    34 				elem.parentNode.insertBefore(textbox, elem);
    35         document.onclick = ajaxRenameInlineCancel;
    35 				document.onclick = ajaxRenameInlineCancel;
    36       }
    36 			}
    37       function ajaxRenameInlineSave()
    37 			function ajaxRenameInlineSave()
    38       {
    38 			{
    39         elem1 = document.getElementById('pagetitle');
    39 				elem1 = document.getElementById('pagetitle');
    40         elem2 = document.getElementById('pageheading');
    40 				elem2 = document.getElementById('pageheading');
    41         if(!elem1 || !elem2) return;
    41 				if(!elem1 || !elem2) return;
    42         value = elem2.value;
    42 				value = elem2.value;
    43         elem2.parentNode.removeChild(elem2); // just destroy the thing
    43 				elem2.parentNode.removeChild(elem2); // just destroy the thing
    44         elem1.removeChild(elem1.firstChild);
    44 				elem1.removeChild(elem1.firstChild);
    45         elem1.appendChild(document.createTextNode(value));
    45 				elem1.appendChild(document.createTextNode(value));
    46         elem1.style.display = 'block';
    46 				elem1.style.display = 'block';
    47         if(!value || value=='') return;
    47 				if(!value || value=='') return;
    48         ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+ajaxEscape(value), function() {
    48 				ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+ajaxEscape(value), function() {
    49           if(ajax.readyState == 4) {
    49 					if(ajax.readyState == 4) {
    50             alert(ajax.responseText);
    50 						alert(ajax.responseText);
    51           }
    51 					}
    52         });
    52 				});
    53       }
    53 			}
    54       function ajaxRenameInlineCancel(e)
    54 			function ajaxRenameInlineCancel(e)
    55       {
    55 			{
    56         if ( !e )
    56 				if ( !e )
    57           e = window.event;
    57 					e = window.event;
    58         elem1 = document.getElementById('pagetitle');
    58 				elem1 = document.getElementById('pagetitle');
    59         elem2 = document.getElementById('pageheading');
    59 				elem2 = document.getElementById('pageheading');
    60         if(!elem1 || !elem2) return;
    60 				if(!elem1 || !elem2) return;
    61         if ( e && e.target )
    61 				if ( e && e.target )
    62         {
    62 				{
    63           if(e.target == elem2)
    63 					if(e.target == elem2)
    64             return;
    64 						return;
    65         }
    65 				}
    66         //value = elem2.value;
    66 				//value = elem2.value;
    67         elem2.parentNode.removeChild(elem2); // just destroy the thing
    67 				elem2.parentNode.removeChild(elem2); // just destroy the thing
    68         //elem1.innerHTML = value;
    68 				//elem1.innerHTML = value;
    69         elem1.style.display = 'block';
    69 				elem1.style.display = 'block';
    70         document.onclick = null;
    70 				document.onclick = null;
    71       }
    71 			}
    72       // ]]>
    72 			// ]]>
    73     </script>
    73 		</script>
    74     {ADDITIONAL_HEADERS}
    74 		{ADDITIONAL_HEADERS}
    75   </head>
    75 	</head>
    76   <body>
    76 	<body>
    77     <div id="bg">
    77 		<div id="bg">
    78       <div id="rap">
    78 			<div id="rap">
    79         <div id="title">
    79 				<div id="title">
    80           <h1>{SITE_NAME}</h1>
    80 					<h1>{SITE_NAME}</h1>
    81           <h2>{SITE_DESC}</h2>
    81 					<h2>{SITE_DESC}</h2>
    82         </div>
    82 				</div>
    83         <div class="menu_nojs" id="pagebar_main">
    83 				<div class="menu_nojs" id="pagebar_main">
    84           <div class="label">{lang:onpage_lbl_pagetools}</div>
    84 					<div class="label">{lang:onpage_lbl_pagetools}</div>
    85           {TOOLBAR}
    85 					{TOOLBAR}
    86           <ul>
    86 					<ul>
    87             {TOOLBAR_EXTRAS}
    87 						{TOOLBAR_EXTRAS}
    88           </ul>
    88 					</ul>
    89           <span class="menuclear">&nbsp;</span>
    89 					<span class="menuclear">&nbsp;</span>
    90         </div>
    90 				</div>
    91         <div id="sidebar">
    91 				<div id="sidebar">
    92           <!-- BEGIN sidebar_left -->
    92 					<!-- BEGIN sidebar_left -->
    93           {SIDEBAR_LEFT}
    93 					{SIDEBAR_LEFT}
    94           <!-- END sidebar_left -->
    94 					<!-- END sidebar_left -->
    95           <!-- BEGIN sidebar_right -->
    95 					<!-- BEGIN sidebar_right -->
    96           <!-- BEGINNOT in_admin -->
    96 					<!-- BEGINNOT in_admin -->
    97           {SIDEBAR_RIGHT}
    97 					{SIDEBAR_RIGHT}
    98           <!-- END in_admin -->
    98 					<!-- END in_admin -->
    99           <!-- END sidebar_right -->
    99 					<!-- END sidebar_right -->
   100         </div>
   100 				</div>
   101         <div id="maincontent">
   101 				<div id="maincontent">
   102           <div style="float: right;">
   102 					<div style="float: right;">
   103             <img alt=" " src="{CDNPATH}/images/spacer.gif" id="ajaxloadicon" />
   103 						<img alt=" " src="{CDNPATH}/images/spacer.gif" id="ajaxloadicon" />
   104           </div>
   104 					</div>
   105           <h2 id="pagetitle" <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename -->>{PAGE_NAME}</h2>
   105 					<h2 id="pagetitle" <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename -->>{PAGE_NAME}</h2>
   106           <div id="ajaxEditContainer">
   106 					<div id="ajaxEditContainer">
   107             
   107