Commit 3638f188023b417d5c12d5d563dac5cdcb49b127

Authored by Jalaloedien
1 parent 9e8c976e

KTC-35

"Create skinning system. "
Implemented.

Reviewed By: Conrad

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6409 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 103 changed files with 485 additions and 79 deletions

Too many changes.

To preserve performance only 100 of 103 files are displayed.

action.php
... ... @@ -59,7 +59,7 @@ class KTActionDispatcher extends KTStandardDispatcher {
59 59 $aActionInfo = $oRegistry->getActionByNsname($action);
60 60 if (empty($aActionInfo)) {
61 61 $this->error = true;
62   - $this->errorPage(_kt('No such action exists in KnowledgeTree'));
  62 + $this->errorPage(_kt('No such action exists in '.APP_NAME.'KnowledgeTree'));
63 63 }
64 64 $sFilename = $aActionInfo[1];
65 65 if (!empty($sFilename)) {
... ...
config/config.ini
... ... @@ -76,6 +76,12 @@ useNewDashboard = default
76 76 manager = default
77 77  
78 78 [ui]
  79 +;Main application name
  80 +;appName = KnowledgeTree
  81 +; Enable Morph
  82 +;morphEnabled = 0
  83 +; Morph Theme
  84 +;morphTo = blue
79 85 ; add the logo of your company to the site's appearance.
80 86 ; this logo MUST be 50px tall, and on a white background.
81 87 companyLogo = ${rootUrl}/resources/companylogo.png
... ... @@ -84,19 +90,19 @@ companyLogoWidth = 313px
84 90 ; ALT text - for accessibility purposes.
85 91 companyLogoTitle = ACME Corporation
86 92 ; Main logo
87   -mainLogo =
  93 +;mainLogo =
88 94 ; the logo's width in pixels
89   -mainLogoWidth = 219px
  95 +;mainLogoWidth = 219px
90 96 ; ALT text - for accessibility purposes.
91   -mainLogoTitle = Pinnacle Knowledge Management Systems
  97 +;mainLogoTitle = Pinnacle Knowledge Management Systems
92 98 ; enable/disable powered by kt logo
93   -poweredByDisabled = 1
  99 +;poweredByDisabled = 1
94 100 ; powered by kt logo
95   -powerLogo = ${rootUrl}/resources/powered-by-kt.png
  101 +;powerLogo = ${rootUrl}/resources/powered-by-kt.gif
96 102 ; the logo's width in pixels
97   -powerLogoWidth = 130px
  103 +;powerLogoWidth = 130px
98 104 ; ALT text - for accessibility purposes.
99   -powerLogoTitle = Powered by KnowledgeTree
  105 +;powerLogoTitle = Powered by KnowledgeTree
100 106  
101 107 ; use the additional IE specific GIF theme overrides.
102 108 ; using this means that arbitrary theme packs may not work without
... ...
config/dmsDefaults.php
... ... @@ -76,12 +76,15 @@ class KTInit {
76 76 ini_set('include_path', $path . PATH_SEPARATOR . $include_path);
77 77 }
78 78 // }}}
79   -
80 79 // {{{ setupLogging()
81 80 function setupLogging () {
82 81 global $default;
83 82 require_once(KT_LIB_DIR . '/Log.inc');
84 83 $oKTConfig =& KTConfig::getSingleton();
  84 +
  85 + if(!defined('APP_NAME')) {
  86 + define('APP_NAME', $oKTConfig->get('ui/appName', 'KnowledgeTree'));
  87 + }
85 88 $logLevel = $default->logLevel;
86 89 if (!is_numeric($logLevel)) {
87 90 $logLevel = @constant($logLevel);
... ... @@ -393,7 +396,8 @@ class KTInit {
393 396 }
394 397 } else {
395 398 $oKTConfig =& KTConfig::getSingleton();
396   -
  399 +
  400 + $oKTConfig->setdefaultns('ui', 'appName', 'KnowledgeTree');
397 401 $oKTConfig->setdefaultns('KnowledgeTree', 'fileSystemRoot', KT_DIR);
398 402 $oKTConfig->setdefaultns('KnowledgeTree', 'serverName', KTUtil::arrayGet($_SERVER, 'HTTP_HOST', 'localhost'));
399 403 $oKTConfig->setdefaultns('KnowledgeTree', 'sslEnabled', false);
... ...
lib/dashboard/Notification.inc.php
... ... @@ -350,7 +350,7 @@ class KTSubscriptionNotification extends KTNotificationHandler {
350 350 exit(redirect($url));
351 351 }
352 352 }
353   - $_SESSION['KTErrorMessage'][] = 'This notification has no "target". Please inform the KnowledgeTree developers that there is a target bug with type: ' . $info['event_type'];
  353 + $_SESSION['KTErrorMessage'][] = 'This notification has no "target". Please inform the '.APP_NAME.' developers that there is a target bug with type: ' . $info['event_type'];
354 354 exit(redirect(generateControllerLink('dashboard')));
355 355 }
356 356  
... ...
lib/templating/kt3template.inc.php
... ... @@ -45,7 +45,9 @@ class KTPage {
45 45 /** resources are "filename"->1 to allow subcomponents to require items. */
46 46 var $js_resources = Array();
47 47 var $css_resources = Array();
  48 + var $theme_css_resources = Array();
48 49 var $ie_only_css = Array();
  50 + var $theme_ie_only_css = Array();
49 51 var $js_standalone = Array();
50 52 var $css_standalone = Array();
51 53  
... ... @@ -57,7 +59,7 @@ class KTPage {
57 59  
58 60 /** miscellaneous items */
59 61 var $title = '';
60   - var $systemName = 'KnowledgeTree';
  62 + var $systemName = APP_NAME;
61 63 var $systemURL = 'http://www.knowledgetree.com/';
62 64 var $breadcrumbs = false;
63 65 var $breadcrumbDetails = false;
... ... @@ -82,6 +84,9 @@ class KTPage {
82 84  
83 85 /* further initialisation */
84 86 function KTPage() {
  87 + global $default;
  88 + $oConfig = KTConfig::getSingleton();
  89 +
85 90 /* default css files initialisation */
86 91 $aCSS = Array(
87 92 "resources/css/kt-framing.css",
... ... @@ -90,8 +95,14 @@ class KTPage {
90 95 );
91 96 $this->requireCSSResources($aCSS);
92 97  
  98 + if($oConfig->get('ui/morphEnabled') == '1'){
  99 + $morphTheme = $oConfig->get('ui/morphTo');
  100 + $this->requireThemeCSSResource('skins/kts_'.$oConfig->get('ui/morphTo').'/kt-morph.css');
  101 + $this->requireThemeCSSResource('skins/kts_'.$oConfig->get('ui/morphTo').'/kt-ie-morph.css', true);
  102 + }
93 103 // IE only
94 104 $this->requireCSSResource("resources/css/kt-ie-icons.css", true);
  105 +
95 106 /* default js files initialisation */
96 107 $aJS = Array();
97 108  
... ... @@ -180,6 +191,15 @@ class KTPage {
180 191 }
181 192 }
182 193  
  194 + // require that the specified CSS file is referenced.
  195 + function requireThemeCSSResource($sResourceURL, $ieOnly = false) {
  196 + if ($ieOnly !== true) {
  197 + $this->theme_css_resources[$sResourceURL] = 1; // use the keys to prevent multiple copies.
  198 + } else {
  199 + $this->theme_ie_only_css[$sResourceURL] = 1;
  200 + }
  201 + }
  202 +
183 203 // require that the specified CSS files are referenced.
184 204 function requireCSSResources($aResourceURLs) {
185 205 foreach ($aResourceURLs as $sResourceURL) {
... ... @@ -191,10 +211,19 @@ class KTPage {
191 211 function getCSSResources() {
192 212 return array_keys($this->css_resources);
193 213 }
  214 +
  215 + // list the distinct CSS resources.
  216 + function getThemeCSSResources() {
  217 + return array_keys($this->theme_css_resources);
  218 + }
194 219  
195 220 function getCSSResourcesForIE() {
196 221 return array_keys($this->ie_only_css);
197 222 }
  223 +
  224 + function getThemeCSSResourcesForIE() {
  225 + return array_keys($this->theme_ie_only_css);
  226 + }
198 227  
199 228 function requireCSSStandalone($sCSS) {
200 229 $this->css_standalone[$sCSS] = 1;
... ...
lib/templating/smartytemplate.inc.php
... ... @@ -76,6 +76,7 @@ class KTSmartyTemplate extends KTTemplate {
76 76 $absroot .= $KTConfig->get("KnowledgeTree/rootUrl");
77 77  
78 78 $smarty->assign("config", $KTConfig);
  79 + $smarty->assign("appname", $KTConfig->get("ui/appName", "KnowledgeTree"));
79 80 $smarty->assign("rootUrl", $KTConfig->get("KnowledgeTree/rootUrl"));
80 81 $smarty->assign("absoluteRootUrl", $absroot);
81 82 $smarty->caching = false;
... ...
lib/widgets/fieldsetDisplay.inc.php
... ... @@ -332,7 +332,7 @@ class GenericFieldsetDisplay extends KTFieldsetDisplay {
332 332 function renderEdit($document_data) {
333 333 global $main; // FIXME remove direct access to $main
334 334 $oField = new KTBaseWidget(_kt("Document Title"),
335   - _kt("The document title is used as the main name of a document throughout KnowledgeTree™."),
  335 + _kt("The document title is used as the main name of a document throughout ".APP_NAME."™."),
336 336 "generic_title", $document_data["document"]->getName(), $main, true, null, array());
337 337 $aFields = array($oField); // its the only one editable from the basic set (currently).
338 338  
... ...
plugins/ktcore/KTCorePlugin.php
... ... @@ -93,7 +93,7 @@ class KTCorePlugin extends KTPlugin {
93 93 $this->registerDashlet('KTIndexerStatusDashlet', 'ktcore.dashlet.indexer_status', 'KTDashlets.php');
94 94 $this->registerDashlet('KTMailServerDashlet', 'ktcore.dashlet.mail_server', 'KTDashlets.php');
95 95  
96   - $this->registerAdminPage('authentication', 'KTAuthenticationAdminPage', 'principals', _kt('Authentication'), _kt('By default, KnowledgeTree controls its own users and groups and stores all information about them inside the database. In many situations, an organisation will already have a list of users and groups, and needs to use that existing information to allow access to the DMS. These <strong>Authentication Sources</strong> allow the system administrator to specify additional sources of authentication data.'), 'authentication/authenticationadminpage.inc.php');
  96 + $this->registerAdminPage('authentication', 'KTAuthenticationAdminPage', 'principals', _kt('Authentication'), _kt('By default, '.APP_NAME.' controls its own users and groups and stores all information about them inside the database. In many situations, an organisation will already have a list of users and groups, and needs to use that existing information to allow access to the DMS. These <strong>Authentication Sources</strong> allow the system administrator to specify additional sources of authentication data.'), 'authentication/authenticationadminpage.inc.php');
97 97  
98 98 $this->registerPortlet(array('browse'),
99 99 'KTAdminModePortlet', 'ktcore.portlets.admin_mode',
... ...
plugins/ktcore/KTDashlets.php
... ... @@ -40,7 +40,7 @@ class KTInfoDashlet extends KTBaseDashlet {
40 40 var $help_id;
41 41  
42 42 function KTInfoDashlet() {
43   - $this->sTitle = _kt('Welcome to KnowledgeTree');
  43 + $this->sTitle = _kt('Welcome to '.APP_NAME);
44 44 }
45 45  
46 46 function is_active($oUser) {
... ... @@ -80,7 +80,7 @@ class KTInfoDashlet extends KTBaseDashlet {
80 80  
81 81 $this->aHelpInfo = $aHelpInfo;
82 82 $this->canEdit = $can_edit;
83   - $this->sTitle = $this->aHelpInfo['title'];
  83 + $this->sTitle = str_replace('KnowledgeTree', APP_NAME, $this->aHelpInfo['title']);
84 84  
85 85 return true;
86 86 }
... ... @@ -90,8 +90,8 @@ class KTInfoDashlet extends KTBaseDashlet {
90 90 $oTemplate = $oTemplating->loadTemplate('ktcore/dashlets/kt3release');
91 91  
92 92 $aTemplateData = array(
93   - 'title' => $this->aHelpInfo['title'],
94   - 'body' => $this->aHelpInfo['body'],
  93 + 'title' => str_replace('KnowledgeTree', APP_NAME, $this->aHelpInfo['title']),
  94 + 'body' => str_replace('KnowledgeTree', APP_NAME, $this->aHelpInfo['body']),
95 95 'can_edit' => $this->canEdit,
96 96 'target_name' => $this->helpLocation,
97 97 'help_id' => $this->aHelpInfo['help_id'],
... ...
plugins/ktcore/document/edit.php
... ... @@ -88,7 +88,7 @@ class KTDocumentEditAction extends KTDocumentAction {
88 88 $widgets = array(
89 89 array('ktcore.widgets.string', array(
90 90 'label' => _kt("Document Title"),
91   - 'description' => _kt("The document title is used as the main name of a document throughout KnowledgeTree."),
  91 + 'description' => _kt("The document title is used as the main name of a document throughout ".APP_NAME."."),
92 92 'name' => 'document_title',
93 93 'required' => true,
94 94 'value' => $this->oDocument->getName(),
... ...
plugins/ktcore/folder/addDocument.php
... ... @@ -92,7 +92,7 @@ class KTFolderAddDocumentAction extends KTFolderAction {
92 92 )),
93 93 array('ktcore.widgets.string',array(
94 94 'label' => _kt('Document Title'),
95   - 'description' => _kt('The document title is used as the main name of a document throughout KnowledgeTree.'),
  95 + 'description' => _kt('The document title is used as the main name of a document throughout '.APP_NAME.'.'),
96 96 'name' => 'document_name',
97 97 'required' => true,
98 98 )),
... ...
plugins/ktstandard/contents/OpenDocumentIndexer.php
... ... @@ -96,7 +96,7 @@ class KTOpenDocumentIndexerTrigger extends KTBaseIndexerTrigger {
96 96  
97 97 // can't find the local command.
98 98 if (empty($sCommand)) {
99   - return sprintf(_kt('Unable to find required command for indexing. Please ensure that <strong>%s</strong> is installed and in the KnowledgeTree Path. For more information on indexers and helper applications, please <a href="%s">visit the KnowledgeTree site</a>.'), $this->command, $this->support_url);
  99 + return sprintf(_kt('Unable to find required command for indexing. Please ensure that <strong>%s</strong> is installed and in the '.APP_NAME.' Path. For more information on indexers and helper applications, please <a href="%s">visit the '.APP_NAME.' site</a>.'), $this->command, $this->support_url);
100 100 }
101 101  
102 102 return null;
... ...
plugins/ktstandard/contents/PdfIndexer.php
... ... @@ -47,7 +47,7 @@ class KTPdfIndexerTrigger extends KTBaseIndexerTrigger {
47 47  
48 48 // can't find the local command.
49 49 if (empty($sCommand)) {
50   - return sprintf(_kt('Unable to find required command for indexing. Please ensure that <strong>%s</strong> is installed and in the KnowledgeTree Path. For more information on indexers and helper applications, please <a href="%s">visit the KnowledgeTree site</a>.'), $this->command, $this->support_url);
  50 + return sprintf(_kt('Unable to find required command for indexing. Please ensure that <strong>%s</strong> is installed and in the '.APP_NAME.' Path. For more information on indexers and helper applications, please <a href="%s">visit the '.APP_NAME.' site</a>.'), $this->command, $this->support_url);
51 51 }
52 52  
53 53 return null;
... ...
plugins/ktstandard/contents/PowerpointIndexer.php
... ... @@ -43,7 +43,7 @@ class KTPowerpointIndexerTrigger extends KTBaseIndexerTrigger {
43 43  
44 44 // can't find the local command.
45 45 if (empty($sCommand)) {
46   - return sprintf(_kt('Unable to find required command for indexing. Please ensure that <strong>%s</strong> is installed and in the KnowledgeTree Path. For more information on indexers and helper applications, please <a href="%s">visit the KnowledgeTree site</a>.'), $this->command, $this->support_url);
  46 + return sprintf(_kt('Unable to find required command for indexing. Please ensure that <strong>%s</strong> is installed and in the '.APP_NAME.' Path. For more information on indexers and helper applications, please <a href="%s">visit the '.APP_NAME.' site</a>.'), $this->command, $this->support_url);
47 47 }
48 48  
49 49 return null;
... ...
plugins/ktstandard/contents/RtfIndexer.php
... ... @@ -49,7 +49,7 @@ class KTRtfIndexerTrigger extends KTBaseIndexerTrigger {
49 49  
50 50 // can't find the local command.
51 51 if (empty($sCommand)) {
52   - return sprintf(_kt('Unable to find required command for indexing. Please ensure that <strong>%s</strong> is installed and in the KnowledgeTree Path. For more information on indexers and helper applications, please <a href="%s">visit the KnowledgeTree site</a>.'), $this->command, $this->support_url);
  52 + return sprintf(_kt('Unable to find required command for indexing. Please ensure that <strong>%s</strong> is installed and in the '.APP_NAME.' Path. For more information on indexers and helper applications, please <a href="%s">visit the '.APP_NAME.' site</a>.'), $this->command, $this->support_url);
53 53 }
54 54  
55 55 return null;
... ...
plugins/ktstandard/contents/WordIndexer.php
... ... @@ -64,7 +64,7 @@ class KTWordIndexerTrigger extends KTBaseIndexerTrigger {
64 64  
65 65 // can't find the local command.
66 66 if (empty($sCommand)) {
67   - return sprintf(_kt('Unable to find required command for indexing. Please ensure that <strong>%s</strong> is installed and in the KnowledgeTree Path. For more information on indexers and helper applications, please <a href="%s">visit the KnowledgeTree site</a>.'), $this->command, $this->support_url);
  67 + return sprintf(_kt('Unable to find required command for indexing. Please ensure that <strong>%s</strong> is installed and in the '.APP_NAME.' Path. For more information on indexers and helper applications, please <a href="%s">visit the '.APP_NAME.' site</a>.'), $this->command, $this->support_url);
68 68 }
69 69  
70 70 return null;
... ...
plugins/ktstandard/ldap/ldapbaseauthenticationprovider.inc.php
... ... @@ -232,7 +232,7 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider {
232 232  
233 233 $fields = array();
234 234 $fields[] = new KTStaticTextWidget(_kt('LDAP DN'), _kt('The location of the user within the LDAP directory.'), 'dn', $id, $this->oPage);
235   - $fields[] = new KTStringWidget(_kt('Username'), _kt('The username the user will enter to gain access to KnowledgeTree. e.g. <strong>jsmith</strong>'), 'ldap_username', $aResults[$this->aAttributes[1]], $this->oPage, true);
  235 + $fields[] = new KTStringWidget(_kt('Username'), _kt('The username the user will enter to gain access to '.APP_NAME.'. e.g. <strong>jsmith</strong>'), 'ldap_username', $aResults[$this->aAttributes[1]], $this->oPage, true);
236 236 $fields[] = new KTStringWidget(_kt('Name'), _kt('The full name of the user. This is shown in reports and listings. e.g. <strong>John Smith</strong>'), 'name', $aResults[$this->aAttributes[0]], $this->oPage, true);
237 237 $fields[] = new KTStringWidget(_kt('Email Address'), _kt('The email address of the user. Notifications and alerts are mailed to this address if <strong>email notifications</strong> is set below. e.g. <strong>jsmith@acme.com</strong>'), 'email_address', $aResults[$this->aAttributes[4]], $this->oPage, false);
238 238 $fields[] = new KTCheckboxWidget(_kt('Email Notifications'), _kt('If this is specified then the user will have notifications sent to the email address entered above. If it is not set, then the user will only see notifications on the <strong>Dashboard</strong>'), 'email_notifications', true, $this->oPage, false);
... ... @@ -439,7 +439,7 @@ class KTLDAPBaseAuthenticationProvider extends KTAuthenticationProvider {
439 439  
440 440 $fields = array();
441 441 $fields[] = new KTStaticTextWidget(_kt('LDAP DN'), _kt('The location of the group within the LDAP directory.'), 'dn', $aAttributes['dn'], $this->oPage);
442   - $fields[] = new KTStringWidget(_kt('Group Name'), _kt('The name the group will enter to gain access to KnowledgeTree. e.g. <strong>accountants</strong>'), 'ldap_groupname', $aAttributes['cn'], $this->oPage, true);
  442 + $fields[] = new KTStringWidget(_kt('Group Name'), _kt('The name the group will enter to gain access to '.APP_NAME.'. e.g. <strong>accountants</strong>'), 'ldap_groupname', $aAttributes['cn'], $this->oPage, true);
443 443 $fields[] = new KTCheckboxWidget(_kt('Unit Administrators'), _kt('Should all the members of this group be given <strong>unit</strong> administration privileges?'), 'is_unitadmin', false, $this->oPage, false);
444 444 $fields[] = new KTCheckboxWidget(_kt('System Administrators'), _kt('Should all the members of this group be given <strong>system</strong> administration privileges?'), 'is_sysadmin', false, $this->oPage, false);
445 445  
... ...
plugins/rssplugin/KTrss.inc.php
... ... @@ -197,7 +197,7 @@ class KTrss{
197 197 $feed = "<?xml version=\"1.0\"?>\n";
198 198 $feed .= "<rss version=\"2.0\">\n".
199 199 "<channel>\n" .
200   - "<title>KnowledgeTree RSS</title>\n" .
  200 + "<title>".APP_NAME." RSS</title>\n" .
201 201 "<copyright>(c) 2007 The Jam Warehouse Software (Pty) Ltd. All Rights Reserved</copyright>\n" .
202 202 "<link>".$hostPath."</link>\n" .
203 203 "<description>KT-RSS</description>\n" .
... ...
plugins/rssplugin/templates/RSSPlugin/dashlet.smarty
... ... @@ -45,7 +45,7 @@
45 45 <form name='nullForm' id='nullForm' action=''>
46 46 <select id='feedSelect' name='feedSelect' onchange='loadFeed()'>
47 47 {if $internalrss}
48   - <option selected='selected' value='{$internalrss}'>KnowledgeTree RSS</option>
  48 + <option selected='selected' value='{$internalrss}'>{$appname} RSS</option>
49 49 {else}
50 50 <option selected='selected' value='null'>Select External RSS Feed</option>
51 51 {/if}
... ...
plugins/rssplugin/templates/RSSPlugin/rssdocumentaction.smarty
1   -<h2><img src="{$rootUrl}/resources/graphics/title_bullet.png"/>Document RSS</h2>
  1 +<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>Document RSS</h2>
2 2 <p>
3 3 You can copy the following link into any RSS aggregator to create a feed to the selected document.
4 4 <ul>
... ...
plugins/rssplugin/templates/RSSPlugin/rssfolderaction.smarty
1   -<h2><img src="{$rootUrl}/resources/graphics/title_bullet.png"/>Folder RSS</h2>
  1 +<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>Folder RSS</h2>
2 2 <p>
3 3 You can copy the following link into any RSS aggragator to create a feed to the selected folder.
4 4 <ul>
... ...
resources/css/kt-login.css
... ... @@ -32,7 +32,7 @@
32 32 margin-left: auto;
33 33 margin-right: auto;
34 34 text-align: left;
35   - background: white url(../powered-by-kt.png) bottom right no-repeat;
  35 + background: white url(../powered-by-kt.gif) bottom right no-repeat;
36 36 }
37 37  
38 38 #loginboxTopLeft {
... ...
resources/graphics/favicon.ico renamed to resources/favicon.ico
No preview for this file type
resources/powered-by-kt.gif 0 โ†’ 100644

1.95 KB

resources/powered-by-kt.png deleted

1.98 KB

setup/postcheckup.php
... ... @@ -41,7 +41,7 @@ function writablePath($name, $path) {
41 41 ?>
42 42 <html>
43 43 <head>
44   - <title>KnowledgeTree Post-Configuration Checkup</title>
  44 + <title><?php echo APP_NAME;?> Post-Configuration Checkup</title>
45 45 <style>
46 46 th { text-align: left; }
47 47 </style>
... ... @@ -49,9 +49,9 @@ th { text-align: left; }
49 49  
50 50 <body>
51 51  
52   -<h1>KnowledgeTree post-configuration checkup</h1>
  52 +<h1><?php echo APP_NAME;?> post-configuration checkup</h1>
53 53  
54   -<p>This allows you to check that your KnowledgeTree configuration is set
  54 +<p>This allows you to check that your <?php echo APP_NAME;?> configuration is set
55 55 up correctly. You can run this at any time after configuration to check
56 56 that things are still set up correctly.</p>
57 57  
... ... @@ -71,7 +71,7 @@ if (substr($default-&gt;documentRoot, 0, strlen(KT_DIR)) == KT_DIR) {
71 71 set to the default, which is inside the web root. This may present
72 72 a security problem if your documents can be accessed from the web,
73 73 working around the permission system in
74   - KnowledgeTree.</font></strong></p>';
  74 + '.APP_NAME.'.</font></strong></p>';
75 75 }
76 76  
77 77 ?>
... ...
setup/precheckup.php
... ... @@ -197,7 +197,7 @@ function can_extension_loaded($ext, $message = &quot;&quot;) {
197 197  
198 198 $phpversion4 = phpversion() < '4' ? '<b><font color="red">No</font></b> <small>(You need at least PHP 4)</small>' : '<b><font color="green">Yes</font></b>';
199 199 $phpversion43 = phpversion() < '4.3' ? '<b><font color="orange">No</font></b> <small>(PHP 4.3 is recommended)</small>' : '<b><font color="green">Yes</font></b>';
200   -$phpversion5 = phpversion() >= '5' ? '<b><font color="red">No</font></b> <small>(KnowledgeTree does not yet work with PHP5)</small>' : '<b><font color="green">Yes</font></b>';
  200 +$phpversion5 = phpversion() >= '5' ? '<b><font color="red">No</font></b> <small>('.APP_NAME.' does not yet work with PHP5)</small>' : '<b><font color="green">Yes</font></b>';
201 201  
202 202 function running_user() {
203 203 if (substr(PHP_OS, 0, 3) == "WIN") {
... ... @@ -227,7 +227,7 @@ function htaccess() {
227 227 ?>
228 228 <html>
229 229 <head>
230   - <title>KnowledgeTree Checkup</title>
  230 + <title><?php echo APP_NAME;?> Checkup</title>
231 231 <style>
232 232 th { text-align: left; }
233 233 td { vertical-align: top; }
... ... @@ -236,10 +236,10 @@ td { vertical-align: top; }
236 236  
237 237 <body>
238 238  
239   -<h1>KnowledgeTree Checkup</h1>
  239 +<h1><?php echo APP_NAME;?> Checkup</h1>
240 240  
241 241 <p>This checkup allows you to check that your environment is ready to
242   -support a KnowledgeTree installation, and that you can proceed to
  242 +support a <?php echo APP_NAME;?> installation, and that you can proceed to
243 243 configure your system. Red items are things to fix. Orange items means
244 244 you may not be having the ultimate experience unless the support is
245 245 added. Green items means you're ready to go in this area. You can
... ... @@ -248,10 +248,10 @@ you have any problems.&lt;/p&gt;
248 248  
249 249 <h2>.htaccess file</h2>
250 250  
251   -<p>You can let KnowledgeTree manage the PHP settings that apply to the
252   -KnowledgeTree application (it won't affect your other applications) by
  251 +<p>You can let <?php echo APP_NAME;?> manage the PHP settings that apply to the
  252 +<?php echo APP_NAME;?> application (it won't affect your other applications) by
253 253 configuring your web server to use the .htaccess files that come with
254   -KnowledgeTree. This will ensure that the settings for KnowledgeTree
  254 +<?php echo APP_NAME;?>. This will ensure that the settings for <?php echo APP_NAME;?>
255 255 (detailed below) are set up for optimal, reliable performance.</p>
256 256  
257 257 <?php echo htaccess()?>
... ... @@ -378,7 +378,7 @@ $username = running_user();
378 378 if (is_null($username)) {
379 379 $message = "You are on a system that does not make user details available, and so no advice is possible on the correct ownership of the <b>log</b> and <b>Documents</b> directories.";
380 380 } else {
381   - $message = 'KnowledgeTree will be run as the <b><font color="orange">' . $username . '</font></b> system user, and must be able to write to the <b>log</b> and <b>Documents</b> directories.';
  381 + $message = APP_NAME.' will be run as the <b><font color="orange">' . $username . '</font></b> system user, and must be able to write to the <b>log</b> and <b>Documents</b> directories.';
382 382 }
383 383 ?>
384 384 <tr>
... ...
setup/upgrade.php
... ... @@ -134,7 +134,7 @@ if (PEAR::isError($dbSupport)) {
134 134 ?>
135 135 <html>
136 136 <head>
137   - <title>KnowledgeTree Upgrade</title>
  137 + <title><?php echo APP_NAME;?> Upgrade</title>
138 138 <style>
139 139 th { text-align: left; }
140 140 td { vertical-align: top; }
... ... @@ -877,8 +877,8 @@ function welcome()
877 877 set_state(1);
878 878 ?>
879 879 <br>
880   -Welcome to the KnowledgeTree Database Upgrade Utility.<P> If you have just applied an upgrade stack installer or have updated
881   -your KnowledgeTree code base, you will need to complete the upgrade process in order to ensure your system is fully operational with the new version.
  880 +Welcome to the <?php echo APP_NAME;?> Database Upgrade Utility.<P> If you have just applied an upgrade stack installer or have updated
  881 +your <?php echo APP_NAME;?> code base, you will need to complete the upgrade process in order to ensure your system is fully operational with the new version.
882 882 <P>
883 883 <font color=orange>!!NB!! You are advised to backup the database before attempting the upgrade. !!NB!!</font>
884 884  
... ... @@ -887,7 +887,7 @@ If you have already done this, you may skip this step can continue directly to t
887 887 <P>
888 888  
889 889  
890   -&nbsp;&nbsp; &nbsp; &nbsp; <input type=button value="return to KnowledgeTree" onclick="document.location='..';">
  890 +&nbsp;&nbsp; &nbsp; &nbsp; <input type=button value="return to <?php echo APP_NAME;?>" onclick="document.location='..';">
891 891 &nbsp;&nbsp; &nbsp; &nbsp; <input type=button value="backup" onclick="javascript:start('BackupConfirm')">
892 892 &nbsp;&nbsp; &nbsp; &nbsp; <input type=button value="continue to upgrade" onclick="javascript:start('UpgradeConfirm')">
893 893 &nbsp;&nbsp; &nbsp; &nbsp; <input type=button value="restore" onclick="javascript:start('RestoreConfirm')">
... ... @@ -905,7 +905,7 @@ function UpgradePreview()
905 905 global $default;
906 906 ?>
907 907 <p>The table below describes the upgrades that need to occur to
908   - upgrade your KnowledgeTree installation to <strong><?=$default->systemVersion?></strong>.
  908 + upgrade your <?php echo APP_NAME;?> installation to <strong><?=$default->systemVersion?></strong>.
909 909 Click on the button below the table to perform the upgrades.</p>
910 910 <?
911 911 $upgradeTable = generateUpgradeTable();
... ... @@ -926,7 +926,7 @@ function Upgrade()
926 926 global $default;
927 927 ?>
928 928 <p>The table below describes the upgrades that have occurred to
929   - upgrade your KnowledgeTree installation to <strong><?=$default->systemVersion?></strong>.
  929 + upgrade your <?php echo APP_NAME;?> installation to <strong><?=$default->systemVersion?></strong>.
930 930  
931 931 <?
932 932 $res = performAllUpgrades();
... ... @@ -948,7 +948,7 @@ function Upgrade()
948 948 <p>
949 949  
950 950 &nbsp;&nbsp; &nbsp; &nbsp; <input type=button value="home" onclick="javascript:start('home')">
951   -&nbsp;&nbsp; &nbsp; &nbsp; <input type=button value="return to KnowledgeTree" onclick="javascript:document.location='..';">
  951 +&nbsp;&nbsp; &nbsp; &nbsp; <input type=button value="return to <?php echo APP_NAME;?>" onclick="javascript:document.location='..';">
952 952 <?
953 953 }
954 954  
... ...
skins/kts_blue/bullet_toggle_close.gif 0 โ†’ 100644

909 Bytes

skins/kts_blue/bullet_toggle_close.png 0 โ†’ 100644

396 Bytes

skins/kts_blue/bullet_toggle_minus.gif 0 โ†’ 100644

971 Bytes

skins/kts_blue/bullet_toggle_minus.png 0 โ†’ 100644

516 Bytes

skins/kts_blue/bullet_toggle_plus.gif 0 โ†’ 100644

865 Bytes

resources/graphics/menu_corner_topleft.png renamed to skins/kts_blue/bullet_toggle_plus.png

269 Bytes

skins/kts_blue/dashlet_topleft.gif 0 โ†’ 100644

1.28 KB

skins/kts_blue/dashlet_topleft.png 0 โ†’ 100644

431 Bytes

skins/kts_blue/dashlet_toprepeat.gif 0 โ†’ 100644

841 Bytes

skins/kts_blue/dashlet_toprepeat.png 0 โ†’ 100644

176 Bytes

skins/kts_blue/dashlet_topright.gif 0 โ†’ 100644

1.24 KB

skins/kts_blue/dashlet_topright.png 0 โ†’ 100644

517 Bytes

skins/kts_blue/download.gif 0 โ†’ 100644

994 Bytes

skins/kts_blue/download.png 0 โ†’ 100644

586 Bytes

skins/kts_blue/footer_bg.gif 0 โ†’ 100644

817 Bytes

resources/graphics/menu_corner_bottomright.png renamed to skins/kts_blue/footer_bg.png

198 Bytes

skins/kts_blue/footer_left.gif 0 โ†’ 100644

889 Bytes

resources/graphics/portlet_corner_right.png renamed to skins/kts_blue/footer_left.png

344 Bytes

skins/kts_blue/footer_right.gif 0 โ†’ 100644

946 Bytes

skins/kts_blue/footer_right.png 0 โ†’ 100644

422 Bytes

skins/kts_blue/kt-ie-morph.css 0 โ†’ 100644
  1 +
  2 +.ktActionLink.ktDownload, .ktAction.ktDownload {
  3 + background-image: url(download.gif);
  4 +}
  5 +
  6 +#pageBodyBg {
  7 + background: url(page_bg.gif) bottom left repeat-x;
  8 +}
  9 +
  10 +#bodyBottomLeft {
  11 + background: url(page_border_bottomleft.gif) bottom left no-repeat;
  12 +}
  13 +
  14 +#bodyBottomRepeat {
  15 + background: url(page_border_bottomrepeat.gif) bottom left repeat-x;
  16 +}
  17 +
  18 +#bodyBottomRight {
  19 + background: url(page_border_bottomright.gif) bottom right no-repeat;
  20 +}
  21 +
  22 +#navbar
  23 +{
  24 + background: url(menubg.gif) top left repeat-x;
  25 +}
  26 +
  27 +#navbarLeft {
  28 + background: url(menu_corner_left.gif) top left no-repeat;
  29 +}
  30 +
  31 +#navbarRight {
  32 + background: url(menu_corner_right.gif) top right no-repeat;
  33 +}
  34 +
  35 +#navbar ul li.active {
  36 + background: #6c8c2f url(menubg-active.gif) top left repeat-x;
  37 +}
  38 +
  39 +#menu_divider {
  40 + background: url(menu_divider.gif) top left no-repeat;
  41 +}
  42 +
  43 +.dashboard_block_topleft {
  44 + background: white url(dashlet_toprepeat.gif) top left repeat-x;
  45 +}
  46 +
  47 +.dashboard_block_toprepeat {
  48 + background: white url(dashlet_toprepeat.gif) top left repeat-x;
  49 +}
  50 +
  51 +.dashboard_block_topright {
  52 + background: white url(dashlet_toprepeat.gif) top left repeat-x;
  53 +}
  54 +
  55 +#portletbar .portlet.expanded h4
  56 +{
  57 + background: url(minus.gif) 10px 45% no-repeat;
  58 +}
  59 +
  60 +#portletbar .portlet.expanded .portletTopRepeat {
  61 + background: url(portlet_bg.gif) top left repeat-x;
  62 +}
  63 +
  64 +#portletbar .portlet.expanded {
  65 + background: url(portlet_corner_topleft.gif) top left no-repeat;
  66 +}
  67 +
  68 +#portletbar .portlet.expanded .portletTopRight {
  69 + background: url(portlet_corner_topright.gif) top right no-repeat;
  70 +}
  71 +
  72 +#portletbar .portlet.portletTopRepeat {
  73 + background: url(portlet_bg_collapsed.gif) top left repeat-x;
  74 +}
  75 +
  76 +#portletbar.portlet {
  77 + background: url(portlet_corner_topleft_collapsed.gif) top left no-repeat;
  78 +}
  79 +
  80 +#portletbar .portlet.portletTopRight {
  81 + background: url(portlet_corner_topright_collapsed.gif) top right no-repeat;
  82 +}
  83 +
  84 +.collapsible.expanded h4
  85 +{
  86 + background: url(minus.gif) 10px 50% no-repeat;
  87 +}
  88 +
  89 +#content .dashboard_block .action_rollup
  90 +{
  91 + background-image: url(bullet_toggle_minus.gif);
  92 +}
  93 +
  94 +#content .dashboard_block.rolled-up .action_rollup
  95 +{
  96 + background-image: url(bullet_toggle_plus.gif);
  97 +}
  98 +
  99 +#content .dashboard_block .action_close
  100 +{
  101 + background-image: url(bullet_toggle_close.gif);
  102 +}
  103 +
  104 +#document-views .downloadbox ul li.download {
  105 + background-image: url(download.gif);
  106 +}
  107 +
  108 +#copyrightbarBg {
  109 + background: url(footer_bg.gif) top left repeat-x;
  110 +}
  111 +
  112 +#copyrightbarLeft{
  113 + background: url(footer_left.gif) top left no-repeat;
  114 +}
  115 +
  116 +#copyrightbarRight{
  117 + background: url(footer_right.gif) top right no-repeat;
  118 +}
  119 +
  120 +/* Font colour definitions */
  121 +/*
  122 +#content h2
  123 +{
  124 + border-color: #eee;
  125 + color: #333;
  126 +}
  127 +
  128 +#portletbar .portlet h4
  129 +{
  130 + color: #FFFFFF;
  131 +}
  132 +
  133 +#portletbar .portlet.expanded h4
  134 +{
  135 + color: #FFFFFF;
  136 +}
  137 +
  138 +#content a.ktCancelLink {
  139 + border: 1px solid #888;
  140 + color: black;
  141 +}
  142 +
  143 +#copyrightbar {
  144 + color: #000000;
  145 +}
  146 +
  147 +.copyright {
  148 + color: #888;
  149 + border-top: 1px solid #ccc;
  150 +}
  151 +
  152 +#document-views .viewlet h3 {
  153 + color: #333;
  154 +}
  155 +
  156 +.collapsible h4
  157 +{
  158 + border-color: #eee;
  159 + color: #333;
  160 +}
  161 +
  162 +.collapsible.expanded h4
  163 +{
  164 + border-color: #eee;
  165 + color: #333;
  166 +}
  167 +
  168 +.dashboard_block_handle
  169 +{
  170 + font-size:small;
  171 +}
  172 +
  173 +#content .ktBlock h2
  174 +{
  175 + color: #FFFFFF;
  176 +}
  177 +*/
0 178 \ No newline at end of file
... ...
skins/kts_blue/kt-morph.css 0 โ†’ 100644
  1 +
  2 +.ktActionLink.ktDownload, .ktAction.ktDownload {
  3 + background-image: url(download.png);
  4 +}
  5 +
  6 +#pageBodyBg {
  7 + background: url(page_bg.png) bottom left repeat-x;
  8 +}
  9 +
  10 +#bodyBottomLeft {
  11 + background: url(page_border_bottomleft.gif) bottom left no-repeat;
  12 +}
  13 +
  14 +#bodyBottomRepeat {
  15 + background: url(page_border_bottomrepeat.gif) bottom left repeat-x;
  16 +}
  17 +
  18 +#bodyBottomRight {
  19 + background: url(page_border_bottomright.gif) bottom right no-repeat;
  20 +}
  21 +
  22 +#navbar
  23 +{
  24 + background: url(menubg.png) top left repeat-x;
  25 +}
  26 +
  27 +#navbarLeft {
  28 + background: url(menu_corner_left.png) top left no-repeat;
  29 +}
  30 +
  31 +#navbarRight {
  32 + background: url(menu_corner_right.png) top right no-repeat;
  33 +}
  34 +
  35 +#navbar ul li.active {
  36 + background: #6c8c2f url(menubg-active.png) top left repeat-x;
  37 +}
  38 +
  39 +#menu_divider {
  40 + background: url(menu_divider.png) top left no-repeat;
  41 +}
  42 +
  43 +.dashboard_block_topleft {
  44 + background: url(dashlet_topleft.png) top left no-repeat;
  45 +}
  46 +
  47 +.dashboard_block_toprepeat {
  48 + background: white url(dashlet_toprepeat.png) top left repeat-x;
  49 +}
  50 +
  51 +.dashboard_block_topright {
  52 + background: url(dashlet_topright.png) top right no-repeat;
  53 +}
  54 +
  55 +#portletbar .portlet.expanded h4
  56 +{
  57 + background: url(minus.gif) 10px 45% no-repeat;
  58 +}
  59 +
  60 +#portletbar .portlet.expanded .portletTopRepeat {
  61 + background: url(portlet_bg.png) top left repeat-x;
  62 +}
  63 +
  64 +#portletbar .portlet.expanded {
  65 + background: url(portlet_corner_topleft.png) top left no-repeat;
  66 +}
  67 +
  68 +#portletbar .portlet.expanded .portletTopRight {
  69 + background: url(portlet_corner_topright.png) top right no-repeat;
  70 +}
  71 +
  72 +#portletbar .portlet .portletTopRepeat {
  73 + background: url(portlet_bg_collapsed.png) top left repeat-x;
  74 +}
  75 +
  76 +#portletbar .portlet {
  77 + background: url(portlet_corner_topleft_collapsed.png) top left no-repeat;
  78 +}
  79 +
  80 +#portletbar .portlet .portletTopRight {
  81 + background: url(../../resources/graphics/portlet_corner_topright_collapsed.png) top right no-repeat;
  82 +}
  83 +
  84 +.collapsible.expanded h4
  85 +{
  86 + background: url(minus.gif) 10px 50% no-repeat;
  87 +}
  88 +
  89 +#content .dashboard_block .action_rollup
  90 +{
  91 + background-image: url(bullet_toggle_minus.png);
  92 +}
  93 +
  94 +#content .dashboard_block.rolled-up .action_rollup
  95 +{
  96 + background-image: url(bullet_toggle_plus.png);
  97 +}
  98 +
  99 +#content .dashboard_block .action_close
  100 +{
  101 + background-image: url(bullet_toggle_close.png);
  102 +}
  103 +
  104 +#document-views .downloadbox ul li.download {
  105 + background-image: url(download.png);
  106 +}
  107 +
  108 +#copyrightbarBg {
  109 + background: url(footer_bg.png) top left repeat-x;
  110 +}
  111 +
  112 +#copyrightbarLeft{
  113 + background: url(footer_left.png) top left no-repeat;
  114 +}
  115 +
  116 +#copyrightbarRight{
  117 + background: url(footer_right.png) top right no-repeat;
  118 +}
  119 +
  120 +/* Font colour definitions */
  121 +/*
  122 +#content h2
  123 +{
  124 + border-color: #eee;
  125 + color: #333;
  126 +}
  127 +
  128 +#portletbar .portlet h4
  129 +{
  130 + color: #FFFFFF;
  131 +}
  132 +
  133 +#portletbar .portlet.expanded h4
  134 +{
  135 + color: #FFFFFF;
  136 +}
  137 +
  138 +#content a.ktCancelLink {
  139 + border: 1px solid #888;
  140 + color: black;
  141 +}
  142 +
  143 +#copyrightbar {
  144 + color: #000000;
  145 +}
  146 +
  147 +.copyright {
  148 + color: #888;
  149 + border-top: 1px solid #ccc;
  150 +}
  151 +
  152 +#document-views .viewlet h3 {
  153 + color: #333;
  154 +}
  155 +
  156 +.collapsible h4
  157 +{
  158 + border-color: #eee;
  159 + color: #333;
  160 +}
  161 +
  162 +.collapsible.expanded h4
  163 +{
  164 + border-color: #eee;
  165 + color: #333;
  166 +}
  167 +
  168 +.dashboard_block_handle
  169 +{
  170 + font-size:small;
  171 +}
  172 +
  173 +#content .ktBlock h2
  174 +{
  175 + color: #FFFFFF;
  176 +}
  177 +*/
