Revision 1529
Added by Luisehahne almost 14 years ago
| index.php | ||
|---|---|---|
| 3 | 3 |
* |
| 4 | 4 |
* @category admin |
| 5 | 5 |
* @package templates |
| 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 |
| ... | ... | |
| 21 | 20 |
require_once(WB_PATH.'/framework/class.admin.php'); |
| 22 | 21 |
$admin = new admin('Addons', 'templates');
|
| 23 | 22 |
|
| 24 |
// Setup template object |
|
| 25 |
$template = new Template(THEME_PATH.'/templates'); |
|
| 23 |
// Setup template object, parse vars to it, then parse it |
|
| 24 |
$ThemePath = realpath(WB_PATH.$admin->correct_theme_source('templates.htt'));
|
|
| 25 |
// Create new template object |
|
| 26 |
$template = new Template($ThemePath); |
|
| 27 |
// $template->debug = true; |
|
| 26 | 28 |
$template->set_file('page', 'templates.htt');
|
| 27 | 29 |
$template->set_block('page', 'main_block', 'main');
|
| 28 | 30 |
$template->set_var('FTAN', $admin->getFTAN());
|
| ... | ... | |
| 70 | 72 |
'<a href="' . ADMIN_URL . '/modules/index.php">' . $MENU['MODULES'] . '</a>' : '', |
| 71 | 73 |
'URL_LANGUAGES' => $admin->get_permission('languages') ?
|
| 72 | 74 |
'<a href="' . ADMIN_URL . '/languages/index.php">' . $MENU['LANGUAGES'] . '</a>' : '', |
| 73 |
'URL_ADVANCED' => $admin->get_permission('admintools') ?
|
|
| 74 |
'<a href="' . ADMIN_URL . '/modules/index.php?advanced">' . $TEXT['ADVANCED'] . '</a>' : '', |
|
| 75 |
'URL_ADVANCED' => '          ', |
|
| 75 | 76 |
'TEXT_INSTALL' => $TEXT['INSTALL'], |
| 76 | 77 |
'TEXT_UNINSTALL' => $TEXT['UNINSTALL'], |
| 77 | 78 |
'TEXT_VIEW_DETAILS' => $TEXT['VIEW_DETAILS'], |
Also available in: Unified diff
add new backend theme handling (Tks to Stefek)