]> jfr.im git - irc/unrealircd/unrealircd-webpanel-plugins.git/blob - example_plugin/example_plugin.php
9a6156f64791b7479c46f034130cd9795ebfa7b3
[irc/unrealircd/unrealircd-webpanel-plugins.git] / example_plugin / example_plugin.php
1 <?php
2
3 /**
4 @title Example Plugin
5 @author Valware
6 @contact valerie@valware.co.uk
7 @version 1.0
8 @tested 0.9
9 @minver 0.9
10 @maxver *
11 @license GPLv3
12 @icon screenshots/icon.png
13 @screenshot screenshots/example_plugin.png
14 @screenshot screenshots/example_plugin2.png
15 */
16
17 class example_plugin
18 {
19 public $name = "Example plugin";
20 public $author = "Valware";
21 public $version = "1.0";
22 public $description = "An example plugin to show how to make stuff";
23 public $email = "v.a.pond@outlook.com";
24
25 function __construct()
26 {
27 Hook::func(HOOKTYPE_NAVBAR, 'example_plugin::add_navbar');
28 }
29
30 public static function add_navbar(&$pages)
31 {
32 $page_name = "Example";
33 $page_link = "plugins/example_plugin/example.php";
34 $pages[$page_name] = $page_link;
35 }
36 }
37