Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
474 B

  1. <?php
  2. function apps_content(&$a) {
  3. $privateaddons = get_config('config','private_addons');
  4. if ($privateaddons === "1") {
  5. if((! (local_user()))) {
  6. info( t("You must be logged in to use addons. "));
  7. return;};
  8. }
  9. $title = t('Applications');
  10. if(count($a->apps)==0)
  11. notice( t('No installed applications.') . EOL);
  12. $tpl = get_markup_template("apps.tpl");
  13. return replace_macros($tpl, array(
  14. '$title' => $title,
  15. '$apps' => $a->apps,
  16. ));
  17. }