织梦dedecms让channelartlist标签支持currentstyle属性

2018-03-1400:02:37网站建设与开发Comments2,083 views字数 329阅读模式

打开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

  • 本站内容整理自互联网,仅提供信息存储空间服务,以方便学习之用。如对文章、图片、字体等版权有疑问,请在下方留言,管理员看到后,将第一时间进行处理。
  • 转载请务必保留本文链接:https://www.cainiaoxueyuan.com/cms/1735.html

Comment

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定