There are 4 plugin even triggers for /motif plugins:
- onAfterMotifLoad
- onBeforeInclude
- onAfterInclude
- onBeforeLoadModulePosition
- onAfterLoadModulePosition
onAfterMotifLoad( &$motif )
This trigger occurs after the /motif framework is initialized and before the HTML is rendered. This can be used to dynamically change the active theme, add a custom class element to the body tag, or anything else you might want to do at this point in the process.
onBeforeInclude( &$motif, $filename )
This trigger occurs before the index.php, offline.php, or component.php file gets loaded. This could be useful for adding HTML to the beginning of the document, after the <body> tag.
onAfterInclude( &$motif, $filename )
This trigger occurs after the index.php, offline.php, or component.php file gets loaded. This could be useful for adding HTML to the end of the document, before the </body> tag.
onBeforeLoadModulePosition( &$motif, &$name, &$style, &$preHtml, &$postHtml, &$attribs )
This trigger occurs before a module position is loaded, assuming it is loaded with a /motif function and not using the "jdoc:include" tag.
