{maccms:foreach name=":mao_array_sort($mojia['home'],'id')" id="index" key="home"} {if$index.state==1} {switch $home} {case banner} {assign name="slide" value=":mao_view_slide($index,$maccms.mid)"} {if$slide}
{include file="module/common/banner" data=":mao_return($slide)"}
{/if} {/case} {case notice} {if$mojia.home.notice.index}
{maccms:art ids="'.$mojia['home']['notice']['index'].'" order="desc" by="time"}
{$mojia.home.notice.type?mac_url_content_img($vo.art_content):''.mac_url_content_img($vo.art_content).''}
{/maccms:art}
{/if} {/case} {case cinema}

## {$index['name']}

- 排行榜

{maccms:vod num="'.$index['num'].'" type="'.$index['category'].'" level="'.$index['level'].'" order="'.$index['order'].'" by="'.$index['sort'].'" name="'.implode(',',$mojia['config']['rank']['keyword']).'"} {include file="module/vod/picture"} {/maccms:vod}

{/case} {case latest}

## {$index['name']}

- 更多

{maccms:vod num="'.$index['num'].'" type="'.$index['category'].'" level="'.$index['level'].'" order="'.$index['order'].'" by="'.$index['sort'].'"} {include file="module/vod/picture"} {/maccms:vod}

{maccms:type ids="parent" order="asc" by="sort" id="magic" mid="1"}

## {$magic['type_name']}

- 更多

{maccms:vod num="12" type="'.$magic['type_id'].'" order="desc" by="time"} {include file="module/vod/picture"} {/maccms:vod}

{/maccms:type} {/case} {case sunday}

## {$index['name']}

- 周一
- 周二
- 周三
- 周四
- 周五
- 周六
- 周日

{maccms:vod num="'.$index['num'].'" type="'.$index['category'].'" level="'.$index['level'].'" order="'.$index['order'].'" by="'.$index['sort'].'"} {include file="module/vod/picture"} {/maccms:vod}

{/case} {case newest}

## {$index['name']}

- 更多

{maccms:art num="'.$index['num'].'" type="'.$index['category'].'" level="'.$index['level'].'" order="'.$index['order'].'" by="'.$index['sort'].'"} {include file="module/art/picture"} {/maccms:art}

{/case} {case taobao}

## {$index['name']}

- 更多

{assign name="taobao" value=":include($GLOBALS['package']['dir'].'/extra/taobao.php')"} {maccms:foreach name=":array_slice($taobao, 0, $index['num'])"} {include file="module/taoke/picture"} {/maccms:foreach}

{/case} {case actors}

## {$index['name']}

- 更多

{maccms:actor num="'.$index['num'].'" type="'.$index['category'].'" level="'.$index['level'].'" order="'.$index['order'].'" by="'.$index['sort'].'"} {include file="module/actor/picture"} {/maccms:actor}

{/case} {case webnav}

## {$index['name']}

- 更多

{maccms:website num="'.$index['num'].'" type="'.$index['category'].'" level="'.$index['level'].'" order="'.$index['order'].'" by="'.$index['sort'].'"} {include file="module/website/picture"} {/maccms:website}

{/case} {case topics}

## {$index['name']}

- 更多

{maccms:topic num="'.$index['num'].'" type="'.$index['category'].'" level="'.$index['level'].'" order="'.$index['order'].'" by="'.$index['sort'].'"} {include file="module/topic/picture"} {/maccms:topic}

{/case} {case friend}

## {$index['name']}

- 更多

{if$mojia.home.friend.advs&&$mojia.home.friend.type!='pic'}
- {$mojia.config.author.name}模板
{/if}{maccms:link num="'.$mojia['home']['friend']['num'].'" type="'.$mojia['home']['friend']['type'].'" order="'.$mojia['home']['friend']['order'].'" by="'.$mojia['home']['friend']['sort'].'"} {if$mojia.home.friend.type=='pic'}
{else}
- {$vo.link_name}
{/if} {/maccms:link}

{/case} {/switch} {/if} {/maccms:foreach}