Revision 1529
Added by Luisehahne almost 14 years ago
| index.php | ||
|---|---|---|
| 3 | 3 |
* |
| 4 | 4 |
* @category admin |
| 5 | 5 |
* @package settings |
| 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 |
| ... | ... | |
| 29 | 28 |
require_once(WB_PATH.'/framework/functions.php'); |
| 30 | 29 |
require_once(WB_PATH.'/framework/functions-utf8.php'); |
| 31 | 30 |
|
| 31 |
// Setup template object, parse vars to it, then parse it |
|
| 32 |
$ThemePath = realpath(WB_PATH.$admin->correct_theme_source('settings.htt'));
|
|
| 32 | 33 |
// Create new template object |
| 33 |
$template = new Template(THEME_PATH.'/templates');
|
|
| 34 |
$template = new Template($ThemePath);
|
|
| 34 | 35 |
// $template->debug = true; |
| 35 |
|
|
| 36 | 36 |
$template->set_file('page', 'settings.htt');
|
| 37 | 37 |
$template->set_block('page', 'main_block', 'main');
|
| 38 | 38 |
$template->set_var('FTAN', $admin->getFTAN());
|
Also available in: Unified diff
add new backend theme handling (Tks to Stefek)