:'') . '.css" /><link rel="stylesheet" type="text/css" media="screen" href="' . xoops_getcss($icmsConfig['theme_set']) . '" />'; $css =& $tpltpl_handler->find($icmsConfig['template_set'], 'css', 0, NULL, NULL, TRUE); $csscount = count($css); for ($i = 0; $i < $csscount; $i++) { $dummylayout .= "\n" . $css[$i]->getVar('tpl_source'); } $dummylayout .= "\n" . '</style></head><body><div id="xo-canvas"><{$content}></div></body></html>'; if ($tplfile->getVar('tpl_type') == 'block') { $block = new icms_view_block_Object($tplfile->getVar('tpl_refid')); $xoopsTpl->assign('block', $block->buildBlock()); } $dummytpl = '_dummytpl_' . time() . '.html'; $fp = fopen(ICMS_CACHE_PATH . '/' . $dummytpl, 'w'); fwrite($fp, $html); fclose($fp); $xoopsTpl->assign('content', $xoopsTpl->fetch('file:' . ICMS_CACHE_PATH . '/' . $dummytpl)); $xoopsTpl->clear_compiled_tpl('file:' . ICMS_CACHE_PATH . '/' . $dummytpl); unlink(ICMS_CACHE_PATH . '/' . $dummytpl); $dummyfile = '_dummy_' . time() . '.html'; $fp = fopen(ICMS_CACHE_PATH . '/' . $dummyfile, 'w'); fwrite($fp, $dummylayout); fclose($fp); $tplset= $tplfile->getVar('tpl_tplset'); $tform = array('tpl_tplset' => $tplset, 'tpl_id' => $id, 'tpl_file' => $tplfile->getVar('tpl_file'), 'tpl_desc' => $tplfile->getVar('tpl_desc'), 'tpl_lastmodified' => $tplfile->getVar('tpl_lastmodified'), 'tpl_source' => htmlspecialchars($html, ENT_QUOTES), 'tpl_module' => $moddir);