diff --git a/phpgwapi/inc/footer.inc.php b/phpgwapi/inc/footer.inc.php index 3801c4a9b2..db1624e7c0 100644 --- a/phpgwapi/inc/footer.inc.php +++ b/phpgwapi/inc/footer.inc.php @@ -28,15 +28,7 @@ include($phpgw_info["server"]["app_inc"]."/footer.inc.php"); } - $tpl = new Template($phpgw_info["server"]["template_dir"]); - $tpl->set_unknowns("remove"); - - $tpl->set_file(array("footer" => "footer.tpl")); - $tpl->set_var("img_root",$phpgw_info["server"]["webserver_url"] . "/phpgwapi/templates/verdilak/images"); - $tpl->set_var("table_bg_color",$phpgw_info["theme"]["navbar_bg"]); - $tpl->set_var("showpoweredbyon",$phpgw_info["server"]["showpoweredbyon"]); - $tpl->set_var("version",$phpgw_info["server"]["versions"]["phpgwapi"]); - echo $tpl->finish($tpl->parse("out","footer")); + parse_navbar_end(); $phpgw->db->disconnect(); ?> diff --git a/phpgwapi/templates/default/footer.tpl b/phpgwapi/templates/default/footer.tpl index 6dbed987ab..cbafdc3aef 100644 --- a/phpgwapi/templates/default/footer.tpl +++ b/phpgwapi/templates/default/footer.tpl @@ -2,28 +2,9 @@
- Powered by phpGroupWare version {version} |
+ {msg} |
\n" . lang("Powered by phpGroupWare version x", $phpgw_info["server"]["versions"]["phpgwapi"]); + } + + $tpl = new Template($phpgw_info["server"]["template_dir"]); + $tpl->set_unknowns("remove"); + + $tpl->set_file(array("footer" => "footer.tpl")); + $tpl->set_var("img_root",$phpgw_info["server"]["webserver_url"] . "/phpgwapi/templates/verdilak/images"); + $tpl->set_var("table_bg_color",$phpgw_info["theme"]["navbar_bg"]); + $tpl->set_var("msg",$msg); + $tpl->set_var("version",$phpgw_info["server"]["versions"]["phpgwapi"]); + echo $tpl->finish($tpl->parse("out","footer")); + + } diff --git a/phpgwapi/templates/verdilak/navbar.inc.php b/phpgwapi/templates/verdilak/navbar.inc.php index cf3cbf49b5..72fbfedf28 100644 --- a/phpgwapi/templates/verdilak/navbar.inc.php +++ b/phpgwapi/templates/verdilak/navbar.inc.php @@ -81,3 +81,16 @@ } return $tpl->finish($tpl->parse("out","navbar")); } + + function parse_navbar_end() + { + global $phpgw_info, $phpgw; + $tpl = new Template($phpgw_info["server"]["template_dir"]); + $tpl->set_unknowns("remove"); + + $tpl->set_file(array("footer" => "footer.tpl")); + $tpl->set_var("img_root",$phpgw_info["server"]["webserver_url"] . "/phpgwapi/templates/verdilak/images"); + $tpl->set_var("table_bg_color",$phpgw_info["theme"]["navbar_bg"]); + $tpl->set_var("version",$phpgw_info["server"]["versions"]["phpgwapi"]); + echo $tpl->finish($tpl->parse("out","footer")); + }