diff options
author | Friendika <info@friendika.com> | 2011-09-27 01:04:54 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-09-27 01:04:54 -0700 |
commit | 25ac93f44d92b839c5012ba8cbb7ecf221658eff (patch) | |
tree | 534884f33c8a51f3b00bb68b275ba1be3b0ddab2 /mod/apps.php | |
parent | 069a76bff4d635e65ccfd27dcf81bf3531fbfc61 (diff) | |
parent | e9638b69801cee3e74a97825f9af3749c9322c53 (diff) | |
download | volse-hubzilla-25ac93f44d92b839c5012ba8cbb7ecf221658eff.tar.gz volse-hubzilla-25ac93f44d92b839c5012ba8cbb7ecf221658eff.tar.bz2 volse-hubzilla-25ac93f44d92b839c5012ba8cbb7ecf221658eff.zip |
Merge pull request #3 from fabrixxm/master
Works on UI
Diffstat (limited to 'mod/apps.php')
-rw-r--r-- | mod/apps.php | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/mod/apps.php b/mod/apps.php index 7a0a3f59e..8049b45fb 100644 --- a/mod/apps.php +++ b/mod/apps.php @@ -1,15 +1,18 @@ <?php - function apps_content(&$a) { + $title = t('Applications'); - $o .= '<h3>' . t('Applications') . '</h3>'; - - if($a->apps) - $o .= $a->apps; - else + if(count($a->apps)==0) notice( t('No installed applications.') . EOL); - return $o; -}
\ No newline at end of file + $tpl = get_markup_template("apps.tpl"); + return replace_macros($tpl, array( + '$title' => $title, + '$apps' => $a->apps, + )); + + + +} |