<?php
	/**
	 * This is the template that displays the calendar
	 *
	 * This file is not meant to be called directly.
	 * It is meant to be called by an include in the _main.php template.
	 *
	 * b2evolution - {@link http://b2evolution.net/}
	 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
	 * @copyright (c)2003-2004 by Francois PLANQUE - {@link http://fplanque.net/}
	 *
	 * @package evoskins
	 */
	if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
	
	if( ! isset( $Calendar ) )
	{
	 	$Calendar = & new Calendar( $blog, (empty($calendar) ? $m : $calendar), $show_statuses, $timestamp_min, $timestamp_max );
	}

	# You can customize the following as you wish.
	# Uncomment the lines you need

	// $Calendar->set( 'displaycaption', 1 ); // set this to 0 if you don't want to display the month name
	// $Calendar->set( 'monthformat', 'F Y' );

	// $Calendar->set( 'tablestart', '<table class="bCalendarTable" summary="Monthly calendar with links to each day\'s posts">' );
	// $Calendar->set( 'tableend', '</table>' );

	// $Calendar->set( 'monthstart', '<caption class="bCalendarCaption">' );
	// $Calendar->set( 'monthend', "</caption>\n" );

	// $Calendar->set( 'rowstart', '<tr class="bCalendarRow">' . "\n" );
	// $Calendar->set( 'rowend', "</tr>\n"  );
	
	// $Calendar->set( 'headerdisplay', 1 );	// set this to 0 if you don't want to display "Mon Tue Wed..." 
	// $Calendar->set( 'headercellstart', '<th class="bCalendarHeaderCell" abbr="[abbr]">' );	// please leave $abbr there !
	// $Calendar->set( 'headercellend', "</th>\n" );
	
	// $Calendar->set( 'cellstart', '<td class="bCalendarCell">' );
	// $Calendar->set( 'cellend', "</td>\n" );
	
	// $Calendar->set( 'emptycellstart', '<td class="bCalendarEmptyCell">' );
	// $Calendar->set( 'emptycellend', "</td>\n" );
	// $Calendar->set( 'emptycellcontent', '&nbsp;' );

	// $Calendar->set( 'linkpostcellstart', '<td class="bCalendarLinkPost">' );
	// $Calendar->set( 'todaycellstart', '<td class="bCalendarToday">' );

	// $Calendar->set( 'searchframe', 12 );	// How many month will we search back for a post before we give up

	// $Calendar->set( 'browseyears', 1 );  // uncomment to allow browsing years in the calendar's caption (month must be displayed)
	// $Calendar->set( 'linktomontharchive', 0 );  // uncomment to display month not as link to archive of month
	
	// -- Display number of posts with days/months ---
	// - set to '' (empty) to disable
	// - %d gets replaced with the number of posts on that day/month
	// - required spaces must be set
	// $Calendar->set( 'postcount_month_cell', '' );               // in table cell (behind day)
	// $Calendar->set( 'postcount_month_atitle', T_('%d posts');   // in archive links title tag
	// $Calendar->set( 'postcount_year_cell', ' (%d)';             // in table cell (behind abbr of month)
	// $Calendar->set( 'postcount_year_atitle', T_('%d posts');  // in archive links title tag


	
	// DISPLAY NOW!
	$Calendar->display( );
	
?>