X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fapps.php;h=a821ef5d5b89192b5534df7e8b78cd074e9a7964;hb=12d7ca9b84cfbdae25144770d48092c58f46d783;hp=f25722df785ac6942353c74579ba5fc14a967cce;hpb=dea721a3f866956e0d0b86316679e05498b1d81c;p=friendica.git diff --git a/mod/apps.php b/mod/apps.php index f25722df78..a821ef5d5b 100644 --- a/mod/apps.php +++ b/mod/apps.php @@ -1,25 +1,25 @@ ' . t('Applications') . ''; - - $apps = false; + $title = t('Applications'); - if(local_user()) { - $apps = true; - $o .= '
' . t('Private Notes') . '
'; - } + if(count($a->apps)==0) + notice( t('No installed applications.') . EOL); - if($a->apps) { - $apps = true; - $o .= $a->apps; - } - if(! $apps) - notice( t('No installed applications.') . EOL); + $tpl = get_markup_template("apps.tpl"); + return replace_macros($tpl, array( + '$title' => $title, + '$apps' => $a->apps, + )); - return $o; + -} \ No newline at end of file +}