(A) In this section the term “violation of this code” means any of the following:
(1) Doing an act that is prohibited or made or declared unlawful, an offense, a violation or a misdemeanor by ordinance or by rule or regulation authorized by ordinance;
(2) Failure to perform an act that is required to be performed by ordinance or by rule or regulation authorized by ordinance; and
(3) Failure to perform an act if the failure is prohibited or is made or declared unlawful, an offense, a violation or a misdemeanor by ordinance or by rule or regulation authorized by ordinance.
(B) In this section the term “violation of this code” does not include the failure of a township officer or township employee to perform an official duty unless it is specifically provided that the failure to perform the duty is to be punished as provided in this section.
(C) Except as otherwise provided by law or ordinance, a person convicted of a violation of this code shall be punished by a fine not to exceed $500, imprisonment for a period of not more than 90 days, or both. However, if a section of this code substantially corresponds to a state law that is a misdemeanor for which the maximum period of imprisonment is 93 days, a person convicted of such section shall be punished by a fine not to exceed $500, imprisonment for a period of not more than 93 days, or both. In addition, a person convicted of a violation of this code shall be liable for costs.
(D) Except as otherwise provided by law or ordinance:
(1) With respect to violations of this code that are continuous with respect to time, each day that the violation continues is a separate offense.
(2) With respect to other violations, each violation constitutes a separate offense.
(E) The imposition of a penalty does not prevent suspension or revocation of a license, permit or franchise or other administrative sanctions.
(F) Violations of this code that are continuous with respect to time are a public nuisance and may be abated by injunctive or other equitable relief. The imposition of a penalty does not prevent injunctive relief or civil or quasi-judicial enforcement.