]>
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"; | |
90dc8f2b | 9 | |
55fd88eb VP |
10 | function __construct() |
11 | { | |
12 | Hook::func(HOOKTYPE_NAVBAR, 'example_plugin::add_navbar'); | |
13 | } | |
90dc8f2b | 14 | |
55fd88eb VP |
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 | } | |
90dc8f2b | 21 | } |