From 5459f281d8130b855c4984048b58047aa4d72bb5 Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 14 Dec 2022 20:34:23 +0700 Subject: [PATCH] new file: namethingy/namethingy.php --- namethingy/namethingy.php | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 namethingy/namethingy.php diff --git a/namethingy/namethingy.php b/namethingy/namethingy.php new file mode 100644 index 0000000..8e5b3ce --- /dev/null +++ b/namethingy/namethingy.php @@ -0,0 +1,42 @@ + + * Status: Unsupported + */ + +use Friendica\App; +use Friendica\Core\Hook; +use Friendica\DI; + +function namethingy_install() +{ + Hook::register('app_menu', 'addon/namethingy/namethingy.php', 'namethingy_app_menu'); +} + +function namethingy_app_menu(App $a, array &$b) +{ + $b['app_menu'][] = '
NameThingy
'; +} + + +/** + * This is a statement rather than an actual function definition. The simple + * existence of this method is checked to figure out if the addon offers a + * module. + */ +function namethingy_module() {} + +function namethingy_content(App $a) +{ + $baseurl = DI::baseUrl()->get() . '/addon/namethingy'; + + $o .= <<< EOT +