Simple Website Framework

Adding Plugins

Monday April 20th, 2026

Written by Scary le Poo

The framework uses a manual plugin integration system. Plugins are loaded via plugins/plugins.php, which is included in the of every page when $loadplugins is set to true in config/config.php.


How the Plugin System Works

plugins/plugins.php does two things:

1. Loads assets in the — CSS files and any scripts that need to load early are output directly as the file is included.

2. Builds a $pluginCalledBelowContent string — many JavaScript plugins need to run after the page content exists in the DOM, not in the . Rather than output these scripts immediately, plugins append their