0 178 \ No newline at end of file
... ...
skins/kts_blue/menu_corner_left.gif 0 โ†’ 100644

987 Bytes

skins/kts_blue/menu_corner_left.png 0 โ†’ 100644

416 Bytes

skins/kts_blue/menu_corner_right.gif 0 โ†’ 100644

1 KB

skins/kts_blue/menu_corner_right.png 0 โ†’ 100644

482 Bytes

skins/kts_blue/menu_divider.gif 0 โ†’ 100644

839 Bytes

skins/kts_blue/menu_divider.png 0 โ†’ 100644

182 Bytes

skins/kts_blue/menubg-active.gif 0 โ†’ 100644

836 Bytes

skins/kts_blue/menubg-active.png 0 โ†’ 100644

181 Bytes

skins/kts_blue/menubg.gif 0 โ†’ 100644

838 Bytes

skins/kts_blue/menubg.png 0 โ†’ 100644

176 Bytes

skins/kts_blue/minus.gif 0 โ†’ 100644

870 Bytes

skins/kts_blue/page_bg.gif 0 โ†’ 100644

1012 Bytes

resources/graphics/portlet_corner_left.png renamed to skins/kts_blue/page_bg.png

471 Bytes

skins/kts_blue/page_border_bottomleft.gif 0 โ†’ 100644

