Violation of an ordinance shall constitute a summary offense, and prosecution for every such offense shall be according to the practice in the case of summary convictions, except where the laws of Pennsylvania shall specifically provide otherwise. Any ordinance may prescribe a penalty for the violation thereof, which may not exceed the maximum penalty that may be imposed by law. All fines and costs collected shall be paid into the Municipal Treasury for use of the Municipality. Any ordinance may provide that for continuing violations, each day that a violation exists may be regarded as a separate violation.