mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
Remove Widget::accounts in favor of Widget::accounttypes
This commit is contained in:
parent
44ae9add4f
commit
5abe069cba
4 changed files with 17 additions and 35 deletions
|
@ -542,26 +542,4 @@ class Widget
|
|||
return self::filter('accounttype', DI::l10n()->t('Account Types'), '',
|
||||
DI::l10n()->t('All'), $base, $accounts, $accounttype);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the accounts sidebar
|
||||
* The account type is added to the path
|
||||
*
|
||||
* @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('Account Types'),
|
||||
'$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