plugins: first prototype version

git-svn-id: http://piwigo.org/svn/trunk@1578 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2006-10-26 03:35:20 +00:00
parent 9e770f68a3
commit 12182ddcfe
13 changed files with 459 additions and 14 deletions
+18
View File
@@ -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;
}
?>