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