</th><td><?php 
echo !empty($v->endDate) ? constant_contact_event_date($v->endDate) : __('None', 'ctct');
?>
</td></tr>
		<tr><th scope="row" id="registrationurl" class="manage-column column-name" style=""><?php 
_e('Registration URL', 'ctct');
?>
</th><td><?php 
echo_if_not_empty($v->registrationUrl, '', '<a href="' . $v->registrationUrl . '">' . $v->registrationUrl . '</a>');
?>
</td></tr>
		<tr class="alt"><th scope="row" id="location" class="manage-column column-name" style=""><?php 
_e('Location', 'ctct');
?>
</th><td><?php 
echo constant_contact_create_location($v->eventLocation);
?>
</td></tr>
	</tbody>
</table>
<p class="submit"><a href="<?php 
echo remove_query_arg(array('view', 'refresh'));
?>
" class="button-primary"><?php 
_e('Return to Events', 'ctct');
?>
 <a href="<?php 
echo add_query_arg('refresh', 'event');
?>
" class="button-secondary alignright" title="<?php 
_e('Refresh Event data now.', 'ctct');
foreach ($customInformation as $k) {
    // Contain arrays of CustomField objects
    foreach ($v->{$k} as $customfield) {
        $answer = '';
        foreach ((array) $customfield->answers as $li) {
            // if it's a date, treat it as such
            if (preg_match('/^20[0-9]{2}\\-/', $li)) {
                $li = constant_contact_event_date($li);
            }
            $answer .= '<li>' . $li . '</li>';
        }
        $val = "<ul class='ul-disc'>{$answer}</ul>";
        $customs[$customfield->question] = $val;
    }
}
$data = array(__('Registration Information', 'ctct') => array(__('Registration Status', 'ctct') => $v->registrationStatus, __('Registration Date', 'ctct') => constant_contact_event_date($v->registrationDate), __('Guest Count', 'ctct') => get_if_not_empty($v->guestCount, 1), __('Payment Status', 'ctct') => $v->paymentStatus, __('Order Amount', 'ctct') => $v->orderAmount, __('Currency Type', 'ctct') => $v->currencyType, __('Payment Type', 'ctct') => $v->paymentType, __('Summary of Costs', 'ctct') => $costs), __('Personal Information', 'ctct') => array(__('Name', 'ctct') => $v->title, __('Email', 'ctct') => get_if_not_empty($v->email, '', "<a href='mailto:{$v->email}'>{$v->email}</a>"), __('Phone', 'ctct') => $v->personalInformation->phone, __('Cell Phone', 'ctct') => $v->personalInformation->cellPhone, __('Address', 'ctct') => constant_contact_create_location($v->personalInformation)), __('Business Information', 'ctct') => array(__('Company', 'ctct') => $v->businessInformation->company, __('Job Title', 'ctct') => $v->businessInformation->jobTitle, __('Department', 'ctct') => $v->businessInformation->department, __('Phone', 'ctct') => $v->businessInformation->phone, __('Fax', 'ctct') => $v->businessInformation->fax, __('Website', 'ctct') => $v->businessInformation->website, __('Blog', 'ctct') => $v->businessInformation->blog, __('Address', 'ctct') => constant_contact_create_location($v->businessInformation)), __('Custom Information', 'ctct') => $customs);
echo constant_contact_generate_table($data);
?>

<p class="submit"><a href="<?php 
echo remove_query_arg(array('registrant', 'refresh'));
?>
" class="button-primary"><?php 
_e('Return to Event', 'ctct');
?>
</a> <a href="<?php 
echo add_query_arg('refresh', 'registrant');
?>
" class="button-secondary alignright" title="<?php 
_e('Registrant data is stored for 1 hour. Refresh data now.', 'ctct');
?>
            if (!empty($linkTitle)) {
                $linkTitle = ' title="' . esc_attr($linkTitle) . '"';
            }
            $calendarOut = '
				<dd class="cc_event_calendar"><a' . $target . ' href="' . $link . '"' . $linkTitle . '>' . esc_html__('Add to Calendar', 'ctct') . '</a></dd>
					';
        }
        if (!empty($location)) {
            $locationText = constant_contact_create_location($event->eventLocation);
            if (!empty($locationText)) {
                if ($map) {
                    if (isset($event->eventLocation->location)) {
                        $event->eventLocation->newLocation = '(' . $event->eventLocation->location . ')';
                        unset($event->eventLocation->location);
                    }
                    $locationformap = constant_contact_create_location($event->eventLocation);
                    $address_qs = str_replace("<br />", ", ", $locationformap . '<br />' . $event->eventLocation->newLocation);
                    //replacing <br/> with spaces
                    $address_qs = urlencode($address_qs);
                    /**
                     * Modify the map link format. Passes the eventLocation object and the address query string.
                     */
                    $locationText .= "<br/>" . apply_filters('cc_event_map_link', "<a href='http://maps.google.com/maps?q={$address_qs}'" . $target . " class='cc_event_map_link'>" . esc_html__('Map Location', 'ctct') . "</a>", $event->eventLocation, $address_qs);
                }
                $locationOut = '
					<dt class="cc_event_location cc_event_location_dt">' . apply_filters('cc_event_location_dt', esc_html__('Location: ', 'ctct')) . '</dt>
						<dd class="cc_event_location_dd cc_event_location">' . apply_filters('cc_event_location', $locationText) . '</dd>';
            }
        }
        $endOut = '
			</dl>';