b2evolution

Multilingual multiuser multiblog engine

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

Source for file _arcdir.php

Documentation is available at _arcdir.php

  1. <?php 
  2.     /**
  3.      * This is the template that displays the archive directory for a blog
  4.      *
  5.      * This file is not meant to be called directly.
  6.      * It is meant to be called by an include in the _main.php template.
  7.      * To display the archive directory, you should call a stub AND pass the right parameters
  8.      * For example: /blogs/index.php?disp=arcdir
  9.      *
  10.      * b2evolution - {@link http://b2evolution.net/}
  11.      * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  12.      * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  13.      *
  14.      * @package evoskins
  15.      * @subpackage custom
  16.      */
  17.     if!defined('DB_USER') ) die'Please, do not access this page directly.' );
  18.  
  19.     if($disp == 'arcdir')  
  20.     // We have asked to display full archives:
  21.         echo '<ul>';
  22.         /*
  23.          * This file is basically just a trick where we set the number of entries to display
  24.          * to "no limit"...
  25.          */
  26.         $archive_limit '';
  27.         /**
  28.          * And then... call the default archive include.
  29.          */
  30.         require dirname(__FILE__).'/_archives.php';
  31.         unset$archive_limit );
  32.         echo '</ul>';
  33.     }
  34. ?>

Documentation generated on Tue, 20 May 2008 01:52:13 +0200 by phpDocumentor 1.4.2