diff --git a/phpgwapi/templates/idsociety/footer.tpl b/phpgwapi/templates/idsociety/footer.tpl index adc7a57561..916af37b0c 100644 --- a/phpgwapi/templates/idsociety/footer.tpl +++ b/phpgwapi/templates/idsociety/footer.tpl @@ -1,10 +1,23 @@ - - - + + + +
- - - + + + + + +
+ {powered} +
+ + +

 

+ + + + diff --git a/phpgwapi/templates/idsociety/navbar.inc.php b/phpgwapi/templates/idsociety/navbar.inc.php index 011eb7c53f..84aec59cb0 100644 --- a/phpgwapi/templates/idsociety/navbar.inc.php +++ b/phpgwapi/templates/idsociety/navbar.inc.php @@ -9,7 +9,7 @@ * option) any later version. * \**************************************************************************/ - /* $Id$ */ + /* $Id$ */ function parse_navbar($force = False) { @@ -18,14 +18,17 @@ $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); $tpl->set_unknowns('remove'); - $templates = Array('navbar' => 'navbar.tpl'); - $tpl->set_file($templates); + $tpl->set_file(array( + 'navbar' => 'navbar.tpl' + )); + + $tpl->set_block('navbar','B_powered_top','V_powered_top'); $tpl->set_var('img_root',PHPGW_IMAGES_DIR); $tpl->set_var('img_root_roll',PHPGW_IMAGES_DIR . '/rollover'); $tpl->set_var('table_bg_color',$phpgw_info['theme']['navbar_bg']); -# echo '
'; print_r($phpgw_info['navbar']); echo '
'; + # echo '
'; print_r($phpgw_info['navbar']); echo '
'; $applications = ''; while ($app = each($phpgw_info['navbar'])) { @@ -37,7 +40,7 @@ $img_src_over = $phpgw_info['server']['webserver_url'] . '/' . $app[0] . '/templates/idsociety/images/navbar-over.gif'; $img_src_out = $phpgw_info['server']['webserver_url'] . '/' . $app[0] . '/templates/idsociety/images/navbar.gif'; -// onMouseOver="two.src='rollover/admin_over.gif'" onMouseOut="two.src='images/admin.gif'">set_var('logout_img',PHPGW_IMAGES_DIR . '/logout-grey.gif'); -/* if ($phpgw_info['server']['showpoweredbyon'] == 'top') + if ($phpgw_info['server']['showpoweredbyon'] == 'top') { - $tpl->set_var('powered_by',lang('Powered by phpGroupWare version x',$phpgw_info['server']['versions']['phpgwapi'])); + $tpl->set_var("powered_by",lang("Powered by phpGroupWare version x",$phpgw_info["server"]["versions"]["phpgwapi"])); + $tpl->set_var('power_size','2'); + $tpl->parse('V_powered_top','B_powered_top'); } -*/ + else + { + $tpl->set_var('V_powered_top',''); + } + if (isset($phpgw_info['navbar']['admin']) && isset($phpgw_info['user']['preferences']['common']['show_currentusers'])) { $db = $phpgw->db; @@ -118,12 +127,9 @@ */ // If the application has a header include, we now include it - if ((isset($phpgw_info['flags']['noheader']) && - $phpgw_info['flags']['noheader']) && - (!isset($phpgw_info['flags']['noappheader']) || - !$phpgw_info['flags']['noappheader'])) + if ($phpgw_info["flags"]["noheader"] && ! $phpgw_info["flags"]["noappheader"]) { - + } return $tpl->fp('out','navbar'); } @@ -134,10 +140,23 @@ $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); $tpl->set_unknowns('remove'); - $templates = array('footer' => 'footer.tpl'); - $tpl->set_file($templates); - $tpl->set_var('img_root',PHPGW_IMAGES_DIR); - $tpl->set_var('table_bg_color',$phpgw_info['theme']['navbar_bg']); - $tpl->set_var('version',$phpgw_info['server']['versions']['phpgwapi']); + $tpl->set_file(array('footer' => 'footer.tpl')); + $tpl->set_block('footer','B_powered_bottom','V_powered_bottom'); + + if ($phpgw_info["server"]["showpoweredbyon"] == "bottom") + { + $powered = lang("Powered by phpGroupWare version x", $phpgw_info["server"]["versions"]["phpgwapi"]); + $tpl->set_var('powered',$powered); + $tpl->set_var('img_root',PHPGW_IMAGES_DIR); + $tpl->set_var('power_backcolor',$phpgw_info['theme']['navbar_bg']); + $tpl->set_var('power_textcolor',$phpgw_info['theme']['navbar_text']); + //$tpl->set_var('version',$phpgw_info['server']['versions']['phpgwapi']); + $tpl->parse('V_powered_bottom','B_powered_bottom'); + } + else + { + $tpl->set_var('V_powered_bottom',''); + } + $tpl->pfp('out','footer'); } diff --git a/phpgwapi/templates/idsociety/navbar.tpl b/phpgwapi/templates/idsociety/navbar.tpl index 7fe974041a..d570d7c078 100755 --- a/phpgwapi/templates/idsociety/navbar.tpl +++ b/phpgwapi/templates/idsociety/navbar.tpl @@ -11,52 +11,51 @@ - -
- - - - - - - - - - -{applications} - - - - -
- -
- - - - - - - - - - - - - - +
- - - - - - - - -
- -
-{user_info}  {current_users} -
- + + + + + + + + + + {applications} + + + +
+
+ + + + + + + + + + + + + + + + + +
+ + + + + + + +
+
+  {powered_by} +
+ {user_info}    {current_users} +
diff --git a/phpgwapi/themes/idsociety.theme b/phpgwapi/themes/idsociety.theme index b6cd3f23a8..9e41eb7e3f 100755 --- a/phpgwapi/themes/idsociety.theme +++ b/phpgwapi/themes/idsociety.theme @@ -24,7 +24,7 @@ $phpgw_info['theme']['th_bg']= '#d3dce3'; $phpgw_info['theme']['th_text']= '#000000'; $phpgw_info['theme']['navbar_bg']= '#adadad'; - $phpgw_info['theme']['navbar_text']= '#000000'; + $phpgw_info['theme']['navbar_text']= '#ffffff'; $phpgw_info['theme']['table_bg']= '#9999ff'; $phpgw_info['theme']['table_text']= '#000000'; $phpgw_info['theme']['font']= 'Arial, Helvetica, san-serif';