183 Bytes

skins/kts_blue/page_border_bottomrepeat.gif 0 โ†’ 100644

57 Bytes

skins/kts_blue/page_border_bottomright.gif 0 โ†’ 100644

192 Bytes

skins/kts_blue/plus.gif 0 โ†’ 100644

865 Bytes

resources/graphics/menu_corner_bottomleft.png renamed to skins/kts_blue/plus.png

269 Bytes

skins/kts_blue/portlet_bg.gif 0 โ†’ 100644

837 Bytes

skins/kts_blue/portlet_bg.png 0 โ†’ 100644

174 Bytes

skins/kts_blue/portlet_bg_collapsed.gif 0 โ†’ 100644

816 Bytes

resources/graphics/menu_corner_topright.png renamed to skins/kts_blue/portlet_bg_collapsed.png

193 Bytes

skins/kts_blue/portlet_corner_topleft.gif 0 โ†’ 100644

1.48 KB

skins/kts_blue/portlet_corner_topleft.png 0 โ†’ 100644

609 Bytes

skins/kts_blue/portlet_corner_topleft_collapsed.gif 0 โ†’ 100644

1.14 KB

skins/kts_blue/portlet_corner_topleft_collapsed.png 0 โ†’ 100644

518 Bytes

skins/kts_blue/portlet_corner_topright.gif 0 โ†’ 100644

