mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-02 17:31:10 +00:00
04df7f6e05
- added more type-hints - cleaned up some files (curly braces, spaces)
39 lines
745 B
PHP
39 lines
745 B
PHP
<?php
|
|
/**
|
|
*
|
|
* Name: NameThingy
|
|
* Description: The Ultimate Random Name Generator
|
|
* Version: 1.0
|
|
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
|
* 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'][] = '<div class="app-title"><a href="namethingy">NameThingy</a></div>';
|
|
}
|
|
|
|
|
|
function namethingy_module()
|
|
{
|
|
}
|
|
|
|
function namethingy_content(App $a)
|
|
{
|
|
$baseurl = DI::baseUrl()->get() . '/addon/namethingy';
|
|
|
|
$o .= <<< EOT
|
|
<iframe src="http://namethingy.com" width="900" height="700" />
|
|
EOT;
|
|
|
|
return $o;
|
|
}
|