diff --git a/themes/elegant/index.php b/themes/elegant/index.php new file mode 100644 index 000000000..0e75275a1 --- /dev/null +++ b/themes/elegant/index.php @@ -0,0 +1,30 @@ + diff --git a/themes/elegant/local_head.tpl b/themes/elegant/local_head.tpl new file mode 100644 index 000000000..8279d6f15 --- /dev/null +++ b/themes/elegant/local_head.tpl @@ -0,0 +1 @@ +{combine_script id='elegant.scripts' require='jquery' path='themes/elegant/scripts.js'} diff --git a/themes/elegant/mail-css.tpl b/themes/elegant/mail-css.tpl new file mode 100644 index 000000000..6399c9efd --- /dev/null +++ b/themes/elegant/mail-css.tpl @@ -0,0 +1,9 @@ +/* Theme dark mail css */ + +body {ldelim} background-color:#444; color:#fff;} +#copyright {ldelim} color: #69c;} +h2 {ldelim} background-color: #333; color:#fff48e;} +img {ldelim} margin: 16px; border: 16px solid #111; -moz-border-radius: 4px; border-radius: 4px 4px; } +img:hover {ldelim} padding: 15px; border: 1px solid yellow;background-color:#444;-moz-border-radius: 4px; border-radius: 4px 4px; } +a {ldelim} color: #fff48e; background: transparent;border-bottom:1px dotted #005e89; } +a:hover {ldelim} color: #fff48e;} diff --git a/themes/elegant/screenshot.png b/themes/elegant/screenshot.png new file mode 100644 index 000000000..8886060b1 Binary files /dev/null and b/themes/elegant/screenshot.png differ diff --git a/themes/elegant/scripts.js b/themes/elegant/scripts.js new file mode 100644 index 000000000..e83dfd4f3 --- /dev/null +++ b/themes/elegant/scripts.js @@ -0,0 +1,77 @@ +jQuery("document").ready(function(jQuery){ + + var menubar=jQuery("#menubar"); + var content=jQuery("#content"); + + if ( (menubar.length == 1) && (content.length ==1)) { + menubar.after("
"); +/* if (!content.hasClass('content')) content.addClass('content');*/ + } + /*»*/ + + jQuery("#menuswitcher").click(function(){ + if (jQuery("#menubar").is(":hidden")) { + showMenu(0); + return false; + } else { + hideMenu(0); + return false; + } + }); + + // creates a variable with the contents of the cookie side-menu + var sidemenu = jQuery.cookie('side-menu'); + + // if cookie says the menu is hiding, keep it hidden! + if (sidemenu == 'hiding') { + hideMenu(0); + } else { + showMenu(0); + } + + +}); + +function hideMenu(delay) { + + var menubar=jQuery("#menubar"); + var menuswitcher=jQuery("#menuswitcher"); + var content=jQuery("#the_page > .content"); + var pcontent=jQuery("#content"); + + menubar.hide(delay); + menuswitcher.addClass("menuhidden").removeClass("menushown"); + menuswitcher.text("»"); + content.addClass("menuhidden").removeClass("menushown"); + pcontent.addClass("menuhidden").removeClass("menushown"); + jQuery.cookie('side-menu', 'hiding', {path: "/"}); + +} + +function showMenu(delay) { + + var menubar=jQuery("#menubar"); + var menuswitcher=jQuery("#menuswitcher"); + var content=jQuery("#the_page > .content"); + var pcontent=jQuery("#content"); + + menubar.show(delay); + menuswitcher.addClass("menushown").removeClass("menuhidden"); + menuswitcher.text("«"); + content.addClass("menushown").removeClass("menuhidden"); + pcontent.addClass("menushown").removeClass("menuhidden"); + jQuery.cookie('side-menu', 'showing', {path: "/"}); + +} + +/** + * Cookie plugin + * Copyright (c) 2006 Klaus Hartl (stilbuero.de) + * Dual licensed under the MIT and GPL licenses: + */ +jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options=jQuery.extend({},options);options.expires=-1;} +var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;} +expires='; expires='+date.toUTCString();} +var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i