23
I have this code:
le="color: #000000"><?php if (defined("XOOPS_STARTPAGE_REDIRECTED") || (isset($GLOBALS['xoopsOption']['template_main']) && $GLOBALS['xoopsOption']['template_main'] == "db:system_homepage.html")) { if (is_object($GLOBALS['xoopsTpl'])) { $GLOBALS['xoopsTpl']->assign('homepage' ,true); } }
The code in the module system:
le="color: #000000"><?php function eventCoreHeaderAddmeta($args) { if (!empty($_SESSION['redirect_message'])) { if (defined("XOOPS_STARTPAGE_REDIRECTED") || (isset($GLOBALS['xoopsOption']['template_main']) && $GLOBALS['xoopsOption']['template_main'] == "db:system_homepage.html")) { if (is_object($GLOBALS['xoopsTpl'])) { $GLOBALS['xoopsTpl']->assign('homepage' ,true); $GLOBALS['xoTheme']->addStylesheet('xoops.css'); $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/jquery.js'); $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/plugins/jquery.jgrowl.js'); $GLOBALS['xoTheme']->addScript('', array('type' => 'text/javascript'), ' (function($){ $(document).ready(function(){ $.jGrowl("' . $_SESSION['redirect_message'] . '", { life:3000 , position: "center", speed: "slow" }); }); })(jQuery); '); } } } }
And I used this code in the theme
le="color: #000000"><?php <div id="news_box"> <{if $homepage}> <td>test</td> <{/if}> </div>
But it does not work
---------------------
I used this code
le="color: #000000"><?php <{if $SCRIPT_NAME == '/index.php' }> <div id="news_box"> <td>test</td> </div> <{/if}>
And
le="color: #000000"><?php <{if $xoops == '/index.php' }> <div id="news_box"> <td>test</td> </div> <{/if}>
But this code does not work