有關當前焦點的標簽及判斷
2022-11-24 加入收藏
{eyou:channel type="first" currentstyle="active"} {eyou:eq name='$eyou.field.grade' value='2'} {eyou:type typeid='$eyou.field.typeid' id='field1'} {eyou:eq name='$field1.parent_id' value='$field.id'} {eyou:assign name='$field.currentstyle' value='active' /} {/eyou:eq} {/eyou:type} {/eyou:eq} <li> <a href="{$field.typeurl}" class="{$field.currentstyle}">{$field.typename}</a> </li> {/eyou:channel} ---------------------------------------------------------- {eyou:channel type='sonself' currentstyle="active"} <li> <a href="{$field.typeurl}" title="{$field.typename}" class="{$field.currentstyle}">{$field.typename}</a> </li> {/eyou:channel}