Commit 07bf77c4e6fefc15edf1165102dc32052ea96f70
1 parent
00778f85
KTC-35
"Create skinning system based on DocZone branch. " Added skinning plumbing to trunk. Reviewed By: Kevin git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6402 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
20 changed files
with
62 additions
and
6 deletions
config/config.ini
| ... | ... | @@ -83,6 +83,21 @@ companyLogo = ${rootUrl}/resources/companylogo.png |
| 83 | 83 | companyLogoWidth = 313px |
| 84 | 84 | ; ALT text - for accessibility purposes. |
| 85 | 85 | companyLogoTitle = ACME Corporation |
| 86 | +; Main logo | |
| 87 | +mainLogo = | |
| 88 | +; the logo's width in pixels | |
| 89 | +mainLogoWidth = 219px | |
| 90 | +; ALT text - for accessibility purposes. | |
| 91 | +mainLogoTitle = Pinnacle Knowledge Management Systems | |
| 92 | +; enable/disable powered by kt logo | |
| 93 | +poweredByDisabled = 1 | |
| 94 | +; powered by kt logo | |
| 95 | +powerLogo = ${rootUrl}/resources/powered-by-kt.png | |
| 96 | +; the logo's width in pixels | |
| 97 | +powerLogoWidth = 130px | |
| 98 | +; ALT text - for accessibility purposes. | |
| 99 | +powerLogoTitle = Powered by KnowledgeTree | |
| 100 | + | |
| 86 | 101 | ; use the additional IE specific GIF theme overrides. |
| 87 | 102 | ; using this means that arbitrary theme packs may not work without |
| 88 | 103 | ; having GIF versions available. | ... | ... |
resources/css/kt-framing.css
| ... | ... | @@ -1602,6 +1602,13 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes |
| 1602 | 1602 | overflow: hidden; |
| 1603 | 1603 | } |
| 1604 | 1604 | |
| 1605 | +.copyrightbarBorderLogo{ | |
| 1606 | + position: absolute; | |
| 1607 | + top:1px; | |
| 1608 | + right:20px; | |
| 1609 | + border: 0; | |
| 1610 | +} | |
| 1611 | + | |
| 1605 | 1612 | hr { |
| 1606 | 1613 | border-width: 1px 0 0 0; |
| 1607 | 1614 | border-style: solid; | ... | ... |
resources/css/kt-login.css
| ... | ... | @@ -24,6 +24,17 @@ |
| 24 | 24 | /*-moz-border-radius: 1em;*/ |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + #loginbox_skin { | |
| 28 | + position: relative; | |
| 29 | + padding: 1em; | |
| 30 | + /*border: 1px solid #888;*/ | |
| 31 | + width: 252px; | |
| 32 | + margin-left: auto; | |
| 33 | + margin-right: auto; | |
| 34 | + text-align: left; | |
| 35 | + background: white url(../powered-by-kt.png) bottom right no-repeat; | |
| 36 | + } | |
| 37 | + | |
| 27 | 38 | #loginboxTopLeft { |
| 28 | 39 | position: absolute; |
| 29 | 40 | background: url(../graphics/login_corner_topleft.gif) top left no-repeat; | ... | ... |
resources/graphics/bullet.gif
0 → 100644
836 Bytes
resources/graphics/bullet_toggle_close.gif
0 → 100644
909 Bytes
resources/graphics/bullet_toggle_minus.gif
0 → 100644
971 Bytes
resources/graphics/bullet_toggle_plus.gif
0 → 100644
865 Bytes
resources/graphics/dashlet-gradient.gif
0 → 100644
1.26 KB
resources/graphics/dashlet_bottomleft.gif
0 → 100644
953 Bytes
resources/graphics/dashlet_bottomrepeat.gif
0 → 100644
809 Bytes
resources/graphics/dashlet_bottomright.gif
0 → 100644
989 Bytes
resources/graphics/dashlet_leftrepeat.gif
0 → 100644
807 Bytes
resources/graphics/dashlet_rightrepeat.gif
0 → 100644
809 Bytes
resources/graphics/dashlet_topleft.gif
0 → 100644
1.37 KB
resources/graphics/dashlet_toprepeat.gif
0 → 100644
842 Bytes
resources/graphics/dashlet_topright.gif
0 → 100644
1.33 KB
resources/powered-by-kt.png
0 → 100644
1.98 KB
setup/upgrade.php
| ... | ... | @@ -147,7 +147,12 @@ td { vertical-align: top; } |
| 147 | 147 | </head> |
| 148 | 148 | |
| 149 | 149 | <body> |
| 150 | - <img src="../resources/graphics/ktlogo-topbar-right.png"> | |
| 150 | + <img src="<?php | |
| 151 | + if($oKTConfig->get('ui/mainLogo')){ | |
| 152 | + echo $oKTConfig->get('ui/mainLogo'); | |
| 153 | + }else{ | |
| 154 | + echo '../resources/graphics/ktlogo-topbar-right.png'; | |
| 155 | + }?>"> | |
| 151 | 156 | <p> |
| 152 | 157 | <img src="upgrade-title.jpg"> |
| 153 | 158 | <table width=800 height=500> |
| ... | ... | @@ -949,5 +954,10 @@ function Upgrade() |
| 949 | 954 | |
| 950 | 955 | ?> |
| 951 | 956 | <tr> |
| 952 | -<td height=80 background="../resources/graphics/ktbg.png"> | |
| 957 | +<td height=80 <?php | |
| 958 | + if($oKTConfig->get('ui/poweredByDisabled') == '0'){ | |
| 959 | + ?> align="right"><img src="<?php echo $oKTConfig->get('ui/powerLogo');?>"></td> | |
| 960 | + <?php }else{ ?> | |
| 961 | + background="../resources/graphics/ktbg.png"> </td>; | |
| 962 | + <?php }?> | |
| 953 | 963 | </table> |
| 954 | 964 | \ No newline at end of file | ... | ... |
templates/kt3/standard_page.smarty
| ... | ... | @@ -58,8 +58,14 @@ |
| 58 | 58 | <div id="bodyTopRight"></div> |
| 59 | 59 | <div id="bodyPad"> |
| 60 | 60 | <div id="logobar"> |
| 61 | - <a href="{$page->systemURL}"><img src="{$rootUrl}/resources/graphics/ktlogo-topbar-right.png" class="primary" title="{$page->systemName}"/></a> | |
| 62 | - <a href="{$rootUrl}/"><img src="{$config->get("ui/companyLogo")}" height="50px" width="{$config->get("ui/companyLogoWidth")}" alt="{$config->get("ui/companyLogoTitle")}" title="{$config->get("companyLogoTitle")}" class="secondary" /></a> | |
| 61 | + {if $config->get("ui/mainLogo") != ''} | |
| 62 | + <a href="{$rootUrl}"><img src="{$config->get("ui/mainLogo")}" class="primary" alt="{$config->get("ui/companyLogoTitle")}" title="{$config->get("ui/mainLogoTitle")}"/></a> | |
| 63 | + {else} | |
| 64 | + <a href="{$page->systemURL}"><img src="{$rootUrl}/resources/graphics/ktlogo-topbar-right.png" class="primary" title="{$page->systemName}"/></a> | |
| 65 | + {/if} | |
| 66 | + {if $config->get("ui/companyLogo") != ''} | |
| 67 | + <a href="{$rootUrl}/"><img src="{$config->get("ui/companyLogo")}" height="50px" width="{$config->get("ui/companyLogoWidth")}" alt="{$config->get("ui/companyLogoTitle")}" title="{$config->get("companyLogoTitle")}" class="secondary" /></a> | |
| 68 | + {/if} | |
| 63 | 69 | <div class="floatClear"></div> |
| 64 | 70 | </div> |
| 65 | 71 | {if (!$page->hide_navbar)} |
| ... | ... | @@ -205,6 +211,9 @@ |
| 205 | 211 | — {i18n arg_version="$versionname"}KnowledgeTree Version: #version#{/i18n} — {i18n arg_timing=$page->getReqTime()}Request created in #timing#s{/i18n} |
| 206 | 212 | {$page->getDisclaimer()} |
| 207 | 213 | </div> |
| 214 | + {if $config->get("ui/poweredByDisabled") == '0'} | |
| 215 | + <a href="{$rootUrl}"><img src="{$config->get("ui/powerLogo")}" class="copyrightbarBorderLogo" alt="{$config->get("ui/powerLogoTitle")}" title="{$config->get("ui/powerLogoTitle")}"/></a> | |
| 216 | + {/if} | |
| 208 | 217 | </div> |
| 209 | 218 | </body> |
| 210 | 219 | </html> | ... | ... |
templates/ktcore/login.smarty
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | </head> |
| 14 | 14 | <body onload="document.getElementById('username').focus()"> |
| 15 | 15 | |
| 16 | - <div id="loginbox" {if ($disclaimer)} class="hasDisclaimer" {/if}> | |
| 16 | + <div id="{if $config->get("ui/poweredByDisabled") == '0'}loginbox_skin{else}loginbox{/if}" {if ($disclaimer)} class="hasDisclaimer" {/if}> | |
| 17 | 17 | |
| 18 | 18 | <div id="formbox"> |
| 19 | 19 | |
| ... | ... | @@ -21,7 +21,11 @@ |
| 21 | 21 | <input type="hidden" name="action" value="login" /> |
| 22 | 22 | <input type="hidden" name="cookieverify" value="{$cookietest}" /> |
| 23 | 23 | <input type="hidden" name="redirect" value="{$redirect|escape}" /> |
| 24 | - <img src="{$rootUrl}/resources/graphics/ktlogo-topbar-right.png" alt="KnowledgeTree DMS" class="logoimage" height="50" width="252"/><br /> | |
| 24 | + {if $config->get("ui/mainLogo") != ''} | |
| 25 | + <img src="{$config->get("ui/mainLogo")}" alt="{$config->get("ui/mainLogoTitle")}" class="logoimage"/><br /> | |
| 26 | + {else} | |
| 27 | + <img src="{$rootUrl}/resources/graphics/ktlogo-topbar-right.png" alt="KnowledgeTree DMS" class="logoimage" height="50" width="252"/><br /> | |
| 28 | + {/if} | |
| 25 | 29 | |
| 26 | 30 | {if ($errorMessage == null)} |
| 27 | 31 | <p class="descriptiveText">{i18n}Please enter your details below to login.{/i18n}</p> | ... | ... |