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         users
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
6
 * @author          Ryan Djurovich, WebsiteBaker Project
8 7
 * @copyright       2009-2011, Website Baker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
......
24 23
$iUserStatus = ( ( $admin->get_get('status')==1 ) ? 0 : $iUserStatus );
25 24
unset($_GET);
26 25

  
27
// Create new template object for the modify/remove menu
28
$template = new Template(THEME_PATH.'/templates');
26
// Setup template object, parse vars to it, then parse it
27
$ThemePath = realpath(WB_PATH.$admin->correct_theme_source('users.htt'));
28
// Create new template object
29
$template = new Template($ThemePath);
30
// $template->debug = true;
31

  
29 32
$template->set_file('page', 'users.htt');
30 33
$template->set_block('page', 'main_block', 'main');
31 34
$template->set_block("main_block", "manage_groups_block", "groups");
......
114 117
$template->parse('main', 'main_block', false);
115 118
$template->pparse('output', 'page');
116 119

  
117
// Setup template for add user form
118
$template = new Template(THEME_PATH.'/templates');
120
// Setup template object, parse vars to it, then parse it
121
$ThemePath = realpath(WB_PATH.$admin->correct_theme_source('users_form.htt'));
122
// Create new template object
123
$template = new Template($ThemePath);
124
// $template->debug = true;
119 125
$template->set_file('page', 'users_form.htt');
120 126
$template->set_block('page', 'main_block', 'main');
121 127
$template->set_var('DISPLAY_EXTRA', 'display:none;');

Also available in: Unified diff