在w88/include/extend.func.php 文件 添加以下代码
//获取当前栏目的url时间 function remote_filectime($url_file){ $headInf = get_headers($url_file,1); $time= strtotime($headInf['Last-Modified']); $timea = date('Y-m-d',$time).'T'.date('H:i:s',$time); return $timea; }
w88调用方法
{dede:global.cfg_indexurl function='remote_filectime(@me)'/} //首页获取url时间
{dede:type}[field:typelink function='remote_filectime(@me)'/]{/dede:type}//栏目页获取url时间
w88二次开发QQ群
本站客服QQ号:,群号(383578617) 如果您有任何w88问题,请把问题发到群里,阁主将为您写解决教程!
转载请注明: w88模板 » w88获取栏目和首页的时间的函数