增加ah,ch,gh对$OPI_Code的初始化处理

master
黄文强@HWQ-PC 12 months ago
parent d4b5a169ba
commit 0f7969af7e

@ -1047,7 +1047,7 @@ class Information extends CI_Controller
$author = $this->Operator_model->get_author_nikename($information->ic_author); $author = $this->Operator_model->get_author_nikename($information->ic_author);
if (!empty($author)) { if (!empty($author)) {
$data_H1['author'] = $author->OPI_FirstName; $data_H1['author'] = $author->OPI_FirstName;
$data_H1['OPI_Code'] = $author->OPI_Code; $data_H1['OPI_Code'] = $author->OPI_Code;
} else { } else {
$author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等 $author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等
if (!empty($author_web)) { if (!empty($author_web)) {

@ -31,6 +31,7 @@
'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li', 'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li',
'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou', 'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou',
]; ];
$OPI_Code = empty($OPI_Code) ? '' : $OPI_Code;
if (!empty($meta_news_createdate)) {?> if (!empty($meta_news_createdate)) {?>
<div class="authorupdate"> <div class="authorupdate">
Written by Written by

@ -28,20 +28,21 @@
'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li', 'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li',
'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou', 'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou',
]; ];
if (!empty($meta_news_createdate)) {?> $OPI_Code = empty($OPI_Code) ? '' : $OPI_Code;
<div class="authorupdate"> if (!empty($meta_news_createdate)) {?>
Written by <div class="authorupdate">
<?php if (array_key_exists($OPI_Code, $OPI_CodeUrls)) {?> Written by
<strong><a href="<?php echo $OPI_CodeUrls[$OPI_Code]; ?>" target="_blank"><?php echo $author; ?></a></strong> <?php if (array_key_exists($OPI_Code, $OPI_CodeUrls)) {?>
<?php } else { ?> <strong><a href="<?php echo $OPI_CodeUrls[$OPI_Code]; ?>" target="_blank"><?php echo $author; ?></a></strong>
<strong><?php echo $author; ?></strong> <?php } else { ?>
<?php }?> <strong><?php echo $author; ?></strong>
Updated <?php echo date("M. j, Y", strtotime($meta_news_createdate)); ?> <?php }?>
</div> Updated <?php echo date("M. j, Y", strtotime($meta_news_createdate)); ?>
<?php } ?> </div>
<?php if ($ads_by_google) { ?> <?php } ?>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4231674166786366" <?php if ($ads_by_google) { ?>
crossorigin="anonymous"></script> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4231674166786366"
<?php } ?> crossorigin="anonymous"></script>
<?php } ?>
</section> </section>
</div> </div>

@ -28,6 +28,7 @@
'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li', 'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li',
'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou', 'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou',
]; ];
$OPI_Code = empty($OPI_Code) ? '' : $OPI_Code;
if (!empty($meta_news_createdate)) {?> if (!empty($meta_news_createdate)) {?>
<div class="authorupdate"> <div class="authorupdate">
Written by Written by

Loading…
Cancel
Save