From: <lph...@us...> - 2011-03-24 17:01:48
|
Revision: 33627 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=33627&view=rev Author: lphuberdeau Date: 2011-03-24 17:01:40 +0000 (Thu, 24 Mar 2011) Log Message: ----------- [FIX] Hide category controls when categories are not enabled Modified Paths: -------------- trunk/templates/modules/mod-quick_search.tpl Modified: trunk/templates/modules/mod-quick_search.tpl =================================================================== --- trunk/templates/modules/mod-quick_search.tpl 2011-03-24 16:59:28 UTC (rev 33626) +++ trunk/templates/modules/mod-quick_search.tpl 2011-03-24 17:01:40 UTC (rev 33627) @@ -15,17 +15,19 @@ <input type="hidden" name="filter~type" value="{$qs_prefill.type|escape}"/> {/if} - {if $qs_categories|count eq 1} - <input type="hidden" name="filter~categories" value="{$qs_prefill.categories|escape}"/> - {elseif $qs_categories|count > 1} - <label>{tr}Categories{/tr} - <select name="filter~categories"> - <option value="{$qs_all_categories|escape}">{tr}Any{/tr}</option> - {foreach from=$qs_categories item=label key=categId} - <option value="{$categId|escape}"{if $qs_prefill.categories eq $categId} selected="selected"{/if}>{$label|escape}</option> - {/foreach} - </select> - </label> + {if $prefs.feature_categories eq 'y'} + {if $qs_categories|count eq 1} + <input type="hidden" name="filter~categories" value="{$qs_prefill.categories|escape}"/> + {elseif $qs_categories|count > 1} + <label>{tr}Categories{/tr} + <select name="filter~categories"> + <option value="{$qs_all_categories|escape}">{tr}Any{/tr}</option> + {foreach from=$qs_categories item=label key=categId} + <option value="{$categId|escape}"{if $qs_prefill.categories eq $categId} selected="selected"{/if}>{$label|escape}</option> + {/foreach} + </select> + </label> + {/if} {/if} <div class="submit"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |