Deprecated Addons: Superblock, windowsphonepush, namethingy #4

Merged
MrPetovan merged 3 commits from andy/deprecated-addons:master into master 2022-12-14 14:55:34 +01:00
Showing only changes of commit 5459f281d8 - Show all commits

42
namethingy/namethingy.php Normal file
View file

@ -0,0 +1,42 @@
<?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>';
}
/**
* 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
<iframe src="http://namethingy.com" width="900" height="700" />
EOT;
return $o;
}