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