Captain Pendlebury signs new Magpies deal