b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 2.4) [ class tree: main ] [ index: main ] [ all elements ]

Source for file sitemap_blogs.php

Documentation is available at sitemap_blogs.php

  1. <?php
  2. /**
  3.  * Experimental Sitemap Stub FOR A BLOG AGGREGATION
  4.  *
  5.  * It seems that Google won't index a sitemap with a ? in it. So you need a stub.
  6.  */
  7. require_once dirname(__FILE__).'/conf/_config.php';
  8.  
  9. # First, select which blog you want to map
  10. # You can find these numbers in the back-office under the Blogs section.
  11. # You can also create new blogs over there. If you do, you may duplicate this file for the new blog.
  12. $blog 1;
  13. # We want to include all posts, even those not primarily linked to blog #1
  14. # i-e even those aggregated through an extra cat:
  15. $cat_focus 'wide';
  16.  
  17. # Let's force the use of the sitemap skin:
  18. $tempskin '_sitemap';
  19.  
  20. # Here you can set a limit before which posts will be ignored
  21. # You can use a unix timestamp value or 'now' which will hide all posts in the past
  22. $timestamp_min '';
  23.  
  24. # Here you can set a limit after which posts will be ignored
  25. # You can use a unix timestamp value or 'now' which will hide all posts in the future
  26. $timestamp_max 'now';
  27.  
  28. # Sitemap spec requires UTF-8, so let's force all outputs to UTF-8:
  29. $force_io_charset_if_accepted 'utf-8';
  30.  
  31. // We don't want _blog_main to try any extra path resolution
  32. $resolve_extra_path false;
  33.  
  34. require $inc_path.'_blog_main.inc.php';
  35. ?>

Documentation generated on Sat, 06 Mar 2010 03:25:20 +0100 by phpDocumentor 1.4.2. This site is hosted and maintained by Daniel HAHLER (Contact).