<?php defined('ByFeiWa') or exit('Access Invalid!');?>
<script type="text/javascript">
    $(document).ready(function(){
        $(".image_lazy_load").feiwa_lazyload();
    });
</script>
<div class="warp-all article-layout-a">
  <div class="mainbox">
    <?php /*?><div class="sitenav-bar">
        <div class="sitenav"><?php echo $lang['current_location'];?><?php echo $lang['feiwa_colon'];?> <a href="<?php echo READS_SITE_URL;?>"><?php echo $lang['reads_site_name'];?></a> > <a href="<?php echo READS_SITE_URL.DS.'index.php?app=article&feiwa=article_list';?>"><?php echo $lang['reads_article'];?></a>
        	<?php echo empty($_GET['class_id'])?'':' > '.$output['article_class_list'][$_GET['class_id']]['class_name'];?></div>
      <div class="browse-list"><span title="<?php echo $lang['reads_classical'];?>"><?php echo $lang['reads_classical'];?></span><a href="index.php?app=article&feiwa=article_list&class_id=<?php echo $_GET['class_id'];?>&type=modern" title="<?php echo $lang['reads_modern'];?>">&nbsp;</a></span></div>
    </div><?php */?>
    <?php if(!empty($output['article_list']) && is_array($output['article_list'])) {?>
    <ul class="article-list">
      <?php foreach($output['article_list'] as $value) {?>
      <?php $article_url = getREADSArticleUrl($value['article_id']);?>
      <li>
        <h3 class="article-title"> <a href="<?php echo $article_url;?>" target="_blank"> <?php echo $value['article_title'];?> </a> </h3>
        <div class="article-sub"><span class="PV" title="<?php echo $lang['reads_text_view_count'];?>"><i></i><?php echo $value['article_click'];?></span><span class="author"><?php echo $lang['reads_text_publisher'];?><?php echo $lang['feiwa_colon'];?><?php echo empty($value['article_author'])?$lang['reads_text_guest']:$value['article_author'];?></span><span class="source"><?php echo $lang['reads_text_origin'];?><?php echo $lang['feiwa_colon'];?> <a href="<?php echo empty($value['article_origin_address'])?READS_SITE_URL:$value['article_origin_address'];?>" target="_blank"> <?php echo empty($value['article_origin'])?C('site_name'):$value['article_origin'];?> </a></span><span class="date"><?php echo date('Y-m-d',$value['article_publish_time']);?></span></div>

        <?php if(!empty($value['article_image'])) { ?>
        <div class="article-cover"><a href="<?php echo $article_url;?>" target="_blank"> <img class="image_lazy_load" data-src="<?php echo getREADSArticleImageUrl($value['article_attachment_path'], $value['article_image'], 'max');?>" src="<?php echo getLoadingImage();?>" alt="" /></a></div>
        <?php } ?>
       <div class="article-preface"><?php echo $value['article_abstract'];?><a href="<?php echo $article_url;?>" target="_blank"><?php echo $lang['reads_read_more'];?></a></div>
        <div class="article-tag"><?php echo $lang['reads_keyword'];?><?php echo $lang['feiwa_colon'];?>
          <?php if(!empty($value['article_keyword'])) { ?>
          <?php $article_keyword_array = explode(',', $value['article_keyword']);?>
          <?php foreach ($article_keyword_array as $value) {?>
          <a href="<?php echo urlREADS('article','article_search')?>?keyword=<?php echo rawurlencode($value);?>" target="_blank"><?php echo $value;?></a>
          <?php } ?>
          <?php } ?>
        </div>
      </li>
      <?php } ?>
    </ul>
    <div class="pagination"> <?php echo $output['show_page'];?> </div>
    <?php } else { ?>
    <div class="no-content-b"><i class="article"></i><?php echo $lang['no_record'];?></div>
    <?php } ?>
  </div>
  <div class="sidebar">
    <?php require('article_list.sidebar.php');?>
  </div>
</div>
