]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget.php
Merge pull request #9389 from annando/failed-contacts
[friendica.git] / src / Content / Widget.php
index a7ce52cc466107f8ecaa1cbf1b9eb7c3ad799d24..3e5af2251f1cfc88db5dbe03b4de9e5edaf3a972 100644 (file)
@@ -525,4 +525,25 @@ class Widget
 
                return $o;
        }
+
+       /**
+        * Display the accounts sidebar
+        *
+        * @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'),
+               ]);     
+       }
 }