]> git.mxchange.org Git - friendica-addons.git/blob - mahjongg/mahjongg.php
Merge pull request #1009 from MrPetovan/task/8929-remove-redundant-uninstall
[friendica-addons.git] / mahjongg / mahjongg.php
1 <?php
2
3 /**
4  * Name: Mah Jongg
5  * Description: Ancient Chinese puzzle game that never gets old.
6  * Version: 1.0
7  * Author: Holger Froese
8  */
9 use Friendica\Core\Hook;
10
11 function mahjongg_install() {
12     Hook::register('app_menu', 'addon/mahjongg/mahjongg.php', 'mahjongg_app_menu');
13 }
14
15 function mahjongg_app_menu($a,&$b) {
16     $b['app_menu'][] = '<div class="app-title"><a href="mahjongg">Mahjongg</a></div>';
17 }
18
19
20 function mahjongg_module() {}
21
22 function mahjongg_content(&$a) {
23
24 $o .= <<< EOT
25 <br><br>
26 <p align="left">
27 <embed src="addon/mahjongg/mahjongg.swf" quality="high" bgcolor="#FFFFFF" width="800" height="600" name="mahjongg" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
28 <br><br>
29 <b>Simply locate the matching tiles and find a way to clear them from the board as quickly as possible.
30 A timer at the top of the screen keeps track of how you are doing.</b><br>
31 </p>
32 EOT;
33
34 return $o;
35 }