Add trending_tags additional feature + usage in mod/community
This commit is contained in:
parent
a947bd0889
commit
c399e40618
2 changed files with 9 additions and 0 deletions
|
@ -198,6 +198,14 @@ function community_content(App $a, $update = 0)
|
|||
$o .= $pager->renderMinimal(count($r));
|
||||
}
|
||||
|
||||
if (empty($a->page['aside'])) {
|
||||
$a->page['aside'] = '';
|
||||
}
|
||||
|
||||
if (\Friendica\Content\Feature::isEnabled(local_user(), 'trending_tags')) {
|
||||
$a->page['aside'] .= \Friendica\Content\Widget\TrendingTags::getHTML($content);
|
||||
}
|
||||
|
||||
$t = Renderer::getMarkupTemplate("community.tpl");
|
||||
return Renderer::replaceMacros($t, [
|
||||
'$content' => $o,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue