author | Dan |
Wed, 12 Dec 2007 21:04:20 -0500 | |
changeset 255 | c74736571f43 |
parent 241 | 39c132e69781 |
permissions | -rw-r--r-- |
0 | 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
81
d7fc25acd3f3
Replaced the menu in the admin theme with something much more visually pleasureable; minor fix in Special:UploadFile; finished patching a couple of XSS problems from Banshee; finished Admin:PageGroups; removed unneeded code in flyin.js; finished tag system (except tag cloud); 1.0.1 release candidate
Dan
parents:
80
diff
changeset
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
0 | 3 |
<head> |
4 |
<title>{PAGE_NAME} • {SITE_NAME}</title> |
|
5 |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
|
6 |
<link rel="stylesheet" type="text/css" href="{SCRIPTPATH}/includes/clientside/css/enano-shared.css" /> |
|
7 |
<link id="mdgCss" rel="stylesheet" href="{SCRIPTPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css" type="text/css" /> |
|
8 |
{JS_DYNAMIC_VARS} |
|
9 |
<!-- This script automatically loads the other 15 JS files --> |
|
10 |
<script type="text/javascript" src="{SCRIPTPATH}/includes/clientside/static/enano-lib-basic.js"></script> |
|
11 |
{ADDITIONAL_HEADERS} |
|
12 |
||
13 |
<script type="text/javascript"> |
|
71 | 14 |
// <![CDATA[ |
0 | 15 |
|
16 |
function collapseSidebar(side) |
|
17 |
{ |
|
18 |
elem = document.getElementById(side+'-sidebar'); |
|
19 |
if(!elem) return; |
|
20 |
counter = document.getElementById(side+'-sidebar-showbutton'); |
|
21 |
if(elem.style.display=='none') |
|
22 |
{ |
|
23 |
elem.style.display = 'block'; |
|
24 |
counter.style.display = 'none'; |
|
74
68469a95658d
Various bugfixes and cleanups, too much to remember... see the diffs for what got changed :-)
Dan
parents:
71
diff
changeset
|
25 |
elem.parentNode.style.width = ''; |
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
26 |
if ( !KILL_SWITCH ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
27 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
28 |
createCookie(side+'_sidebar', 'open', 365); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
29 |
} |
0 | 30 |
} else { |
31 |
elem.style.display = 'none'; |
|
32 |
counter.style.display = 'block'; |
|
33 |
elem.parentNode.style.width = '25px'; |
|
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
34 |
if ( !KILL_SWITCH ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
35 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
36 |
createCookie(side+'_sidebar', 'collapsed', 365); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
37 |
} |
0 | 38 |
} |
39 |
} |
|
40 |
||
41 |
/* |
|
42 |
window.onload = function() { |
|
43 |
if(typeof readCookie == 'function') |
|
44 |
{ |
|
45 |
if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left'); |
|
46 |
if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right'); |
|
47 |
} |
|
48 |
if(typeof mdgInnerLoader == 'function') |
|
49 |
mdgInnerLoader(); |
|
50 |
} |
|
51 |
*/ |
|
52 |
||
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
53 |
if ( typeof(KILL_SWITCH) != 'undefined' ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
54 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
55 |
if ( !KILL_SWITCH ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
56 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
57 |
var oxygenSidebarSetup = function() { |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
58 |
if(typeof readCookie == 'function') |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
59 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
60 |
if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left'); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
61 |
if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right'); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
62 |
} |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
63 |
}; |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
64 |
addOnloadHook(oxygenSidebarSetup); |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
65 |
} |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
66 |
} |
22
d0314575e2f0
More preliminary l10n work; userpage portal style basics implemented
Dan
parents:
0
diff
changeset
|
67 |
|
0 | 68 |
function ajaxRenameInline() |
69 |
{ |
|
80
cb7dde69c301
Improved and enabled HTML optimization algorithm; enabled gzip compression; added but did not test at all the tag cloud class in includes/tagcloud.php, this is still very preliminary and not ready for any type of production use
Dan
parents:
74
diff
changeset
|
70 |
if ( KILL_SWITCH || IE ) |
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
32
diff
changeset
|
71 |
return false; |
0 | 72 |
// This trick is _so_ vBulletin... |
73 |
elem = document.getElementById('h2PageName'); |
|
74 |
if(!elem) return; |
|
75 |
elem.style.display = 'none'; |
|
81
d7fc25acd3f3
Replaced the menu in the admin theme with something much more visually pleasureable; minor fix in Special:UploadFile; finished patching a couple of XSS problems from Banshee; finished Admin:PageGroups; removed unneeded code in flyin.js; finished tag system (except tag cloud); 1.0.1 release candidate
Dan
parents:
80
diff
changeset
|
76 |
name = elem.firstChild.nodeValue; |
0 | 77 |
textbox = document.createElement('input'); |
78 |
textbox.type = 'text'; |
|
79 |
textbox.value = name; |
|
80 |
textbox.id = 'pageheading'; |
|
81 |
textbox.size = name.length + 7; |
|
82 |
textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); }; |
|
83 |
elem.parentNode.insertBefore(textbox, elem); |
|
84 |
document.onclick = ajaxRenameInlineCancel; |
|
85 |
} |
|
86 |
function ajaxRenameInlineSave() |
|
87 |
{ |
|
88 |
elem1 = document.getElementById('h2PageName'); |
|
89 |
elem2 = document.getElementById('pageheading'); |
|
90 |
if(!elem1 || !elem2) return; |
|
91 |
value = elem2.value; |
|
92 |
elem2.parentNode.removeChild(elem2); // just destroy the thing |
|
81
d7fc25acd3f3
Replaced the menu in the admin theme with something much more visually pleasureable; minor fix in Special:UploadFile; finished patching a couple of XSS problems from Banshee; finished Admin:PageGroups; removed unneeded code in flyin.js; finished tag system (except tag cloud); 1.0.1 release candidate
Dan
parents:
80
diff
changeset
|
93 |
elem1.removeChild(elem1.firstChild); |
d7fc25acd3f3
Replaced the menu in the admin theme with something much more visually pleasureable; minor fix in Special:UploadFile; finished patching a couple of XSS problems from Banshee; finished Admin:PageGroups; removed unneeded code in flyin.js; finished tag system (except tag cloud); 1.0.1 release candidate
Dan
parents:
80
diff
changeset
|
94 |
elem1.appendChild(document.createTextNode(value)); |
0 | 95 |
elem1.style.display = 'block'; |
96 |
if(!value || value=='') return; |
|
241
39c132e69781
Hopefully now all calls to escape() are replaced with ajaxEscape() in response to Tomasz's forum post; remove deprecated version of show_category_info() from functions.php
Dan
parents:
81
diff
changeset
|
97 |
ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+ajaxEscape(value), function() { |
0 | 98 |
if(ajax.readyState == 4) { |
99 |
alert(ajax.responseText); |
|
100 |
} |
|
101 |
}); |
|
102 |
} |
|
103 |
function ajaxRenameInlineCancel(e) |
|
104 |
{ |
|
80
cb7dde69c301
Improved and enabled HTML optimization algorithm; enabled gzip compression; added but did not test at all the tag cloud class in includes/tagcloud.php, this is still very preliminary and not ready for any type of production use
Dan
parents:
74
diff
changeset
|
105 |
if ( typeof(e) != 'object' && IE ) |
cb7dde69c301
Improved and enabled HTML optimization algorithm; enabled gzip compression; added but did not test at all the tag cloud class in includes/tagcloud.php, this is still very preliminary and not ready for any type of production use
Dan
parents:
74
diff
changeset
|
106 |
e = window.event; |
0 | 107 |
elem1 = document.getElementById('h2PageName'); |
108 |
elem2 = document.getElementById('pageheading'); |
|
109 |
if(!elem1 || !elem2) return; |
|
80
cb7dde69c301
Improved and enabled HTML optimization algorithm; enabled gzip compression; added but did not test at all the tag cloud class in includes/tagcloud.php, this is still very preliminary and not ready for any type of production use
Dan
parents:
74
diff
changeset
|
110 |
if ( typeof(e) == 'object' && e.target ) |
0 | 111 |
{ |
112 |
if(e.target == elem2) |
|
113 |
return; |
|
114 |
} |
|
115 |
//value = elem2.value; |
|
116 |
elem2.parentNode.removeChild(elem2); // just destroy the thing |
|
117 |
//elem1.innerHTML = value; |
|
118 |
elem1.style.display = 'block'; |
|
119 |
document.onclick = null; |
|
120 |
} |
|
71 | 121 |
// ]]> |
0 | 122 |
</script> |
123 |
||
124 |
</head> |
|
125 |
<body> |
|
126 |
<table border="0" cellspacing="0" cellpadding="3" id="enano-master" width="100%"> |
|
127 |
<tr> |
|
128 |
<!-- BEGIN sidebar_left --> |
|
129 |
<td class="mdgSidebarHolder" valign="top"> |
|
130 |
<div id="left-sidebar"> |
|
131 |
{SIDEBAR_LEFT} |
|
132 |
</div> |
|
133 |
<div id="left-sidebar-showbutton" style="display: none; position: fixed; top: 3px; left: 3px;"> |
|
134 |
<input type="button" onclick="collapseSidebar('left');" value=">>" /> |
|
135 |
</div> |
|
136 |
</td> |
|
137 |
<!-- END sidebar_left --> |
|
138 |
<td valign="top"> |
|
139 |
<table border="0" width="100%" cellspacing="0" cellpadding="0"> |
|
140 |
||
141 |
<tr><td id="mdg-tl"></td><td id="mdg-top"></td><td id="mdg-tr"></td></tr> |
|
142 |
||
143 |
<tr><td id="mdg-l"></td><td> |
|
144 |
<table border="0" width="100%" id="title" cellspacing="0" cellpadding="0"> |
|
145 |
<tr> |
|
146 |
<td id="mainhead"><h2><a href="{SCRIPTPATH}/{ADMIN_SID_QUES}">{SITE_NAME}</a></h2><h4>{SITE_DESC}</h4></td> |
|
147 |
</tr> |
|
148 |
</table> |
|
149 |
</td><td id="mdg-r"></td></tr> |
|
150 |
||
151 |
<tr><td id="mdg-brl"></td><td style="background-color: #FFFFFF;"></td><td id="mdg-brr"></td></tr> |
|
152 |
||
32
4d87aad3c4c0
Finished everything on the TODO list (yay!); several CSS cleanups; tons more changes in this commit - see the patch for details
Dan
parents:
22
diff
changeset
|
153 |
<tr> |
4d87aad3c4c0
Finished everything on the TODO list (yay!); several CSS cleanups; tons more changes in this commit - see the patch for details
Dan
parents:
22
diff
changeset
|
154 |
<td id="mdg-bl"></td> |
4d87aad3c4c0
Finished everything on the TODO list (yay!); several CSS cleanups; tons more changes in this commit - see the patch for details
Dan
parents:
22
diff
changeset
|
155 |
<td class="menu_bg"> |
0 | 156 |
<div class="menu_nojs" id="pagebar_main"> |
157 |
<div class="label">Page tools</div> |
|
158 |
{TOOLBAR} |
|
159 |
<ul> |
|
160 |
{TOOLBAR_EXTRAS} |
|
161 |
</ul> |
|
32
4d87aad3c4c0
Finished everything on the TODO list (yay!); several CSS cleanups; tons more changes in this commit - see the patch for details
Dan
parents:
22
diff
changeset
|
162 |
<span class="menuclear"></span> |
0 | 163 |
</div> |
164 |
</td><td id="mdg-br"></td></tr> |
|
165 |
<tr><td id="mdg-ml"></td><td style="background-color: #FFFFFF;"> |
|
166 |
<div class="pad"><div class="contentDiv"> |
|
167 |
<div style="float: right;"> |
|
71 | 168 |
<img alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" /> |
0 | 169 |
</div> |
170 |
<h2 <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename --> id="h2PageName">{PAGE_NAME}</h2> |
|
171 |
<div id="ajaxEditContainer"> |