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.      */
  14.     if!defined('DB_USER') ) die'Please, do not access this page directly.' );
  15.     
  16.     ifisset$Calendar ) )
  17.     {
  18.          $Calendar new Calendar$blog(empty($calendar$m $calendar)$show_statuses$timestamp_min$timestamp_max );
  19.     }
  20.  
  21.     # You can customize the following as you wish.
  22.     # Uncomment the lines you need
  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.  
  27.     // $Calendar->set( 'tablestart', '<table class="bCalendarTable" summary="Monthly calendar with links to each day\'s posts">' );
  28.     // $Calendar->set( 'tableend', '</table>' );
  29.  
  30.     // $Calendar->set( 'monthstart', '<caption class="bCalendarCaption">' );
  31.     // $Calendar->set( 'monthend', "</caption>\n" );
  32.  
  33.     // $Calendar->set( 'rowstart', '<tr class="bCalendarRow">' . "\n" );
  34.     // $Calendar->set( 'rowend', "</tr>\n"  );
  35.     
  36.     // $Calendar->set( 'headerdisplay', 1 );    // set this to 0 if you don't want to display "Mon Tue Wed..." 
  37.     // $Calendar->set( 'headercellstart', '<th class="bCalendarHeaderCell" abbr="[abbr]">' );    // please leave $abbr there !
  38.     // $Calendar->set( 'headercellend', "</th>\n" );
  39.     
  40.     // $Calendar->set( 'cellstart', '<td class="bCalendarCell">' );
  41.     // $Calendar->set( 'cellend', "</td>\n" );
  42.     
  43.     // $Calendar->set( 'emptycellstart', '<td class="bCalendarEmptyCell">' );
  44.     // $Calendar->set( 'emptycellend', "</td>\n" );
  45.     // $Calendar->set( 'emptycellcontent', '&nbsp;' );
  46.  
  47.     // $Calendar->set( 'linkpostcellstart', '<td class="bCalendarLinkPost">' );
  48.     // $Calendar->set( 'todaycellstart', '<td class="bCalendarToday">' );
  49.  
  50.     // $Calendar->set( 'searchframe', 12 );    // How many month will we search back for a post before we give up
  51.  
  52.     // $Calendar->set( 'browseyears', 1 );  // uncomment to allow browsing years in the calendar's caption (month must be displayed)
  53.     // $Calendar->set( 'linktomontharchive', 0 );  // uncomment to display month not as link to archive of month
  54.     
  55.     // -- Display number of posts with days/months ---
  56.     // - set to '' (empty) to disable
  57.     // - %d gets replaced with the number of posts on that day/month
  58.     // - required spaces must be set
  59.     // $Calendar->set( 'postcount_month_cell', '' );               // in table cell (behind day)
  60.     // $Calendar->set( 'postcount_month_atitle', T_('%d posts');   // in archive links title tag
  61.     // $Calendar->set( 'postcount_year_cell', ' (%d)';             // in table cell (behind abbr of month)
  62.     // $Calendar->set( 'postcount_year_atitle', T_('%d posts');  // in archive links title tag
  63.  
  64.  
  65.     
  66.     // DISPLAY NOW!
  67.     $Calendar->display);
  68.     
  69. ?>

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