1.21 KB

skins/kts_blue/portlet_corner_topright.png 0 โ†’ 100644

468 Bytes

skins/kts_blue/portlet_corner_topright_collapsed.gif 0 โ†’ 100644

958 Bytes

skins/kts_blue/portlet_corner_topright_collapsed.png 0 โ†’ 100644

299 Bytes

skins/kts_blue/title_bullet.png 0 โ†’ 100644

239 Bytes

templates/kt3/fieldsets/generic.smarty
1 1 <div class="detail_fieldset">
2 2 <h3>{i18n}Generic Information{/i18n}</h3>
3 3 <p class="descriptiveText">
4   - {i18n}The information in this section is stored by KnowledgeTree&trade; for every
  4 + {i18n}The information in this section is stored by {$appname}&trade; for every
5 5 document.{/i18n}
6 6 </p>
7 7  
... ...
templates/kt3/fieldsets/generic_versioned.smarty
1 1 <div class="detail_fieldset">
2 2 <h3>{i18n}Generic Information{/i18n}</h3>
3 3 <p class="descriptiveText">
4   - {i18n}The information in this section is stored by KnowledgeTree&trade; for every
  4 + {i18n}The information in this section is stored by {$appname}&trade; for every
5 5 document.{/i18n}
6 6 </p>
7 7  
... ...
templates/kt3/standard_page.smarty
... ... @@ -9,6 +9,11 @@
9 9 {foreach item=sResourceURL from=$page->getCSSResources()}
10 10 <link rel="stylesheet" type="text/css" href="{$rootUrl}/{$sResourceURL}" />
11 11 {/foreach}
  12 + {if $config->get("ui/morphEnabled") == '1'}
  13 + {foreach item=sResourceURL from=$page->getThemeCSSResources()}
  14 + <link rel="stylesheet" type="text/css" href="{$rootUrl}/{$sResourceURL}" />
  15 + {/foreach}
  16 + {/if}
