在織夢/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時間 |
新聞熱點
疑難解答