Project

General

Profile

« Previous | Next » 

Revision 944

Added by Matthias about 15 years ago

added skinable Admin Interface

View differences:

class.admin.php
112 112
		global $database;
113 113
		$get_title = $database->query("SELECT value FROM ".TABLE_PREFIX."settings WHERE name = 'website_title'");
114 114
		$title = $get_title->fetchRow();
115
		$header_template = new Template(ADMIN_PATH."/interface");
116
		$header_template->set_file('page', 'header.html');
115
		$header_template = new Template(THEME_PATH.'/templates');
116
		$header_template->set_file('page', 'header.htt');
117 117
		$header_template->set_block('page', 'header_block', 'header');
118 118
		if(defined('DEFAULT_CHARSET')) {
119 119
			$charset=DEFAULT_CHARSET;
......
142 142
													'VERSION' => VERSION,
143 143
													'WB_URL' => WB_URL,
144 144
													'ADMIN_URL' => ADMIN_URL,
145
													'THEME_URL' => THEME_URL,
145 146
													'TITLE_START' => $MENU['START'],
146 147
													'TITLE_VIEW' => $MENU['VIEW'],
147 148
													'TITLE_HELP' => $MENU['HELP'],
......
195 196
    	if(file_exists(WB_PATH.'/modules/jsadmin/jsadmin_backend_include.php')){
196 197
      	@include(WB_PATH.'/modules/jsadmin/jsadmin_backend_include.php');
197 198
    	}
198
		$footer_template = new Template(ADMIN_PATH."/interface");
199
		$footer_template->set_file('page', 'footer.html');
199
		$footer_template = new Template(THEME_PATH.'/templates');
200
		$footer_template->set_file('page', 'footer.htt');
200 201
		$footer_template->set_block('page', 'footer_block', 'header');
201 202
		$footer_template->parse('header', 'footer_block', false);
202 203
		$footer_template->pparse('output', 'page');

Also available in: Unified diff