织梦获取栏目和首页的时间的函数
类别:建站知识   时间:02-23

在织梦/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;}

织梦获取栏目和首页的时间的函数

织梦调用方法

{dede:global.cfg_indexurl function='remote_filectime(@me)'/} //首页获取url时间{dede:type}[field:typelink function='remote_filectime(@me)'/]{/dede:type}//栏目页获取url时间

智慧半岛,是一家专注于青岛网站建设青岛网站开发的青岛网络公司,Copyright ©2007-2019 Ebandao.Cn 版权所有 All Rights Reserved.(建议在1366x768以上的浏览器中访问)鲁ICP备08014496号

13153297890