Revision 1529
Added by Dietmar almost 13 years ago
details.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 |
... | ... | |
45 | 44 |
// Print admin header |
46 | 45 |
$admin = new admin('Addons', 'templates_view'); |
47 | 46 |
|
48 |
// Setup template object |
|
49 |
$template = new Template(THEME_PATH.'/templates'); |
|
47 |
// Setup template object, parse vars to it, then parse it |
|
48 |
$ThemePath = realpath(WB_PATH.$admin->correct_theme_source('templates_details.htt')); |
|
49 |
// Create new template object |
|
50 |
$template = new Template($ThemePath); |
|
51 |
// $template->debug = true; |
|
50 | 52 |
$template->set_file('page', 'templates_details.htt'); |
51 | 53 |
$template->set_block('page', 'main_block', 'main'); |
52 | 54 |
$template->set_var('FTAN', $admin->getFTAN()); |
Also available in: Unified diff
add new backend theme handling (Tks to Stefek)