12 17  
13 18 <link rel="stylesheet" type="text/css" href="{$rootUrl}/resources/css/kt-print.css"
14 19 media="print" />
... ... @@ -26,6 +31,11 @@
26 31 {foreach item=sResourceURL from=$page->getCSSResourcesForIE()}
27 32 <style type="text/css" media="all">@import url({$rootUrl}/{$sResourceURL});</style>
28 33 {/foreach}
  34 + {if $config->get("ui/morphEnabled") == '1'}
  35 + {foreach item=sResourceURL from=$page->getThemeCSSResourcesForIE()}
  36 + <style type="text/css" media="all">@import url({$rootUrl}/{$sResourceURL});</style>
  37 + {/foreach}
  38 + {/if}
29 39 <![endif]-->
30 40  
31 41 <!-- Standalone CSS. -->
... ... @@ -208,12 +218,14 @@
208 218 <div id="copyrightbarBg"></div>
209 219 <div id="copyrightbar">
210 220 {i18n}&copy; 2007 <a href="http://www.knowledgetree.com/">The Jam Warehouse Software (Pty) Ltd.</a> All Rights Reserved{/i18n}
211   - &mdash; {i18n arg_version="$versionname"}KnowledgeTree Version: #version#{/i18n} &mdash; {i18n arg_timing=$page->getReqTime()}Request created in #timing#s{/i18n}
  221 + &mdash; {i18n arg_version="$versionname"}{$appname} Version: #version#{/i18n} &mdash; {i18n arg_timing=$page->getReqTime()}Request created in #timing#s{/i18n}
