打开include\taglib\channelartlist.lib.php
找到

$pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]);  

在此行代码下方增加以下代码:

if($typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['id'] || $typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['topid'] ){

$pv->Fields['currentstyle'] = $currentstyle ? $currentstyle : 'current'; 
} 
else{ 
$pv->Fields['currentstyle'] = ''; 
}

 

转载!

相关文章:

  • 2022-12-23
  • 2021-08-10
  • 2021-11-10
  • 2022-12-23
  • 2022-01-14
  • 2021-06-13
  • 2022-01-31
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2021-06-18
  • 2021-11-09
  • 2022-12-23
  • 2022-01-26
相关资源
相似解决方案