Changeset 213 for dev/templates

Show
Ignore:
Timestamp:
05/08/07 16:40:42 (15 years ago)
Author:
ralle030583
Message:

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

Location:
dev/templates
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • dev/templates/admin_mapoptions.tpl

    r123 r213  
    1111    {section name=opt loop=$options[id].option} 
    1212        {assign var="o" value=$options[id].option[opt]} 
    13         <tr><td width="120"><b>{$o.descr}:</b></td><td><input type="checkbox" name="{$o.name}" id="{$o.name}"{if $config->getConfig($o.name)}checked="checked"{/if}></td></tr> 
     13        <tr><td width="120"><b>{$o.descr}:</b></td><td><input type="checkbox" name="{$o.name}" id="{$o.name}"{if $config->get($o.name)}checked="checked"{/if}></td></tr> 
    1414    {/section} 
    1515    {section name=opt loop=$options[id].color} 
    1616        {assign var="o" value=$options[id].color[opt]} 
    17         <tr><td width="120"><b>{$o.descr}:</b></td><td><input type="edit" name="{$o.name}" id="{$o.name}"{if $config->getConfig($o.name)} value="{$config->getConfig($o.name)}"{/if}></td></tr> 
     17        <tr><td width="120"><b>{$o.descr}:</b></td><td><input type="edit" name="{$o.name}" id="{$o.name}"{if $config->get($o.name)} value="{$config->get($o.name)}"{/if}></td></tr> 
    1818    {/section} 
    1919</table> 
  • dev/templates/admin_options_checkbox.tpl

    r188 r213  
    22<tr><td width="160"><b>{$opt.descr}:</b></td><td> 
    33<input type="checkbox" id="option[{$opt.name}]" name="option[{$opt.name}]" 
    4 {if $config->getConfig($opt.name)} checked="checked"{/if}> 
     4{if $config->get($opt.name)} checked="checked"{/if}> 
    55{if $opt.hint} 
    66&nbsp;({$opt.hint}) 
  • dev/templates/admin_options_edit.tpl

    r188 r213  
    22<tr><td width="160"><b>{$opt.descr}:</b></td><td> 
    33<input type="edit" id="option[{$opt.name}]" name="option[{$opt.name}]" 
    4 value="{$config->getConfig($opt.name)}" size="{$options.size}" maxlength="{$options.maxlength}"> 
     4value="{$config->get($opt.name)}" size="{$options.size}" maxlength="{$options.maxlength}"> 
    55{if $opt.hint} 
    66&nbsp;({$opt.hint}) 
  • dev/templates/admin_postperm.tpl

    r134 r213  
    2323{/if} 
    2424<br/> 
    25 {if $config->getConfig('post_permission')=='all'} 
     25{if $config->get('post_permission')=='all'} 
    2626Authorization checking is disabled, people stil need to know the postpassword, though.<br/> 
    2727<a href="?a=admin_postperm&authall=0">Enable authorization checking.</a> 
  • dev/templates/battle_overview_table.tpl

    r188 r213  
    1616      </td> 
    1717{if $i.podded} 
    18     {if $config->getConfig('bs_podlink')} 
     18    {if $config->get('bs_podlink')} 
    1919      <td class="kb-table-cell"> 
    2020        <b><a href="?a=pilot_detail&amp;plt_id={$pilot}">{$i.name}</a>&nbsp;<a href="?a=kill_detail&amp;kll_id={$i.podid}">[Pod]</a></b><br/>{$i.ship} 
  • dev/templates/block_comments.tpl

    r190 r213  
    2929            <b>Name:</b> 
    3030            <input style="position:relative; right:-3px;" class="comment-button" name="name" type="text" size="24" maxlength="24">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    31 {if $config->getConfig('comments_pw') and !$page->isAdmin()} 
     31{if $config->get('comments_pw') and !$page->isAdmin()} 
    3232            <br/> 
    3333            <b>Password:</b> 
  • dev/templates/kill_detail.tpl

    r174 r213  
    3939{/foreach} 
    4040            </table> 
    41 {if $config->getConfig('comments')}{$comments}{/if} 
     41{if $config->get('comments')}{$comments}{/if} 
    4242        </td> 
    4343        <td width=50>&nbsp;</td> 
     
    6666                    <td class="item-icon" width="32"><img src="{$img_url}/{$slot.img}" alt="{$slot.text}" border="0"></td> 
    6767                    <td colspan="2" class="kb-table-cell"><b>{$slot.text}</b> </td> 
    68     {if $config->getConfig('item_values')} 
     68    {if $config->get('item_values')} 
    6969                    <td align="center" class="kb-table-cell"><b>Value</b></td> 
    7070    {/if} 
     
    7575                    <td class="kb-table-cell">{$i.Name}</td> 
    7676                    <td width="30" align="center">{$i.Quantity}</td> 
    77         {if $config->getConfig('item_values')} 
     77        {if $config->get('item_values')} 
    7878                    <td align="center">{$i.Value}</td> 
    7979        {/if} 
    8080                </tr> 
    81         {if $admin and $config->getConfig('item_values')} 
     81        {if $admin and $config->get('item_values')} 
    8282                    <tr class="kb-table-row-even"> 
    8383                      <form method="post" action=""> 
  • dev/templates/user_register.tpl

    r188 r213  
    1313  <td><input type="password" name="usrpass" maxlength="32"></td> 
    1414</tr> 
    15 {if $config->getConfig('user_regpass')} 
     15{if $config->get('user_regpass')} 
    1616<tr> 
    1717  <td width="160"><b>Registration Password:</b></td>