13
Very interesting Blueteen

On my website, I use the following code added in the header.php file (yes, I know, hacking core files is not a good idea):
le="color: #000000"><?php $toppage = false; if (isset($xoopsModule) && is_object($xoopsModule)) { if (preg_match("/index.php$/i", xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname')) { $toppage = true; } } else { if (!empty($xoopsOption['show_cblock'])) { $toppage = true; } $xoopsTpl->assign('xoops_istoppage',$toppage); }
So, in any theme.html file, I can use:
le="color: #000000"><?php <{if $xoops_istoppage}> some code here <{/if}>
Cheers