aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/hello_world/index.php
blob: d2a8bcddbf69dfaccd6804007289d9e5eeca2493 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}
?>