3 * Name: Infinite Improbability Drive
4 * Description: Infinitely Improbably Find A Random User
6 * Author: Thomas Willingham <https://kakste.com/profile/beardyunixer>
10 use Friendica\Core\Hook;
13 function infiniteimprobabilitydrive_install()
15 Hook::register('app_menu', 'addon/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php', 'infiniteimprobabilitydrive_app_menu');
18 function infiniteimprobabilitydrive_app_menu(array &$b)
20 $b['app_menu'][] = '<div class="app-title"><a href="infiniteimprobabilitydrive">' . DI::l10n()->t('Infinite Improbability Drive') . '</a></div>';
24 * This is a statement rather than an actual function definition. The simple
25 * existence of this method is checked to figure out if the addon offers a
28 function infiniteimprobabilitydrive_module() {}
31 function infiniteimprobabilitydrive_content()
35 DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.DI::baseUrl().'/addon/infiniteimprobabilitydrive/infiniteimprobabilitydrive.css"/>';
38 $baseurl = (string)DI::baseUrl();
43 <p>Try another destination with the <a href="$baseurl/infiniteimprobabilitydrive">Infinite Improbability Drive</a>
44 <iframe src ="$baseurl/randprof" height="1200" width="1024">