修改ch作者介绍链接逻辑

master
黄文强@HWQ-PC 12 months ago
parent e37f0f07d8
commit 81219c12a9

@ -41,12 +41,16 @@
'Vicky Leng' => 'https://www.globalhighlights.com/aboutus/team/vicky-leng',
'李晓伟' => 'https://www.globalhighlights.com/aboutus/team/carper-li',
'Carper Li' => 'https://www.globalhighlights.com/aboutus/team/carper-li',
];
$OPI_CodeUrls = [
'zzy' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou',
'2' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou'
];
if (!empty($meta_news_createdate)) {?>
<div class="authorupdate">
Written by
<?php if (array_key_exists($author, $authorUrls)) {?>
<strong><a href="<?php echo $authorUrls[$author]; ?>" target="_blank"><?php echo $author; ?></a></strong>
<?php if (array_key_exists($OPI_Code, $OPI_CodeUrls)) {?>
<strong><a href="<?php echo $OPI_CodeUrls[$OPI_Code]; ?>" target="_blank"><?php echo $author; ?></a></strong>
<?php } else { ?>
<strong><?php echo $author; ?></strong>
<?php }?>

Loading…
Cancel
Save