摘要:
dedecms列表中最近N天时间加红色,只需要判断当前时间即可,代码如下: [field:pubdate runphp='yes'] $a="<font color=red>".strftime('%m-%d',@me)."</font>"; $b=strftime('%m-%d',@me); $n 阅读全文
posted @ 2021-06-17 17:25
hepeacer
阅读(52)
评论(0)
推荐(0)
摘要:
dedecms调用当前网址,主要有以下几种办法。 1、首页、栏目页、内容页均可,代码如下: {dede:CurUrl runphp='yes'} @me = GetCurUrl(); {/dede:CurUrl} 2、静态内容页调用,可以用: {dede:global.cfg_basehost/}{ 阅读全文
posted @ 2021-06-17 17:19
hepeacer
阅读(213)
评论(0)
推荐(0)

浙公网安备 33010602011771号