All laws, provisions of this Code and other ordinances in force in the county for the promotion of the peace, good order and morals thereof are, whenever applicable, hereby extended to and shall embrace the territory included in the public parks, and any person violating any such ordinance shall be subject to the penalties therefor provided in section 1-7.