Commit 6e1d48a43edbd13a200bbc311e2b05db4923c40b
1 parent
b66d693f
KTS-1779
"Put an "About KnowledgeTree" between "Preferences" and "Logout" on the menu bar. " Implemented. Reviewed By: Kevin git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6421 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
11 changed files
with
171 additions
and
0 deletions
about.php
0 → 100644
| 1 | +<?php | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * $Id: preferences.php 6203 2007-02-08 10:41:00Z kevin_fourie $ | |
| 5 | + * | |
| 6 | + * The contents of this file are subject to the KnowledgeTree Public | |
| 7 | + * License Version 1.1 ("License"); You may not use this file except in | |
| 8 | + * compliance with the License. You may obtain a copy of the License at | |
| 9 | + * http://www.knowledgetree.com/KPL | |
| 10 | + * | |
| 11 | + * Software distributed under the License is distributed on an "AS IS" | |
| 12 | + * basis, | |
| 13 | + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | |
| 14 | + * for the specific language governing rights and limitations under the | |
| 15 | + * License. | |
| 16 | + * | |
| 17 | + * The Original Code is: KnowledgeTree Open Source | |
| 18 | + * | |
| 19 | + * The Initial Developer of the Original Code is The Jam Warehouse Software | |
| 20 | + * (Pty) Ltd, trading as KnowledgeTree. | |
| 21 | + * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright | |
| 22 | + * (C) 2007 The Jam Warehouse Software (Pty) Ltd; | |
| 23 | + * All Rights Reserved. | |
| 24 | + * | |
| 25 | + */ | |
| 26 | + | |
| 27 | +// main library routines and defaults | |
| 28 | +require_once("config/dmsDefaults.php"); | |
| 29 | +require_once(KT_LIB_DIR . "/unitmanagement/Unit.inc"); | |
| 30 | + | |
| 31 | +require_once(KT_LIB_DIR . "/templating/templating.inc.php"); | |
| 32 | +require_once(KT_LIB_DIR . "/dispatcher.inc.php"); | |
| 33 | +require_once(KT_LIB_DIR . "/widgets/forms.inc.php"); | |
| 34 | + | |
| 35 | +class KTAbout extends KTStandardDispatcher { | |
| 36 | + var $sSection = 'aboutkt'; | |
| 37 | + | |
| 38 | + function do_main() { | |
| 39 | + $this->aBreadcrumbs = array(array('action' => 'aboutkt', 'name' => sprintf(_kt("About %s"), APP_NAME))); | |
| 40 | + $oUser =& $this->oUser; | |
| 41 | + | |
| 42 | + $oTemplating =& KTTemplating::getSingleton(); | |
| 43 | + $oTemplate = $oTemplating->loadTemplate("ktcore/principals/about"); | |
| 44 | + | |
| 45 | + $aTemplateData = array( | |
| 46 | + "context" => $this, | |
| 47 | + ); | |
| 48 | + return $oTemplate->render($aTemplateData); | |
| 49 | + } | |
| 50 | +} | |
| 51 | + | |
| 52 | +$oDispatcher = new KTAbout(); | |
| 53 | +$oDispatcher->dispatch(); | |
| 54 | + | |
| 55 | +?> | ... | ... |
config/siteMap.inc
| ... | ... | @@ -58,6 +58,9 @@ $default->siteMap->addSectionColour('Standard Search', 'th', 'A1571B'); |
| 58 | 58 | // pages for prefs section |
| 59 | 59 | $default->siteMap->addDefaultPage('preferences', '/preferences.php', 'Preferences', User, _kt('Preferences')); |
| 60 | 60 | |
| 61 | +// pages for about section | |
| 62 | +$default->siteMap->addDefaultPage('aboutkt', '/about.php', 'About '.APP_NAME, User, sprintf(_kt("About %s"), APP_NAME)); | |
| 63 | + | |
| 61 | 64 | // pages for Help section |
| 62 | 65 | $default->siteMap->addDefaultPage('help', '/presentation/lookAndFeel/knowledgeTree/help.php', 'Help', Guest, _kt('Help')); |
| 63 | 66 | ... | ... |
lib/templating/kt3template.inc.php
| ... | ... | @@ -353,6 +353,7 @@ class KTPage { |
| 353 | 353 | $this->userMenu = array("logout" => $this->_actionHelper(array("name" => _kt("Logout"), "action" => "logout", "active" => 0)),); |
| 354 | 354 | } else { |
| 355 | 355 | $this->userMenu = array("preferences" => $this->_actionHelper(array("name" => _kt("Preferences"), "action" => "preferences", "active" => 0)), |
| 356 | + "aboutkt" => $this->_actionhelper(array("name" => sprintf(_kt("About %s"), APP_NAME), "action" => "aboutkt", "active" => 0)), | |
| 356 | 357 | "logout" => $this->_actionHelper(array("name" => _kt("Logout"), "action" => "logout", "active" => 0)),); |
| 357 | 358 | } |
| 358 | 359 | } else { | ... | ... |
resources/graphics/thirdparty/Thumbs.db
0 → 100644
No preview for this file type
resources/graphics/thirdparty/mochikit.gif
0 → 100644
2.76 KB
resources/graphics/thirdparty/pear.gif
0 → 100644
1.83 KB
resources/graphics/thirdparty/phpmailer.gif
0 → 100644
4.28 KB
resources/graphics/thirdparty/smarty.gif
0 → 100644
1.9 KB
resources/graphics/thirdparty/tinymce.gif
0 → 100644
5.16 KB
resources/graphics/thirdparty/yui.gif
0 → 100644
2.07 KB
templates/ktcore/principals/about.smarty
0 → 100644
| 1 | +<h2>{i18n arg_appname="$appname"}About #appname#{/i18n}</h2> | |
| 2 | +<p><strong>Corporate Contact Details</strong></p> | |
| 3 | +<table width="50%" border="0"> | |
| 4 | + <tr> | |
| 5 | + <td valign="top"> </td> | |
| 6 | + <td valign="top"><strong>Corporate Address </strong></td> | |
| 7 | + <td><a href="http://www.jamwarehouse.com/">The Jam Warehouse Software (Pty) Ltd.</a><br /> | |
| 8 | +Unit 1, Tramber Place <br /> | |
| 9 | +Blake Street, Observatory, 7925 <br /> | |
| 10 | +Cape Town <br /> | |
| 11 | +South Africa<br /> | |
| 12 | +Tel: +27 21 4477440 [Reception open 9am-5pm GMT+2]<br /> | |
| 13 | +Fax: +27 21 4477449</td> | |
| 14 | + </tr> | |
| 15 | + <tr> | |
| 16 | + <td> </td> | |
| 17 | + <td><strong>Contact Sales</strong></td> | |
| 18 | + <td> </td> | |
| 19 | + </tr> | |
| 20 | + <tr> | |
| 21 | + <td> </td> | |
| 22 | + <td> </td> | |
| 23 | + <td>Email Sales: sales@knowledgetree.com</td> | |
| 24 | + </tr> | |
| 25 | + <tr> | |
| 26 | + <td> </td> | |
| 27 | + <td> </td> | |
| 28 | + <td>Call Sales: +1 415 670-9759</td> | |
| 29 | + </tr> | |
| 30 | + <tr> | |
| 31 | + <td> </td> | |
| 32 | + <td> </td> | |
| 33 | + <td> </td> | |
| 34 | + </tr> | |
| 35 | +</table> | |
| 36 | +<p><strong>Contributors</strong></p> | |
| 37 | +<ul> | |
| 38 | + <li> | |
| 39 | + Fu Bin | |
| 40 | + </li> | |
| 41 | + <li> | |
| 42 | + Guillaume Duflouxc | |
| 43 | + </li> | |
| 44 | + <li> | |
| 45 | + David Alfonso Faspar | |
| 46 | + </li> | |
| 47 | + <li> | |
| 48 | + Rogerio Kohler | |
| 49 | + </li> | |
| 50 | + <li> | |
| 51 | + Pavel Lastovicka | |
| 52 | + </li> | |
| 53 | + <li> | |
| 54 | + Marco Lusini | |
| 55 | + </li> | |
| 56 | + <li> | |
| 57 | + Michael Malone | |
| 58 | + </li> | |
| 59 | + <li> | |
| 60 | + Jochen Meijers | |
| 61 | + </li> | |
| 62 | + <li> | |
| 63 | + Antti Poro | |
| 64 | + </li> | |
| 65 | + <li> | |
| 66 | + Nicolas Quienot | |
| 67 | + </li> | |
| 68 | + <li> | |
| 69 | + Leonardo Russo | |
| 70 | + </li> | |
| 71 | + <li> | |
| 72 | + Ricardo Silva | |
| 73 | + </li> | |
| 74 | + <li> | |
| 75 | + Paul Trgina | |
| 76 | + </li> | |
| 77 | +</ul> | |
| 78 | + | |
| 79 | +<p><strong>Third Party Software</strong></p> | |
| 80 | +<table border="0"> | |
| 81 | + <tr> | |
| 82 | + <td bgcolor="#339900"><img src="{$rootUrl}/resources/graphics/thirdparty/pear.gif"/></td> | |
| 83 | + <td>Pear</td> | |
| 84 | + </tr> | |
| 85 | + <tr> | |
| 86 | + <td><img src="{$rootUrl}/resources/graphics/thirdparty/phpmailer.gif"/></td> | |
| 87 | + <td>PHP Mailer</td> | |
| 88 | + </tr> | |
| 89 | + <tr> | |
| 90 | + <td><img src="{$rootUrl}/resources/graphics/thirdparty/smarty.gif"/></td> | |
| 91 | + <td>Smarty</td> | |
| 92 | + </tr> | |
| 93 | + <tr> | |
| 94 | + <td></td> | |
| 95 | + <td>JSCalendar</td> | |
| 96 | + </tr> | |
| 97 | + <tr> | |
| 98 | + <td><img src="{$rootUrl}/resources/graphics/thirdparty/mochikit.gif"/></td> | |
| 99 | + <td>MochiKit</td> | |
| 100 | + </tr> | |
| 101 | + <tr> | |
| 102 | + <td><img src="{$rootUrl}/resources/graphics/thirdparty/tinymce.gif"/></td> | |
| 103 | + <td>TinyMCE</td> | |
| 104 | + </tr> | |
| 105 | + <tr> | |
| 106 | + <td><img src="{$rootUrl}/resources/graphics/thirdparty/yui.gif"/></td> | |
| 107 | + <td>YUI</td> | |
| 108 | + </tr> | |
| 109 | + <tr> | |
| 110 | + <td> </td> | |
| 111 | + </tr> | |
| 112 | +</table> | ... | ... |