mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
plugins: first prototype version
git-svn-id: http://piwigo.org/svn/trunk@1578 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user