]>
Commit | Line | Data |
---|---|---|
90dc8f2b VP |
1 | <?php |
2 | ||
3 | class example_plugin | |
4 | { | |
55fd88eb VP |
5 | public $name = "Example plugin"; |
6 | public $author = "Valware"; | |
7 | public $version = "1.0"; | |
8 | public $description = "An example plugin to show how to make stuff"; | |
b65f0496 | 9 | public $email = "v.a.pond@outlook.com"; |
90dc8f2b | 10 | |
55fd88eb VP |
11 | function __construct() |
12 | { | |
13 | Hook::func(HOOKTYPE_NAVBAR, 'example_plugin::add_navbar'); | |
14 | } | |
90dc8f2b | 15 | |
55fd88eb VP |
16 | public static function add_navbar(&$pages) |
17 | { | |
18 | $page_name = "Example"; | |
19 | $page_link = "plugins/example_plugin/example.php"; | |
20 | $pages[$page_name] = $page_link; | |
21 | } | |
90dc8f2b | 22 | } |