<?php

$date_status = get_post_meta(get_the_ID(), 'sfhiv_event_date_status', true);
if ($date_status == 'tba') {
    ?>
<div class="date date-tba tba">
	<span class="tba">Date To Be Announced</span>
</div>
<?php 
} else {
    $now = time();
    $time = sfhiv_event_get_start_time(get_the_ID());
    if ($date_status == 'month') {
        ?>
<div class="date date-tba tba">
	<span><?php 
        echo date("F, Y", $time);
        ?>
</span>
	<span class="tba">Day To Be Announced</span>
</div><?php 
    } else {
        ?>
<div class="date">
	<?php 
        if (date("j-F-Y", $now) == date("j-F-Y", $time)) {
            ?>
	<span class="day today"><?php 
            _e("Today", "sfhiv2012");
            ?>
</span>
function sfhiv_event_update_title($title, $post_ID)
{
    if (get_post_type($post_ID) != 'sfhiv_event') {
        return $title;
    }
    if (get_post_meta($post_ID, 'sfhiv_event_custom_title_checkbox', true)) {
        return get_post_meta($post_ID, 'sfhiv_event_custom_title', true);
    }
    $title = "Meeting";
    $date = sfhiv_event_get_start_time($post_ID);
    if ($date) {
        $month = date("F", $date);
        return $month . " " . $title;
    }
    return $title;
}