[903] | 1 | <?php |
---|
| 2 | /**************************************************************************\ |
---|
| 3 | * phpGroupWare * |
---|
| 4 | * http://www.phpgroupware.org * |
---|
| 5 | * -------------------------------------------- * |
---|
| 6 | * This program is free software; you can redistribute it and/or modify it * |
---|
| 7 | * under the terms of the GNU General Public License as published by the * |
---|
| 8 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
| 9 | * option) any later version. * |
---|
| 10 | \**************************************************************************/ |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | $bodyheader = 'BGCOLOR="'.$GLOBALS['phpgw_info']['theme']['bg_color'].'"'; |
---|
| 14 | if($GLOBALS['phpgw_info']['server']['htmlcompliant']) |
---|
| 15 | { |
---|
| 16 | $bodyheader .= ' ALINK="'.$GLOBALS['phpgw_info']['theme']['alink'].'" LINK="'.$GLOBALS['phpgw_info']['theme']['link'].'" VLINK="'.$GLOBALS['phpgw_info']['theme']['vlink'].'"'; |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); |
---|
| 20 | $tpl->set_unknowns('remove'); |
---|
| 21 | $tpl->set_file(array('_head' => 'head.tpl')); |
---|
| 22 | $tpl->set_block('_head','head'); |
---|
| 23 | |
---|
| 24 | if ($GLOBALS['phpgw_info']['flags']['app_header']) |
---|
| 25 | { |
---|
| 26 | $app = $GLOBALS['phpgw_info']['flags']['app_header']; |
---|
| 27 | } |
---|
| 28 | else |
---|
| 29 | { |
---|
| 30 | $app = $GLOBALS['phpgw_info']['flags']['currentapp']; |
---|
| 31 | $app = isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app); |
---|
| 32 | } |
---|
| 33 | $var = Array ( |
---|
| 34 | 'img_icon' => PHPGW_IMAGES_DIR . '/favicon.ico', |
---|
| 35 | 'img_shortcut' => PHPGW_IMAGES_DIR . '/favicon.ico', |
---|
| 36 | 'charset' => $GLOBALS['phpgw']->translation->charset(), |
---|
| 37 | 'font_family' => $GLOBALS['phpgw_info']['theme']['font'], |
---|
| 38 | 'website_title' => $GLOBALS['phpgw_info']['server']['site_title'] . ($app ? " [$app]" : ''), |
---|
| 39 | 'body_tags' => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(), |
---|
| 40 | 'css' => $GLOBALS['phpgw']->common->get_css(), |
---|
| 41 | 'java_script' => $GLOBALS['phpgw']->common->get_java_script(), |
---|
| 42 | ); |
---|
| 43 | $tpl->set_var($var); |
---|
| 44 | $tpl->pfp('out','head'); |
---|
| 45 | unset($tpl); |
---|
| 46 | ?> |
---|