<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>{aspbbs:guestConfig.SiteName}</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="{aspbbs:guestConfig.SiteKeyWords}">
  <meta name="description" content="{aspbbs:guestConfig.SiteDesc}">
{aspbbs:template src=common/link}
</head>
<body>

{aspbbs:template src=common/header}
{aspbbs:cache cachekey=IndexPage1_{aspbbs:_GET.id}_{aspbbs:_GET.page}}
<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md8">
     <div class="fly-panel layui-hide-xs"> 
      <div class="layui-row fly-panel-main" style="padding: 15px;"> 
       <div class="layui-carousel fly-topline" id="FLY_topline"> 
        <div carousel-item=""> 
		 {aspbbs:looparr data=guestConfig.SlideTitle key=guestConfig.SlideUrl image=guestConfig.SlideImage}
         <div time-limit="2050-12-31"> 
          <a href="[looparr:key]" target="_blank" id="fly-spm-event-banner-[looparr:i]" rel="nofollow"> <img src="[looparr:image]" alt="[looparr:data]" /> </a> 
         </div> 
		 {/aspbbs:looparr} 
        </div> 
       </div> 
      </div>
     </div> 
      <div class="fly-panel">
        <div class="fly-panel-title fly-filter">
          <a href="{aspbbs:indexprefix}toplist{aspbbs:guestConfig.PageSuffix}" link>置顶</a>
          <a href="#signin" class="layui-hide-sm layui-show-xs-block fly-right" id="LAY_goSignin" style="color: #FF5722;">去签到</a>
        </div>
        <ul class="fly-list">
		   {aspbbs:looprs data=topList}
          <li data-id="[looprs:TopicID]" data-user="[looprs:UserID]" data-title="[looprs:Title func:POP_MVC.String.jsonEncode(@me)]" data-username="[looprs:Nickname default=@LoginName]">
			{//头像，含链接}
             <a href="[looprs:UserID func=getUserULink(@me)]" class="fly-avatar">
              <img src="[looprs:Avatar]" alt="[looprs:Nickname default=@LoginName]">
            </a>
            <h2>
			  {//文章分类，含链接}
              <a class="layui-badge" href="{aspbbs:indexprefix}list_[looprs:SortID]{aspbbs:guestConfig.PageSuffix}">[looprs:SortID func=getSortName(@me)]</a>
			  
			  {aspbbs:template src=common/title-icon}
			  
			  {//帖子标题}
			  <a href="[looprs:TopicID func=getThreadLink(@me)]" title="[looprs:Title encode=html]">[looprs:Title]</a>
            </h2>
            <div class="fly-list-info">
				{//用户名、等级、VIP}
              <a href="{aspbbs:indexprefix}c=thread&a=Search&UserID=[looprs:UserID]" link>
                <cite title="等级：[looprs:Experience func=getHonorTitle(@me)]">[looprs:Nickname default=@LoginName]</cite>
				
				{//置顶中含认证等级}
                <i class="iconfont icon-renzheng" title="等级：[looprs:Experience func=getHonorTitle(@me)]"><small>[looprs:Experience func=getHonorLevel(@me)]</small></i>
                
				{//管理员前加微标}
				{if: [looprs:GroupID]=1 and $_S.IsAdmin = 1}<i class="layui-badge fly-badge-vip">管理员</i>{end if}
				
				{//VIP前加微标}
                {if: [looprs:GroupID]=($guestConfig).VIPID}<i class="layui-badge fly-badge-vip">VIP</i>{end if}
              </a>
			  
			  {aspbbs:template src=common/title-user}
            </div>
            <div class="fly-list-badge">
				{if: "[looprs:IsFeatured]" = "1"}
              <span class="layui-badge layui-bg-red">精帖</span>
			    {end if}
            </div>
          </li>
		  {/aspbbs:looprs}
        </ul>
      </div>

      <div class="fly-panel" style="margin-bottom: 0;">
        {aspbbs:template src=common/filter}
		{aspbbs:template src=common/list}
        {aspbbs:template src=$pagelist}
      </div>
    </div>
    <div class="layui-col-md4">
     <div class="fly-panel"> 
      <h3 class="fly-panel-title">温馨通道</h3> 
      <div class="layui-row fly-panel-main" style="padding: 15px;"> 
       <div class="layui-clear fly-list-quick"> 
		{aspbbs:looparr data=guestConfig.SideLinkName key=guestConfig.SideLinkUrl}
        <div class="layui-col-xs6"> 		
         <div> 
          <a href="[looparr:key]" target="_blank"> [looparr:data] </a> 
         </div> 
        </div> 
		{/aspbbs:looparr}
        <a name="signin"> </a> 
       </div> 
      </div>
     </div> 
{/aspbbs:cache}	 


      <div class="fly-panel fly-signin">
        <div class="fly-panel-title">
          签到
          <i class="fly-mid"></i> 
          <a href="javascript:;" class="fly-link" id="LAY_signinHelp">说明</a>
          <i class="fly-mid"></i> 
          <a href="javascript:;" class="fly-link" id="LAY_signinTop">活跃榜<span class="layui-badge-dot"></span></a>
		  {if: "{aspbbs:_S.adminName}" <> "" }
          <span class="fly-signin-days">已连续签到<cite>{aspbbs:SignDays}</cite>天</span>
		  {end if}
        </div>
        <div class="fly-panel-main fly-signin-main">
		  {if: NOT {aspbbs:IsSign} }
          <button class="layui-btn layui-btn-danger" id="LAY_signin">今日签到</button>
		  {end if}
		  
		  {if: "{aspbbs:_S.adminName}" <> "" }
			{if1: NOT {aspbbs:IsSign} }
				<span>可获得<cite>{aspbbs:SignExperience}</cite>{aspbbs:guestConfig.ExperienceName}</span>
			{else}
				<button class="layui-btn layui-btn-disabled">今日已签到</button>
				<span>获得了<cite>{aspbbs:SignExperience}</cite>{aspbbs:guestConfig.ExperienceName}</span>
			{end if1}
		  {end if}
        </div>
      </div>
{aspbbs:cache cachekey=IndexPage2_{aspbbs:_GET.id}_{aspbbs:_GET.page}}
      <div class="fly-panel fly-rank fly-rank-reply" id="LAY_replyRank">
        <h3 class="fly-panel-title">{aspbbs:guestConfig.IndexHotReplyTitle}</h3>
        <dl>
          <!--<i class="layui-icon fly-loading">&#xe63d;</i>-->
		  {aspbbs:looprs data=HotReply}
          <dd>
            <a href="[looprs:UserID func=getUserULink(@me)]">
              <img src='[looprs:UserID func=($kvs)(@me)("Avatar")]' /><cite>[looprs:UserID func=($kvs)(@me)("Nickname")]</cite><i>[looprs:ReplyCount]次回答</i>
            </a>
          </dd>
		  {/aspbbs:looprs}
        </dl>
      </div>	

      <div class="fly-panel fly-rank fly-rank-reply" id="LAY_lineUser">
        <h3 class="fly-panel-title">当前在线</h3>
        <dl>
          <!--<i class="layui-icon fly-loading">&#xe63d;</i>-->
		  {aspbbs:looprs data=lineUser}
          <dd>
            <a href="[looprs:UserID func=getUserULink(@me)]">
              <img src='[looprs:Avatar]' /><cite>[looprs:Nickname default=@LoginName]</cite><i>[looprs:LastLoginTime func=POP_MVC.datestr(@me)]</i>
            </a>
          </dd>
		  {/aspbbs:looprs}
        </dl>
      </div>	  
	  
	  
	  {//右侧广告}
      {aspbbs:template src=common/right-ad}	  

	  {//本月热议}
      {aspbbs:template src=common/hotThread}
	  
	  {//最新回复}
      {aspbbs:template src=common/newReply}	  
	  
	  {//首页产品推广}
	  {if: guestConfig.SelfIndexProduct=1}
	  {aspbbs:template src=self/index_product}
      {end if}
	  
      <div class="fly-panel fly-link">
        <h3 class="fly-panel-title">友情链接</h3>
        <dl class="fly-panel-main">
		  {aspbbs:looparr data=guestConfig.LinksSiteName key=guestConfig.LinksSiteUrl}
          <dd><a href="[looparr:key]" target="_blank">[looparr:data]</a></dd>
		  {/aspbbs:looparr}
          <dd><a href="javascript:;" onclick="layer.alert('发送邮件至：{aspbbs:companyemail}<br> 邮件标题为：申请{aspbbs:guestConfig.SiteName}友链', {title:'申请友链'});" class="fly-link">申请友链</a></dd>
        </dl>
      </div>

    </div>
  </div>
</div>
{/aspbbs:cache}
{aspbbs:template src=self/footer}
{aspbbs:template src=self/donate-js}
</body>
</html>