AH 增加发布日期判断

master
Jimmy Liow 1 year ago
parent 32afc727e4
commit faac9b862e

@ -2078,6 +2078,7 @@ class Information extends CI_Controller
$breadcrumb_data = $this->Information_model->get_breadcrumb_data($information->is_id, $information->is_path, $group_map);
$ads_by_google = !empty (get_meta($information->ic_id, 'meta_google_ad_article'));
$data['meta_news_createdate'] = get_meta($information->ic_id, 'meta_news_createdate');
$data['ads_by_google'] = $ads_by_google;
$data['author'] = ''; //获取作者信息
$author = $this->Operator_model->get_author_nikename($information->ic_author);

@ -12,7 +12,9 @@
</div>
<div class="infotoptitle">
<h1 class="whitefont"><?php echo !empty($information->ic_title)?$information->ic_title:'H1 title asiahighlights mobile first template'; ?></h1>
<div class="authorupdate">By <strong><?php echo !empty($author)?$author:''; ?></strong>Updated <?php echo date("M. j, Y",strtotime($information->ic_datetime)); ?></div>
<?php if (!empty($meta_news_createdate)) {?>
<div class="authorupdate">By <strong><?php echo !empty($author)?$author:''; ?></strong>Updated <?php echo date("M. j, Y",strtotime($meta_news_createdate)); ?></div>
<?php } ?>
</div>
</div>
</div>

Loading…
Cancel
Save