212 222 {$page->getDisclaimer()}
213 223 </div>
214 224 {if $config->get("ui/poweredByDisabled") == '0'}
215 225 <a href="{$rootUrl}"><img src="{$config->get("ui/powerLogo")}" class="copyrightbarBorderLogo" alt="{$config->get("ui/powerLogoTitle")}" title="{$config->get("ui/powerLogoTitle")}"/></a>
  226 +
216 227 {/if}
  228 + <div class="floatClear"></div>
217 229 </div>
218 230 </body>
219 231 </html>
... ...
templates/ktcore/authentication/manage.smarty
1 1 <h2>{i18n}Authentication Sources{/i18n}</h2>
2 2  
3   -<p class="descriptiveText">{i18n}By default, KnowledgeTree controls its
  3 +<p class="descriptiveText">{i18n}By default, {$appname} controls its
4 4 own users and groups and stores all information about them inside the database.
5 5 In many situations, an organisation will already have a list of users and groups,
6 6 and needs to use that existing information to allow access to the DMS.
... ...
templates/ktcore/dashlets/mailserver.smarty
... ... @@ -3,5 +3,5 @@ documents and sending of notifications are disabled.{/i18n}&lt;/p&gt;
3 3  
4 4 {if $admin}
5 5 <p>{i18n}Edit the [email] section of the config.ini file to set your email
6   -server and the sending address of the KnowledgeTree server.{/i18n}</p>
  6 +server and the sending address of the {$appname} server.{/i18n}</p>
