feel free to keep it strictly simple...
get_page_footers

Function get_page_footers() replaces the old, meanwhile deleted function register_frontend_modfiles_body().

Only include the function call directly before the closing body-Tag of the template:

 

 

<html>
   <head>
	my head infos
   </head>
   <body>
   my content
   <?php get_page_footers(); ?>
   </body>
 </html>

 

The function is backward compatible and automatically loads the following files of all modules used on the current page:

  • module/frontend_body.js
  • module/js/frontend_body.js
  • module/backend_body.js
  • module/js/backend_body.js

In addition, every module can have a file named footers.inc.php to define additional files.