diff --git a/templates/default/api/html_error.tem b/templates/default/api/html_error.tem deleted file mode 100755 index 3563253..0000000 --- a/templates/default/api/html_error.tem +++ /dev/null @@ -1 +0,0 @@ -
![]() |
- ***message*** | -
Message not specified.
", - zIndex: 9001, - pad: 100, - overlayAll: false, - constrain: false, - resetOnScroll: true, - baseClass: "lightface", - errorMessage: "The requested file could not be found.
"/*, - onOpen: $empty, - onClose: $empty, - onFade: $empty, - onUnfade: $empty, - onComplete: $empty, - onRequest: $empty, - onSuccess: $empty, - onFailure: $empty - */ - }, - - - initialize: function(options) { - this.setOptions(options); - this.state = false; - this.buttons = {}; - this.resizeOnOpen = true; - this.ie6 = typeof document.body.style.maxHeight == "undefined"; - this.draw(); - }, - - draw: function() { - - //create main box - this.box = new Element("table",{ - "class": this.options.baseClass, - styles: { - "z-index": this.options.zIndex, - opacity: 0 - }, - tween: { - duration: this.options.fadeDuration, - onComplete: function() { - if(this.box.getStyle("opacity") == 0) { - this.box.setStyles({ top: -9000, left: -9000 }); - } - }.bind(this) - } - }).inject(document.body,"bottom"); - - //draw rows and cells; use native JS to avoid IE7 and I6 offsetWidth and offsetHeight issues - var verts = ["top","center","bottom"], hors = ["Left","Center","Right"], len = verts.length; - for(var x = 0; x < len; x++) { - var row = this.box.insertRow(x); - for(var y = 0; y < len; y++) { - var cssClass = verts[x] + hors[y], cell = row.insertCell(y); - cell.className = cssClass; - if (cssClass == "centerCenter") { - this.contentBox = new Element("div",{ - "class": "lightfaceContent", - styles: { - width: this.options.width - } - }); - cell.appendChild(this.contentBox); - } - else { - document.id(cell).setStyle("opacity", 0.4); - } - } - } - - //draw title - - this.title = new Element("h2",{ - "class": "lightfaceTitle", - html: this.options.title - }).inject(this.contentBox); - - if(this.options.draggable && window["Drag"] != null) { - this.draggable = true; - new Drag(this.box, { handle: this.title }); - this.title.addClass("lightfaceDraggable"); - } - - //draw message box - this.messageBox = new Element("div", { - "class": "lightfaceMessageBox", - html: this.options.content || "", - styles: { - height: this.options.height - } - }).inject(this.contentBox); - - //button container - this.footer = new Element("div", { - "class": "lightfaceFooter", - styles: { - display: "none" - } - }).inject(this.contentBox); - - //draw overlay - this.overlay = new Element("div", { - html: " ", - styles: { - opacity: 0, - visibility: "hidden", - "z-index": this.options.zIndex - 1, // force the overlay under the box - }, - "class": "lightfaceOverlay", - tween: { - duration: this.options.fadeDuration, - onComplete: function() { - if(this.overlay.getStyle("opacity") == 0) { - // Rehide the overlay when it is transparent - this.overlay.setStyle('visibility', 'hidden'); - } - }.bind(this) - } - }).inject(document.body, 'bottom'); - if(!this.options.overlayAll) { - this.overlay.setStyle("top", (this.title ? this.title.getSize().y - 1: 0)); - } - - //create initial buttons - this.buttons = []; - if(this.options.buttons.length) { - this.options.buttons.each(function(button) { - this.addButton(button.title, button.event, button.color); - },this); - } - - //focus node - this.focusNode = this.box; - - return this; - }, - - // Manage buttons - addButton: function(title,clickEvent,color) { - this.footer.setStyle("display", "block"); - var focusClass = "lightfacefocus" + color; - this.buttons[title] = (new Element("input", { - "class": color ? "button "+color : "button", - type: "button", - value: title, - events: { - click: (clickEvent || this.close).bind(this) - } - }).inject(this.footer)); - return this; - }, - showButton: function(title) { - if(this.buttons[title]) this.buttons[title].removeClass("hiddenButton"); - return this.buttons[title]; - }, - hideButton: function(title) { - if(this.buttons[title]) this.buttons[title].addClass("hiddenButton"); - return this.buttons[title]; - }, - - // Open and close box - close: function(fast) { - if(this.isOpen) { - this.box[fast ? "setStyles" : "tween"]("opacity", 0); - this.overlay[fast ? "setStyles" : "tween"]("opacity", 0); - this.fireEvent("close"); - this._detachEvents(); - this.isOpen = false; - } - return this; - }, - - open: function(fast) { - if(!this.isOpen) { - this.overlay[fast ? "setStyles" : "tween"]("opacity", 0.4); - this.overlay.setStyle("visibility", 'visible'); - this.box[fast ? "setStyles" : "tween"]("opacity", 1); - if(this.resizeOnOpen) this._resize(); - this.fireEvent("open"); - this._attachEvents(); - (function() { - this._setFocus(); - }).bind(this).delay(this.options.fadeDuration + 10); - this.isOpen = true; - } - return this; - }, - - _setFocus: function() { - this.focusNode.setAttribute("tabIndex", 0); - this.focusNode.focus(); - }, - - // Show and hide overlay - fade: function(fade, delay) { - this._ie6Size(); - (function() { - this.overlay.setStyle("opacity", fade || 1); - }.bind(this)).delay(delay || 0); - this.fireEvent("fade"); - return this; - }, - unfade: function(delay) { - (function() { - this.overlay.fade(0); - }.bind(this)).delay(delay || this.options.fadeDelay); - this.fireEvent("unfade"); - return this; - }, - _ie6Size: function() { - if(this.ie6) { - var size = this.contentBox.getSize(); - var titleHeight = (this.options.overlayAll || !this.title) ? 0 : this.title.getSize().y; - this.overlay.setStyles({ - height: size.y - titleHeight, - width: size.x - }); - } - }, - - // Loads content - load: function(content, title) { - if(content) this.messageBox.set("html", content); - title = title || this.options.title; - if(title) this.title.set("html", title).setStyle("display", "block"); - else this.title.setStyle("display", "none"); - this.fireEvent("complete"); - return this; - }, - - // Attaches events when opened - _attachEvents: function() { - this.keyEvent = function(e){ - if(this.options.keys[e.key]) this.options.keys[e.key].call(this); - }.bind(this); - this.focusNode.addEvent("keyup", this.keyEvent); - - this.resizeEvent = this.options.constrain ? function(e) { - this._resize(); - }.bind(this) : function() { - this._position(); - }.bind(this); - window.addEvent("resize", this.resizeEvent); - - if(this.options.resetOnScroll) { - this.scrollEvent = function() { - this._position(); - }.bind(this); - window.addEvent("scroll", this.scrollEvent); - } - - return this; - }, - - // Detaches events upon close - _detachEvents: function() { - this.focusNode.removeEvent("keyup", this.keyEvent); - window.removeEvent("resize", this.resizeEvent); - if(this.scrollEvent) window.removeEvent("scroll", this.scrollEvent); - return this; - }, - - // Repositions the box - _position: function() { - var windowSize = window.getSize(), - scrollSize = window.getScroll(), - boxSize = this.box.getSize(); - this.box.setStyles({ - left: scrollSize.x + ((windowSize.x - boxSize.x) / 2), - top: scrollSize.y + ((windowSize.y - boxSize.y) / 2) - }); - this._ie6Size(); - return this; - }, - - // Resizes the box, then positions it - _resize: function() { - var height = this.options.height; - if(height == "auto") { - //get the height of the content box - var max = window.getSize().y - this.options.pad; - if(this.contentBox.getSize().y > max) height = max; - } - this.messageBox.setStyle("height", height); - this._position(); - }, - - // Expose message box - toElement: function () { - return this.messageBox; - }, - - // Expose entire modal box - getBox: function() { - return this.box; - }, - - // Cleanup - destroy: function() { - this._detachEvents(); - this.buttons.each(function(button) { - button.removeEvents("click"); - }); - this.box.dispose(); - delete this.box; - } -}); \ No newline at end of file diff --git a/templates/default/lightface/LightFaceMod.js b/templates/default/lightface/LightFaceMod.js deleted file mode 100755 index b187bf3..0000000 --- a/templates/default/lightface/LightFaceMod.js +++ /dev/null @@ -1,332 +0,0 @@ -/* ---- -description: LightFace - -license: MIT-style - -authors: -- David Walsh (http://davidwalsh.name) -- Chris Page (http://starforge.co.uk/) - -requires: -- core/1.2.1: "*" - -provides: [LightFace] - -... -*/ - -var LightFace = new Class({ - - Implements: [Options,Events], - - options: { - width: "auto", - height: "auto", - draggable: false, - title: "", - buttons: [], - fadeDelay: 400, - fadeDuration: 400, - keys: { - esc: function() { this.close(); } - }, - content: "Message not specified.
", - zIndex: 9001, - pad: 100, - overlayAll: false, - constrain: false, - resetOnScroll: true, - baseClass: "lightface", - errorMessage: "The requested file could not be found.
"/*, - onOpen: $empty, - onClose: $empty, - onFade: $empty, - onUnfade: $empty, - onComplete: $empty, - onRequest: $empty, - onSuccess: $empty, - onFailure: $empty - */ - }, - - - initialize: function(options) { - this.setOptions(options); - this.state = false; - this.buttons = {}; - this.resizeOnOpen = true; - this.ie6 = typeof document.body.style.maxHeight == "undefined"; - this.draw(); - }, - - draw: function() { - - //create main box - this.contentBox = this.box = new Element("div", - { - "class": "lightfaceContent", - styles: { - "z-index": this.options.zIndex, - width: this.options.width - }, - tween: { - duration: this.options.fadeDuration, - onComplete: function() { - if(this.box.getStyle("opacity") < 0.2) { - this.box.setStyles({ top: -9000, left: -9000 }); - } - }.bind(this) - } - }).inject(document.body, "bottom"); - - //draw title - this.title = new Element("h2",{ - "class": "lightfaceTitle", - html: this.options.title - }).inject(this.contentBox); - - if(this.options.draggable && window["Drag"] != null) { - this.draggable = true; - new Drag(this.box, { handle: this.title }); - this.title.addClass("lightfaceDraggable"); - } - - //draw message box - this.messageBox = new Element("div", { - "class": "lightfaceMessageBox", - html: this.options.content || "", - styles: { - height: this.options.height - } - }).inject(this.contentBox); - - //button container - this.footer = new Element("div", { - "class": "lightfaceFooter", - styles: { - display: "none" - } - }).inject(this.contentBox); - - //draw overlay - this.overlay = new Element("div", { - html: " ", - styles: { - opacity: 0, - visibility: "hidden", - "z-index": this.options.zIndex - 1, // force the overlay under the box - }, - "class": "lightfaceOverlay", - tween: { - duration: this.options.fadeDuration, - onComplete: function() { - if(this.overlay.getStyle("opacity") == 0) { - // Rehide the overlay when it is transparent - this.overlay.setStyle('visibility', 'hidden'); - } - }.bind(this) - } - }).inject(document.body, 'bottom'); - if(!this.options.overlayAll) { - this.overlay.setStyle("top", (this.title ? this.title.getSize().y - 1: 0)); - } - - //create initial buttons - this.buttons = []; - if(this.options.buttons.length) { - this.options.buttons.each(function(button) { - this.addButton(button.title, button.event, button.color); - },this); - } - - //focus node - this.focusNode = this.box; - - return this; - }, - - // Manage buttons - addButton: function(title,clickEvent,color) { - this.footer.setStyle("display", "block"); - var focusClass = "lightfacefocus" + color; - this.buttons.push(new Element("input", { - "class": color ? "button "+color : "button", - type: "button", - value: title, - events: { - click: (clickEvent || this.close).bind(this) - } - }).inject(this.footer)); - return this; - }, - - // Remove any existing buttons from the bar - clearButtons: function() { - this.buttons.each(function(element) { - element.removeEvents('click'); - element.destroy(); - }); - this.buttons.empty(); - this.footer.setStyle("display", "none"); - }, - // Set the buttons for the window to the specified ones (is effectively a - // clear if newbuttons is null or an empty object) - setButtons: function(newbuttons) { - this.clearButtons(); - - if(newbuttons && newbuttons.length) { - newbuttons.each(function(button) { - this.addButton(button.title, button.event, button.color); - },this); - } - }, - - - // Open and close box - close: function(fast) { - if(this.isOpen) { - this.box[fast ? "setStyles" : "tween"]("opacity", 0); - this.overlay[fast ? "setStyles" : "tween"]("opacity", 0); - this.fireEvent("close"); - this._detachEvents(); - this.isOpen = false; - } - return this; - }, - - open: function(fast) { - if(!this.isOpen) { - this.overlay[fast ? "setStyles" : "tween"]("opacity", 0.4); - this.overlay.setStyle("visibility", 'visible'); - this.box[fast ? "setStyles" : "tween"]("opacity", 1); - if(this.resizeOnOpen) this._resize(); - this.fireEvent("open"); - this._attachEvents(); - (function() { - this._setFocus(); - }).bind(this).delay(this.options.fadeDuration + 10); - this.isOpen = true; - } - return this; - }, - - _setFocus: function() { - this.focusNode.setAttribute("tabIndex", 0); - this.focusNode.focus(); - }, - - // Show and hide overlay - fade: function(fade, delay) { - this._ie6Size(); - (function() { - this.overlay.setStyle("opacity", fade || 1); - }.bind(this)).delay(delay || 0); - this.fireEvent("fade"); - return this; - }, - unfade: function(delay) { - (function() { - this.overlay.fade(0); - }.bind(this)).delay(delay || this.options.fadeDelay); - this.fireEvent("unfade"); - return this; - }, - _ie6Size: function() { - if(this.ie6) { - var size = this.contentBox.getSize(); - var titleHeight = (this.options.overlayAll || !this.title) ? 0 : this.title.getSize().y; - this.overlay.setStyles({ - height: size.y - titleHeight, - width: size.x - }); - } - }, - - // Loads content - load: function(content, title) { - if(content) this.messageBox.set("html", content); - title = title || this.options.title; - if(title) this.title.set("html", title).setStyle("display", "block"); - else this.title.setStyle("display", "none"); - this.fireEvent("complete"); - return this; - }, - - // Attaches events when opened - _attachEvents: function() { - this.keyEvent = function(e){ - if(this.options.keys[e.key]) this.options.keys[e.key].call(this); - }.bind(this); - this.focusNode.addEvent("keyup", this.keyEvent); - - this.resizeEvent = this.options.constrain ? function(e) { - this._resize(); - }.bind(this) : function() { - this._position(); - }.bind(this); - window.addEvent("resize", this.resizeEvent); - - if(this.options.resetOnScroll) { - this.scrollEvent = function() { - this._position(); - }.bind(this); - window.addEvent("scroll", this.scrollEvent); - } - - return this; - }, - - // Detaches events upon close - _detachEvents: function() { - this.focusNode.removeEvent("keyup", this.keyEvent); - window.removeEvent("resize", this.resizeEvent); - if(this.scrollEvent) window.removeEvent("scroll", this.scrollEvent); - return this; - }, - - // Repositions the box - _position: function() { - var windowSize = window.getSize(), - scrollSize = window.getScroll(), - boxSize = this.box.getSize(); - this.box.setStyles({ - left: scrollSize.x + ((windowSize.x - boxSize.x) / 2), - top: scrollSize.y + ((windowSize.y - boxSize.y) / 2) - }); - this._ie6Size(); - return this; - }, - - // Resizes the box, then positions it - _resize: function() { - var height = this.options.height; - if(height == "auto") { - //get the height of the content box - var max = window.getSize().y - this.options.pad; - if(this.contentBox.getSize().y > max) height = max; - } - this.messageBox.setStyle("height", height); - this._position(); - }, - - // Expose message box - toElement: function () { - return this.messageBox; - }, - - // Expose entire modal box - getBox: function() { - return this.box; - }, - - // Cleanup - destroy: function() { - this._detachEvents(); - this.buttons.each(function(button) { - button.removeEvents("click"); - }); - this.box.dispose(); - delete this.box; - } -}); \ No newline at end of file diff --git a/templates/default/lightface/images/b.png b/templates/default/lightface/images/b.png deleted file mode 100755 index f184e62..0000000 Binary files a/templates/default/lightface/images/b.png and /dev/null differ diff --git a/templates/default/lightface/images/bl.png b/templates/default/lightface/images/bl.png deleted file mode 100755 index f627185..0000000 Binary files a/templates/default/lightface/images/bl.png and /dev/null differ diff --git a/templates/default/lightface/images/br.png b/templates/default/lightface/images/br.png deleted file mode 100755 index 31f204f..0000000 Binary files a/templates/default/lightface/images/br.png and /dev/null differ diff --git a/templates/default/lightface/images/button.png b/templates/default/lightface/images/button.png deleted file mode 100755 index c9f445d..0000000 Binary files a/templates/default/lightface/images/button.png and /dev/null differ diff --git a/templates/default/lightface/images/spinner.gif b/templates/default/lightface/images/spinner.gif deleted file mode 100755 index 53dd589..0000000 Binary files a/templates/default/lightface/images/spinner.gif and /dev/null differ diff --git a/templates/default/lightface/images/tl.png b/templates/default/lightface/images/tl.png deleted file mode 100755 index d99c8f6..0000000 Binary files a/templates/default/lightface/images/tl.png and /dev/null differ diff --git a/templates/default/lightface/images/tr.png b/templates/default/lightface/images/tr.png deleted file mode 100755 index e99b6ec..0000000 Binary files a/templates/default/lightface/images/tr.png and /dev/null differ diff --git a/templates/default/lightface/version b/templates/default/lightface/version deleted file mode 100755 index ef650e3..0000000 --- a/templates/default/lightface/version +++ /dev/null @@ -1,141 +0,0 @@ -Pulled 6 June 2012, modified to overlay whole page: - -diff -Naur orig/LightFace.css mod/LightFace.css ---- orig/LightFace.css 2012-06-06 12:08:46.000000000 +0100 -+++ mod/LightFace.css 2012-06-06 12:08:28.000000000 +0100 -@@ -20,7 +20,7 @@ - .lightface .centerLeft, .lightface .centerRight { - width: 10px; - height: auto; -- background-image: url(b.png); -+ background-image: url(images/b.png); - background-repeat: repeat-y; - } - -@@ -31,29 +31,29 @@ - } - - .lightface .topLeft { -- background-image: url(tl.png); -+ background-image: url(images/tl.png); - background-position: top left; - } - - .lightface .topRight { -- background-image: url(tr.png); -+ background-image: url(images/tr.png); - background-position: top right; - } - - .lightface .bottomLeft { -- background-image: url(bl.png); -+ background-image: url(images/bl.png); - background-position: bottom left; - } - - .lightface .bottomRight { -- background-image: url(br.png); -+ background-image: url(images/br.png); - background-position: bottom right; - } - - .lightface .topCenter, .lightface .bottomCenter { - width: auto; - height: 10px; -- background-image: url(b.png); -+ background-image: url(images/b.png); - background-repeat: repeat-x; - } - -@@ -137,7 +137,7 @@ - .lightface .lightfaceFooter label { - font-size: 13px; - border-style: solid; -- background-image:url(button.png); -+ background-image:url(images/button.png); - cursor:pointer; - font-weight:bold; - padding:2px 6px 2px 6px; -@@ -196,22 +196,23 @@ - visibility: hidden; - } - --.lightface .lightfaceOverlay { -- position: absolute; -+.lightfaceOverlay { -+ position: fixed; - left: 0; - top: 0; - bottom: 0; - right: 0; - /* -- background-image: url(fbloader.gif); -+ background-image: url(images/fbloader.gif); - background-position: center center; - background-repeat: no-repeat; - background-color: #fff; - */ -- background:url(fbloader.gif) center center no-repeat #fff; -+ background: #444; -+ opacity: 0.5; - } - --.lightface .lightfaceMessageBox { -+.lightface .lightfaceMessageBox { - overflow: auto; - padding: 10px 10px; - min-height: 20px; -@@ -221,7 +222,7 @@ - .lightface .lightFaceMessageBoxImage { - overflow: hidden; - padding: 0; -- background:url(fbloader.gif) center center no-repeat #fff; -+ background:url(images/fbloader.gif) center center no-repeat #fff; - } - - .lightface .lightFaceMessageBoxImage img { -diff -Naur orig/LightFace.js mod/LightFace.js ---- orig/LightFace.js 2012-06-06 12:07:58.000000000 +0100 -+++ mod/LightFace.js 2012-06-06 12:49:18.000000000 +0100 -@@ -135,17 +135,20 @@ - html: " ", - styles: { - opacity: 0, -- visibility: "hidden" -+ visibility: "hidden", -+ "z-index": this.options.zIndex - 1, // force the overlay under the box - }, - "class": "lightfaceOverlay", - tween: { -- link: "chain", - duration: this.options.fadeDuration, - onComplete: function() { -- if(this.overlay.getStyle("opacity") == 0) this.box.focus(); -+ if(this.overlay.getStyle("opacity") == 0) { -+ // Rehide the overlay when it is transparent -+ this.overlay.setStyle('visibility', 'hidden'); -+ } - }.bind(this) - } -- }).inject(this.contentBox); -+ }).inject(document.body, 'bottom'); - if(!this.options.overlayAll) { - this.overlay.setStyle("top", (this.title ? this.title.getSize().y - 1: 0)); - } -@@ -206,6 +209,7 @@ - close: function(fast) { - if(this.isOpen) { - this.box[fast ? "setStyles" : "tween"]("opacity", 0); -+ this.overlay[fast ? "setStyles" : "tween"]("opacity", 0); - this.fireEvent("close"); - this._detachEvents(); - this.isOpen = false; -@@ -215,6 +219,8 @@ - - open: function(fast) { - if(!this.isOpen) { -+ this.overlay[fast ? "setStyles" : "tween"]("opacity", 0.4); -+ this.overlay.setStyle("visibility", 'visible'); - this.box[fast ? "setStyles" : "tween"]("opacity", 1); - if(this.resizeOnOpen) this._resize(); - this.fireEvent("open"); diff --git a/templates/default/login/act_error.tem b/templates/default/login/act_error.tem deleted file mode 100755 index c7f085b..0000000 --- a/templates/default/login/act_error.tem +++ /dev/null @@ -1,2 +0,0 @@ -{L_LOGIN_ACTFAILED}:***reason***
diff --git a/templates/default/login/act_form.tem b/templates/default/login/act_form.tem
deleted file mode 100755
index 61a8362..0000000
--- a/templates/default/login/act_form.tem
+++ /dev/null
@@ -1,19 +0,0 @@
-***error***
-{L_LOGIN_ACTINTRO}
- -***reason***
diff --git a/templates/default/login/error_box.tem b/templates/default/login/error_box.tem
deleted file mode 100755
index f57cf0d..0000000
--- a/templates/default/login/error_box.tem
+++ /dev/null
@@ -1,6 +0,0 @@
-![]() |
- ***message*** | -
***reason***
***reason***
-{L_LOGIN_FORCECHANGE_INTRO}
- -{L_LOGIN_POLICY_INTRO}
-{L_LOGIN_INTRO}
- -***reason***
diff --git a/templates/default/login/recover_form.tem b/templates/default/login/recover_form.tem
deleted file mode 100755
index 517b330..0000000
--- a/templates/default/login/recover_form.tem
+++ /dev/null
@@ -1,18 +0,0 @@
-***error***
-{L_LOGIN_RECINTRO}
- -***reason***
diff --git a/templates/default/login/resend_form.tem b/templates/default/login/resend_form.tem
deleted file mode 100755
index dbe6948..0000000
--- a/templates/default/login/resend_form.tem
+++ /dev/null
@@ -1,18 +0,0 @@
-***error***
-{L_LOGIN_RESENDINTRO}
- -{L_LOGIN_REG_INTRO}
- -![]() |
- ***message*** | -