Wigan have completed the signing of Cardiff City forward Nicky Maynard on loan for the remainder of the season.