7 7 {/if}
... ...
templates/ktcore/document/admin/linktypesadmin.smarty
1 1 <h2>{i18n}Document Link Type Management{/i18n}</h2>
2 2  
3   -<p class="descriptiveText">{i18n}Within KnowledgeTree it is possible for users to create links between related documents. Link types may include constructs such as "associated with" and "duplicated by". Please create link types required by your organisation below.{/i18n}</p>
  3 +<p class="descriptiveText">{i18n}Within {$appname} it is possible for users to create links between related documents. Link types may include constructs such as "associated with" and "duplicated by". Please create link types required by your organisation below.{/i18n}</p>
4 4  
5 5 {if ($add_form)}
6 6  
... ...
templates/ktcore/document/compare.smarty
... ... @@ -15,14 +15,14 @@
15 15 {if ($document_data.is_manufactured)}
16 16 <p class="descriptiveText"><strong class="ktInlineError">{i18n}Please
17 17 note{/i18n}:</strong> {i18n arg_version=$from}the information for version
18   -#version# comes from an older version of KnowledgeTree and may be
  18 +#version# comes from an older version of {$appname} and may be
19 19 incorrect.{/i18n}
20 20 {/if}
21 21  
22 22 {if ($comparison_data.is_manufactured)}
23 23 <p class="descriptiveText"><strong class="ktInlineError">{i18n}Please
24 24 note{/i18n}:</strong> {i18n arg_version=$to}the information for version
25   -#version# comes from an older version of KnowledgeTree and may be
  25 +#version# comes from an older version of {$appname} and may be
26 26 incorrect.{/i18n}
27 27 {/if}
28 28  
... ...
templates/ktcore/document/comparison_version_select.smarty
... ... @@ -2,7 +2,7 @@
2 2  
3 3 <p class="descriptiveText">{i18n}This page lists versions of document metadata and allows you to compare a metadata version with the current metadata content.{/i18n}</p>
4 4  
5   - <table class="document_history" summary="{i18n}Document History for KnowledgeTree New UI Presentation{/i18n}" cellspacing="0">
  5 + <table class="document_history" summary="{i18n}Document History for {$appname} New UI Presentation{/i18n}" cellspacing="0">
6 6  
7 7 <thead>
8 8 <tr>
... ...
templates/ktcore/document/metadata_history.smarty
... ... @@ -3,7 +3,7 @@
3 3 <p class="descriptiveText">{i18n}This page lists versions of document metadata and allows you to compare a metadata version with the current metadata content.{/i18n}</p>
4 4  
5 5  
6   - <table class="document_history" summary="{i18n}Document History for KnowledgeTree New UI Presentation{/i18n}" cellspacing="0">
  6 + <table class="document_history" summary="{i18n}Document History for {$appname} New UI Presentation{/i18n}" cellspacing="0">
7 7  
8 8 <thead>
9 9 <tr>
... ...
templates/ktcore/document/transaction_history.smarty
... ... @@ -3,7 +3,7 @@
3 3 <p class="descriptiveText">{i18n}This page provides details of all activities that have been carried out on the document.{/i18n}</p>
4 4  
5 5  
6   - <table class="document_history" summary="{i18n}Document History for KnowledgeTree New UI Presentation{/i18n}" cellspacing="0">
  6 + <table class="document_history" summary="{i18n}Document History for {$appname} New UI Presentation{/i18n}" cellspacing="0">
