login
This commit is contained in:
@ -20,6 +20,7 @@ class AdminThemeController extends AdminController
|
||||
public function actionIndex(): void
|
||||
{
|
||||
$admin_theme_paths = Option::where("key", "admin_theme_paths")->first();
|
||||
|
||||
$dirs = [];
|
||||
if ($admin_theme_paths){
|
||||
$path = json_decode($admin_theme_paths->value);
|
||||
|
@ -14,9 +14,9 @@ $table->columns([
|
||||
]);
|
||||
$table->addAction(function ($row, $url){
|
||||
$path = $row['path'];
|
||||
$active_admin_theme = Option::where("key", "active_admin_theme")->first();
|
||||
$active_admin_theme = \kernel\modules\option\service\OptionService::getItem('active_admin_theme');
|
||||
$btn = "<a class='btn btn-primary' href='$url/activate/?p=$path' style='margin: 3px; width: 150px;' >Активировать</a>";
|
||||
if ($path === $active_admin_theme->value){
|
||||
if ($path === $active_admin_theme){
|
||||
$btn = "Активна";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user