<{include file="base.html"}>
<{include file="topbar.html"}> <{include file="header.html"}>
<{if $cfg.home_best >0}>
权威推荐

<{foreach from=getTop($cfg.home_best) item=top}>
- <{$top.web_name}>
<{/foreach}>

<{/if}>
<{if $cfg.home_pay >0}>
最新快审

<{foreach from=get_website_list("w.web_ispay = 1 and w.web_status = 3 ",'utime','desc',0,$cfg.home_pay) item=top}>
- <{$top.web_name}>
<{/foreach}>

<{/if}>
<{if $cfg.home_isbest > '0'}>

<{foreach from=get_websites(0, <{$cfg.home_isbest}>, true) item=best}>
- <{if $best.web_ico}><{/if}> <{$best.web_name}>
<{/foreach}>

<{get_adcode(18)}>
<{/if}>

<{foreach from=get_best_categories('webdir') item=item name=isite}>
- <{$item.cate_name}> <{foreach from=get_websites($item.cate_id,7) item=cool}> <{if $cool.web_ico}><{/if}><{$cool.web_name}> <{/foreach}> 更多>>
<{if $smarty.foreach.isite.iteration % 5 == 0 && $smarty.foreach.isite.iteration != 20}>
<{/if}> <{/foreach}>

<{$cfg.nav_code}>
<{if $cfg.is_enabled_tj =='yes'}>
数据统计

- <{$stat.website}>优秀站点
- <{$stat.apply}>待审站点

<{/if}>
<{get_adcode(1)}>

<{foreach from=get_categories_mod('article',4,'true') item=vo}>
- <{$vo.cate_name}>
<{/foreach}>

<{foreach from=get_categories_mod('article',4,'true') item=vo}> <{assign var="cid" value=$vo.cate_id}>

<{foreach from=get_articles($cid,7) item=vo}>
- <{$vo.art_title}>
<{/foreach}>

<{/foreach}>

<{foreach from=get_articles("0",10,'false') item=a name=list}> <{if $a.art_content|get_img }>
- <{$a.art_title}>
<{/if}> <{/foreach}>

- 视频
- 游戏
- 资讯
- 网站

<{foreach from=get_video_list('','ctime','desc',0,7) item=vo}>
- <{$vo.title}>
<{/foreach}>

<{foreach from=get_game_list('','ctime','desc',0,14) item=vo}>
- · <{$vo.title}>
<{/foreach}>

<{foreach from=get_article_list('','ctime','desc',0,7) item=vo}>
- · <{$vo.art_title}>
<{/foreach}>

<{foreach from=get_website_list('','ctime','desc',0,14) item=vo}>
- <{$vo.web_name}>
<{/foreach}>

<{get_adcode(2)}>
<{if $cfg.home_new > '0'}>
<{/if}>
<{foreach from=get_categories(0, 5) item=cate name=csite}> <{if $smarty.foreach.csite.iteration % 5 == 0}>

<{else}>

<{/if}>
<{$cate.cate_name}>
  <{foreach from=get_categories($cate.cate_id, 15) item=scate}> <{$scate.cate_name}> <{/foreach}>

<{/foreach}>

<{get_adcode(3)}>
看视频

- <{foreach from=get_video_list('a.isbest = 1','ctime','desc',0,1) item=vo}>
  <{$vo.title}>
  <{/foreach}>
  <{foreach from=get_video_list('a.isbest = 1','ctime','desc',1,4) item=vo}>
  <{$vo.title}>
  <{/foreach}>

  ## 热门精选

  - <{foreach from=get_video_list('a.ishot = 1','ctime','desc',0,4) item=vo}>
    <{$vo.title}>
    <{/foreach}>
  - <{foreach from=get_video_list('a.ishot = 1','ctime','desc',4,8) item=vo}>
    <{$vo.title}>
    <{/foreach}>
  - <{foreach from=get_video_list('a.ishot = 1','ctime','desc',8,12) item=vo}>
    <{$vo.title}>
    <{/foreach}>
  <{foreach from=get_categories_mod('video',5,'true') item="vo" }>
  - <{$vo.cate_name}>
  <{/foreach}>
  <{foreach from=get_categories_mod('video',5,'true') item="vo" }> <{assign var="cid" value=$vo.cate_id}>
  - <{foreach from=get_video($cid,24) item=v }>
    - <{$v.title}><{$cid}>
    <{/foreach}>
  <{/foreach}>
  <{foreach from=get_video_list('','ctime','desc',0,4) item=vo}>
  - <{$vo.title}>
  <{/foreach}>

<{get_adcode(4)}>
玩游戏

- <{get_adcode(19)}>
  <{assign var="gamelist" value=get_game(543,20)}>
  <{foreach $gamelist as $v}>

  - ### <{$v.title}>

  <{/foreach}>

<{get_adcode(5)}>
<{if $cfg.home_instat > '0'}>
最新点入（实时更新）

<{nocache}> <{foreach from=get_websites(0, <{$cfg.home_instat}>, false, 'instat') item=instat}>
- <{$instat.web_name}>
  人气
  <{$instat.web_views}>
  <{$instat.web_intro}>
<{/foreach}> <{/nocache}>

<{/if}>
<{include file="footer.html"}>