X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fapps.php;h=8049b45fb3e846162b8a06ab41bfa2763b61b84a;hb=d509a463452585bcbb9fccd07857871ca5c8b063;hp=f25722df785ac6942353c74579ba5fc14a967cce;hpb=dea721a3f866956e0d0b86316679e05498b1d81c;p=friendica.git diff --git a/mod/apps.php b/mod/apps.php old mode 100644 new mode 100755 index f25722df78..8049b45fb3 --- a/mod/apps.php +++ b/mod/apps.php @@ -1,25 +1,18 @@ ' . t('Applications') . ''; - - $apps = false; - - 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 +}