mirror of
https://github.com/friendica/friendica
synced 2025-04-24 03:10:11 +00:00
Merge pull request #9280 from annando/account-selector
Account selector for the community page
This commit is contained in:
commit
4657a8c97a
2 changed files with 22 additions and 0 deletions
|
@ -113,6 +113,17 @@ class Community extends BaseModule
|
|||
|
||||
$o .= $pager->renderMinimal(count($items));
|
||||
|
||||
DI::page()['aside'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('widget/community_accounts.tpl'), [
|
||||
'$title' => DI::l10n()->t('Accounts'),
|
||||
'$content' => self::$content,
|
||||
'$accounttype' => $parameters['accounttype'],
|
||||
'$all' => DI::l10n()->t('All Accounts'),
|
||||
'$person' => DI::l10n()->t('Personal Accounts'),
|
||||
'$organisation' => DI::l10n()->t('Organisation Accounts'),
|
||||
'$news' => DI::l10n()->t('News Accounts'),
|
||||
'$community' => DI::l10n()->t('Communities'),
|
||||
]);
|
||||
|
||||
if (Feature::isEnabled(local_user(), 'trending_tags')) {
|
||||
DI::page()['aside'] .= TrendingTags::getHTML(self::$content);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue