X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FWidget.php;h=f4a9fbe1f1b33eddf02422c16b8270e2c367fd80;hb=122ad0af14f046c2462a03fe33967dc41abfc8b5;hp=90373e8c3b490cc3fd5d964f52bcf397fc71b2bd;hpb=e3cf708dd819ffabe53fb299cad5cb76b24aaf5c;p=friendica.git diff --git a/src/Content/Widget.php b/src/Content/Widget.php index 90373e8c3b..f4a9fbe1f1 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -516,6 +516,7 @@ class Widget '$cutoff' => $cutoff, '$url' => $url, '$dates' => $ret, + '$showless' => DI::l10n()->t('show less'), '$showmore' => DI::l10n()->t('show more') ]); @@ -542,26 +543,4 @@ class Widget 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('Account Types'), - '$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'), - ]); - } }