Revision 1529
Added by Luisehahne about 14 years ago
| index.php | ||
|---|---|---|
| 3 | 3 |
* |
| 4 | 4 |
* @category admin |
| 5 | 5 |
* @package groups |
| 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 |
| ... | ... | |
| 22 | 21 |
$admin = new admin('Access', 'groups');
|
| 23 | 22 |
$ftan = $admin->getFTAN(); |
| 24 | 23 |
|
| 25 |
// Create new template object for the modify/remove menu |
|
| 26 |
$template = new Template(THEME_PATH.'/templates'); |
|
| 24 |
// Setup template object, parse vars to it, then parse it |
|
| 25 |
$ThemePath = realpath(WB_PATH.$admin->correct_theme_source('groups.htt'));
|
|
| 26 |
// Create new template object |
|
| 27 |
$template = new Template($ThemePath); |
|
| 28 |
// $template->debug = true; |
|
| 27 | 29 |
$template->set_file('page', 'groups.htt');
|
| 28 | 30 |
$template->set_block('page', 'main_block', 'main');
|
| 29 | 31 |
$template->set_block('main_block', 'manage_users_block', 'users');
|
| ... | ... | |
| 93 | 95 |
$template->parse('main', 'main_block', false);
|
| 94 | 96 |
$template->pparse('output', 'page');
|
| 95 | 97 |
|
| 96 |
// Setup template for add group form |
|
| 97 |
$template = new Template(THEME_PATH.'/templates'); |
|
| 98 |
// Setup template object, parse vars to it, then parse it |
|
| 99 |
$ThemePath = realpath(WB_PATH.$admin->correct_theme_source('groups_form.htt'));
|
|
| 100 |
// Create new template object |
|
| 101 |
$template = new Template($ThemePath); |
|
| 102 |
// $template->debug = true; |
|
| 98 | 103 |
$template->set_file('page', 'groups_form.htt');
|
| 99 | 104 |
$template->set_block('page', 'main_block', 'main');
|
| 100 | 105 |
$template->set_var('DISPLAY_EXTRA', 'display:none;');
|
Also available in: Unified diff
add new backend theme handling (Tks to Stefek)