add active themes list to siteinfo

Helps choosing instance when creating clones for compatible themes.
This commit is contained in:
SK
2025-12-05 07:36:13 +05:30
parent 26d1653bfb
commit 42e78d9666
2 changed files with 13 additions and 0 deletions

View File

@@ -17,6 +17,9 @@ class Siteinfo extends \Zotlabs\Web\Controller {
$federated = [];
call_hooks('federated_transports',$federated);
$themes = Config::Get('system', 'allowed_themes');
$themes = array_map('trim', explode(',', $themes));
$siteinfo = replace_macros(get_markup_template('siteinfo.tpl'),
[
'$title' => t('About this site'),
@@ -40,6 +43,7 @@ class Siteinfo extends \Zotlabs\Web\Controller {
'$prj_link' => \Zotlabs\Lib\System::get_project_link(),
'$prj_src' => \Zotlabs\Lib\System::get_project_srclink(),
'$addons' => array( t('Active addons'), \App::$plugins ),
'$themes' => array( t('Active themes'), $themes ),
'$blocked_sites' => array( t('Blocked sites'), \Zotlabs\Lib\Config::Get('system', 'blacklisted_sites') )
]
);