<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><?php  echo $title;  ?>_<?php  echo $name;  ?><?php if ($page>'1') { ?>_第<?php  echo $pagebar->PageNow;  ?>页<?php } ?></title>
<meta name="Keywords" content="<?php  echo $title;  ?>,<?php  echo $name;  ?>" />
<meta name="description" content="<?php  echo $title;  ?>_<?php  echo $name;  ?><?php if ($page>'1') { ?>_当前是第<?php  echo $pagebar->PageNow;  ?>页<?php } ?>" />
<link rel="stylesheet" type="text/css" href="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/css/font-awesome.css">
<link rel="stylesheet" type="text/css" href="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/css/swiper.css">
<link rel="stylesheet" type="text/css" href="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/css/style.css">
<link rel="stylesheet" type="text/css" href="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/css/iconfont.css">
<link rel="icon" href="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/images/favicon.ico">
<script src="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/js/jquery-2.js"></script>
<script type="text/javascript" src="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/js/ajax.js"></script>
<script src="<?php  echo $host;  ?>zb_system/script/zblogphp.js" type="text/javascript"></script>
<script src="<?php  echo $host;  ?>zb_system/script/c_html_js_add.php" type="text/javascript"></script>
<style id="theia-sticky-sidebar-stylesheet-TSS">.theiaStickySidebar:after {content: ""; display: table; clear: both;}</style>
</head>
<body>
<?php  include $this->GetTemplate('header');  ?><div class="breadcrumb container"><li>当前位置：</li><li><a href="<?php  echo $host;  ?>"><?php  echo $name;  ?></a></li><li>></li><li><?php if ($type=='category') { ?><a href="<?php  echo $category->Url;  ?>" title="<?php  echo $category->Name;  ?>"><?php  echo $category->Name;  ?></a><?php }else{  ?><?php  echo $title;  ?><?php } ?></li></div>
<div class="main container" style="transform: none;">
    <div class="main_l left">
        <div class="article_list">
                        <ul id="infinitescroll">                         
<?php  foreach ( $articles as $article) { ?>
    <?php  $i = $key+1;  ?>
						<?php if ($article->IsTop) { ?>
                                <li class="infinitescroll_li">
                    <div class="article_img"> <a href="<?php  echo $article->Url;  ?>" title="<?php  echo $article->Title;  ?>" target="_blank"><img src="<?php  echo bluecms_thumbnail($article);  ?>" alt="<?php  echo $article->Title;  ?>"></a> </div>
                    <div class="article_text">
                        <dl>
                            <dt><a href="<?php  echo $article->Url;  ?>" title="<?php  echo $article->Title;  ?>" target="_blank"><?php  echo $article->Title;  ?></a></dt>
                            <dd><?php if (strlen($article->Intro)>0) { ?>
				<?php $intro= trim(SubStrUTF8(TransferHTML($article->Intro,'[nohtml]'),100)).'...'; ?>
				<?php }else{  ?>
				<?php $intro= trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),90)).'...'; ?>
			<?php } ?>
			<?php  echo $intro;  ?></dd>
                        </dl>
                        <div class="info">
                            <span><i class="fa fa-clock-o"></i><?php  echo $article->Time('Y-m-d');  ?></span>
                            <span><?php if (Count($article->Tags)>0) { ?><?php  foreach ( $article->Tags as $tag) { ?><a href="<?php  echo $tag->Url;  ?>" target="_blank" rel="tag"><?php  echo $tag->Name;  ?></a> <?php }   ?><?php } ?></span>
                        </div>
                    </div>
                </li>
                          <?php }else{  ?>      <li class="infinitescroll_li">
                    <div class="article_img"> <a href="<?php  echo $article->Url;  ?>" title="<?php  echo $article->Title;  ?>" target="_blank"><img src="<?php  echo bluecms_thumbnail($article);  ?>" alt="<?php  echo $article->Title;  ?>"></a> </div>
                    <div class="article_text">
                        <dl>
                            <dt><a href="<?php  echo $article->Url;  ?>" title="<?php  echo $article->Title;  ?>" target="_blank"><?php  echo $article->Title;  ?></a></dt>
                            <dd><?php if (strlen($article->Intro)>0) { ?>
				<?php $intro= trim(SubStrUTF8(TransferHTML($article->Intro,'[nohtml]'),100)).'...'; ?>
				<?php }else{  ?>
				<?php $intro= trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),90)).'...'; ?>
			<?php } ?>
			<?php  echo $intro;  ?></dd>
                        </dl>
                        <div class="info">
                            <span><i class="fa fa-clock-o"></i><?php  echo $article->Time('Y-m-d');  ?></span>
                           <span><?php if (Count($article->Tags)>0) { ?><?php  foreach ( $article->Tags as $tag) { ?><a href="<?php  echo $tag->Url;  ?>" target="_blank" rel="tag"><?php  echo $tag->Name;  ?></a> <?php }   ?><?php } ?></span>
                        </div>
                    </div>
                </li>
                <?php } ?>
