]> git.mxchange.org Git - friendica.git/commitdiff
Feedback changes
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 6 Aug 2019 11:37:48 +0000 (07:37 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 6 Aug 2019 11:37:48 +0000 (07:37 -0400)
- Import namespaces in mod/community
- Fix alignment in Content\Feature
- Add phpDoc to Widget\TrendingTags

mod/community.php
src/Content/Feature.php
src/Content/Widget/TrendingTags.php

index 44365e847f14da3004a0664c9cba5e3551638ccb..5ffb00729fd8aa8a33aebc037174aea275795080 100644 (file)
@@ -4,15 +4,16 @@
  */
 
 use Friendica\App;
+use Friendica\Content\Feature;
 use Friendica\Content\Nav;
 use Friendica\Content\Pager;
+use Friendica\Content\Widget\TrendingTags;
 use Friendica\Core\ACL;
 use Friendica\Core\Config;
 use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
 use Friendica\Core\Renderer;
 use Friendica\Database\DBA;
-use Friendica\Model\Contact;
 use Friendica\Model\Item;
 use Friendica\Model\User;
 
@@ -202,8 +203,8 @@ function community_content(App $a, $update = 0)
                $a->page['aside'] = '';
        }
 
-       if (\Friendica\Content\Feature::isEnabled(local_user(), 'trending_tags')) {
-               $a->page['aside'] .= \Friendica\Content\Widget\TrendingTags::getHTML($content);
+       if (Feature::isEnabled(local_user(), 'trending_tags')) {
+               $a->page['aside'] .= TrendingTags::getHTML($content);
        }
 
        $t = Renderer::getMarkupTemplate("community.tpl");
index 339e1a1fd5496fd768e2bac48d8d230974c999db..0f119d3054cb1231706e3fdc2e99401c774b19d2 100644 (file)
@@ -84,7 +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)],
                                ['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)],
-                               ['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)],
+                               ['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
index e5dd36bb9bd18ed8e95b5621eed7ded7fd1ba87e..a7cfa8557643237e6865b59730baaab70c833507 100644 (file)
@@ -8,6 +8,11 @@ use Friendica\Core\Renderer;
 use Friendica\Database\DBA;
 use Friendica\Model\Term;
 
+/**
+ * Trending tags aside widget for the community pages, handles both local and global scopes
+ *
+ * @package Friendica\Content\Widget
+ */
 class TrendingTags
 {
        /**