1
0

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:
Garvin Hicking
2009-03-20 17:07:23 +00:00
parent f47a3e9b83
commit efbb45c006
3 changed files with 32 additions and 0 deletions

View File

@ -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) {