]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget.php
Merge pull request #9727 from annando/notice
[friendica.git] / src / Content / Widget.php
index 0078e82a53a05ad63460fe045ecae078a29b7e58..f4a9fbe1f1b33eddf02422c16b8270e2c367fd80 100644 (file)
@@ -516,6 +516,7 @@ class Widget
                        '$cutoff' => $cutoff,
                        '$url' => $url,
                        '$dates' => $ret,
+                       '$showless' => DI::l10n()->t('show less'),
                        '$showmore' => DI::l10n()->t('show more')
                ]);
 
@@ -539,29 +540,7 @@ class Widget
                        ['ref' => 'community', 'name' => DI::l10n()->t('Forums')],
                ];
 
-               return self::filter('accounttype', DI::l10n()->t('Accounts'), '',
+               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('Accounts'),
-                       '$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'),
-               ]);     
-       }
 }