]>
Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | ||
3 | class example_plugin | |
4 | { | |
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"; | |
9 | ||
10 | function __construct() | |
11 | { | |
12 | Hook::func(HOOKTYPE_NAVBAR, 'example_plugin::add_navbar'); | |
13 | } | |
14 | ||
15 | public static function add_navbar(&$pages) | |
16 | { | |
17 | $page_name = "Example"; | |
18 | $page_link = "plugins/example_plugin/example.php"; | |
19 | $pages[$page_name] = $page_link; | |
20 | } | |
21 | } |