Revision 1529
Added by Luisehahne almost 14 years ago
| class.admin.php | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 | 2 |
/** |
| 3 | 3 |
* |
| 4 |
* @category frontend |
|
| 5 |
* @package account |
|
| 6 |
* @author WebsiteBaker Project |
|
| 7 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 4 |
* @category framewotk |
|
| 5 |
* @package backend admin |
|
| 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 |
| ... | ... | |
| 101 | 100 |
$sql = 'SELECT `value` FROM `'.TABLE_PREFIX.'settings` WHERE `name`=\'website_title\''; |
| 102 | 101 |
$get_title = $database->query($sql); |
| 103 | 102 |
$title = $get_title->fetchRow(); |
| 104 |
$header_template = new Template(THEME_PATH.'/templates'); |
|
| 103 |
// Setup template object, parse vars to it, then parse it |
|
| 104 |
$ThemePath = realpath(WB_PATH.$this->correct_theme_source('header.htt'));
|
|
| 105 |
$header_template = new Template($ThemePath); |
|
| 105 | 106 |
$header_template->set_file('page', 'header.htt');
|
| 106 | 107 |
$header_template->set_block('page', 'header_block', 'header');
|
| 107 | 108 |
if(defined('DEFAULT_CHARSET')) {
|
| ... | ... | |
| 192 | 193 |
} |
| 193 | 194 |
} |
| 194 | 195 |
|
| 195 |
$footer_template = new Template(THEME_PATH.'/templates'); |
|
| 196 |
// Setup template object, parse vars to it, then parse it |
|
| 197 |
$ThemePath = realpath(WB_PATH.$this->correct_theme_source('footer.htt'));
|
|
| 198 |
$footer_template = new Template($ThemePath); |
|
| 196 | 199 |
$footer_template->set_file('page', 'footer.htt');
|
| 197 | 200 |
$footer_template->set_block('page', 'footer_block', 'header');
|
| 198 | 201 |
$footer_template->set_var(array( |
Also available in: Unified diff
add new backend theme handling (Tks to Stefek)