Revision 213, 2.0 KB
(checked in by ralle030583, 16 years ago)
|
All files (i hope i havent forgott something) was modified to use the the config in this way:
- config::get($key)
- config::del($key)
- config::set($key,value)
Exception Templates/Smarty?:
The templates still uses $config->get($key) and $config->set($key,$value) cause
it seems that smarty dont like the :: notification
|
Rev | Line | |
---|
[130] | 1 | <div class="block-header">Comments</div> |
---|
| 2 | <table class="kb-table" width="360" border="0" cellspacing="1" border="0"> |
---|
| 3 | <tr> |
---|
[133] | 4 | <td width="100%" align="left" valign="top"> |
---|
| 5 | <table width="100%" border="0" cellspacing="0" border="0"> |
---|
[130] | 6 | {cycle reset=true print=false name=ccl values="kb-table-row-even,kb-table-row-odd"}{section name=i loop=$comments} |
---|
| 7 | <tr class="{cycle name=ccl}"> |
---|
| 8 | <td> |
---|
| 9 | <div style="position: relative;"><a href="?a=search&searchtype=pilot&searchphrase={$comments[i].name}">{$comments[i].name}</a>: |
---|
| 10 | {if $comments[i].time} |
---|
| 11 | <span style="position:absolute; right: 0px;">{$comments[i].time}</span> |
---|
| 12 | {/if} |
---|
| 13 | <p>{$comments[i].comment}</p> |
---|
| 14 | {if $page->isAdmin()} |
---|
[190] | 15 | <a href="javascript:openWindow('?a=admin_comments_delete&c_id={$comments[i].id}', null, 480, 350, '' );">Delete Comment</a> |
---|
[130] | 16 | {/if} |
---|
| 17 | </td> |
---|
| 18 | </tr> |
---|
| 19 | {/section} |
---|
| 20 | <tr> |
---|
| 21 | <td align="center"><form id="postform" name="postform" method="post" action=""> |
---|
| 22 | <textarea class="comment" name="comment" cols="55" rows="5" wrap="PHYSICAL" onkeyup="limitText(this.form.comment,document.getElementById('countdown'),200);" onkeypress="limitText(this.form.comment,document.getElementById('countdown'),200);"></textarea> |
---|
| 23 | </td> |
---|
| 24 | </tr> |
---|
| 25 | <tr> |
---|
| 26 | <td> |
---|
| 27 | <br/> |
---|
| 28 | <span name="countdown" id="countdown">200</span> Letters left<br/> |
---|
| 29 | <b>Name:</b> |
---|
| 30 | <input style="position:relative; right:-3px;" class="comment-button" name="name" type="text" size="24" maxlength="24"> |
---|
[213] | 31 | {if $config->get('comments_pw') and !$page->isAdmin()} |
---|
[130] | 32 | <br/> |
---|
| 33 | <b>Password:</b> |
---|
| 34 | <input type="password" name="password" size="19" class="comment-button"> |
---|
| 35 | {/if} |
---|
| 36 | <input class="comment-button" name="submit" type="submit" value="Add Comment"> |
---|
| 37 | </form> |
---|
| 38 | </td> |
---|
| 39 | </tr> |
---|
| 40 | </table> |
---|
| 41 | </td> |
---|
| 42 | </tr> |
---|
| 43 | </table> |
---|