1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
<?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-2005 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', ' ' );
// $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( );
?>
|