Replace current_theme() and current_theme_url() calls
This commit is contained in:
parent
3213715b60
commit
fde3d6f870
9 changed files with 22 additions and 19 deletions
12
index.php
12
index.php
|
@ -330,7 +330,7 @@ if (strlen($a->module)) {
|
|||
/**
|
||||
* 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;
|
||||
}
|
||||
|
@ -363,8 +363,8 @@ if ($a->module_loaded) {
|
|||
$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);
|
||||
}
|
||||
|
||||
|
@ -402,8 +402,8 @@ if ($a->module_loaded) {
|
|||
$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);
|
||||
}
|
||||
}
|
||||
|
@ -478,7 +478,7 @@ if ($a->is_mobile || $a->is_tablet) {
|
|||
*/
|
||||
|
||||
if (!$a->theme['stylesheet']) {
|
||||
$stylesheet = current_theme_url();
|
||||
$stylesheet = $a->getCurrentThemeStylesheetPath();
|
||||
} else {
|
||||
$stylesheet = $a->theme['stylesheet'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue