'; } if(!$GLOBALS['egw_info']['user']['preferences']['common']['disable_slider_effects']) { $slider_effects_src = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/jerryr/js/slidereffects.js'; $slider_effects = ''; } else { $simple_show_hide_src = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/jerryr/js/simple_show_hide.js'; $simple_show_hide = ''; } // 030204 ndee for calling foldertree $foldertree_src = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/js/foldertree/foldertree.js'; $js_foldertree = ''; $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['egw_info']['flags']['app_header']) { $app = $GLOBALS['egw_info']['flags']['app_header']; } else { $app = $GLOBALS['egw_info']['flags']['currentapp']; $app = isset($GLOBALS['egw_info']['apps'][$app]) ? $GLOBALS['egw_info']['apps'][$app]['title'] : lang($app); } $var = Array( 'img_icon' => PHPGW_IMAGES_DIR . '/favicon.ico', 'img_shortcut' => PHPGW_IMAGES_DIR . '/favicon.ico', 'pngfix' => $pngfix, 'slider_effects'=> $slider_effects, 'simple_show_hide'=> $simple_show_hide, 'lang_code'=> $lang_code, 'charset' => $GLOBALS['phpgw']->translation->charset(), 'font_family' => $GLOBALS['egw_info']['theme']['font'], 'website_title' => $GLOBALS['egw_info']['server']['site_title'] . ($app ? " [$app]" : ''), 'body_tags' => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(), 'theme_css' => $theme_css, 'css' => $GLOBALS['phpgw']->common->get_css(), 'java_script' => $GLOBALS['phpgw']->common->get_java_script(), 'js_foldertree' => $js_foldertree, ); $tpl->set_var($var); $tpl->pfp('out','head'); unset($tpl); ?>