/**
* Load current theme info
*/
-$theme_info_file = "view/theme/".current_theme()."/theme.php";
+$theme_info_file = 'view/theme/' . $a->getCurrentTheme() . '/theme.php';
if (file_exists($theme_info_file)) {
require_once $theme_info_file;
}
$func($a);
}
- if (function_exists(str_replace('-', '_', current_theme()) . '_init')) {
- $func = str_replace('-', '_', current_theme()) . '_init';
+ if (function_exists(str_replace('-', '_', $a->getCurrentTheme()) . '_init')) {
+ $func = str_replace('-', '_', $a->getCurrentTheme()) . '_init';
$func($a);
}
$a->page['content'] .= $arr['content'];
}
- if (function_exists(str_replace('-', '_', current_theme()) . '_content_loaded')) {
- $func = str_replace('-', '_', current_theme()) . '_content_loaded';
+ if (function_exists(str_replace('-', '_', $a->getCurrentTheme()) . '_content_loaded')) {
+ $func = str_replace('-', '_', $a->getCurrentTheme()) . '_content_loaded';
$func($a);
}
}
*/
if (!$a->theme['stylesheet']) {
- $stylesheet = current_theme_url();
+ $stylesheet = $a->getCurrentThemeStylesheetPath();
} else {
$stylesheet = $a->theme['stylesheet'];
}