' . BLOG_BASEURL . ' ' . date("c") . ' daily 1.0 '; // XML head done // we start with the blog entries $q = new FPDB_Query(array( 'start' => 0, 'count' => -1, 'fullparse' => true ), null); while ($q->hasMore()) { list ($id, $e) = $q->getEntry(); if (isset($e ['lastupdate'])) { $lastmod = $e ['lastupdate'] - (60 * 60 * $offset); } else { $lastmod = $e ['date'] - (60 * 60 * $offset); } $loc = get_permalink($id); echo ' ' . $loc . ' ' . date("c", $lastmod) . ' '; } // done with the entries // now the static pages $statics = static_getlist(); foreach ($statics as $currentstatic) { $currentStaticData = static_parse($currentstatic); $loc = BLOG_BASEURL . '?page=' . $currentstatic; // If current static has no date, use timestamp of now if (array_key_exists('date', $currentStaticData)) { $d = $currentStaticData ['date'] - (60 * 60 * $offset); } else { $d = time(); } $d = date('c', $d); echo ' ' . $loc . ' ' . $d . ' '; } // done with the static pages echo '';