js -> validate_file( 'templatejs', ( ( ! $GLOBALS['phpgw_info']['user']['preferences']['common']['disable_slider_effects'] ) ? 'slidereffects' : 'simple_show_hide' ), 'phpgwapi/templates/' . $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ], true ); $bodyheader = ' bgcolor="' . $GLOBALS['phpgw_info']['theme']['bg_color'] . '" link="' . $GLOBALS['phpgw_info']['theme']['link'] . '" alink="' . $GLOBALS['phpgw_info']['theme']['alink'] . '" vlink="' . $GLOBALS['phpgw_info']['theme']['vlink'] . '"'; $app = $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]; $app = ( $app ) ? ' [' . ( isset( $GLOBALS[ 'phpgw_info' ][ 'apps' ][ $app ] ) ? $GLOBALS[ 'phpgw_info' ][ 'apps' ][ $app ][ 'title' ] : lang( $app ) ) . ']' : ''; $webserver_url = ( ! empty( $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] ) ) ? $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] : '/'; if ( strpos( $webserver_url, '/' ) != ( strlen( $webserver_url ) - 1 ) ) $webserver_url .= '/'; if( is_null($_SESSION['phpgw_info'][$GLOBALS['phpgw_info']['flags']['currentapp']]['user'])) $tmpDefault = "default"; else $tmpDefault = $_SESSION['phpgw_info'][$GLOBALS['phpgw_info']['flags']['currentapp']]['user']['preferences']['common']['template_set']; $var = Array( 'img_icon' => "{$webserver_url}{$GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]}/templates/{$tmpDefault}/images/navbar.png", 'img_shortcut' => "{$webserver_url}{$GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]}/templates/{$tmpDefault}/images/navbar.png", 'lang_code' => $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'lang' ], 'charset' => $GLOBALS[ 'phpgw' ] -> translation -> charset( ), 'font_family' => $GLOBALS[ 'phpgw_info' ][ 'theme' ][ 'font' ], 'website_title' => "{$GLOBALS[ 'phpgw_info' ][ 'server' ][ 'site_title' ]} $app", 'body_tags' => "{$bodyheader} {$GLOBALS[ 'phpgw' ] -> common -> get_body_attribs()}", 'css' => $GLOBALS[ 'phpgw' ] -> common -> get_css( ), 'java_script' => $GLOBALS[ 'phpgw' ] -> common -> get_java_script( ), 'content' => $content ); $tpl = CreateObject( 'phpgwapi.Template', PHPGW_TEMPLATE_DIR ); $tpl -> set_unknowns( 'remove' ); $tpl -> set_file( array( '_head' => 'head.tpl' ) ); $tpl -> set_block( '_head', 'head' ); $tpl -> set_var( $var ); $tpl -> pfp( 'out', 'head' ); unset( $tpl ); ?>