Any local improvement ordinance passed by the corporate authorities shall be published one time in a newspaper published and of general circulation in such municipality, if there be one, and if there be no such newspaper, then such ordinance shall be posted in not less than 3 public places in such municipality. Such ordinance shall not become effective until 10 days after publication or posting, as the case may be.