mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
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));
|
$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");
|
$t = Renderer::getMarkupTemplate("community.tpl");
|
||||||
return Renderer::replaceMacros($t, [
|
return Renderer::replaceMacros($t, [
|
||||||
'$content' => $o,
|
'$content' => $o,
|
||||||
|
|
|
@ -84,6 +84,7 @@ class Feature
|
||||||
['multi_profiles', L10n::t('Multiple Profiles'), L10n::t('Ability to create multiple profiles'), false, Config::get('feature_lock', 'multi_profiles', false)],
|
['multi_profiles', L10n::t('Multiple Profiles'), L10n::t('Ability to create multiple profiles'), false, Config::get('feature_lock', 'multi_profiles', false)],
|
||||||
['photo_location', L10n::t('Photo Location'), L10n::t("Photo metadata is normally stripped. This extracts the location \x28if present\x29 prior to stripping metadata and links it to a map."), false, Config::get('feature_lock', 'photo_location', false)],
|
['photo_location', L10n::t('Photo Location'), L10n::t("Photo metadata is normally stripped. This extracts the location \x28if present\x29 prior to stripping metadata and links it to a map."), false, Config::get('feature_lock', 'photo_location', false)],
|
||||||
['export_calendar', L10n::t('Export Public Calendar'), L10n::t('Ability for visitors to download the public calendar'), false, Config::get('feature_lock', 'export_calendar', false)],
|
['export_calendar', L10n::t('Export Public Calendar'), L10n::t('Ability for visitors to download the public calendar'), false, Config::get('feature_lock', 'export_calendar', false)],
|
||||||
|
['trending_tags', L10n::t('Trending Tags'), L10n::t('Show a community page widget with a list of the most popular tags in recent public posts.'), false, Config::get('feature_lock', 'trending_tags', false)],
|
||||||
],
|
],
|
||||||
|
|
||||||
// Post composition
|
// Post composition
|
||||||
|
|
Loading…
Reference in a new issue