搜索頁面這一段
<!--這是來列出全部可以搜索的內(nèi)容模塊-->
{php $top_search=[];}
{cache name=module-content}
{if $t.search}
{php !$top_search && $top_search=$t;}
<li class="xz"><a href="javascript:dr_search_module_select('{$t.dirname}', '{$t.name}');"> {$t.name} </a></li>
{/if}
{/cache}
問題:想給選中的搜索模塊加個(gè)class樣式,怎么判斷選中了當(dāng)前模塊?

{if $t.dirname== MOD_DIR}表示當(dāng)前的
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!