b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (CVS HEAD) [ class tree: main ] [ index: main ] [ all elements ]

Source for file sitemap_a.php

Documentation is available at sitemap_a.php

  1. <?php
  2. /**
  3.  * Experimental Sitemap Stub for a SINGLE BLOG
  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.  
  14. # Let's force the use of the sitemap skin:
  15. $tempskin '_sitemap';
  16.  
  17. # Here you can set a limit before which posts will be ignored
  18. # You can use a unix timestamp value or 'now' which will hide all posts in the past
  19. $timestamp_min '';
  20.  
  21. # Here you can set a limit after which posts will be ignored
  22. # You can use a unix timestamp value or 'now' which will hide all posts in the future
  23. $timestamp_max 'now';
  24.  
  25. # Sitemap spec requires UTF-8, so let's force all outputs to UTF-8:
  26. $force_io_charset_if_accepted 'utf-8';
  27.  
  28. // We don't want _blog_main to try any extra path resolution
  29. $resolve_extra_path false;
  30.  
  31. require $inc_path.'_blog_main.inc.php';
  32. ?>

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