b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (0.9.x) [ class tree: evoskins ] [ index: evoskins ] [ all elements ]

Source for file a_stub.php

Documentation is available at a_stub.php

  1. <?php
  2. /**
  3.  * This file is a stub file for displaying a blog, using evoSkins.
  4.  *
  5.  * This file will set some display parameters and then let b2evolution handle
  6.  * the display by calling an evoSkin. (skins are in the /skins folder.)
  7.  *
  8.  * Note: You only need to use this stub file for advanced use of b2evolution.
  9.  * Most of the time, calling your blog through index.php will be enough.
  10.  *
  11.  * Same display without using skins: a_noskin.php
  12.  *
  13.  * b2evolution - {@link http://b2evolution.net/}
  14.  * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  15.  * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  16.  *
  17.  * @package evoskins
  18.  * @subpackage noskin
  19.  */
  20.  
  21. # First, select which blog you want to display here!
  22. # You can find these numbers in the back-office under the Blogs section.
  23. # You can also create new blogs over there. If you do, you may duplicate this file for the new blog.
  24. $blog 2;       // 2 is for "demo blog A" or your upgraded blog (depends on your install)
  25.  
  26. # You could *force* a specific skin here with this setting: (otherwise, default will be used)
  27. # $skin = 'basic';
  28.  
  29. # This setting retricts posts to those published, thus hiding drafts.
  30. # You should not have to change this.
  31. $show_statuses array();
  32.  
  33. # You could *force* a specific link blog here with this setting: (otherwise, default will be used)
  34. # $linkblog = 4;
  35.  
  36. # This is the list of categories to restrict the linkblog to (cats will be displayed recursively)
  37. # Example: $linkblog_cat = '4,6,7';
  38. $linkblog_cat '';
  39.  
  40. # This is the array if categories to restrict the linkblog to (non recursive)
  41. # Example: $linkblog_catsel = array( 4, 6, 7 );
  42. $linkblog_catsel array);
  43.  
  44. # Here you can set a limit before which posts will be ignored
  45. # You can use a unix timestamp value or 'now' which will hide all posts in the past
  46. $timestamp_min '';
  47.  
  48. # Here you can set a limit after which posts will be ignored
  49. # You can use a unix timestamp value or 'now' which will hide all posts in the future
  50. $timestamp_max 'now';
  51.  
  52. # Additionnaly, you can set other values (see URL params in the manual)...
  53. # $order = 'ASC'; // This for example would display the blog in chronological order...
  54.  
  55. /**
  56.  * That's it, now let b2evolution do the rest! :)
  57.  */
  58. require(dirname(__FILE__)."/b2evocore/_blog_main.php");
  59. ?>

Documentation generated on Tue, 20 May 2008 01:51:10 +0200 by phpDocumentor 1.4.2