bug #329 - compress the plugin list on the friendica info page
This commit is contained in:
parent
d06ddeb1cc
commit
f1cb287742
|
@ -51,15 +51,20 @@ function friendica_content(&$a) {
|
||||||
$o .= '<p></p>';
|
$o .= '<p></p>';
|
||||||
|
|
||||||
if(count($a->plugins)) {
|
if(count($a->plugins)) {
|
||||||
$o .= '<p>' . t('Installed plugins/addons/apps') . '</p>';
|
$o .= '<p>' . t('Installed plugins/addons/apps:') . '</p>';
|
||||||
$o .= '<ul>';
|
$sorted = $a->plugins;
|
||||||
foreach($a->plugins as $p)
|
$s = '';
|
||||||
if(strlen($p))
|
sort($sorted);
|
||||||
$o .= '<li>' . $p . '</li>';
|
foreach($sorted as $p) {
|
||||||
$o .= '</ul>';
|
if(strlen($p)) {
|
||||||
|
if(strlen($s)) $s .= ', ';
|
||||||
|
$s .= $p;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$o .= '<div style="margin-left: 25px; margin-right: 25px;">' . $s . '</div>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$o .= '<p>' . t('No installed plugins/addons/apps');
|
$o .= '<p>' . t('No installed plugins/addons/apps') . '</p>';
|
||||||
|
|
||||||
call_hooks('about_hook', $o);
|
call_hooks('about_hook', $o);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue