Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- /*
- © 2011 Bloodhound do not share, re-distribute or modify
- this file without the permission of its owner (connawiles@gmail.com).
- */
- class HelloWorld extends BasePlugin
- {
- /*
- A function to get the plugin information.
- Parameters: none.
- */
- static public function GetInfo()
- {
- return array(
- "Name" => "Hello World",
- "Desc" => "A plugin to display hello world.",
- "Author" => "Conna Wiles"
- );
- }
- /*
- A hook called when the page is loaded.
- Parameters: a data array object which can be modified.
- */
- static public function OnPageLoad($dataArray)
- {
- ?>
- <div class="contentBox">
- <div class="contentTitle">
- <img src="images/icons/package.png"/>Hello World
- </div>
- <div class="contentText">
- This box was created by the Hello World plugin using the OnPageLoad hook.
- </div>
- </div>
- <?
- }
- /*
- A hook called when the mini-nav links are added.
- Parameters: a data array object which can be modified.
- */
- static public function OnMiniNavLinksAdded($dataArray)
- {
- ?>
- <a href="#" class="toolTip" title="This was added by the Hello World plugin using the OnMiniNavLinksAdded."><img src="images/icons/package.png"/>Hello World</a>
- <?
- }
- /*
- A hook called when the navigation links are added.
- Parameters: a data array object which can be modified.
- */
- static public function OnNavigationLinksAdded($dataArray)
- {
- ?>
- <a href="#" class="toolTip" title="This was added by the Hello World plugin using the OnNavigationLinksAdded hook."><img src="images/icons/package.png"/>Hello World</a>
- <?
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement