author | Dan |
Sun, 20 Jul 2008 13:32:04 -0400 | |
changeset 650 | e45183014778 |
parent 420 | 301f546688d1 |
child 663 | d0f74bcd21eb |
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} |
|
650
e45183014778
Added CDN support: a URL to a CDN can now be specified and Enano will load all images, CSS, and javascript (except TinyMCE) from that server
Dan
parents:
420
diff
changeset
|
7 |
<link rel="stylesheet" type="text/css" href="{CDNPATH}/includes/clientside/css/enano-shared.css" /> |
e45183014778
Added CDN support: a URL to a CDN can now be specified and Enano will load all images, CSS, and javascript (except TinyMCE) from that server
Dan
parents:
420
diff
changeset
|
8 |
<link id="mdgCss" rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css" /> |
e45183014778
Added CDN support: a URL to a CDN can now be specified and Enano will load all images, CSS, and javascript (except TinyMCE) from that server
Dan
parents:
420
diff
changeset
|
9 |
{JS_HEADER} |
52 | 10 |
<!--[if lt IE 7]> |
650
e45183014778
Added CDN support: a URL to a CDN can now be specified and Enano will load all images, CSS, and javascript (except TinyMCE) from that server
Dan
parents:
420
diff
changeset
|
11 |
<link rel="stylesheet" type="text/css" href="{CDNPATH}/themes/{THEME_ID}/css-extra/ie-fixes-{STYLE_ID}.css" /> |
0 | 12 |
<![endif]--> |
13 |
<script type="text/javascript"> |
|
14 |
// <![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
|
15 |
|
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 |
// 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
|
17 |
// (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
|
18 |
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
|
19 |
|
0 | 20 |
function ajaxRenameInline() |
21 |
{ |
|
22 |
// This trick is _so_ vBulletin... |
|
23 |
elem = document.getElementById('pagetitle'); |
|
24 |
if(!elem) return; |
|
25 |
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
|
26 |
name = elem.firstChild.nodeValue; |
0 | 27 |
textbox = document.createElement('input'); |
28 |
textbox.type = 'text'; |
|
29 |
textbox.value = name; |
|
30 |
textbox.id = 'pageheading'; |
|
31 |
textbox.size = name.length + 7; |
|
32 |
textbox.onkeyup = function(e) { if(!e) return; if(e.keyCode == 13) ajaxRenameInlineSave(); if(e.keyCode == 27) ajaxRenameInlineCancel(); }; |
|
33 |
elem.parentNode.insertBefore(textbox, elem); |
|
34 |
document.onclick = ajaxRenameInlineCancel; |
|
35 |
} |
|
36 |
function ajaxRenameInlineSave() |
|
37 |
{ |
|
38 |
elem1 = document.getElementById('pagetitle'); |
|
39 |
elem2 = document.getElementById('pageheading'); |
|
40 |
if(!elem1 || !elem2) return; |
|
41 |
value = elem2.value; |
|
42 |
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
|
43 |
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
|
44 |
elem1.appendChild(document.createTextNode(value)); |
0 | 45 |
elem1.style.display = 'block'; |
46 |
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
|
47 |
ajaxPost(stdAjaxPrefix+'&_mode=rename', 'newtitle='+ajaxEscape(value), function() { |
0 | 48 |
if(ajax.readyState == 4) { |
49 |
alert(ajax.responseText); |
|
50 |
} |
|
51 |
}); |
|
52 |
} |
|
53 |
function ajaxRenameInlineCancel(e) |
|
54 |
{ |
|
55 |
if ( !e ) |
|
56 |
e = window.event; |
|
57 |
elem1 = document.getElementById('pagetitle'); |
|
58 |
elem2 = document.getElementById('pageheading'); |
|
59 |
if(!elem1 || !elem2) return; |
|
60 |
if ( e && e.target ) |
|
61 |
{ |
|
62 |
if(e.target == elem2) |
|
63 |
return; |
|
64 |
} |
|
65 |
//value = elem2.value; |
|
66 |
elem2.parentNode.removeChild(elem2); // just destroy the thing |
|
67 |
//elem1.innerHTML = value; |
|
68 |
elem1.style.display = 'block'; |
|
69 |
document.onclick = null; |
|
70 |
} |
|
71 |
// ]]> |
|
72 |
</script> |
|
73 |
{ADDITIONAL_HEADERS} |
|
74 |
</head> |
|
75 |
<body> |
|
76 |
<div id="bg"> |
|
77 |
<div id="rap"> |
|
78 |
<div id="title"> |
|
650
e45183014778
Added CDN support: a URL to a CDN can now be specified and Enano will load all images, CSS, and javascript (except TinyMCE) from that server
Dan
parents:
420
diff
changeset
|
79 |
<img id="clover" src="{CDNPATH}/themes/{THEME_ID}/images/clover.png" alt=" " /> |
0 | 80 |
<h1>{SITE_NAME}</h1> |
81 |
<h2>{SITE_DESC}</h2> |
|
82 |
</div> |
|
83 |
<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
|
84 |
<div class="label">{lang:onpage_lbl_pagetools}</div> |
0 | 85 |
{TOOLBAR} |
86 |
<ul> |
|
87 |
{TOOLBAR_EXTRAS} |
|
88 |
</ul> |
|
89 |
<span class="menuclear"> </span> |
|
90 |
</div> |
|
91 |
<div id="sidebar"> |
|
92 |
<!-- BEGIN sidebar_left --> |
|
93 |
{SIDEBAR_LEFT} |
|
94 |
<!-- END sidebar_left --> |
|
95 |
<!-- BEGIN sidebar_right --> |
|
96 |
<!-- BEGINNOT in_admin --> |
|
97 |
{SIDEBAR_RIGHT} |
|
98 |
<!-- END in_admin --> |
|
99 |
<!-- END sidebar_right --> |
|
100 |
</div> |
|
101 |
<div id="maincontent"> |
|
102 |
<div style="float: right;"> |
|
650
e45183014778
Added CDN support: a URL to a CDN can now be specified and Enano will load all images, CSS, and javascript (except TinyMCE) from that server
Dan
parents:
420
diff
changeset
|
103 |
<img alt=" " src="{CDNPATH}/images/spacer.gif" id="ajaxloadicon" /> |
0 | 104 |
</div> |
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"> |
|
107 |