- Timestamp:
- 2011/03/07 15:23:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/LC_Page_Sitemap.php
r20534 r20538 104 104 ob_start('mb_output_handler'); 105 105 106 print("<?xml version='1.0' encoding='UTF-8'?>\n");107 print("<urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>\n");106 echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n"; 107 echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n"; 108 108 109 109 // TOPページを処理 … … 138 138 } 139 139 140 print("</urlset>\n");140 echo '</urlset>' . "\n"; 141 141 } 142 142 … … 225 225 // :TODO: カテゴリの最終更新日を取得できるようにする 226 226 227 $arrPage[ "url"] = HTTP_URL . 'products/list.php?category_id=' . $row['category_id'];227 $arrPage['url'] = HTTP_URL . 'products/list.php?category_id=' . $row['category_id']; 228 228 $arrRet[] = $arrPage; 229 229 230 230 // モバイルサイト 231 231 if (USE_MOBILE !== false) { 232 $arrPage[ "url"] = HTTP_URL . 'products/list.php?category_id=' . $row['category_id'];232 $arrPage['url'] = HTTP_URL . 'products/list.php?category_id=' . $row['category_id']; 233 233 $arrRet[] = $arrPage; 234 234 } … … 252 252 $arrPage["update_date"] = $row['update_date']; 253 253 254 $arrPage[ "url"] = HTTP_URL . substr(P_DETAIL_URLPATH, strlen(ROOT_URLPATH)) . $row['product_id'];254 $arrPage['url'] = HTTP_URL . substr(P_DETAIL_URLPATH, strlen(ROOT_URLPATH)) . $row['product_id']; 255 255 $arrRet[] = $arrPage; 256 256 257 257 // モバイルサイト 258 258 if (USE_MOBILE !== false) { 259 $arrPage[ "url"] = HTTP_URL . substr(MOBILE_P_DETAIL_URLPATH, strlen(ROOT_URLPATH)) . $row['product_id'];259 $arrPage['url'] = HTTP_URL . substr(MOBILE_P_DETAIL_URLPATH, strlen(ROOT_URLPATH)) . $row['product_id']; 260 260 $arrRet[] = $arrPage; 261 261 }
Note: See TracChangeset
for help on using the changeset viewer.