{maccms:type ids="parent" order="asc" by="sort" id="magic"}
- {$magic.type_name|strip_tags}{:mac_data_count($magic.type_id,'all')}
{/maccms:type}

类型
  全部
{if$obj.type_extend.class} {maccms:foreach name=":explode(',',$obj.type_extend.class)"}
  {$vo}
{/maccms:foreach} {else} {maccms:foreach name=":explode(',',$maccms[mac_get_mid_code(in_array($maccms['mid'],array('2'))?$maccms['mid']:1).'_extend_class'])"}
  {$vo}
{/maccms:foreach} {/if}

{if$maccms.mid!=2}

地区
  全部
{if$obj.type_extend.area} {maccms:foreach name=":explode(',',$obj.type_extend.area)"}
  {$vo}
{/maccms:foreach} {else} {maccms:foreach name=":explode(',',$maccms.vod_extend_area)"}
  {$vo}
{/maccms:foreach} {/if}

{/if} {if$maccms.mid==2}

推荐
  全部
{maccms:foreach name=":explode(',','1,2,3,4,5,6,7,8,9')"}
  推荐{$vo}
{/maccms:foreach}

字母
  全部
{maccms:foreach name=":explode(',','A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,1,2,3,4,5,6,7,8,9,0')"}
  {$vo}
{/maccms:foreach}

{elseif$maccms.mid==8}

星座
  全部
{maccms:foreach name=":explode(',','白羊座,金牛座,双子座,巨蟹座,狮子座,处女座,天秤座,天蝎座,射手座,摩羯座,水瓶座,双鱼座')"}
  {$vo}
{/maccms:foreach}

{elseif$maccms.mid==11}

语言
  全部
{if$obj.type_extend.lang} {maccms:foreach name=":explode(',',$obj.type_extend.lang)"}
  {$vo}
{/maccms:foreach} {else} {maccms:foreach name=":explode(',',$maccms.vod_extend_lang)"}
  {$vo}
{/maccms:foreach} {/if}

{else}

年代
  全部
{if$obj.type_extend.year} {maccms:foreach name=":explode(',',$obj.type_extend.year)"}
  {$vo}
{/maccms:foreach} {else} {maccms:foreach name=":explode(',',$maccms.vod_extend_year)"}
  {$vo}
{/maccms:foreach} {/if}

{/if}