I'm sorry, but I have forgotten add version. My mistake.
I'm using !JoComment 4.0 alpha2.
I have finded function which generate code of style
function CSS()
{
global $mainframe;
$cache = $mainframe->getCfg('caching');
/*
* cache does not calculate again head for bots... :(
* and link rel outside head is not good accepted by IE7
* for example after a embed object...
* not a complete solution but less blocking
*/
if ($cache) {
$html = "n<script type = "text/javascript">"
. "<!--"
. "n if (!JOSC_cssStyleSheet)" /* TODO: search in StyleSheets elements if exist */
. "n { var JOSC_csslink = document.createElement('link');"
. "n var JOSC_cssStyleSheet = '". $this->_template_path . $this->_name . '/css/'.$this->_css ."';"
. "n JOSC_csslink.setAttribute('href', JOSC_cssStyleSheet );"
. "n JOSC_csslink.setAttribute('rel', 'stylesheet');"
. "n JOSC_csslink.setAttribute('type', 'text/css');"
. "n var JOSC_csshead = document.getElementsByTagName('head').item(0);"
. "n JOSC_csshead.appendChild(JOSC_csslink);"
. "n }//-->"
. "n</script>";
return $html;
} else {
return JOSC_utils::insertToHead('<link rel="stylesheet" href="' . $this->_template_path . $this->_name . '/css/'.$this->_css.'" type="text/css" />');
}
}
Regards,
Peter