Start with adding a placeholder for the css class in the template you want to use:
Code:
'cal_cell_start' => '<td {css_class}>'
In the generate function (in MY_Calendar.php), look up this line:
PHP Code:
$out .= ($is_current_month === TRUE && $day == $cur_day) ? $this->replacements['cal_cell_start_today'] : $this->replacements['cal_cell_start'];
Replace it with this:
PHP Code:
$csstmp = isset($css[$day]) ? 'class="' . $css[$day] . '"' : NULL;
$cstoday = str_replace('{css_class}', $csstmp,$this->replacements['cal_cell_start_today']);
$cs = str_replace('{css_class}',$csstmp,$this->replacements['cal_cell_start']);
$out .= ($is_current_month === TRUE && $day == $cur_day) ? $cstoday : $cs;
The result is that the placeholder {css_class} is replaced with the given class for that day, or with NULL if no class was given for that day.