diff options
author | Michael Johnston <michaelgeorgejohnston@gmail.com> | 2013-02-20 21:56:59 -0500 |
---|---|---|
committer | Michael Johnston <michaelgeorgejohnston@gmail.com> | 2013-02-20 21:56:59 -0500 |
commit | 6199e1d5b8779efdfc8aac8863e113784a32cdb7 (patch) | |
tree | cb3023b75c51ada833eb14d93c450bef44d9011f /mod | |
parent | f01f390a2e4bef735ea85b52ec9941fef9a2b7fe (diff) | |
download | volse-hubzilla-6199e1d5b8779efdfc8aac8863e113784a32cdb7.tar.gz volse-hubzilla-6199e1d5b8779efdfc8aac8863e113784a32cdb7.tar.bz2 volse-hubzilla-6199e1d5b8779efdfc8aac8863e113784a32cdb7.zip |
add siteinfo.tpl
Diffstat (limited to 'mod')
-rw-r--r-- | mod/siteinfo.php | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/mod/siteinfo.php b/mod/siteinfo.php index 0cd569d20..7ea81fec1 100644 --- a/mod/siteinfo.php +++ b/mod/siteinfo.php @@ -47,26 +47,10 @@ function siteinfo_init(&$a) { function siteinfo_content(&$a) { - // FIXME Gak - this needs to be a template. - - $o = ''; - $o .= '<h3>' . t('Red') . '</h3>'; - - - $o .= '<p></p><p>'; - - $o .= t('This is Red - another decentralized, distributed communications project by the folks at Friendica.'); if(! get_config('system','hidden_version_siteinfo')) - $o .= '</p><p>' . sprintf( t('Version %s'), FRIENDICA_VERSION ) . '</p><p>'; - $o .= '</p><p>'; - $o .= t('Running at web location') . ' ' . z_root() . '</p><p>'; - - $o .= t('Please visit <a href="http://friendica.com">Friendica.com</a> to learn more about the Friendica and/or Red project.') . '</p><p>'; - - $o .= t('Bug reports and issues: please visit') . ' ' . '<a href="http://bugs.friendica.com">Bugs.Friendica.com</a></p><p>'; - $o .= t('Suggestions, praise, donations, etc. - please email "Info" at Friendica - dot com') . '</p>'; - - $o .= '<p></p>'; + $version = sprintf( t('Version %s'), FRIENDICA_VERSION ); + else + $version = ""; $visible_plugins = array(); if(is_array($a->plugins) && count($a->plugins)) { @@ -76,9 +60,9 @@ function siteinfo_content(&$a) { $visible_plugins[] = $rr['name']; } - + $plugins_list = ''; if(count($visible_plugins)) { - $o .= '<p>' . t('Installed plugins/addons/apps:') . '</p>'; + $plugins_text = t('Installed plugins/addons/apps:'); $sorted = $visible_plugins; $s = ''; sort($sorted); @@ -88,10 +72,24 @@ function siteinfo_content(&$a) { $s .= $p; } } - $o .= '<div style="margin-left: 25px; margin-right: 25px;">' . $s . '</div>'; + $plugins_list .= $s; } else - $o .= '<p>' . t('No installed plugins/addons/apps') . '</p>'; + $plugins_text = t('No installed plugins/addons/apps'); + + $o = replace_macros(get_markup_template('siteinfo.tpl'), array( + '$title' => t('Red'), + '$description' => t('This is Red - another decentralized, distributed communications project by the folks at Friendica.'), + '$version' => $version, + '$web_location' => t('Running at web location') . ' ' . z_root(), + '$visit' => t('Please visit <a href="http://friendica.com">Friendica.com</a> to learn more about the Friendica and/or Red project.'), + '$bug_text' => t('Bug reports and issues: please visit'), + '$bug_link_url' => 'http://bugs.friendica.com', + '$bug_link_text' => 'Bugs.Friendica.com', + '$contact' => t('Suggestions, praise, donations, etc. - please email "Info" at Friendica - dot com'), + '$plugins_text' => $plugins_text, + '$plugins_list' => $plugins_list + )); call_hooks('about_hook', $o); |