打开include\taglib\channelartlist.lib.php

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

5.7版本在93行

在这行代码下面添加:

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

         $pv->Fields['currentstyle'] = $currentstyle ? $currentstyle : 'navOn'; 

         } 

         else{ 

             $pv->Fields['currentstyle'] = ''; 

         }

THE END

非特殊说明,本博所有文章均为博主原创

如若转载,请注明出处:https://www.htmlbk.com/dedecms/329.html