A city of the second class shall have the power to regulate the use of sidewalks and all structures thereunder.