From d68dff15ca0f4aa25cc9effc2d46e3d4a5ef7576 Mon Sep 17 00:00:00 2001 From: Jalaloedien Date: Mon, 26 Mar 2007 15:22:01 +0000 Subject: [PATCH] KTS-1779 "Put an "About KnowledgeTree" between "Preferences" and "Logout" on the menu bar. " Implemented. --- about.php | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ config/siteMap.inc | 3 +++ lib/templating/kt3template.inc.php | 1 + resources/graphics/thirdparty/Thumbs.db | Bin 0 -> 6144 bytes resources/graphics/thirdparty/mochikit.gif | Bin 0 -> 2830 bytes resources/graphics/thirdparty/pear.gif | Bin 0 -> 1870 bytes resources/graphics/thirdparty/phpmailer.gif | Bin 0 -> 4378 bytes resources/graphics/thirdparty/smarty.gif | Bin 0 -> 1942 bytes resources/graphics/thirdparty/tinymce.gif | Bin 0 -> 5279 bytes resources/graphics/thirdparty/yui.gif | Bin 0 -> 2124 bytes templates/ktcore/principals/about.smarty | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 11 files changed, 171 insertions(+), 0 deletions(-) create mode 100644 about.php create mode 100644 resources/graphics/thirdparty/Thumbs.db create mode 100644 resources/graphics/thirdparty/mochikit.gif create mode 100644 resources/graphics/thirdparty/pear.gif create mode 100644 resources/graphics/thirdparty/phpmailer.gif create mode 100644 resources/graphics/thirdparty/smarty.gif create mode 100644 resources/graphics/thirdparty/tinymce.gif create mode 100644 resources/graphics/thirdparty/yui.gif create mode 100644 templates/ktcore/principals/about.smarty diff --git a/about.php b/about.php new file mode 100644 index 0000000..6a623c8 --- /dev/null +++ b/about.php @@ -0,0 +1,55 @@ +aBreadcrumbs = array(array('action' => 'aboutkt', 'name' => sprintf(_kt("About %s"), APP_NAME))); + $oUser =& $this->oUser; + + $oTemplating =& KTTemplating::getSingleton(); + $oTemplate = $oTemplating->loadTemplate("ktcore/principals/about"); + + $aTemplateData = array( + "context" => $this, + ); + return $oTemplate->render($aTemplateData); + } +} + +$oDispatcher = new KTAbout(); +$oDispatcher->dispatch(); + +?> diff --git a/config/siteMap.inc b/config/siteMap.inc index 4341702..dd87176 100644 --- a/config/siteMap.inc +++ b/config/siteMap.inc @@ -58,6 +58,9 @@ $default->siteMap->addSectionColour('Standard Search', 'th', 'A1571B'); // pages for prefs section $default->siteMap->addDefaultPage('preferences', '/preferences.php', 'Preferences', User, _kt('Preferences')); +// pages for about section +$default->siteMap->addDefaultPage('aboutkt', '/about.php', 'About '.APP_NAME, User, sprintf(_kt("About %s"), APP_NAME)); + // pages for Help section $default->siteMap->addDefaultPage('help', '/presentation/lookAndFeel/knowledgeTree/help.php', 'Help', Guest, _kt('Help')); diff --git a/lib/templating/kt3template.inc.php b/lib/templating/kt3template.inc.php index 0cccda1..f47ede4 100644 --- a/lib/templating/kt3template.inc.php +++ b/lib/templating/kt3template.inc.php @@ -353,6 +353,7 @@ class KTPage { $this->userMenu = array("logout" => $this->_actionHelper(array("name" => _kt("Logout"), "action" => "logout", "active" => 0)),); } else { $this->userMenu = array("preferences" => $this->_actionHelper(array("name" => _kt("Preferences"), "action" => "preferences", "active" => 0)), + "aboutkt" => $this->_actionhelper(array("name" => sprintf(_kt("About %s"), APP_NAME), "action" => "aboutkt", "active" => 0)), "logout" => $this->_actionHelper(array("name" => _kt("Logout"), "action" => "logout", "active" => 0)),); } } else { diff --git a/resources/graphics/thirdparty/Thumbs.db b/resources/graphics/thirdparty/Thumbs.db new file mode 100644 index 0000000..87cdf76 Binary files /dev/null and b/resources/graphics/thirdparty/Thumbs.db differ diff --git a/resources/graphics/thirdparty/mochikit.gif b/resources/graphics/thirdparty/mochikit.gif new file mode 100644 index 0000000..b5a4bc7 Binary files /dev/null and b/resources/graphics/thirdparty/mochikit.gif differ diff --git a/resources/graphics/thirdparty/pear.gif b/resources/graphics/thirdparty/pear.gif new file mode 100644 index 0000000..dfd3a48 Binary files /dev/null and b/resources/graphics/thirdparty/pear.gif differ diff --git a/resources/graphics/thirdparty/phpmailer.gif b/resources/graphics/thirdparty/phpmailer.gif new file mode 100644 index 0000000..b812a4d Binary files /dev/null and b/resources/graphics/thirdparty/phpmailer.gif differ diff --git a/resources/graphics/thirdparty/smarty.gif b/resources/graphics/thirdparty/smarty.gif new file mode 100644 index 0000000..e03f489 Binary files /dev/null and b/resources/graphics/thirdparty/smarty.gif differ diff --git a/resources/graphics/thirdparty/tinymce.gif b/resources/graphics/thirdparty/tinymce.gif new file mode 100644 index 0000000..45526b4 Binary files /dev/null and b/resources/graphics/thirdparty/tinymce.gif differ diff --git a/resources/graphics/thirdparty/yui.gif b/resources/graphics/thirdparty/yui.gif new file mode 100644 index 0000000..ecbf550 Binary files /dev/null and b/resources/graphics/thirdparty/yui.gif differ diff --git a/templates/ktcore/principals/about.smarty b/templates/ktcore/principals/about.smarty new file mode 100644 index 0000000..1e3d398 --- /dev/null +++ b/templates/ktcore/principals/about.smarty @@ -0,0 +1,112 @@ +

{i18n arg_appname="$appname"}About #appname#{/i18n}

+

Corporate Contact Details

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
 Corporate Address The Jam Warehouse Software (Pty) Ltd.
+Unit 1, Tramber Place
+Blake Street, Observatory, 7925
+Cape Town
+South Africa
+Tel: +27 21 4477440 [Reception open 9am-5pm GMT+2]
+Fax: +27 21 4477449
 Contact Sales 
  Email Sales: sales@knowledgetree.com
  Call Sales: +1 415 670-9759
   
+

Contributors

+ + +

Third Party Software

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Pear
PHP Mailer
Smarty
JSCalendar
MochiKit
TinyMCE
YUI
 
-- libgit2 0.21.4