aboutsummaryrefslogtreecommitdiffstats
path: root/mod/apps.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-27 01:04:54 -0700
committerFriendika <info@friendika.com>2011-09-27 01:04:54 -0700
commit25ac93f44d92b839c5012ba8cbb7ecf221658eff (patch)
tree534884f33c8a51f3b00bb68b275ba1be3b0ddab2 /mod/apps.php
parent069a76bff4d635e65ccfd27dcf81bf3531fbfc61 (diff)
parente9638b69801cee3e74a97825f9af3749c9322c53 (diff)
downloadvolse-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.php19
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,
+ ));
+
+
+
+}