A court in Ivory Coast has sentenced former first lady Simone Gbagbo to 20 years in prison, the official AIP news agency said.