打开include\taglib\channelartlist.lib.php
找到文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1735.html
$pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]);
在此行代码下方增加以下代码:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1735.html
if($typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['id'] || $typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['topid'] ){文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1735.html
$pv->Fields['currentstyle'] = $currentstyle ? $currentstyle : 'current';
}
else{
$pv->Fields['currentstyle'] = '';
}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/1735.html