Getter/Setter for theme info
This commit is contained in:
@@ -166,7 +166,7 @@ class Renderer
|
||||
} else {
|
||||
$a = DI::app();
|
||||
$class = self::$template_engines[$template_engine];
|
||||
$obj = new $class($a->getCurrentTheme(), $a->theme_info);
|
||||
$obj = new $class($a->getCurrentTheme(), $a->getThemeInfo());
|
||||
self::$template_engine_instance[$template_engine] = $obj;
|
||||
return $obj;
|
||||
}
|
||||
|
||||
@@ -214,7 +214,7 @@ class Theme
|
||||
|
||||
$theme = $a->getCurrentTheme();
|
||||
|
||||
$parent = Strings::sanitizeFilePathItem($a->theme_info['extends'] ?? $theme);
|
||||
$parent = Strings::sanitizeFilePathItem($a->getThemeInfoValue('extends', $theme));
|
||||
|
||||
$paths = [
|
||||
"view/theme/$theme/$file",
|
||||
@@ -271,7 +271,7 @@ class Theme
|
||||
$theme = Strings::sanitizeFilePathItem($theme);
|
||||
|
||||
$a = DI::app();
|
||||
$base_theme = $a->theme_info['extends'] ?? '';
|
||||
$base_theme = $a->getThemeInfoValue('extends') ?? '';
|
||||
|
||||
if (file_exists("view/theme/$theme/config.php")) {
|
||||
return "view/theme/$theme/config.php";
|
||||
|
||||
Reference in New Issue
Block a user