You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 31, 2020. It is now read-only.
The plugin-files should be located in inc/plugins/ and will be included automatically, if the file extension is “.php” (to disable a plugin you can change the file extension). A plugin-file contains the plugin-class and a command to add it as a new Object to $PLUGINS.
raw plugin-file:
<?phpclass SomePlugin {
functiongetBody($main) {
// uses information from database ($main) to create html-formatted page-content
}
functiongetHead($main) {
// (uses information from database ($main)) to create stuff for <head> of the html-document
}
functiongetMain($post) {
// uses $_POST from the editor to build the data that goes into <main>
}
functiongetEditor() {
// returns html-form to edit this type of page
}
}
// add plugin-object for plugin-type$PLUGINS["plugin-type"] = newSomePlugin();
?>