'; $theme_css .= ''; $cbe_core = ''; $cbe_event = ''; $cbe_slide = ''; $skin_idots2 = ''; $x_core = ''; $x_events = ''; $x_shortcuts = ''; $xdesktop .= $theme_css . $cbe_core . $cbe_event . $cbe_slide . $skin_idots2 . $x_core . $x_events . $x_shortcuts; } else { //Just a normal page $bodyheader = ' id="xpage"'; $menu_js = ''; $theme_css = ''; $xdesktop = $theme_css . $menu_js; } /* ** Create/use the template */ $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); $tpl->set_unknowns('remove'); $tpl->set_file(array('_head' => 'head.tpl')); $tpl->set_block('_head','head'); if ($GLOBALS['phpgw_info']['flags']['app_header']) { $app = $GLOBALS['phpgw_info']['flags']['app_header']; } else { $app = $GLOBALS['phpgw_info']['flags']['currentapp']; $app = isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app); } if($GLOBALS['phpgw_info']['flags']['currentapp']=='eGroupWare') { $app = ""; } $var = Array( 'img_icon' => PHPGW_IMAGES_DIR . '/favicon.ico', 'img_shortcut' => PHPGW_IMAGES_DIR . '/favicon.ico', 'slider_effects'=> $slider_effects, 'simple_show_hide'=> $simple_show_hide, 'lang_code' => $lang_code, 'charset' => $GLOBALS['phpgw']->translation->charset(), 'font_family' => $GLOBALS['phpgw_info']['theme']['font'], 'website_title' => $GLOBALS['phpgw_info']['server']['site_title']. ($app ? " [$app]" : ''), 'body_tags' => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(), 'xdesktop' => $xdesktop, 'css' => $GLOBALS['phpgw']->common->get_css(), 'bckGrnd' => $bckGrnd, 'java_script' => $GLOBALS['phpgw']->common->get_java_script(), ); $tpl->set_var($var); $tpl->pfp('out','head'); unset($tpl); ?>