Hi Nicmare – great solution – did you get this working, we have added the code to the site but it doesnt seem to create the class to target with the css.
our amended code is…
<td class="<?php echo $class; ?><?php if ($cell_data['date'] <= time()) { echo " past"; } ?>">
<?php if( !empty($cell_data['events']) && count($cell_data['events']) > 0 ): ?>
<a>" title="<?php echo esc_attr($cell_data['link_title']); ?>"><?php echo date('j',$cell_data['date']); ?></a>
<?php else:?>
<?php echo date('j',$cell_data['date']); ?>
<?php endif; ?>
</td>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Have we missed anything here?