You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
1.1 KiB

8 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  3. <url><loc><?php echo env('APP_SUBDOMAIN'); ?>/</loc><changefreq>daily</changefreq><priority>1.0</priority></url>
  4. <?php $posts=arclist(array("row"=>300));foreach($posts as $row){ ?><url><loc><?php echo env('APP_SUBDOMAIN'); ?><?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?></loc><lastmod><?php echo date("Y-m-d",$row['pubdate']); ?></lastmod><changefreq>monthly</changefreq></url><?php } ?>
  5. <?php $posts=arclist(array("row"=>100,"orderby"=>'rand()'));foreach($posts as $row){ ?><url><loc><?php echo env('APP_SUBDOMAIN'); ?><?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?></loc><lastmod><?php echo date("Y-m-d",$row['pubdate']); ?></lastmod><changefreq>monthly</changefreq></url><?php } ?>
  6. <?php $posts=dataList("arctype");foreach($posts as $row){ ?><url><loc><?php echo env('APP_SUBDOMAIN'); ?><?php echo get_front_url(array("catid"=>$row['id'],"type"=>'list')); ?></loc></url><?php } ?>
  7. </urlset>