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