author | Dan |
Mon, 11 Feb 2008 14:33:49 -0500 | |
changeset 412 | 4746dd07cc48 |
parent 377 | bb3e6c3bd4f4 |
child 420 | 301f546688d1 |
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 |
|
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
|
10 |
<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
|
11 |
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
|
12 |
</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
|
13 |
|
0 | 14 |
<!-- This script automatically loads the other 15 JS files --> |
15 |
<script type="text/javascript" src="{SCRIPTPATH}/includes/clientside/static/enano-lib-basic.js"></script> |
|
16 |
{ADDITIONAL_HEADERS} |
|
17 |
||
18 |
<script type="text/javascript"> |
|
71 | 19 |
// <![CDATA[ |
0 | 20 |
|
21 |
function collapseSidebar(side) |
|
22 |
{ |
|
23 |
elem = document.getElementById(side+'-sidebar'); |
|
24 |
if(!elem) return; |
|
25 |
counter = document.getElementById(side+'-sidebar-showbutton'); |
|
26 |
if(elem.style.display=='none') |
|
27 |
{ |
|
28 |
elem.style.display = 'block'; |
|
29 |
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
|
30 |
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
|
31 |
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
|
32 |
{ |
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 |
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
|
34 |
} |
0 | 35 |
} else { |
36 |
elem.style.display = 'none'; |
|
37 |
counter.style.display = 'block'; |
|
38 |
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
|
39 |
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
|
40 |
{ |
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 |
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
|
42 |
} |
0 | 43 |
} |
44 |
} |
|
45 |
||
46 |
/* |
|
47 |
window.onload = function() { |
|
48 |
if(typeof readCookie == 'function') |
|
49 |
{ |
|
50 |
if(readCookie('left_sidebar') =='collapsed') collapseSidebar('left'); |
|
51 |
if(readCookie('right_sidebar')=='collapsed') collapseSidebar('right'); |
|
52 |
} |
|
53 |
if(typeof mdgInnerLoader == 'function') |
|
54 |
mdgInnerLoader(); |
|
55 |
} |
|
56 |
*/ |
|
57 |
||
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
|
58 |
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
|
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 ( !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
|
61 |
{ |
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 |
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
|
63 |
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
|
64 |
{ |
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 |
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
|
66 |
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
|
67 |
} |
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 |
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
|
70 |
} |
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 |
} |
22
d0314575e2f0
More preliminary l10n work; userpage portal style basics implemented
Dan
parents:
0
diff
changeset
|
72 |
|
0 | 73 |
function ajaxRenameInline() |
74 |
{ |
|
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
|
75 |
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
|
76 |
return false; |
0 | 77 |
// This trick is _so_ vBulletin... |
78 |
elem = document.getElementById('h2PageName'); |
|
79 |
if(!elem) return; |
|
80 |
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
|
81 |
name = elem.firstChild.nodeValue; |
0 | 82 |
textbox = document.createElement('input'); |
83 |
textbox.type = 'text'; |
|
84 |
textbox.value = name; |
|
85 |
textbox.id = 'pageheading'; |
|
86 |
textbox.size = name.length + 7; |
|
87 |
textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); }; |
|
88 |
elem.parentNode.insertBefore(textbox, elem); |
|
89 |
document.onclick = ajaxRenameInlineCancel; |
|
90 |
} |
|
91 |
function ajaxRenameInlineSave() |
|
92 |
{ |
|
93 |
elem1 = document.getElementById('h2PageName'); |
|
94 |
elem2 = document.getElementById('pageheading'); |
|
95 |
if(!elem1 || !elem2) return; |
|
96 |
value = elem2.value; |
|
97 |
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
|
98 |
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
|
99 |
elem1.appendChild(document.createTextNode(value)); |
0 | 100 |
elem1.style.display = 'block'; |
101 |
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
|
102 |
ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+ajaxEscape(value), function() { |
0 | 103 |
if(ajax.readyState == 4) { |
104 |
alert(ajax.responseText); |
|
105 |
} |
|
106 |
}); |
|
107 |
} |
|
108 |
function ajaxRenameInlineCancel(e) |
|
109 |
{ |
|
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' && 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
|
111 |
e = window.event; |
0 | 112 |
elem1 = document.getElementById('h2PageName'); |
113 |
elem2 = document.getElementById('pageheading'); |
|
114 |
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
|
115 |
if ( typeof(e) == 'object' && e.target ) |
0 | 116 |
{ |
117 |
if(e.target == elem2) |
|
118 |
return; |
|
119 |
} |
|
120 |
//value = elem2.value; |
|
121 |
elem2.parentNode.removeChild(elem2); // just destroy the thing |
|
122 |
//elem1.innerHTML = value; |
|
123 |
elem1.style.display = 'block'; |
|
124 |
document.onclick = null; |
|
125 |
} |
|
71 | 126 |
// ]]> |
0 | 127 |
</script> |
128 |
||
129 |
</head> |
|
130 |
<body> |
|
131 |
<table border="0" cellspacing="0" cellpadding="3" id="enano-master" width="100%"> |
|
132 |
<tr> |
|
133 |
<!-- BEGIN sidebar_left --> |
|
134 |
<td class="mdgSidebarHolder" valign="top"> |
|
135 |
<div id="left-sidebar"> |
|
136 |
{SIDEBAR_LEFT} |
|
137 |
</div> |
|
138 |
<div id="left-sidebar-showbutton" style="display: none; position: fixed; top: 3px; left: 3px;"> |
|
139 |
<input type="button" onclick="collapseSidebar('left');" value=">>" /> |
|
140 |
</div> |
|
141 |
</td> |
|
142 |
<!-- END sidebar_left --> |
|
143 |
<td valign="top"> |
|
144 |
<table border="0" width="100%" cellspacing="0" cellpadding="0"> |
|
145 |
||
146 |
<tr><td id="mdg-tl"></td><td id="mdg-top"></td><td id="mdg-tr"></td></tr> |
|
147 |
||
148 |
<tr><td id="mdg-l"></td><td> |
|
149 |
<table border="0" width="100%" id="title" cellspacing="0" cellpadding="0"> |
|
150 |
<tr> |
|
151 |
<td id="mainhead"><h2><a href="{SCRIPTPATH}/{ADMIN_SID_QUES}">{SITE_NAME}</a></h2><h4>{SITE_DESC}</h4></td> |
|
152 |
</tr> |
|
153 |
</table> |
|
154 |
</td><td id="mdg-r"></td></tr> |
|
155 |
||
156 |
<tr><td id="mdg-brl"></td><td style="background-color: #FFFFFF;"></td><td id="mdg-brr"></td></tr> |
|
157 |
||
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
|
158 |
<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
|
159 |
<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
|
160 |
<td class="menu_bg"> |
0 | 161 |
<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
|
162 |
<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
|
163 |
<!-- 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
|
164 |
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
|
165 |
<!-- 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
|
166 |
{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
|
167 |
<!-- 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
|
168 |
</div> |
0 | 169 |
{TOOLBAR} |
170 |
<ul> |
|
171 |
{TOOLBAR_EXTRAS} |
|
172 |
</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
|
173 |
<span class="menuclear"></span> |
0 | 174 |
</div> |
175 |
</td><td id="mdg-br"></td></tr> |
|
176 |
<tr><td id="mdg-ml"></td><td style="background-color: #FFFFFF;"> |
|
177 |
<div class="pad"><div class="contentDiv"> |
|
178 |
<div style="float: right;"> |
|
71 | 179 |
<img alt=" " src="{SCRIPTPATH}/images/spacer.gif" id="ajaxloadicon" /> |
0 | 180 |
</div> |
181 |
<h2 <!-- BEGIN auth_rename --> ondblclick="ajaxRenameInline();" title="Double-click to rename this page" <!-- END auth_rename --> id="h2PageName">{PAGE_NAME}</h2> |
|
182 |
<div id="ajaxEditContainer"> |