Hook beforeBodyClose: Difference between revisions
Jump to navigation
Jump to search
CFoellmann (talk | contribs) (Created page with "==Usage== Output any (HTML) code just before the closing </body> tag on all or any page <syntaxhighlight lang="php"> public function beforeBodyClose( $parameters, &$object,...") Tag: 2017 source edit |
mNo edit summary Tag: 2017 source edit |
||
| Line 1: | Line 1: | ||
[[Category:Hooks]] | |||
==Usage== | ==Usage== | ||
Latest revision as of 18:57, 6 October 2021
Usage
Output any (HTML) code just before the closing </body> tag on all or any page
public function beforeBodyClose( $parameters, &$object, &$action, $hookmanager ) {
$hookmanager->resPrint = '
<div style="width: 250px; background: white; text-align: center; padding: 10px; margin: 0 auto; border: 8px solid red;">
BODY ENding
</div>';
return 1;
}