shortcodes->ssa_past_appointments()
$past_appointments = ssa()->appointment_model->query( $atts );
$settings = ssa()->settings->get();
$date_format = SSA_Utils::localize_default_date_strings( 'F j, Y g:i a' ) . ' (T)';
?>
-
setTimezone( $customer_timezone )->format( $date_format );
$localized_string = SSA_Utils::translate_formatted_date( $localized_string );
echo $localized_string;
if ( filter_var( $atts['appointment_type_displayed'], FILTER_VALIDATE_BOOLEAN ) ) {
$past_appointment_type = new SSA_Appointment_Type_Object( $past_appointment['appointment_type_id'] );
echo ' ' . $past_appointment_type->get_title();
}
if ( ! empty( $past_appointment['web_meeting_url'] ) && filter_var( $atts['web_meeting_url'], FILTER_VALIDATE_BOOLEAN ) ) {
echo ' ' . 'Open Web Meeting' . '';
}
if ( ! empty( $atts['details_link_displayed'] ) ) {
echo ' ' . wp_kses_post( $atts['details_link_label'] ) . '';
}
?>