聯(lián)系官方銷售客服
1835022288
028-61286886
搜索頁(yè)面這一段
<!--這是來(lái)列出全部可以搜索的內(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}
問(wèn)題:想給選中的搜索模塊加個(gè)class樣式,怎么判斷選中了當(dāng)前模塊?
{if $t.dirname== MOD_DIR}表示當(dāng)前的