From 104268e7248313a1fbf56a414f3bbd3d11df6bed Mon Sep 17 00:00:00 2001 From: jonathan_byrne Date: Tue, 22 Apr 2008 15:25:39 +0000 Subject: [PATCH] KTS-3264 "Welcome Dashlet needs to be changed." Fixed. Added Changes. --- kthelp/ktcore/EN/welcome.html | 33 ++++++++++++++++++++++++--------- kthelp/ktcore/EN/welcomeCommercial.html | 15 +++++++++++++++ plugins/ktcore/KTDashlets.php | 15 +++++++++++++++ 3 files changed, 54 insertions(+), 9 deletions(-) create mode 100644 kthelp/ktcore/EN/welcomeCommercial.html diff --git a/kthelp/ktcore/EN/welcome.html b/kthelp/ktcore/EN/welcome.html index 0c06c78..27af273 100644 --- a/kthelp/ktcore/EN/welcome.html +++ b/kthelp/ktcore/EN/welcome.html @@ -3,16 +3,31 @@ Welcome to KnowledgeTree -

KnowledgeTree is a commercial open source, web-based Document Management System. KnowledgeTree allows you to move away from uncontrolled and unaudited shared network drives to an environment which encourages knowledge sharing and meets regulatory requirements.

- -

KnowledgeTree provides:

+

KnowledgeTree is Document Management Made Simple.


+

Easily and securely + manage your company's document creation, editing, versioning, and sharing - all from + a powerful Web interface and Microsoft® Office® and Windows® Explorer® tools.

+
+

KnowledgeTree Community Edition is licensed free of charge and supplied with +no support, no maintenance, +and no warranty.

+
- +

Commercially supported and feature-enhanced editions of + KnowledgeTree are available:

+ + +
diff --git a/kthelp/ktcore/EN/welcomeCommercial.html b/kthelp/ktcore/EN/welcomeCommercial.html new file mode 100644 index 0000000..57b84fb --- /dev/null +++ b/kthelp/ktcore/EN/welcomeCommercial.html @@ -0,0 +1,15 @@ + + +Welcome to KnowledgeTree + + +

KnowledgeTree is Document Management Made Simple.


+ +

Easily and securely manage your company's document creation, editing, versioning, and sharing - all from a powerful Web interface and Microsoft® Office® and Windows® Explorer® tools.


+ +

A subscription to KnowledgeTree provides your organization with product updates, enhanced document management features, and commercial support. Please view your welcome mailer for information on accessing these services.


+ + + + + \ No newline at end of file diff --git a/plugins/ktcore/KTDashlets.php b/plugins/ktcore/KTDashlets.php index 6ff2eee..0e4ecfb 100644 --- a/plugins/ktcore/KTDashlets.php +++ b/plugins/ktcore/KTDashlets.php @@ -51,7 +51,22 @@ class KTInfoDashlet extends KTBaseDashlet { var $help_id; function KTInfoDashlet() { + global $default; $this->sTitle = sprintf(_kt('Welcome to %s'), APP_NAME); + $versionName = substr($default->versionName, -17); + + if($versionName != 'Community Edition') + { + $this->helpLocation = 'ktcore/welcomeCommercial.html'; + } + + //This check is for non english language packs which might not have + //a commercial welcome page. + $oHelpCheck = KTHelp::getHelpInfo($this->helpLocation); + if(PEAR::isError($oHelpCheck)) + { + $this->helpLocation = 'ktcore/welcome.html'; + } } function is_active($oUser) { -- libgit2 0.21.4