Revision 2098
Added by darkviper over 11 years ago
| index.php | ||
|---|---|---|
| 25 | 25 |
$template = new Template(dirname($admin->correct_theme_source('access.htt')));
|
| 26 | 26 |
// $template->debug = true; |
| 27 | 27 |
$template->set_file('page', 'access.htt');
|
| 28 |
|
|
| 29 | 28 |
$template->set_block('page', 'main_block', 'main');
|
| 30 | 29 |
$template->set_block('main_block', 'users_block', 'user');
|
| 31 | 30 |
$template->set_block('main_block', 'groups_block', 'group');
|
| 31 |
$oTrans = Translate::getInstance(); |
|
| 32 |
$oTrans->enableAddon('admin\\access');
|
|
| 33 |
$template->set_var($oTrans->getLangArray()); |
|
| 32 | 34 |
|
| 33 | 35 |
// Insert values into the template object |
| 34 | 36 |
$template->set_var(array( |
| 35 | 37 |
'ADMIN_URL' => ADMIN_URL, |
| 36 | 38 |
'THEME_URL' => THEME_URL, |
| 37 |
'WB_URL' => WB_URL |
|
| 39 |
'WB_URL' => WB_URL
|
|
| 38 | 40 |
) |
| 39 | 41 |
); |
| 40 | 42 |
|
| ... | ... | |
| 48 | 50 |
|
| 49 | 51 |
// Insert section names and descriptions |
| 50 | 52 |
$template->set_var(array( |
| 51 |
'USERS' => $MENU['USERS'],
|
|
| 52 |
'GROUPS' => $MENU['GROUPS'],
|
|
| 53 |
'ACCESS' => $MENU['ACCESS'],
|
|
| 54 |
'USERS_OVERVIEW' => $OVERVIEW['USERS'],
|
|
| 55 |
'GROUPS_OVERVIEW' => $OVERVIEW['GROUPS'],
|
|
| 53 |
'USERS' => $oTrans->MENU_USERS,
|
|
| 54 |
'GROUPS' => $oTrans->MENU_GROUPS,
|
|
| 55 |
'ACCESS' => $oTrans->MENU_ACCESS,
|
|
| 56 |
'USERS_OVERVIEW' => $oTrans->OVERVIEW_USERS,
|
|
| 57 |
'GROUPS_OVERVIEW' => $oTrans->OVERVIEW_GROUPS,
|
|
| 56 | 58 |
) |
| 57 | 59 |
); |
| 58 | 60 |
|
Also available in: Unified diff
! activate class Translate for all addons in admin/ (except pages/)
! class.admin >> add translation of the current theme to Translate