There are others global PHP files like global_images.inc.php for images manipulations or emails/global_email.inc.php to send emails.
Include these PHP global files only if needed for performance reasons.
To include in the DOM your CSS files, they must be in folder /include/css/. To include a CSS file in your DOM, add its name without the last dash containing its version number and its extension in the argument of the PHP function get_cssFiles() which must be an array. The return value must go in the variable $cssFiles.
Files will be analysed to include automaticly the most recent version, example by including in the DOM in addition to the navbar and main CSS files the test file:
Result in the DOM:
If you modify your CSS files, then update the version number of your file to include in the DOM your last updates.
Plugins CSS files can be inserted in the DOM from your local server or from an external CDN. CSS local files of plugins must be in the folder /include/plugins/css/.
To include a plugin CSS file in your DOM, add its filename in the PHP array variable $cssPlugins which must be an array, example by including in the DOM 2 plugins CSS files, one from local server and the second one from a CDN:
Result in the DOM:
Your JS files to include in the DOM must be in folder /include/js/. To include a JS file in your DOM, add its name without the last dash containing its version number and its extension in the argument of the PHP function get_jsFiles() which must be an array. The return value must go in the variable $jsFiles.
Files will be analysed to include automaticly the most recent version, example by including in the DOM in addition to the global JS file the test file:
Result in the DOM:
If you modify your JS file, then update the version number of your file to include in the DOM your last updates.
You can use the PHP global variables $jsDocumentReady $jsWindowLoaded $jsWindowResize $jsPlugins $jsScripts for non global JS functions to insert the JS into the DOM directly.
Plugins JS files can be inserted in the DOM from your local server or from an external CDN. Plugins JS local files must be in the folder /include/plugins/js/.
To include a plugin JS file in your DOM, add its filename in the PHP array variable $jsPlugins which must be an array, example by including in the DOM 2 plugins JS files, one from local server and the second one from a CDN:
Plugins JS files from CDN must start only with // and not with http or https, it will automatically select the https version.
Result in the DOM:
PHP files of the script phpRegister, this list does not display PHP files from external libraries. The files have been named so that it is easy to understand what they are going to do.