|
|
|
@ -2466,9 +2466,14 @@ class Information extends CI_Controller
|
|
|
|
|
//作者字符串,信息页或者城市天气页加载 2022-7-26
|
|
|
|
|
$str_author = "";
|
|
|
|
|
$author = $this->Operator_model->get_author_nikename($information->ic_author);
|
|
|
|
|
$meta_news_createdate = get_meta($information->ic_id, 'meta_news_createdate'); //信息发布时间
|
|
|
|
|
if ((empty($meta_product_code) && !($meta_ct_page_type !== false && $meta_ct_page_type != "")) || $meta_ct_page_type == "weatherpage") {
|
|
|
|
|
$OPI_FirstName = !empty($author) ? $author->OPI_FirstName : 'author nickname';
|
|
|
|
|
$str_author = '<div class="authorupdate">Written by <strong>' . $OPI_FirstName . '</strong> Updated <span>' . date("M. j, Y", strtotime($information->ic_datetime)) . '</span></div>';
|
|
|
|
|
$EditTime = strtotime($information->ic_datetime); //如果有录入信息发布时间的属性,就读取这个
|
|
|
|
|
if (!empty($meta_news_createdate)){
|
|
|
|
|
$EditTime = strtotime($meta_news_createdate);
|
|
|
|
|
}
|
|
|
|
|
$str_author = '<div class="authorupdate">Written by <strong>' . $OPI_FirstName . '</strong> Updated <span>' . date("M. j, Y", $EditTime) . '</span></div>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//火车票详细页搜索框添加 -- zp
|
|
|
|
|