From 07bf77c4e6fefc15edf1165102dc32052ea96f70 Mon Sep 17 00:00:00 2001 From: Jalaloedien Date: Wed, 14 Mar 2007 14:25:16 +0000 Subject: [PATCH] KTC-35 "Create skinning system based on DocZone branch. " Added skinning plumbing to trunk. --- config/config.ini | 15 +++++++++++++++ resources/css/kt-framing.css | 7 +++++++ resources/css/kt-login.css | 11 +++++++++++ resources/graphics/bullet.gif | Bin 0 -> 836 bytes resources/graphics/bullet_toggle_close.gif | Bin 0 -> 909 bytes resources/graphics/bullet_toggle_minus.gif | Bin 0 -> 971 bytes resources/graphics/bullet_toggle_plus.gif | Bin 0 -> 865 bytes resources/graphics/dashlet-gradient.gif | Bin 0 -> 1294 bytes resources/graphics/dashlet_bottomleft.gif | Bin 0 -> 953 bytes resources/graphics/dashlet_bottomrepeat.gif | Bin 0 -> 809 bytes resources/graphics/dashlet_bottomright.gif | Bin 0 -> 989 bytes resources/graphics/dashlet_leftrepeat.gif | Bin 0 -> 807 bytes resources/graphics/dashlet_rightrepeat.gif | Bin 0 -> 809 bytes resources/graphics/dashlet_topleft.gif | Bin 0 -> 1398 bytes resources/graphics/dashlet_toprepeat.gif | Bin 0 -> 842 bytes resources/graphics/dashlet_topright.gif | Bin 0 -> 1358 bytes resources/powered-by-kt.png | Bin 0 -> 2030 bytes setup/upgrade.php | 14 ++++++++++++-- templates/kt3/standard_page.smarty | 13 +++++++++++-- templates/ktcore/login.smarty | 8 ++++++-- 20 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 resources/graphics/bullet.gif create mode 100644 resources/graphics/bullet_toggle_close.gif create mode 100644 resources/graphics/bullet_toggle_minus.gif create mode 100644 resources/graphics/bullet_toggle_plus.gif create mode 100644 resources/graphics/dashlet-gradient.gif create mode 100644 resources/graphics/dashlet_bottomleft.gif create mode 100644 resources/graphics/dashlet_bottomrepeat.gif create mode 100644 resources/graphics/dashlet_bottomright.gif create mode 100644 resources/graphics/dashlet_leftrepeat.gif create mode 100644 resources/graphics/dashlet_rightrepeat.gif create mode 100644 resources/graphics/dashlet_topleft.gif create mode 100644 resources/graphics/dashlet_toprepeat.gif create mode 100644 resources/graphics/dashlet_topright.gif create mode 100644 resources/powered-by-kt.png diff --git a/config/config.ini b/config/config.ini index 9511ddf..c9eb138 100644 --- a/config/config.ini +++ b/config/config.ini @@ -83,6 +83,21 @@ companyLogo = ${rootUrl}/resources/companylogo.png companyLogoWidth = 313px ; ALT text - for accessibility purposes. companyLogoTitle = ACME Corporation +; Main logo +mainLogo = +; the logo's width in pixels +mainLogoWidth = 219px +; ALT text - for accessibility purposes. +mainLogoTitle = Pinnacle Knowledge Management Systems +; enable/disable powered by kt logo +poweredByDisabled = 1 +; powered by kt logo +powerLogo = ${rootUrl}/resources/powered-by-kt.png +; the logo's width in pixels +powerLogoWidth = 130px +; ALT text - for accessibility purposes. +powerLogoTitle = Powered by KnowledgeTree + ; use the additional IE specific GIF theme overrides. ; using this means that arbitrary theme packs may not work without ; having GIF versions available. diff --git a/resources/css/kt-framing.css b/resources/css/kt-framing.css index 854853c..1048492 100644 --- a/resources/css/kt-framing.css +++ b/resources/css/kt-framing.css @@ -1602,6 +1602,13 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes overflow: hidden; } +.copyrightbarBorderLogo{ + position: absolute; + top:1px; + right:20px; + border: 0; +} + hr { border-width: 1px 0 0 0; border-style: solid; diff --git a/resources/css/kt-login.css b/resources/css/kt-login.css index a916daa..8c9e127 100644 --- a/resources/css/kt-login.css +++ b/resources/css/kt-login.css @@ -24,6 +24,17 @@ /*-moz-border-radius: 1em;*/ } + #loginbox_skin { + position: relative; + padding: 1em; + /*border: 1px solid #888;*/ + width: 252px; + margin-left: auto; + margin-right: auto; + text-align: left; + background: white url(../powered-by-kt.png) bottom right no-repeat; + } + #loginboxTopLeft { position: absolute; background: url(../graphics/login_corner_topleft.gif) top left no-repeat; diff --git a/resources/graphics/bullet.gif b/resources/graphics/bullet.gif new file mode 100644 index 0000000..a8d9282 Binary files /dev/null and b/resources/graphics/bullet.gif differ diff --git a/resources/graphics/bullet_toggle_close.gif b/resources/graphics/bullet_toggle_close.gif new file mode 100644 index 0000000..336bcc5 Binary files /dev/null and b/resources/graphics/bullet_toggle_close.gif differ diff --git a/resources/graphics/bullet_toggle_minus.gif b/resources/graphics/bullet_toggle_minus.gif new file mode 100644 index 0000000..a85ef40 Binary files /dev/null and b/resources/graphics/bullet_toggle_minus.gif differ diff --git a/resources/graphics/bullet_toggle_plus.gif b/resources/graphics/bullet_toggle_plus.gif new file mode 100644 index 0000000..cf63e16 Binary files /dev/null and b/resources/graphics/bullet_toggle_plus.gif differ diff --git a/resources/graphics/dashlet-gradient.gif b/resources/graphics/dashlet-gradient.gif new file mode 100644 index 0000000..db9ecaa Binary files /dev/null and b/resources/graphics/dashlet-gradient.gif differ diff --git a/resources/graphics/dashlet_bottomleft.gif b/resources/graphics/dashlet_bottomleft.gif new file mode 100644 index 0000000..d0736c7 Binary files /dev/null and b/resources/graphics/dashlet_bottomleft.gif differ diff --git a/resources/graphics/dashlet_bottomrepeat.gif b/resources/graphics/dashlet_bottomrepeat.gif new file mode 100644 index 0000000..9f28119 Binary files /dev/null and b/resources/graphics/dashlet_bottomrepeat.gif differ diff --git a/resources/graphics/dashlet_bottomright.gif b/resources/graphics/dashlet_bottomright.gif new file mode 100644 index 0000000..dcbccc3 Binary files /dev/null and b/resources/graphics/dashlet_bottomright.gif differ diff --git a/resources/graphics/dashlet_leftrepeat.gif b/resources/graphics/dashlet_leftrepeat.gif new file mode 100644 index 0000000..0b64eca Binary files /dev/null and b/resources/graphics/dashlet_leftrepeat.gif differ diff --git a/resources/graphics/dashlet_rightrepeat.gif b/resources/graphics/dashlet_rightrepeat.gif new file mode 100644 index 0000000..31eaa04 Binary files /dev/null and b/resources/graphics/dashlet_rightrepeat.gif differ diff --git a/resources/graphics/dashlet_topleft.gif b/resources/graphics/dashlet_topleft.gif new file mode 100644 index 0000000..11ee051 Binary files /dev/null and b/resources/graphics/dashlet_topleft.gif differ diff --git a/resources/graphics/dashlet_toprepeat.gif b/resources/graphics/dashlet_toprepeat.gif new file mode 100644 index 0000000..00a970d Binary files /dev/null and b/resources/graphics/dashlet_toprepeat.gif differ diff --git a/resources/graphics/dashlet_topright.gif b/resources/graphics/dashlet_topright.gif new file mode 100644 index 0000000..8a667ff Binary files /dev/null and b/resources/graphics/dashlet_topright.gif differ diff --git a/resources/powered-by-kt.png b/resources/powered-by-kt.png new file mode 100644 index 0000000..c83f399 Binary files /dev/null and b/resources/powered-by-kt.png differ diff --git a/setup/upgrade.php b/setup/upgrade.php index af91f10..2196113 100644 --- a/setup/upgrade.php +++ b/setup/upgrade.php @@ -147,7 +147,12 @@ td { vertical-align: top; } - +

