メイン | 簡易ヘッドライン |
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 );
}
}
public function
eventCoreHeaderAddmeta ( $args )
{
if ( defined (
"XOOPS_STARTPAGE_REDIRECTED" ) || (isset(
$GLOBALS [ 'xoopsOption' ][ 'template_main' ]) && $GLOBALS
[ 'xoopsOption' ][ 'template_main' ] === 'db:system_homepage.tpl' )) {
if ( is_object ( $GLOBALS [
'xoopsTpl' ])) {
$GLOBALS
[ 'xoopsTpl' ]-> assign ( 'homepage' ,
true );
}
}
if (!empty( $_SESSION
[ 'redirect_message' ])) {
$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/java_script' ), '
(function($){
$(document).ready(function(){
$.jGrowl("'
. $_SESSION [ 'redirect_message'
] .
'", { life:3000 , position: "center", speed: "slow" });
});
})(jQuery);
' );
}
}