diff --git a/about.php b/about.php
index 748e212a66..39f9746602 100644
--- a/about.php
+++ b/about.php
@@ -1,56 +1,43 @@
hooks->single('about',$app);
}
- else
- {
- $api_only = True;
- }
- $tpl = CreateObject('phpgwapi.Template',$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi'));
- $tpl->set_file(array(
- 'phpgw_about' => 'about.tpl',
- 'phpgw_about_unknown' => 'about_unknown.tpl'
- ));
+ $tpl = CreateObject('phpgwapi.xslttemplates',$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default'));
+ $tpl->add_file(array('about'));
- $tpl->set_var('webserver_url',$GLOBALS['phpgw']->common->get_image_path('phpgwapi'));
- $tpl->set_var('phpgw_version','phpGroupWare API version ' . $GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
if ($included)
{
- $tpl->set_var('phpgw_app_about',about_app('',''));
- //about_app($tpl,"phpgw_app_about");
- }
- else
- {
- if ($api_only)
- {
- $tpl->set_var('phpgw_app_about','');
- }
- else
- {
- $tpl->set_var('app_header',$app);
- $tpl->parse('phpgw_app_about','phpgw_about_unknown');
- }
+ $app_data = about_app();
}
- $tpl->pparse('out','phpgw_about');
+ $data = array
+ (
+ 'phpgw_logo' => $GLOBALS['phpgw']->common->get_image_path('phpgwapi'),
+ 'lang_version' => lang('version'),
+ 'phpgw_version' => 'phpGroupWare API ' . $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'],
+ 'phpgw_descr' => lang('is a multi-user, web-based groupware suite written in PHP'),
+ 'about_app' => $app_data
+ );
+
+ $tpl->set_var('about',$data);
+ $tpl->pparse();
?>
diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php
index 455ddffdf9..c792c058fa 100644
--- a/phpgwapi/inc/class.common.inc.php
+++ b/phpgwapi/inc/class.common.inc.php
@@ -667,7 +667,7 @@
{
$appname = $GLOBALS['phpgw_info']['flags']['currentapp'];
}
- if ($appname == 'home' || $appname == 'logout' || $appname == 'login')
+ if ($appname == 'home' || $appname == 'logout' || $appname == 'login' || $appname == 'about')
{
$appname = 'phpgwapi';
}
@@ -1128,7 +1128,7 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
$GLOBALS['phpgw_info']['navbar']['preferences']['icon'] = $this->image('preferences',Array('navbar','nonav'));
$GLOBALS['phpgw_info']['navbar']['preferences']['icon_hover'] = $this->image_on('preferences',Array('navbar','nonav'),'-over');
- if ($GLOBALS['phpgw_info']['flags']['currentapp'] == 'home' || $GLOBALS['phpgw_info']['flags']['currentapp'] == 'preferences' || $GLOBALS['phpgw_info']['flags']['currentapp'] == 'about')
+ if ($GLOBALS['phpgw_info']['flags']['currentapp'] == 'home' || $GLOBALS['phpgw_info']['flags']['currentapp'] == 'preferences')
{
$app = 'phpGroupWare';
}
diff --git a/phpgwapi/templates/default/about.tpl b/phpgwapi/templates/default/about.tpl
deleted file mode 100644
index 54d268c5a9..0000000000
--- a/phpgwapi/templates/default/about.tpl
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
- |
-
-
- |
-
-
- {phpgw_version} |
-
-
- phpGroupWare is a multi-user, web-based groupware suite written in PHP. |
-
-
-
|
-
-
-
-
-{phpgw_app_about}
-
- |
-
-
diff --git a/phpgwapi/templates/default/about.xsl b/phpgwapi/templates/default/about.xsl
index 99cf01fe1d..43131fe55b 100644
--- a/phpgwapi/templates/default/about.xsl
+++ b/phpgwapi/templates/default/about.xsl
@@ -1,47 +1,43 @@
-
+
-
-
+ |
+
|
-
- :
- |
-
-
- |
- |
-
-
- |
-
-
+ |
+
|
@@ -53,11 +49,26 @@
- |
+
+
+ |
+
+
+ |
-
-
+ | |
+ |
+
+
+ |
+
+
+
+
+
+
+
|
diff --git a/phpgwapi/templates/default/about_app.tpl b/phpgwapi/templates/default/about_app.tpl
deleted file mode 100644
index f67f3cac3d..0000000000
--- a/phpgwapi/templates/default/about_app.tpl
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
- {app_title} |
-
-
- {lang_version} {app_version} |
-
-
- {based_on} |
- {source} |
-
-
- |
- {source_url_name} |
-
-
- {written_by} |
- {developers} |
-
-
- |
-
-
- {description} |
-
-