aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-10-26 03:35:20 +0000
committerrvelices <rv-github@modusoptimus.com>2006-10-26 03:35:20 +0000
commit12182ddcfeced9934f45f20a3859049066ce0726 (patch)
tree01112ee697fa5f7cfb421fee0e6d212069ed1d58 /plugins
parent9e770f68a31109748880b9027dfd43d1495f13df (diff)
plugins: first prototype version
git-svn-id: http://piwigo.org/svn/trunk@1578 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins')
-rw-r--r--plugins/hello_world/index.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/hello_world/index.php b/plugins/hello_world/index.php
new file mode 100644
index 000000000..d2a8bcddb
--- /dev/null
+++ b/plugins/hello_world/index.php
@@ -0,0 +1,18 @@
+<?php /*
+Plugin Name: Hello World !
+Author: PhpWebGallery team
+Description: This example plugin changes the page banner for the administration page
+*/
+
+add_event_handler('page_banner', 'hello_world_banner' );
+
+function hello_world_banner($banner)
+{
+ global $page;
+ if ( isset($page['body_id']) and $page['body_id']=='theAdminPage')
+ {
+ return '<h1>Hello world from PhpWebGallery plugin!</h1>';
+ }
+ return $banner;
+}
+?>