-
Notifications
You must be signed in to change notification settings - Fork 9
Home
Welcome to the BlackCat CMS wiki!
For a Wiki in German language, please visit http://wiki.blackcat-cms.org
We need you!
Want to help make this even better? Tell us about faults, missing pages, whatever. We're no native English speakers, so any help is welcome!
Use the Pages Tab above to see a complete list of pages.
Quick navigation
get_page_footers()
completely replaces the old method register_frontend_modfiles_body()
.
Just add the function call directly before the closing </body>
-Tag of the template:
<html>
<head>
...more...
</head>
<body>
...
<?php get_page_footers(); ?>
</body>
</html>
Or, for Dwoo based templates:
{get_page_footers()}
For backend templates (which are always Dwoo based), use
{get_page_footers('backend')}
The function is backward compatible and automatically loads the following files of all modules used on the current page:
<Module>/frontend_body.js
In addition, every module can have a file named footers.inc.php
to define additional files.
The basics are the same as described in get_page_headers(). The file should define an array named $mod_footers
.
Of course, neither CSS files can be loaded nor META-settings can be made in the footer. But it is possible to load additional JavaScripts here.
Example:
$mod_footers = array(
'frontend' => array(
'script' => array(
array(
'alert("hello world!");'
),
),
),
);