help with hook in localsettings
by Evans, Richard K. (GRC-H000)
I am trying to write my first hook for localsettings.php
I'm trying to write a hook that will place a tiny html div with some linked text at the top left corner of every page (over top the site logo if need be).
Here is what I have so far:
$wgHooks['OutputPageBeforeHTML'][] = 'MyExtensionHook4topleft';
function MyExtensionHook4topleft( &$out ) {
....tbd... = "<div style="position:fixed;left:0px;top:0px"><a href="https://somelink.com">test</a></div>";
return true;
}
Is this right so far?
Can anyone help me determine what needs to go in place of the ...tbd...
-Rich