Added possibility for templates to register a central function
serendipity_plugin_api_event_hook() and serendipity_plugin_api_pre_event_hook()
This commit is contained in:
@ -13,6 +13,18 @@ include dirname(__FILE__) . '/lang_en.inc.php';
|
||||
|
||||
$serendipity['smarty']->assign(array('currpage'=> "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']));
|
||||
|
||||
function serendipity_plugin_api_event_hook($event, &$bag, &$eventData, $addData = null) {
|
||||
global $serendipity;
|
||||
|
||||
switch($event) {
|
||||
case 'frontend_footer':
|
||||
echo '<!--PLUGIN API-->';
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
if ($serendipity['GET']['adminModule'] == 'templates') {
|
||||
$css_files = glob(dirname(__FILE__) . '/*_style.css');
|
||||
foreach($css_files AS $css_file) {
|
||||
|
Reference in New Issue
Block a user