2004-01-24 17:55:44 +01:00
|
|
|
<?php
|
|
|
|
/**************************************************************************\
|
2004-08-09 14:25:51 +02:00
|
|
|
* eGroupWare *
|
|
|
|
* http://www.egroupware.org *
|
2004-01-24 17:55:44 +01:00
|
|
|
* -------------------------------------------- *
|
|
|
|
* This program is free software; you can redistribute it and/or modify it *
|
|
|
|
* under the terms of the GNU General Public License as published by the *
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
|
|
* option) any later version. *
|
|
|
|
\**************************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
// get used language code
|
|
|
|
$lang_code = 'en';
|
|
|
|
|
2005-03-03 11:45:52 +01:00
|
|
|
$bodyheader = ' bgcolor="' . $GLOBALS['egw_info']['theme']['bg_color'] . '" alink="'
|
|
|
|
. $GLOBALS['egw_info']['theme']['alink'] . '" link="' . $GLOBALS['egw_info']['theme']['link'] . '" vlink="'
|
|
|
|
. $GLOBALS['egw_info']['theme']['vlink'] . '"';
|
2004-01-24 17:55:44 +01:00
|
|
|
|
2005-03-03 11:45:52 +01:00
|
|
|
if(!$GLOBALS['egw_info']['server']['htmlcompliant'])
|
2004-01-24 17:55:44 +01:00
|
|
|
{
|
|
|
|
$bodyheader .= '';
|
|
|
|
}
|
|
|
|
|
2005-03-03 11:45:52 +01:00
|
|
|
#_debug_array($GLOBALS['egw_info']['user']['preferences']['common']);
|
|
|
|
$theme_css = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/jerryr/css/'.$GLOBALS['egw_info']['user']['preferences']['common']['theme'].'.css';
|
2004-01-24 17:55:44 +01:00
|
|
|
if(!file_exists($theme_css))
|
|
|
|
{
|
2005-03-03 11:45:52 +01:00
|
|
|
$theme_css = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/jerryr/css/'.$GLOBALS['egw_info']['user']['preferences']['common']['theme'].'.css';
|
2004-01-24 17:55:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
//pngfix defaults to yes
|
2005-03-03 11:45:52 +01:00
|
|
|
if(!$GLOBALS['egw_info']['user']['preferences']['common']['disable_pngfix'])
|
2004-01-24 17:55:44 +01:00
|
|
|
{
|
2005-03-03 11:45:52 +01:00
|
|
|
$pngfix_src = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/jerryr/js/pngfix.js';
|
2004-01-24 17:55:44 +01:00
|
|
|
$pngfix ='<!-- This solves the Internet Explorer PNG-transparency bug, but only for IE 5.5 and higher -->
|
|
|
|
<!--[if gte IE 5.5000]>
|
|
|
|
<script src="'.$pngfix_src.'" type="text/javascript">
|
|
|
|
</script>
|
|
|
|
<![endif]-->';
|
|
|
|
}
|
|
|
|
|
2005-03-03 11:45:52 +01:00
|
|
|
if(!$GLOBALS['egw_info']['user']['preferences']['common']['disable_slider_effects'])
|
2004-01-24 17:55:44 +01:00
|
|
|
{
|
2005-03-03 11:45:52 +01:00
|
|
|
$slider_effects_src = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/jerryr/js/slidereffects.js';
|
2004-01-24 17:55:44 +01:00
|
|
|
$slider_effects = '<script src="'.$slider_effects_src.'" type="text/javascript">
|
|
|
|
</script>';
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2005-03-03 11:45:52 +01:00
|
|
|
$simple_show_hide_src = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/jerryr/js/simple_show_hide.js';
|
2004-01-24 17:55:44 +01:00
|
|
|
$simple_show_hide = '<script src="'.$simple_show_hide_src.'" type="text/javascript">
|
|
|
|
</script>';
|
|
|
|
}
|
|
|
|
|
2004-02-10 11:57:02 +01:00
|
|
|
// 030204 ndee for calling foldertree
|
|
|
|
|
2005-03-03 11:45:52 +01:00
|
|
|
$foldertree_src = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/js/foldertree/foldertree.js';
|
2004-02-10 11:57:02 +01:00
|
|
|
$js_foldertree = '<script src="'.$foldertree_src.'" type="text/javascript"></script>';
|
|
|
|
|
2004-01-24 17:55:44 +01:00
|
|
|
$tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
|
|
|
|
$tpl->set_unknowns('remove');
|
|
|
|
$tpl->set_file(array('_head' => 'head.tpl'));
|
|
|
|
$tpl->set_block('_head','head');
|
|
|
|
|
2005-03-03 11:45:52 +01:00
|
|
|
if ($GLOBALS['egw_info']['flags']['app_header'])
|
2004-06-13 22:09:27 +02:00
|
|
|
{
|
2005-03-03 11:45:52 +01:00
|
|
|
$app = $GLOBALS['egw_info']['flags']['app_header'];
|
2004-06-13 22:09:27 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2005-03-03 11:45:52 +01:00
|
|
|
$app = $GLOBALS['egw_info']['flags']['currentapp'];
|
|
|
|
$app = isset($GLOBALS['egw_info']['apps'][$app]) ? $GLOBALS['egw_info']['apps'][$app]['title'] : lang($app);
|
2004-06-13 22:09:27 +02:00
|
|
|
}
|
2004-01-24 17:55:44 +01:00
|
|
|
$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(),
|
2005-03-03 11:45:52 +01:00
|
|
|
'font_family' => $GLOBALS['egw_info']['theme']['font'],
|
|
|
|
'website_title' => $GLOBALS['egw_info']['server']['site_title'] . ($app ? " [$app]" : ''),
|
2004-01-24 17:55:44 +01:00
|
|
|
'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(),
|
2004-02-10 11:57:02 +01:00
|
|
|
'js_foldertree' => $js_foldertree,
|
2004-01-24 17:55:44 +01:00
|
|
|
);
|
|
|
|
$tpl->set_var($var);
|
|
|
|
$tpl->pfp('out','head');
|
|
|
|
unset($tpl);
|
|
|
|
?>
|