forked from friendica/friendica-addons
Merge branch 'master' of git://github.com/friendica/friendica-addons
This commit is contained in:
commit
8fa2821a29
5 changed files with 53 additions and 0 deletions
BIN
infiniteimprobabilitydrive.tgz
Normal file
BIN
infiniteimprobabilitydrive.tgz
Normal file
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
section {
|
||||
padding-left: 0px;
|
||||
|
||||
}
|
49
infiniteimprobabilitydrive/infiniteimprobabilitydrive.php
Normal file
49
infiniteimprobabilitydrive/infiniteimprobabilitydrive.php
Normal file
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
/**
|
||||
* Name: Infinite Improbability Drive
|
||||
* Description: Infinitely Improbably Find A Random User
|
||||
* Version: 1.0
|
||||
* Author: Thomas Willingham
|
||||
*/
|
||||
|
||||
function infiniteimprobabilitydrive_install() {
|
||||
register_hook('app_menu', 'addon/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php', 'infiniteimprobabilitydrive_app_menu');
|
||||
}
|
||||
|
||||
function infiniteimprobabilitydrive_uninstall() {
|
||||
unregister_hook('app_menu', 'addon/infiniteimprobabilitydrive/infiniteimprobabilitydrive.php', 'infiniteimprobabilitydrive_app_menu');
|
||||
|
||||
}
|
||||
|
||||
function infiniteimprobabilitydrive_app_menu($a,&$b) {
|
||||
$b['app_menu'][] = '<div class="app-title"><a href="infiniteimprobabilitydrive">' . t('Infinite Improbability Drive') . '</a></div>';
|
||||
}
|
||||
|
||||
|
||||
function infiniteimprobabilitydrive_module() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
function infiniteimprobabilitydrive_content(&$a) {
|
||||
$baseurl = $a->get_baseurl() . '/addon/infiniteimprobabilitydrive';
|
||||
$o = '';
|
||||
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.$a->get_baseurl().'/addon/infiniteimprobabilitydrive/infiniteimprobabilitydrive.css"/>';
|
||||
|
||||
|
||||
$baseurl = $a->get_baseurl();
|
||||
|
||||
|
||||
$o .= <<< EOT
|
||||
|
||||
<br><br>
|
||||
<p>Try another destination with the <a href="$baseurl/infiniteimprobabilitydrive">Infinite Improbability Drive</a>
|
||||
<iframe src ="$baseurl/randprof" height="1200" width="1024">
|
||||
|
||||
|
||||
|
||||
EOT;
|
||||
return $o;
|
||||
|
||||
}
|
BIN
morechoice.tgz
BIN
morechoice.tgz
Binary file not shown.
BIN
posterous.tgz
Executable file → Normal file
BIN
posterous.tgz
Executable file → Normal file
Binary file not shown.
Loading…
Reference in a new issue