Skip to content
Snippets Groups Projects
Commit 9efb4da5 authored by deuce's avatar deuce
Browse files

Move current html templates into "default" dir... add theme library thinger

in preperation for a theme selection script.
parent a04061d5
No related branches found
No related tags found
No related merge requests found
Showing
with 15 additions and 1 deletion
/* List of HTML theme packs installed */
Themes=new Object;
var CurrTheme="Default";
load(system.text_dir+'html_templates/html_themes.ssjs');
/* Read in current users selected theme if it exists */
if(file_exists(system.data_dir+'user/'+format("%04d.html_theme",user.number)))
load(system.data_dir+'user/'+format("%04d.html_theme",user.number));
if(Themes[CurrTheme] == undefined || Themes[CurrTheme].dir == undefined)
CurrTheme="Default";
......@@ -23,9 +23,10 @@
/* $Id$ */
template=new Object;
load("html_inc/html_themes.ssjs");
function write_template(filename) {
var inc=new File(system.text_dir+"html_templates"+'/'+filename);
var inc=new File(system.text_dir+"html_templates"+'/'+Themes[CurrTheme].dir+'/'+filename);
if(!inc.open("r",true,1024)) {
horrible_error("Cannot open template file "+system.text_dir+"html_templates"+'/'+filename+"!");
}
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment