/*********************************************
*	Calendar Lite/Pro Mod for Mini-Cal
*
*	$Author: martin $
*	$Date: 2005-05-26 12:23:50 +0100 (Thu, 26 May 2005) $
*	$Revision: 20 $
*
*********************************************/

############################################################## 
## Mod Title: 	Mini-Cal (mod to provide Cal Lite/Pro compat)
## Mod Version: 2.0.0 (beta)
## Author:	Netclectic < Adrian Cockburn >
## Contributor:	WebSnail < Martin Smallridge >
## SUPPORT: 	http://www.snailsource.com/forum/ 
## Description: Compatability mod to enable Calendar for phpBB2 
##		to work with Mini-Cal (both Lite and Pro)
## 
## Installation Level: moderate) 
## Installation Time: 2 Minutes 
## Files To Edit: 
##		mods/netclectic/mini_cal/mini_cal.php
##		mods/netclectic/mini_cal/mini_cal_config.php
##
##############################################################
## This MOD is released under the GPL License. 
## Intellectual Property is retained by the MOD Author(s) listed above 
############################################################## 
## Please note that this MOD is NOT listed on phpBB.com's main
## site and should under no circumstances be trusted as secure
## and genuine unless downloaded from the Snailsource.com web
## site.
##############################################################
 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up ALL Files Related To This MOD 
############################################################## 



# 
#-----[ OPEN mods/netclectic/mini_cal/mini_cal.php]------------------------------------------ 
#

# 
#-----[ FIND ]------------------------------------------ 
#

            if ( (MINI_CAL_CALENDAR_VERSION != 'NONE') && (MINI_CAL_DATE_SEARCH == 'EVENTS') )


# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 

// MOD for Snailsource calendars
			if( MINI_CAL_CALENDAR_VERSION == 'SNAILLITE' ) {
				// We're assuming MINI_CAL_DATE_SEARCH == 'EVENTS' as we're using CalLite
                $mini_cal_day_link = '<a href="' . append_sid("cal_lite.$phpEx?mode=display&amp;$day_ref=$mini_cal_this_day&amp;$mon_ref=$mini_cal_this_month&amp;$year_ref=$mini_cal_this_year" ) . '" class="' . MINI_CAL_DAY_LINK_CLASS . '">' . ( $mini_cal_day ) . '</a>';
				$mini_cal_day = ( in_array($mini_cal_this_day, $mini_cal_event_days) ) ? $mini_cal_day_link : $mini_cal_day;
			}
			elseif ( MINI_CAL_CALENDAR_VERSION == 'SNAILPRO') {
				// We're assuming MINI_CAL_DATE_SEARCH == 'EVENTS' as we're using CalPro
                $mini_cal_day_link = '<a href="' . append_sid("cal_display.$phpEx?day=".$mini_cal_this_day."&amp;month=".$mini_cal_this_month."&amp;year=".$mini_cal_this_year ) . '" class="' . MINI_CAL_DAY_LINK_CLASS . '">' . ( $mini_cal_day ) . '</a>';
				$mini_cal_day = ( in_array($mini_cal_this_day, $mini_cal_event_days) ) ? $mini_cal_day_link : $mini_cal_day;
			}
// MOD end
			elseif ( (MINI_CAL_CALENDAR_VERSION != 'NONE') && (MINI_CAL_DATE_SEARCH == 'EVENTS') )




# 
#-----[ OPEN mods/netclectic/mini_cal/mini_cal_config.php]------------------------------------------ 
#

# 
#-----[ FIND ]------------------------------------------ 
#

//      SNAIL       - Websnail Calendar Pro


# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 

//      SNAILPRO    - Websnail Calendar Pro

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM