diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-01-07 10:41:46 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-01-07 10:41:46 +0000 |
| commit | 2b2b95dcec934a36c5203d1390ab15f80c5ca0ba (patch) | |
| tree | a15fa7b7bc7f766d7efd5f833047ca9a25adc107 /templates/admin_liberty.tpl | |
| parent | b3ec19ce58842b2ae36b1bf053b19af07d6dc3b3 (diff) | |
| download | liberty-2b2b95dcec934a36c5203d1390ab15f80c5ca0ba.tar.gz liberty-2b2b95dcec934a36c5203d1390ab15f80c5ca0ba.tar.bz2 liberty-2b2b95dcec934a36c5203d1390ab15f80c5ca0ba.zip | |
simplify template a bit by moving cache times to a hash in the php file
Diffstat (limited to 'templates/admin_liberty.tpl')
| -rw-r--r-- | templates/admin_liberty.tpl | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/templates/admin_liberty.tpl b/templates/admin_liberty.tpl index 0f20752..8ce5785 100644 --- a/templates/admin_liberty.tpl +++ b/templates/admin_liberty.tpl @@ -31,19 +31,7 @@ <div class="row"> {formlabel label="Liberty Cache" for="liberty_cache"} {forminput} - <select id="liberty_cache" name="liberty_cache"> - <option value="0" {if $gBitSystem->getConfig('liberty_cache') eq 0} selected="selected"{/if}>0 {tr}(no cache){/tr}</option> - <option value="60" {if $gBitSystem->getConfig('liberty_cache') eq 60} selected="selected"{/if}>1 {tr}minute{/tr}</option> - <option value="300" {if $gBitSystem->getConfig('liberty_cache') eq 300} selected="selected"{/if}>5 {tr}minutes{/tr}</option> - <option value="600" {if $gBitSystem->getConfig('liberty_cache') eq 600} selected="selected"{/if}>10 {tr}minutes{/tr}</option> - <option value="900" {if $gBitSystem->getConfig('liberty_cache') eq 900} selected="selected"{/if}>15 {tr}minutes{/tr}</option> - <option value="1800" {if $gBitSystem->getConfig('liberty_cache') eq 1800} selected="selected"{/if}>30 {tr}minutes{/tr}</option> - <option value="3600" {if $gBitSystem->getConfig('liberty_cache') eq 3600} selected="selected"{/if}>1 {tr}hour{/tr}</option> - <option value="7200" {if $gBitSystem->getConfig('liberty_cache') eq 7200} selected="selected"{/if}>2 {tr}hours{/tr}</option> - <option value="14400" {if $gBitSystem->getConfig('liberty_cache') eq 14400} selected="selected"{/if}>4 {tr}hours{/tr}</option> - <option value="28800" {if $gBitSystem->getConfig('liberty_cache') eq 28800} selected="selected"{/if}>8 {tr}hours{/tr}</option> - <option value="60480" {if $gBitSystem->getConfig('liberty_cache') eq 60480} selected="selected"{/if}>1 {tr}day{/tr}</option> - </select> + {html_options name=liberty_cache id=liberty_cache values=$cacheTimes options=$cacheTimes selected=$gBitSystem->getConfig('liberty_cache')} {formhelp note='Cache all parsed content. This will dramatically reduce load on the server if pages are called frequently.' page=''} {/forminput} </div> |
