<!DOCTYPE html>
<html lang="en" class="app">
<head>  
  <meta charset="utf-8" />
  <title><?php echo $SITE['title'];?></title>
  <meta name="description" content="<?php echo $SITE['con'];?>">
  <meta name="keywords" content="<?php echo $SITE['keyword'];?>">
<?php require_once 'header.html';?>
        <!-- /.aside -->
        <section id="content">
          <section class="vbox">
            <section class="scrollable wrapper-lg">
              <div class="row">
                <div class="col-sm-9">
                  <div class="blog-post">     
                  <!-- 开始循环  -->   
                  <?php foreach ($APP as $API){?>          
                    <div class="post-item">
                    <?php if($SITE['article_dom']){?>
                    <div class="post-media">
                    <img src="<?php echo $SITE['article_dom_image'];?>" style="height: 60px;" class="img-full"> 
                      </div>
                      <?php }?>
                      <div class="caption wrapper-lg">
                        <h2 class="post-title"><a href="?i=page&id=<?php echo $API['id'];?>/article.html"><?php echo $API['title'];?></a></h2>
                        <div class="post-sum">
                         <?php echo iconv_substr(strip_tags($API['content']), 0 , 300 , "utf-8" );?>
                        </div>
                        <div class="line line-lg"></div>
                        <div class="text-muted">
                          <i class="fa fa-user icon-muted"></i> <a href="#" class="m-r-sm"><?php echo $API['athor'];?></a>
                          <i class="fa fa-clock-o icon-muted"></i> <?php echo date('Y-m-d h:i:s',$API['times']);?>
                          <a href="#" class="m-l-sm"><i class="fa fa-comment-o icon-muted"></i> <?php echo $API['view'];?></a>
                          
                        </div>
                      </div>
                    </div>
                    <?php }?>
                    <!-- 结束循环  --> 
                  </div>
                  <div class="text-center m-t-lg m-b-lg">
                    <ul class="pagination pagination-md">
                      <li><a href="?i=index&m=<?php echo $n==1? 1 : $n-1; ?>"><i class="fa fa-chevron-left"></i></a></li>
                      <?php PAGEING($pageCount, $n, 5); ?>
                      <li><a href="?i=index&m=<?php echo $n==$pageCount ? $pageCount : $n+1; ?>"><i class="fa fa-chevron-right"></i></a></li>
                    </ul>
                  </div>

                </div>
                <div class="col-sm-3">
               <!--  推荐文章 -->
               <?php if(MendCount('article' , $config)){?>
                <div class="panel panel-default">
                    <div class="panel-heading">推荐文章</div>
                    <div class="panel-body">
                    <?php $s=0;foreach ($APP as $ING_MEND){?>
                 <?php if($ING_MEND['mend']){?>
                      <article class="media">
                        
                        <div class="media-body">                        
                          <i class="fa fa-angle-right"></i> <a href="?i=page&id=<?php echo $ING_MEND['id'];?>/article.html" class="font-semibold"><?php echo $ING_MEND['title'];?></a>
                        </div>
                      </article>
                      <?php }?>
                    <?php $s++;if($s==$SITE['article_mend']){break;}}?>
                    </div>
                  </div>
                  <?php }?>
                  <!-- ./ 推荐文章 -->
                  
                  
                  <!--  文章分类 -->
               <?php if($CountIfy){?>
                <div class="panel panel-default">
                    <div class="panel-heading">全部分类</div>
                    <div class="panel-body">
                    <?php foreach ($IFY as $ING){?>
                       <li class="list-group-item">
                      <a href="#">
                        <span class="badge pull-right"><?php if($SITE['ify_ture_name']){echo IENDARTCOUNT($ING['pid'], $config);}?></span>
                        <?php echo $ING['ify_name']?>
                      </a>
                    </li>
                      
                    <?php }?>
                    </div>
                  </div>
                  <?php }?>
                  <!-- ./ 文章分类 -->
                  
                  
                   <!--  随机文章 -->
               <?php if($CountIF){?>
                <div class="panel panel-default">
                    <div class="panel-heading">随机文章</div>
                    <div class="panel-body">
                    <?php foreach ($RAND as $RANING){?>
                      <article class="media">
                        
                        <div class="media-body">                        
                          <i class="fa fa-angle-right"></i> <a href="?i=page&id=<?php echo $RANING['id'];?>/article.html" class="font-semibold"><?php echo $RANING['title'];?></a>
                        </div>
                      </article>
                      <?php }?>
                    </div>
                  </div>
                <?php }?>
                  <!-- ./ 随机文章 -->
                  
                  <!--  友情链接 -->
               <?php if ($Linking){?>
                <div class="panel panel-default">
                    <div class="panel-heading">友情链接</div>
                    <div class="panel-body">
                     <?php foreach ($LINK as $links){ if($links['link_res']){?>
                    <a style="margin-bottom: 5px;" href="<?php echo $links['link_url']?>" title="<?php echo $links['link_content']?>" class="btn btn-s-md btn-default" target="_blank"><?php echo $links['link_title']?></a>
                    <?php } }?>
                    </div>
                  </div>
                <?php }?>
                  <!-- ./ 友情链接 -->
                  
									<!-- <div class="tags m-b-lg l-h-2x">
										<a href="#" class="label bg-primary">Bootstrap</a> <a href="#"
											class="label bg-primary">Application</a> <a href="#"
											class="label bg-primary">Apple</a> <a href="#"
											class="label bg-primary">Less</a> <a href="#"
											class="label bg-primary">Theme</a> <a href="#"
											class="label bg-primary">Wordpress</a>
									</div> -->
									                                    
 
                    
                    <!--  结束循环 -->
                   <!--  <div class="line"></div>
                    <article class="media m-t-none">
                      <a class="pull-left thumb thumb-wrapper m-t-xs">
                        <img src="<?php echo TEMP_URL?>/images/m2.jpg">
                      </a>
                      <div class="media-body">                        
                        <a href="#" class="font-semibold">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</a>
                        <div class="text-xs block m-t-xs"><a href="#">Design</a> 2 hours ago</div>
                      </div>
                    </article>
                    <div class="line"></div>
                    <article class="media m-t-none">
                      <a class="pull-left thumb thumb-wrapper m-t-xs">
                        <img src="<?php echo TEMP_URL?>/images/m3.jpg">
                      </a>
                      <div class="media-body">                        
                        <a href="#" class="font-semibold">Sed diam nonummy nibh euismod tincidunt ut laoreet</a>
                        <div class="text-xs block m-t-xs"><a href="#">MFC</a> 1 week ago</div>
                      </div> 
                    </article>-->
                  </div>
                </div>
              </div>
            </section>
          </section>
          <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen,open" data-target="#nav,html"></a>
        </section>
      </section>
    </section>    
  </section>
  <script src="<?php echo TEMP_URL?>/js/jquery.min.js"></script>
  <!-- Bootstrap -->
  <script src="<?php echo TEMP_URL?>/js/bootstrap.js"></script>
  <!-- App -->
  <script src="<?php echo TEMP_URL?>/js/app.js"></script>  
  <script src="<?php echo TEMP_URL?>/js/slimscroll/jquery.slimscroll.min.js"></script>
  
  <script src="<?php echo TEMP_URL?>/js/app.plugin.js"></script>
  <script type="text/javascript" src="<?php echo TEMP_URL?>/js/jPlayer/jquery.jplayer.min.js"></script>
  <script type="text/javascript" src="<?php echo TEMP_URL?>/js/jPlayer/add-on/jplayer.playlist.min.js"></script>
  <script type="text/javascript" src="<?php echo TEMP_URL?>/js/jPlayer/demo.js"></script>
</body>
</html>