Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

25 lines
470B

  1. <?php
  2. function apps_content(App $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. }
  10. $title = t('Applications');
  11. if (count($a->apps) == 0) {
  12. notice(t('No installed applications.') . EOL);
  13. }
  14. $tpl = get_markup_template("apps.tpl");
  15. return replace_macros($tpl, array(
  16. '$title' => $title,
  17. '$apps' => $a->apps,
  18. ));
  19. }