b2evolution

Multilingual multiuser multiblog engine

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

Source for file _calendar.php

Documentation is available at _calendar.php

  1. <?php
  2.     /**
  3.      * This is the template that displays the calendar
  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.      *
  8.      * b2evolution - {@link http://b2evolution.net/}
  9.      * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  10.      * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  11.      *
  12.      * @package evoskins
  13.      * @subpackage custom
  14.      */
  15.     if!defined('DB_USER') ) die'Please, do not access this page directly.' );
  16.     
  17.     $Calendar new Calendar$blog(empty($calendar$m $calendar)$show_statuses$timestamp_min$timestamp_max );
  18.     
  19.     # You can customize the following as you wish.
  20.     # Uncomment the lines you need
  21.     
  22.     // $Calendar->set( 'searchframe', 12 );    // How many month will we search back for a post before we give up
  23.  
  24.     // $Calendar->set( 'displaycaption', 1 ); // set this to 0 if you don't want to display the month name
  25.     // $Calendar->set( 'monthformat', 'F Y' );
  26.     // $Calendar->set( 'monthstart', '<caption class="bCalendarCaption">' );
  27.     // $Calendar->set( 'monthend', '</caption>' );
  28.     
  29.     // $Calendar->set( 'tablestart', '<table class="bCalendarTable" summary="Monthly calendar with links to each day\'s posts">' );
  30.     // $Calendar->set( 'tableend', '</table>' );
  31.     
  32.     // $Calendar->set( 'rowstart', '<tr class="bCalendarRow">' );
  33.     // $Calendar->set( 'rowend', '</tr>' );
  34.     
  35.     // $Calendar->set( 'headerdisplay', 1 );    // set this to 0 if you don't want to display "Mon Tue Wed..." 
  36.     // $Calendar->set( 'headercellstart', '<th class="bCalendarHeaderCell" abbr="[abbr]">' );    // please leave $abbr there !
  37.     // $Calendar->set( 'headercellend', '</th>' );
  38.     
  39.     // $Calendar->set( 'cellstart', '<td class="bCalendarCell">' );
  40.     // $Calendar->set( 'cellend', '</td>' );
  41.     
  42.     // $Calendar->set( 'emptycellstart', '<td class="bCalendarEmptyCell">' );
  43.     // $Calendar->set( 'emptycellend', '</td>' );
  44.     // $Calendar->set( 'emptycellcontent', '&nbsp;' );
  45.     
  46.     $Calendar->set'browseyears');  // allow browsing years in the calendar's caption (month must be displayed)
  47.  
  48.     $Calendar->set'navigation''tfoot' );
  49.  
  50.     // $Calendar->set( 'linktomontharchive', 0 );  // uncomment to display month not as link to archive of month
  51.  
  52.     // -- Display number of posts with days/months ---
  53.     // - set to '' (empty) to disable
  54.     // - %d gets replaced with the number of posts on that day/month
  55.     // - required spaces must be set
  56.     // $Calendar->set( 'postcount_month_cell', '' );                           // in table cell (behind day)
  57.     // $Calendar->set( 'postcount_month_atitle', T_('%d posts');   // in archive links title tag
  58.     // $Calendar->set( 'postcount_year_cell', ' (%d)';                         // in table cell (behind abbr of month)
  59.     // $Calendar->set( 'postcount_year_atitle', T_('%d posts');  // in archive links title tag
  60.  
  61.  
  62.     // DISPLAY NOW!
  63.     $Calendar->display);
  64.     
  65. ?>

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