- Timestamp:
- 2012/02/17 02:42:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/LC_Page_Sitemap.php
r21514 r21527 157 157 * TODO Smarty に移行すべき? 158 158 */ 159 function createSitemap($loc, $lastmod = '', $changefreq = '', 160 $priority = '') { 159 function createSitemap($loc, $lastmod = '', $changefreq = '', $priority = '') { 161 160 printf("\t<url>\n"); 162 161 printf("\t\t<loc>%s</loc>\n", htmlentities($loc, ENT_QUOTES, "UTF-8")); … … 308 307 $arr = array(); 309 308 // 正規表現で文字列を抽出 310 preg_match('/^([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})/', 311 $date, $arr); 309 preg_match('/^([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})/', $date, $arr); 312 310 // :TODO: time zone も取得するべき... 313 311 return sprintf('%04d-%02d-%02dT%02d:%02d:%02d+09:00',
Note: See TracChangeset
for help on using the changeset viewer.