本站资源均来自互联网,仅供学习与参考,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
Copyright @ 2015-2020 织梦园 版权所有
Power by DedeCms
鲁ICP备15039853号-1
鲁公网安备 37132302000249号
模板标签 TAG标签 网站地图 XML地图 今日更新 返回顶部
织梦
之前的文章中有一篇是在文章内容页加
方法一:
[field:flag runphp='yes'] if(stristr(@me,"c")) @me = "[推荐]";else @me = '';[/field:flag][field:flag runphp='yes'] if(stristr(@me,"a")) @me = "[特荐]";else @me = '';[/field:flag]
如果用
[field:flag runphp='yes'] if(stristr(@me,"a")) @me = "<img src='图片地址'>";else @me = '';[/field:flag]
[field:flag runphp='yes'] if(stristr(@me,"c")) @me = "<img src='图片地址'>";else @me = '';[/field:flag]
方法二:
网上有朋友分享这招,但本人亲测不成功,大家有兴趣的可以看看
- [field:array runphp='yes']
- if(@me['flag']==''){
- @me='';
- }else if(@me['flag']=='h'){
- @me="<img src='/templets/zhuangxiu/imgcssjs/hot.gif'>";
- }
- else if(@me['flag']=='c'){
- @me="<img src='/templets/zhuangxiu/imgcssjs/new.gif'>";
- }
- [/field:array]