Project

General

Profile

« Previous | Next » 

Revision 1529

Added by Dietmar almost 13 years ago

add new backend theme handling (Tks to Stefek)

View differences:

index.php
3 3
 *
4 4
 * @category        admin
5 5
 * @package         preferences
6
 * @author          Independend-Software-Team
7
 * @author          WebsiteBaker Project
8
 * @copyright       2004-2009, Ryan Djurovich
6
 * @author          Ryan Djurovich, WebsiteBaker Project
9 7
 * @copyright       2009-2011, Website Baker Org. e.V.
10 8
 * @link			http://www.websitebaker2.org/
11 9
 * @license         http://www.gnu.org/licenses/gpl.html
......
26 24
{
27 25
	global $HEADING, $TEXT;
28 26
	include_once(WB_PATH.'/framework/functions-utf8.php');
29
// Create new template object, assign template file, start main-block
30
	$template = new Template( THEME_PATH.'/templates' );
27
	// Setup template object, parse vars to it, then parse it
28
	$ThemePath = realpath(WB_PATH.$admin->correct_theme_source('preferences.htt'));
29
	// Create new template object
30
	$template = new Template($ThemePath);
31 31
	$template->set_file( 'page', 'preferences.htt' );
32 32
	$template->set_block( 'page', 'main_block', 'main' );
33 33
// read user-info from table users and assign it to template

Also available in: Unified diff