From 42e78d966697b2adc80db302b983c64c30d4ff92 Mon Sep 17 00:00:00 2001 From: SK Date: Fri, 5 Dec 2025 07:36:13 +0530 Subject: [PATCH] add active themes list to siteinfo Helps choosing instance when creating clones for compatible themes. --- Zotlabs/Module/Siteinfo.php | 4 ++++ view/tpl/siteinfo.tpl | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/Zotlabs/Module/Siteinfo.php b/Zotlabs/Module/Siteinfo.php index 3cad64a13..9d46a4697 100644 --- a/Zotlabs/Module/Siteinfo.php +++ b/Zotlabs/Module/Siteinfo.php @@ -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') ) ] ); diff --git a/view/tpl/siteinfo.tpl b/view/tpl/siteinfo.tpl index 08e4790f2..3f52d44da 100644 --- a/view/tpl/siteinfo.tpl +++ b/view/tpl/siteinfo.tpl @@ -21,6 +21,15 @@ {{/foreach}} {{/if}} +{{if $themes.1}} +
+

{{$themes.0}}

+ +{{/if}} {{if $blocked_sites.1}}