Yes, that "[...]" is what I meant, or use the example down below.Don Chambers wrote:I thought I was onto something with this:
[...]
Problem I am having is that $template_loaded_config['colorset'] is empty, even though the config option is set to a selected color....
I've probably missed something really simple, but it is late, and I need sleep. Any suggestions appreciated.
Just change global $serendipity; to global $template_loaded_config; and read about how to prepend/append to serendipity.css in my following example.
Code: Select all
function serendipity_plugin_api_event_hook($event, &$bag, &$eventData, $addData = null) {
global $serendipity; # use only when needed!
switch($event) {
case 'frontend_footer':
echo '<!--PLUGIN API-->';
break;
case 'css':
echo "\n place styles directly \n\n"; // - will prepend to serendipity.css
$eventData .= "\n place styles \n\n"; // - will append to serendipity css
# both will apply to plugin section, say before user.css data.
break;
default:
return false;
}
return true;
}