Trustmaster |
|
---|---|
Ah, so you're using Genoa. Then things are slightly different because in Genoa your main pluginname.php is executed after the header part is rendered. So you need to add another part to your plugin to add that CSS file to header: <?php /* ==================== [BEGIN_SED_EXTPLUGIN] Code=pluginname Part=header File=pluginname.header Hooks=header.main Tags=header.tpl:{HEADER_COMPOPUP} Order=10 [END_SED_EXTPLUGIN] ==================== */ defined('SED_CODE') or die('Wrong URL'); if (defined('SED_PLUG') && $e == 'pluginname') { $out['compopup'] .= '<link rel="stylesheet" type="text/css" href="'.$cfg['plugins_dir'].'/pluginname/tpl/style.css" />'; }
May the Source be with you!
|