Revision 1529
Added by Dietmar almost 13 years ago
index.php | ||
---|---|---|
3 | 3 |
* |
4 | 4 |
* @category admin |
5 | 5 |
* @package addons |
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 |
... | ... | |
20 | 19 |
require_once(WB_PATH.'/framework/class.admin.php'); |
21 | 20 |
$admin = new admin('Addons', 'addons'); |
22 | 21 |
|
23 |
// Setup template object |
|
24 |
$template = new Template(THEME_PATH.'/templates'); |
|
22 |
// Setup template object, parse vars to it, then parse it |
|
23 |
$ThemePath = realpath(WB_PATH.$admin->correct_theme_source('addons.htt')); |
|
24 |
// Create new template object |
|
25 |
$template = new Template($ThemePath); |
|
25 | 26 |
$template->set_file('page', 'addons.htt'); |
26 | 27 |
$template->set_block('page', 'main_block', 'main'); |
27 | 28 |
|
Also available in: Unified diff
add new backend theme handling (Tks to Stefek)