(a) Before an ordinance may become operative, it shall be published in a newspaper having general circulation in the city. The effective date of the ordinance shall be stated therein but shall not be less than ten days after publication. However, if it is declared by the affirmative vote of not less than three members of the council to be an emergency ordinance affecting the public peace, health, safety, or general welfare the ordinance may be given earlier effect and the requirement for publication may be met by posting copies of the ordinance in three conspicuous locations in public places in the city. In the case of such emergency ordinance, the clerk shall immediately after such posting enter in the ordinance book stating the time and places of the posting. Such ordinance shall also be published in accordance with the requirement for publication of other ordinances but not as a requirement for the effectiveness thereof.
(b) All codes and other ordinance subject matter, which are or may be permitted by law to be adopted by reference, shall be adopted and published in the manner permitted and required by law.