2012-03-30 14:35:55 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Name: NameThingy
|
|
|
|
* Description: The Ultimate Random Name Generator
|
|
|
|
* Version: 1.0
|
|
|
|
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
2018-02-08 06:40:21 +01:00
|
|
|
* Status: Unsupported
|
2012-03-30 14:35:55 +02:00
|
|
|
*/
|
2018-01-17 01:51:12 +01:00
|
|
|
use Friendica\Core\Addon;
|
2012-03-30 14:35:55 +02:00
|
|
|
|
|
|
|
function namethingy_install() {
|
2018-01-17 01:51:12 +01:00
|
|
|
Addon::registerHook('app_menu', 'addon/namethingy/namethingy.php', 'namethingy_app_menu');
|
2012-03-30 14:35:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function namethingy_uninstall() {
|
2018-01-17 01:51:12 +01:00
|
|
|
Addon::unregisterHook('app_menu', 'addon/namethingy/namethingy.php', 'namethingy_app_menu');
|
2012-03-30 14:35:55 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function namethingy_app_menu($a,&$b) {
|
|
|
|
$b['app_menu'][] = '<div class="app-title"><a href="namethingy">NameThingy</a></div>';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function namethingy_module() {}
|
|
|
|
|
|
|
|
function namethingy_content(&$a) {
|
|
|
|
|
2018-10-09 20:13:22 +02:00
|
|
|
$baseurl = $a->getBaseURL() . '/addon/namethingy';
|
2012-03-30 14:35:55 +02:00
|
|
|
|
|
|
|
$o .= <<< EOT
|
|
|
|
<iframe src="http://namethingy.com" width="900" height="700" />
|
|
|
|
EOT;
|
|
|
|
|
|
|
|
return $o;
|
|
|
|
}
|