author | Dan |
Sat, 14 Jun 2008 22:01:24 -0400 | |
changeset 570 | 4d0d5dae61e5 |
parent 568 | 3700f7124c2b |
child 594 | 738c61b498a6 |
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} |
|
335
67bd3121a12e
Replaced TinyMCE 2.x with 3.0 beta 3. Supports everything but IE. Also rewrote the editor interface completely from the ground up.
Dan
parents:
304
diff
changeset
|
9 |
|
568
3700f7124c2b
A bit of UX improvement to upgrade UI; updated readme for 1.1.4
Dan
parents:
565
diff
changeset
|
10 |
<!-- Only load a basic set of functions for now. Let the rest of the API load when the page is finished. --> |
3700f7124c2b
A bit of UX improvement to upgrade UI; updated readme for 1.1.4
Dan
parents:
565
diff
changeset
|
11 |
<script type="text/javascript" src="{SCRIPTPATH}/includes/clientside/jsres.php?early"></script> |
3700f7124c2b
A bit of UX improvement to upgrade UI; updated readme for 1.1.4
Dan
parents:
565
diff
changeset
|
12 |
|
335
67bd3121a12e
Replaced TinyMCE 2.x with 3.0 beta 3. Supports everything but IE. Also rewrote the editor interface completely from the ground up.
Dan
parents:
304
diff
changeset
|
13 |
<script type="text/javascript"> |
67bd3121a12e
Replaced TinyMCE 2.x with 3.0 beta 3. Supports everything but IE. Also rewrote the editor interface completely from the ground up.
Dan
parents:
304
diff
changeset
|
14 |
var tinymce_skin = 'o2k7'; |
67bd3121a12e
Replaced TinyMCE 2.x with 3.0 beta 3. Supports everything but IE. Also rewrote the editor interface completely from the ground up.
Dan
parents:
304
diff
changeset
|
15 |
</script> |
67bd3121a12e
Replaced TinyMCE 2.x with 3.0 beta 3. Supports everything but IE. Also rewrote the editor interface completely from the ground up.
Dan
parents:
304
diff
changeset
|
16 |
|
0 | 17 |
{ADDITIONAL_HEADERS} |
18 |
||
19 |
<script type="text/javascript"> |
|
71 | 20 |
// <![CDATA[ |
0 | 21 |
|
22 |
function collapseSidebar(side) |
|
23 |
{ |
|
24 |
elem = document.getElementById(side+'-sidebar'); |
|
25 |
if(!elem) return; |
|
26 |
counter = document.getElementById(side+'-sidebar-showbutton'); |
|
27 |
if(elem.style.display=='none') |
|
28 |
{ |
|
29 |
elem.style.display = 'block'; |
|
30 |
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
|
31 |
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
|
32 |
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
|
33 |
{ |
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 |
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
|
35 |
} |
0 | 36 |
} else { |
37 |
elem.style.display = 'none'; |
|
38 |
counter.style.display = 'block'; |
|
39 |
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
|
40 |
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
|
41 |
{ |
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
|
42 |
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
|
43 |
} |
0 | 44 |
} |
45 |
} |
|
46 |
||
47 |
/* |
|
48 |
window.onload = function() { |
|
49 |
if(typeof readCookie == 'function') |
|
50 |
{ |
|
51 |
if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left'); |
|
52 |
if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right'); |
|
53 |
} |
|
54 |
if(typeof mdgInnerLoader == 'function') |
|
55 |
mdgInnerLoader(); |
|
56 |
} |
|
57 |
*/ |
|
58 |
||
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
|
59 |
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
|
60 |
{ |
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 ( !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
|
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 |
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
|
64 |
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
|
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 |
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
|
67 |
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
|
68 |
} |
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
|
69 |
}; |
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
|
70 |
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
|
71 |
} |
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
|
72 |
} |
22
d0314575e2f0
More preliminary l10n work; userpage portal style basics implemented
Dan
parents:
0
diff
changeset
|
73 |
|
0 | 74 |
function ajaxRenameInline() |
75 |
{ |
|
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
|
76 |
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
|
77 |
return false; |
0 | 78 |
// This trick is _so_ vBulletin... |
79 |
elem = document.getElementById('h2PageName'); |
|
80 |
if(!elem) return; |
|
81 |
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
|
82 |
name = elem.firstChild.nodeValue; |
0 | 83 |
textbox = document.createElement('input'); |
84 |
textbox.type = 'text'; |
|
85 |
textbox.value = name; |
|
86 |
textbox.id = 'pageheading'; |
|
87 |
textbox.size = name.length + 7; |
|
88 |
textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); }; |
|
89 |
elem.parentNode.insertBefore(textbox, elem); |
|
90 |
document.onclick = ajaxRenameInlineCancel; |
|
91 |
} |
|
92 |
function ajaxRenameInlineSave() |
|
93 |
{ |
|
94 |
elem1 = document.getElementById('h2PageName'); |
|
95 |
elem2 = document.getElementById('pageheading'); |
|
96 |
if(!elem1 || !elem2) return; |
|
97 |
value = elem2.value; |
|
98 |
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
|
99 |
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
|
100 |
elem1.appendChild(document.createTextNode(value)); |
0 | 101 |
elem1.style.display = 'block'; |
102 |
if(!value || value=='') return; |
|
298
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
|
103 |
ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+ajaxEscape(value), function() { |
0 | 104 |
if(ajax.readyState == 4) { |
105 |
alert(ajax.responseText); |
|
106 |
} |
|
107 |
}); |
|
108 |
} |
|
109 |
function ajaxRenameInlineCancel(e) |
|
110 |
{ |
|
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
|
111 |
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
|
112 |
e = window.event; |
0 | 113 |
elem1 = document.getElementById('h2PageName'); |
114 |
elem2 = document.getElementById('pageheading'); |
|
115 |
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
|
116 |
if ( typeof(e) == 'object' && e.target ) |
0 | 117 |
{ |
118 |
if(e.target == elem2) |
|
119 |
return; |
|
120 |
} |
|
121 |
//value = elem2.value; |
|
122 |
elem2.parentNode.removeChild(elem2); // just destroy the thing |
|
123 |
//elem1.innerHTML = value; |
|
124 |
elem1.style.display = 'block'; |
|
125 |
document.onclick = null; |
|
126 |
} |
|
71 | 127 |
// ]]> |
0 | 128 |
</script> |
129 |
||
130 |
</head> |
|
131 |
<body> |
|
132 |
<table border="0" cellspacing="0" cellpadding="3" id="enano-master" width="100%"> |
|
133 |
<tr> |
|
134 |
<!-- BEGIN sidebar_left --> |
|
135 |
<td class="mdgSidebarHolder" valign="top"> |
|
136 |
<div id="left-sidebar"> |
|
137 |
{SIDEBAR_LEFT} |
|
138 |
</div> |
|
139 |
<div id="left-sidebar-showbutton" style="display: none; position: fixed; top: 3px; left: 3px;"> |
|
140 |
<input type="button" onclick="collapseSidebar('left');" value=">>" /> |
|
141 |
</div> |
|
142 |
</td> |
|
143 |
<!-- END sidebar_left --> |
|
144 |
<td valign="top"> |
|
145 |
<table border="0" width="100%" cellspacing="0" cellpadding="0"> |
|
146 |
||
147 |
<tr><td id="mdg-tl"></td><td id="mdg-top"></td><td id="mdg-tr"></td></tr> |
|
148 |
||
149 |
<tr><td id="mdg-l"></td><td> |
|
150 |
<table border="0" width="100%" id="title" cellspacing="0" cellpadding="0"> |
|
151 |
<tr> |
|
152 |
<td id="mainhead"><h2><a href="{SCRIPTPATH}/{ADMIN_SID_QUES}">{SITE_NAME}</a></h2><h4>{SITE_DESC}</h4></td> |
|
153 |
</tr> |
|
154 |
</table> |
|
155 |
</td><td id="mdg-r"></td></tr> |
|
156 |
||
157 |
<tr><td id="mdg-brl"></td><td style="background-color: #FFFFFF;"></td><td id="mdg-brr"></td></tr> |
|
158 |
||
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
|
159 |
<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
|
160 |
<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
|
161 |
<td class="menu_bg"> |
0 | 162 |
<div class="menu_nojs" id="pagebar_main"> |
377
bb3e6c3bd4f4
Removed stray debugging info from ACL editor success notification; added ability for guests to set language on URI (?lang=eng); added html_in_pages ACL type and separated from php_in_pages so HTML can be embedded but not PHP; rewote portions of the path manager to better abstract URL input; added Zend Framework into list of BSD-licensed libraries; localized some remaining strings; got the migration script working, but just barely; fixed display bug in Special:Contributions; localized Main Page button in admin panel
Dan
parents:
335
diff
changeset
|
163 |
<div class="label"> |
bb3e6c3bd4f4
Removed stray debugging info from ACL editor success notification; added ability for guests to set language on URI (?lang=eng); added html_in_pages ACL type and separated from php_in_pages so HTML can be embedded but not PHP; rewote portions of the path manager to better abstract URL input; added Zend Framework into list of BSD-licensed libraries; localized some remaining strings; got the migration script working, but just barely; fixed display bug in Special:Contributions; localized Main Page button in admin panel
Dan
parents:
335
diff
changeset
|
164 |
<!-- BEGIN stupid_mode --> |
bb3e6c3bd4f4
Removed stray debugging info from ACL editor success notification; added ability for guests to set language on URI (?lang=eng); added html_in_pages ACL type and separated from php_in_pages so HTML can be embedded but not PHP; rewote portions of the path manager to better abstract URL input; added Zend Framework into list of BSD-licensed libraries; localized some remaining strings; got the migration script working, but just barely; fixed display bug in Special:Contributions; localized Main Page button in admin panel
Dan
parents:
335
diff
changeset
|
165 |
Page tools |
bb3e6c3bd4f4
Removed stray debugging info from ACL editor success notification; added ability for guests to set language on URI (?lang=eng); added html_in_pages ACL type and separated from php_in_pages so HTML can be embedded but not PHP; rewote portions of the path manager to better abstract URL input; added Zend Framework into list of BSD-licensed libraries; localized some remaining strings; got the migration script working, but just barely; fixed display bug in Special:Contributions; localized Main Page button in admin panel
Dan
parents:
335
diff
changeset
|
166 |
<!-- BEGINELSE stupid_mode --> |
bb3e6c3bd4f4
Removed stray debugging info from ACL editor success notification; added ability for guests to set language on URI (?lang=eng); added html_in_pages ACL type and separated from php_in_pages so HTML can be embedded but not PHP; rewote portions of the path manager to better abstract URL input; added Zend Framework into list of BSD-licensed libraries; localized some remaining strings; got the migration script working, but just barely; fixed display bug in Special:Contributions; localized Main Page button in admin panel
Dan
parents:
335
diff
changeset
|
167 |
{lang:onpage_lbl_pagetools} |
bb3e6c3bd4f4
Removed stray debugging info from ACL editor success notification; added ability for guests to set language on URI (?lang=eng); added html_in_pages ACL type and separated from php_in_pages so HTML can be embedded but not PHP; rewote portions of the path manager to better abstract URL input; added Zend Framework into list of BSD-licensed libraries; localized some remaining strings; got the migration script working, but just barely; fixed display bug in Special:Contributions; localized Main Page button in admin panel
Dan
parents:
335
diff
changeset
|
168 |
<!-- END stupid_mode --> |
bb3e6c3bd4f4
Removed stray debugging info from ACL editor success notification; added ability for guests to set language on URI (?lang=eng); added html_in_pages ACL type and separated from php_in_pages so HTML can be embedded but not PHP; rewote portions of the path manager to better abstract URL input; added Zend Framework into list of BSD-licensed libraries; localized some remaining strings; got the migration script working, but just barely; fixed display bug in Special:Contributions; localized Main Page button in admin panel
Dan
parents:
335
diff
changeset
|
169 |
</div> |
0 | 170 |
{TOOLBAR} |
171 |
<ul> |
|
172 |
{TOOLBAR_EXTRAS} |
|
173 |
</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
|
174 |
<span class="menuclear"></span> |
0 | 175 |
</div> |
176 |
</td><td id="mdg-br"></td></tr> |
|
177 |
<tr><td id="mdg-ml"></td><td style="background-color: #FFFFFF;"> |
|
178 |
<div class="pad"><div class="contentDiv"> |
|
179 |
<div style="float: right;"> |
|
71 | 180 |
<img alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" /> |
0 | 181 |
</div> |
182 |
<h2 <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename --> id="h2PageName">{PAGE_NAME}</h2> |
|
183 |
<div id="ajaxEditContainer"> |