<?php }   ?>    
            </ul>
            <div class="pagelist"><?php  include $this->GetTemplate('pagebar');  ?></div>
                    </div> 
       
    </div>
    <div class="main_r right" style="position: relative; overflow: visible; box-sizing: border-box; min-height: 1px;">   
    <div class="theiaStickySidebar" style="padding-top: 0px; padding-bottom: 1px; position: static; transform: none; top: 0px; left: 934.5px;">
        <div class="widget widget_ad" id="ad3"></div>
        <div class="widget widget_tuijian">
            <h5>推荐文章</h5>
                     <?php  $topArray = GetList(10, null, null, null, null, null, array("only_ontop"  => true));;  ?>
<?php  foreach ( $topArray as $top) { ?>
                                <div class="tj_box">
                    <div class="img">
                        <a  href="<?php  echo $top->Url;  ?>" title="<?php  echo $top->Title;  ?>" target="_blank">
                            <img src="<?php  echo bluecms_thumbnail($top);  ?>" alt="<?php  echo $top->Title;  ?>">
                        </a>
                    </div>
                    <div class="info">
                        <p>
                            <a href="<?php  echo $top->Url;  ?>" title="<?php  echo $top->Title;  ?>" target="_blank"><?php  echo $top->Title;  ?></a>
                        </p>
                    </div>
                </div><?php }   ?>                     
        </div>

        <div class="widget widget_previous">
            <h5>热门浏览</h5>
            <ul>
             <?php 
$order = array('log_ViewNums'=>'DESC');
$where = array(array('=','log_Status','0'));
$array = $zbp->GetArticleList(array('*'),$where,$order,array(8),'');
 ?>
<?php  foreach ( $array as $hotlist) { ?>
 <li><a href="<?php  echo $hotlist->Url;  ?>" title="<?php  echo $hotlist->Title;  ?>" target="_blank"><?php  echo $hotlist->Title;  ?></a></li>
<?php }   ?> 
                
            </ul>
        </div>      
        <div class="widget widget_ad" id='ad4'></div>
        <div class="widget widget_tags">
            <h5>标签列表</h5>
            <ul>
               <?php  if(isset($modules['tags'])){echo $modules['tags']->Content;}  ?>
                            </ul>
        </div>
        <div class="resize-sensor" style="position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; overflow: hidden; z-index: -1; visibility: hidden;">
            <div class="resize-sensor-expand" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;">
                <div style="position: absolute; left: 0px; top: 0px; transition: all 0s ease 0s; width: 350px; height: 2061px;"> 
                </div>
            </div>
            <div class="resize-sensor-shrink" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;">
                <div style="position: absolute; left: 0; top: 0; transition: 0s; width: 200%; height: 200%"> 
                </div>
            </div>
        </div>
    </div>
</div></div>
<?php  include $this->GetTemplate('footer');  ?>
<div id="goTop" class="goTop" style="display: none;"><i class="fa fa-angle-up"></i></div>
<script src="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/js/jquery.js"></script> 
<script src="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/js/common.js" type="text/javascript"></script> 
<script src="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/js/ResizeSensor.js" type="text/javascript"></script> 
<script src="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/js/theia-sticky-sidebar.js" type="text/javascript"></script> 
<script>jQuery(document).ready(function($) {jQuery('.main_r').theiaStickySidebar({ additionalMarginTop: 10,});});</script> 
<script type="text/javascript" src="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/js/infinitescroll.js"></script> 
<script src="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/js/swiper.js" type="text/javascript"></script> 
<script>
    var swiper = new Swiper('.swiper-container', {
      slidesPerView: 1, //只显示1图
      loop: true, //无限循环
      // autoHeight: true, //自由高度
      // spaceBetween: 20, //切换间距
      centeredSlides: false, // true时候活动块居中 false 居左
      lazy: true, //延迟加载
      autoplay: {
        delay: 5000,
        disableOnInteraction: false,
      },  //自动切换
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },  //圆标点
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },  //上下翻页
    });
</script>

</body>
</html>