diff options
author | zotlabs <mike@macgirvin.com> | 2018-05-07 18:46:42 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-05-07 18:46:42 -0700 |
commit | eb85d381fdb447d23e568dfecbde24a860879952 (patch) | |
tree | 628df315cd7704a76922157a53ead004ed769207 | |
parent | aab16123b5188e69b31893263f7074f9e9c7f210 (diff) | |
download | volse-hubzilla-eb85d381fdb447d23e568dfecbde24a860879952.tar.gz volse-hubzilla-eb85d381fdb447d23e568dfecbde24a860879952.tar.bz2 volse-hubzilla-eb85d381fdb447d23e568dfecbde24a860879952.zip |
Add supported protocols to siteinfo (not siteinfo.json)
-rw-r--r-- | Zotlabs/Module/Siteinfo.php | 6 | ||||
-rwxr-xr-x | view/tpl/siteinfo.tpl | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Zotlabs/Module/Siteinfo.php b/Zotlabs/Module/Siteinfo.php index 92ee78cc6..25276815d 100644 --- a/Zotlabs/Module/Siteinfo.php +++ b/Zotlabs/Module/Siteinfo.php @@ -12,6 +12,9 @@ class Siteinfo extends \Zotlabs\Web\Controller { } function get() { + + $federated = []; + call_hooks('federated_transports',$federated); $siteinfo = replace_macros(get_markup_template('siteinfo.tpl'), [ @@ -27,6 +30,9 @@ class Siteinfo extends \Zotlabs\Web\Controller { '$prj_name' => t('This site is powered by $Projectname'), '$prj_transport' => t('Federated and decentralised networking and identity services provided by Zot'), '$transport_link' => '<a href="https://zotlabs.com">https://zotlabs.com</a>', + + '$additional_text' => t('Additional federated transport protocols:'), + '$additional_fed' => implode(',',$federated), '$prj_version' => ((get_config('system','hidden_version_siteinfo')) ? '' : sprintf( t('Version %s'), \Zotlabs\Lib\System::get_project_version())), '$prj_linktxt' => t('Project homepage'), '$prj_srctxt' => t('Developer homepage'), diff --git a/view/tpl/siteinfo.tpl b/view/tpl/siteinfo.tpl index a5b99fd83..4d9c53656 100755 --- a/view/tpl/siteinfo.tpl +++ b/view/tpl/siteinfo.tpl @@ -38,4 +38,8 @@ <br><br> <div>{{$prj_transport}} ({{$transport_link}})</div> +{{if $additional_fed}} +<div>{{$additional_text}} {{$additional_fed}}</div> +{{/if}} + </div> |