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 wpc
  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'linktomontharchive'false );
  27.     $Calendar->set'monthstart''<caption>' );
  28.     $Calendar->set'monthend'"</caption>\n" );
  29.  
  30.     $Calendar->set'navigation''tfoot' );
  31.     
  32.     $Calendar->set'tablestart''<table id="wp-calendar" summary="Monthly calendar with links to each day\'s posts">' );
  33.     // $Calendar->set( 'tableend', '</table>' );
  34.     
  35.     // $Calendar->set( 'rowstart', '<tr class="bCalendarRow">' );
  36.     // $Calendar->set( 'rowend', '</tr>' );
  37.     
  38.     $Calendar->set'headerdisplay''e' )// One letter header
  39.     $Calendar->set'headercellstart''<th abbr="[abbr]" scope="col" title="[abbr]">' );    // please leave [abbr] there !
  40.     $Calendar->set'headercellend'"</th>\n" );
  41.     
  42.     // $Calendar->set( 'cellstart', '<td class="bCalendarCell">' );
  43.     // $Calendar->set( 'cellend', '</td>' );
  44.     
  45.     // $Calendar->set( 'emptycellstart', '<td class="bCalendarEmptyCell">' );
  46.     // $Calendar->set( 'emptycellend', '</td>' );
  47.     // $Calendar->set( 'emptycellcontent', '&nbsp;' );
  48.     
  49.     $Calendar->set'todaycellstart''<td id="today">' );
  50.     
  51.     // $Calendar->set( 'browseyears', 1 );  // uncomment to allow browsing years in the calendar's caption (month must be displayed)
  52.     // $Calendar->set( 'linktomontharchive', 0 );  // uncomment to display month not as link to archive of month
  53.  
  54.     // -- Display number of posts with days/months ---
  55.     // - set to '' (empty) to disable
  56.     // - %d gets replaced with the number of posts on that day/month
  57.     // - required spaces must be set
  58.     // $Calendar->set( 'postcount_month_cell', '' );                           // in table cell (behind day)
  59.     // $Calendar->set( 'postcount_month_atitle', T_('%d posts');   // in archive links title tag
  60.     // $Calendar->set( 'postcount_year_cell', ' (%d)';                         // in table cell (behind abbr of month)
  61.     // $Calendar->set( 'postcount_year_atitle', T_('%d posts');  // in archive links title tag
  62.  
  63.  
  64.     // DISPLAY NOW!
  65.     $Calendar->display);
  66.     
  67. ?>

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