@@ -949,5 +954,10 @@ function Upgrade() ?> - + + background="../resources/graphics/ktbg.png"> ; +
  +get('ui/poweredByDisabled') == '0'){ + ?> align="right">
\ No newline at end of file diff --git a/templates/kt3/standard_page.smarty b/templates/kt3/standard_page.smarty index 33a5ce8..665323e 100644 --- a/templates/kt3/standard_page.smarty +++ b/templates/kt3/standard_page.smarty @@ -58,8 +58,14 @@

- - {$config->get( + {if $config->get("ui/mainLogo") != ''} + {$config->get( + {else} + + {/if} + {if $config->get("ui/companyLogo") != ''} + {$config->get( + {/if}
{if (!$page->hide_navbar)} @@ -205,6 +211,9 @@ — {i18n arg_version="$versionname"}KnowledgeTree Version: #version#{/i18n} — {i18n arg_timing=$page->getReqTime()}Request created in #timing#s{/i18n} {$page->getDisclaimer()}
+ {if $config->get("ui/poweredByDisabled") == '0'} + + {/if} diff --git a/templates/ktcore/login.smarty b/templates/ktcore/login.smarty index 27eddda..1aaada6 100644 --- a/templates/ktcore/login.smarty +++ b/templates/ktcore/login.smarty @@ -13,7 +13,7 @@ -
+
@@ -21,7 +21,11 @@ - KnowledgeTree DMS
+ {if $config->get("ui/mainLogo") != ''} + {$config->get(
+ {else} + KnowledgeTree DMS
+ {/if} {if ($errorMessage == null)}

{i18n}Please enter your details below to login.{/i18n}

-- libgit2 0.21.4