7 7  
8 8 <thead>
9 9 <tr>
... ...
templates/ktcore/document/view.smarty
1   -<h2><img src="{$rootUrl}/resources/graphics/title_bullet.png"/>{$document->getName()|escape|wordwrap:40:"\n":true}</h2>
  1 +<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{$document->getName()|escape|wordwrap:40:"\n":true}</h2>
2 2  
3 3 {if ($document->getIsCheckedOut() == 1)}
4 4 {capture assign=checkout_user}<strong>{$sCheckoutUser}</strong>{/capture}
... ... @@ -17,7 +17,7 @@ have sufficient priviledges to cancel their checkout.{/i18n}&lt;/p&gt;
17 17 <div class="ktInfo">
18 18 <p>{i18n arg_checkoutuser=$checkout_user}This document is currently checked out by #checkoutuser#. You cannot make
19 19 changes until that user checks it in. If you have urgent modifications to make, please
20   -contact your KnowledgeTree Administrator.{/i18n}</p>
  20 +contact your {$appname} Administrator.{/i18n}</p>
21 21 </div>
22 22 {/if}
23 23 {/if}
... ...
templates/ktcore/forms/widgets/collection.smarty
... ... @@ -6,6 +6,7 @@
6 6 <link rel="stylesheet" type="text/css" href="{$rootUrl}/resources/css/kt-contenttypes.css" />
7 7 <link rel="stylesheet" type="text/css" href="{$rootUrl}/resources/css/kt-headings.css" />
8 8 <!--[if lt IE 7]><style type="text/css" media="all">@import url({$rootUrl}/resources/css/kt-ie-icons.css);</style><![endif]-->
  9 +
9 10 <script type="text/javascript" src="{$rootUrl}/thirdpartyjs/MochiKit/Base.js"> </script>
10 11 <script type="text/javascript" src="{$rootUrl}/thirdpartyjs/MochiKit/Iter.js"> </script>
11 12 <script type="text/javascript" src="{$rootUrl}/thirdpartyjs/MochiKit/DOM.js"> </script>
... ...
templates/ktcore/login.smarty
... ... @@ -2,13 +2,12 @@
2 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 3 <html>
4 4 <head>
5   - <title>{i18n}Login{/i18n} | KnowledgeTree</title>
  5 + <title>{i18n}Login{/i18n} | {$appname}</title>
6 6  
7 7 <link rel="stylesheet" href="{$rootUrl}/resources/css/kt-login.css" type="text/css" />
8 8  
9   -
10   - <link rel="icon" href="{$rootUrl}/resources/graphics/favicon.ico" type="image/x-icon">
11   - <link rel="shortcut icon" href="{$rootUrl}/resources/graphics/favicon.ico" type="image/x-icon">
  9 + <link rel="icon" href="{$rootUrl}/resources/favicon.ico" type="image/x-icon">
  10 + <link rel="shortcut icon" href="{$rootUrl}/resources/favicon.ico" type="image/x-icon">
12 11  
13 12 </head>
14 13 <body onload="document.getElementById('username').focus()">
... ... @@ -24,7 +23,7 @@
24 23 {if $config->get("ui/mainLogo") != ''}
25 24 <img src="{$config->get("ui/mainLogo")}" alt="{$config->get("ui/mainLogoTitle")}" class="logoimage"/><br />
26 25 {else}
27   - <img src="{$rootUrl}/resources/graphics/ktlogo-topbar-right.png" alt="KnowledgeTree DMS" class="logoimage" height="50" width="252"/><br />
  26 + <img src="{$rootUrl}/resources/graphics/ktlogo-topbar-right.png" alt="{$appname}" class="logoimage" height="50" width="252"/><br />
28 27 {/if}
29 28  
30 29 {if ($errorMessage == null)}
... ... @@ -58,7 +57,7 @@
58 57 {/if}
59 58  
60 59 <span class="descriptiveText version">
61   - {i18n}KnowledgeTree Version{/i18n}<br />{$versionName}<br/>
  60 + {i18n}{$appname} Version{/i18n}<br />{$versionName}<br/>
62 61 {i18n}&copy; 2007 <a href="http://www.knowledgetree.com/">The Jam Warehouse Software (Pty) Ltd.</a> All Rights Reserved{/i18n}
63 62 </span>
64 63 <div id="bottomspacer"></div>
... ...
templates/ktcore/misc/columns/select_view.smarty
1 1 <h2>{i18n}Select View{/i18n}</h2>
2 2  
3   -<p class="descriptiveText">{i18n}Views are the selections of documents and folders you will find throughout KnowledgeTree. Some of those
  3 +<p class="descriptiveText">{i18n}Views are the selections of documents and folders you will find throughout {$appname}s. Some of those
4 4 can be configured to use different kinds of columns (e.g. workflow state, the creator's name, etc.){/i18n}</p>
5 5  
6 6 <ul>
... ...
templates/ktcore/plugins/list.smarty
... ... @@ -16,7 +16,7 @@ method=getUserFriendlyName assign=boxes name=&quot;pluginids&quot;}
16 16  
17 17 <h3>{i18n}Read plugins from filesystem{/i18n}</h3>
18 18  
19   -<p class="descriptiveText">{i18n}If you have moved the location of KnowledgeTree on your server filesystem, or installed or removed plugins, the plugins
  19 +<p class="descriptiveText">{i18n}If you have moved the location of {$appname} on your server filesystem, or installed or removed plugins, the plugins
20 20 must be re-read from the filesystem{/i18n}</p>
21 21  
22 22 <form action="{$smarty.server.PHP_SELF}" method="POST">
... ...
templates/ktcore/principals/addgroup.smarty
... ... @@ -23,7 +23,7 @@ will be maintained as it is in the authentication source.{/i18n}&lt;/p&gt;
23 23 </p>
24 24  
25 25 <p class="descriptiveText">{i18n}Alternatively, you can manually create a user
26   -within KnowledgeTree below.{/i18n}</p>
  26 +within {$appname} below.{/i18n}</p>
27 27 {/if}
28 28 {*
29 29 <form action="{$smarty.server.PHP_SELF}" method="POST">
... ...
templates/ktcore/principals/adduser.smarty
... ... @@ -2,7 +2,7 @@
2 2  
3 3 <p class="descriptiveText">{i18n}Please complete the form below to add
4 4 a new user. Fields marked with a red square are required. By default,
5   -users are created using KnowledgeTree's builtin authentication
  5 +users are created using {$appname}'s builtin authentication
6 6 provider. Should you wish to use an external authentication provider
7 7 such as LDAP, please ensure that the provider's plugin is registered
8 8 and use the form on the User Management page.{/i18n}</p>
... ...
templates/ktcore/principals/edituser.smarty
... ... @@ -6,7 +6,7 @@
6 6 <input type="hidden" name="old_search" value="{$old_search}" />
7 7 <fieldset>
8 8 <legend>{i18n}Change User Details{/i18n}</legend>
9   -<p class="descriptiveText">{i18n}Please complete the form below to edit the user. Fields marked with a red square are required. By default, users are created using KnowledgeTree's builtin authentication provider. Should you wish to use an external authentication provider such as LDAP, please ensure that the provider's plugin is registered and enabled.{/i18n}</p>
  9 +<p class="descriptiveText">{i18n}Please complete the form below to edit the user. Fields marked with a red square are required. By default, users are created using {$appname}'s builtin authentication provider. Should you wish to use an external authentication provider such as LDAP, please ensure that the provider's plugin is registered and enabled.{/i18n}</p>
10 10 {foreach item=oWidget from=$edit_fields}
11 11  
12 12 {$oWidget->render()}
... ...
templates/ktcore/principals/unitadmin.smarty
1 1 <h2>{i18n}Unit Administration{/i18n}</h2>
2 2  
3   -<p class="descriptiveText">{i18n}KnowledgeTree allows administrators the ability to create <strong>Units</strong> that model the organisation's business units. Units may have their own administrators and groups may be assigned to these units.{/i18n}</p>
  3 +<p class="descriptiveText">{i18n}{$appname} allows administrators the ability to create <strong>Units</strong> that model the organisation's business units. Units may have their own administrators and groups may be assigned to these units.{/i18n}</p>
4 4  
5 5 <fieldset>
6 6 <legend>{i18n}Add New Unit{/i18n}</legend>
... ...