diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 284c17dfe1..b058c42a41 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -715,6 +715,14 @@ $GLOBALS['phpgw_info']['server']['template_set'] = 'default'; } +/******** start temporarily code **************************************/ +/* this just makes sure the template set is updated to the new format */ +if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info']['server']['template_set'].'/parts.inc.php')) +{ + $GLOBALS['phpgw_info']['server']['template_set'] = 'default'; +} +/******** end temporarily code **************************************/ + $tpldir = PHPGW_SERVER_ROOT . '/' . $appname . '/templates/' . $GLOBALS['phpgw_info']['server']['template_set']; $tpldir_default = PHPGW_SERVER_ROOT . '/' . $appname . '/templates/default'; @@ -1275,7 +1283,7 @@ function load_preload_images_data() { - $GLOBALS['phpgw_info']['flags']['preload_images'][] = $GLOBALS['phpgw_info']['navbar']['logout']['icon']; + //$GLOBALS['phpgw_info']['flags']['preload_images'][] = $GLOBALS['phpgw_info']['navbar']['logout']['icon']; if(@is_array($GLOBALS['phpgw_info']['flags']['preload_images'])) { @@ -1300,6 +1308,11 @@ function load_phpgw_body_tags() { + $GLOBALS['phpgw_info']['flags']['body_tags']['bgcolor'] = $GLOBALS['phpgw_info']['theme']['bg_color']; + $GLOBALS['phpgw_info']['flags']['body_tags']['alink'] = $GLOBALS['phpgw_info']['theme']['alink']; + $GLOBALS['phpgw_info']['flags']['body_tags']['link'] = $GLOBALS['phpgw_info']['theme']['link']; + $GLOBALS['phpgw_info']['flags']['body_tags']['vlink'] = $GLOBALS['phpgw_info']['theme']['vlink']; + $GLOBALS['phpgw_info']['flags']['body_tags']['marginwidth']='0'; $GLOBALS['phpgw_info']['flags']['body_tags']['marginheight']='0'; $GLOBALS['phpgw_info']['flags']['body_tags']['topmargin']='0'; @@ -1318,7 +1331,10 @@ reset($GLOBALS['phpgw_info']['flags']['body_tags']); while(list($key,$value) = each($GLOBALS['phpgw_info']['flags']['body_tags'])) { - $body_tags_string .= " $key=\"$value\""; + if($value != '') + { + $body_tags_string .= " $key=\"$value\""; + } } $GLOBALS['phpgw']->template->set_var('phpgw_body_tags',$body_tags_string); } diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index 742165484e..47737218ae 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -325,9 +325,6 @@ $GLOBALS['phpgw_info']['flags']['msgbox_data'][$message]=False; } - -/*DELETE ME SOON!!!!*/ $GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'] = 'default'; - /*************************************************************************\ * A few hacker resistant constants that will be used throught the program * \*************************************************************************/ @@ -352,16 +349,16 @@ /* These default values will be overridden and appended to as needed by template sets */ $GLOBALS['phpgw']->template->set_var('phpgw_top_table_height','0'); $GLOBALS['phpgw']->template->set_var('phpgw_top_frame_height','0'); - $GLOBALS['phpgw']->template->set_var('phpgw_top_scrolling','NO'); + $GLOBALS['phpgw']->template->set_var('phpgw_top_scrolling','AUTO'); $GLOBALS['phpgw']->template->set_var('phpgw_left_table_width','0'); $GLOBALS['phpgw']->template->set_var('phpgw_left_frame_width','0'); - $GLOBALS['phpgw']->template->set_var('phpgw_left_scrolling','NO'); + $GLOBALS['phpgw']->template->set_var('phpgw_left_scrolling','AUTO'); $GLOBALS['phpgw']->template->set_var('phpgw_right_table_width','0'); $GLOBALS['phpgw']->template->set_var('phpgw_right_frame_width','0'); - $GLOBALS['phpgw']->template->set_var('phpgw_right_scrolling','NO'); + $GLOBALS['phpgw']->template->set_var('phpgw_right_scrolling','AUTO'); $GLOBALS['phpgw']->template->set_var('phpgw_bottom_table_height','0'); $GLOBALS['phpgw']->template->set_var('phpgw_bottom_frame_height','0'); - $GLOBALS['phpgw']->template->set_var('phpgw_bottom_scrolling','NO'); + $GLOBALS['phpgw']->template->set_var('phpgw_bottom_scrolling','AUTO'); $GLOBALS['phpgw']->template->set_var('phpgw_head_charset',lang('charset')); $GLOBALS['phpgw']->template->set_var('phpgw_head_description','phpGroupWare'); @@ -562,6 +559,11 @@ \*************************************************************************/ if(!PHPGW_USE_FRAMES || PHPGW_FRAME_PART == 'body') { + /* parse_bodypart() should not output anything. This is here for them to set body tags and such */ + if(function_exists('parse_bodypart')) + { + parse_bodypart(); + } /* Verify that user has rights to the currentapp */ $continue_app_data = True; if ($GLOBALS['phpgw_info']['flags']['currentapp'] != 'home' && diff --git a/phpgwapi/templates/default/parts.inc.php b/phpgwapi/templates/default/parts.inc.php index 319ecba7d9..2551f1ea43 100644 --- a/phpgwapi/templates/default/parts.inc.php +++ b/phpgwapi/templates/default/parts.inc.php @@ -105,7 +105,7 @@ $GLOBALS['phpgw']->template->set_file('parts','parts.tpl'); $GLOBALS['phpgw']->template->set_block('parts','bottom_part'); $var = Array( - 'msg' => "
\n".lang('Powered by phpGroupWare version x',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']), + 'msg' => "
\n".lang('Powered by phpGroupWare version x',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']).'
', 'version' => $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'] ); $GLOBALS['phpgw']->template->set_var($var); diff --git a/phpgwapi/templates/default/parts.tpl b/phpgwapi/templates/default/parts.tpl index 24507e1b57..820513cb52 100644 --- a/phpgwapi/templates/default/parts.tpl +++ b/phpgwapi/templates/default/parts.tpl @@ -17,7 +17,7 @@
{msg} |
+ {msg} |
- {powered} - | -