[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/ -> a_stub.php (source)

   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-2007 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 = 1;
  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  # Here you can set a limit before which posts will be ignored

  34  # You can use a unix timestamp value or 'now' which will hide all posts in the past

  35  $timestamp_min = '';
  36  
  37  # Here you can set a limit after which posts will be ignored

  38  # You can use a unix timestamp value or 'now' which will hide all posts in the future

  39  $timestamp_max = 'now';
  40  
  41  # Additionnaly, you can set other values (see URL params in the manual)...

  42  # $order = 'ASC'; // This for example would display the blog in chronological order...

  43  
  44  /**

  45   * That's it, now let b2evolution do the rest! :)

  46   */
  47  require_once dirname(__FILE__).'/conf/_config.php';
  48  
  49  require $inc_path.'_blog_main.inc.php';
  50  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics