Added example template to HelloPlugin.
[viewgit.git] / plugins / hello / main.php
blobaf0a743a9e08a0d61c3c4846207b44de0c06de44
1 <?php
3 class HelloPlugin extends VGPlugin
5 function __construct() {
6 global $conf;
7 if (isset($conf['hello'])) {
8 $this->register_action('hello');
9 $this->register_hook('pagenav');
13 function action($action) {
14 $this->display_plugin_template('hello');
17 function hook($type) {
18 if ($type == 'pagenav') {
19 global $page;
20 $page['links']['hello'] = array('a' => 'hello');