Source for file calendar.php
Documentation is available at calendar.php
* Access calendar package to display event calendar
require_once( '../kernel/setup_inc.php' );
require_once(EVENTS_PKG_PATH. 'BitEvents.php' );
if ( $gBitSystem->isPackageActive( 'calendar' ) ) {
include_once( CALENDAR_PKG_PATH. 'Calendar.php' );
// now, lets get the ball rolling!
$gCalendar->processRequestHash($_REQUEST, $_SESSION['calendar']);
// Setup which content types we want to view.
$listHash['content_type_guid'] = array('bitevents');
if( empty( $_REQUEST['event_after'] ) ) {
$_REQUEST['event_after'] = $gBitSystem->getUTCTime();
$listevents = $events->getList( $_REQUEST );
$gCalendar->buildCalendar($listHash, $_SESSION['calendar']);
// And display it with a nice title.
$gCalendar->display(tra('Events Calendar'), FALSE, EVENTS_PKG_URL. 'calendar.php');
|