shortcodes->ssa_upcoming_appointments() $settings = ssa()->settings->get(); $upcoming_appointments = ssa()->appointment_model->query( $atts ); $all_appointment_types = ssa()->appointment_type_model->get_all_appointment_types(); $mapped_appointment_types = array(); foreach( $all_appointment_types as $appointment_type ){ if(empty($mapped_appointment_types[$appointment_type['id']])){ $mapped_appointment_types[$appointment_type['id']] = $appointment_type; } } $date_format = SSA_Utils::localize_default_date_strings( 'F j, Y g:i a' ) . ' (T)'; ?>