diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-09-27 08:57:16 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-09-27 08:57:16 +0200 |
commit | 939449602a58838f81045c9a0e9a205c8fa9e6bd (patch) | |
tree | 4d1889c9b2e762e5f361916d6c25d95d325c2f71 /mod/apps.php | |
parent | 7f02617517f16b5a26a8de66792c7cd028f9b195 (diff) | |
parent | 8d93eefea87bd36904fcb1daabc239361dd95a27 (diff) | |
download | volse-hubzilla-939449602a58838f81045c9a0e9a205c8fa9e6bd.tar.gz volse-hubzilla-939449602a58838f81045c9a0e9a205c8fa9e6bd.tar.bz2 volse-hubzilla-939449602a58838f81045c9a0e9a205c8fa9e6bd.zip |
Merge remote-tracking branch 'fabrix/newui'
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, + )); + + + +} |