mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Issue 9366: filter account types on the network page
This commit is contained in:
parent
cc42c0ba27
commit
6c3ffb75a6
7 changed files with 84 additions and 33 deletions
|
@ -525,4 +525,25 @@ class Widget
|
|||
|
||||
return $o;
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the accounts sidebar
|
||||
*
|
||||
* @param string $base Basepath
|
||||
* @param string $accounttype Acount type (person, organisation, news, community)
|
||||
* @return string
|
||||
*/
|
||||
public static function accounts(string $base, string $accounttype)
|
||||
{
|
||||
return Renderer::replaceMacros(Renderer::getMarkupTemplate('widget/accounts.tpl'), [
|
||||
'$title' => DI::l10n()->t('Accounts'),
|
||||
'$content' => $base,
|
||||
'$accounttype' => ($accounttype ?? ''),
|
||||
'$all' => DI::l10n()->t('All'),
|
||||
'$person' => DI::l10n()->t('Persons'),
|
||||
'$organisation' => DI::l10n()->t('Organisations'),
|
||||
'$news' => DI::l10n()->t('News'),
|
||||
'$community' => DI::l10n()->t('Forums'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue