(d) This section shall not be construed to preempt any local ordinance in effect on or before January 1, 2012, or any provision of a local ordinance in effect on or after January 1, 2012, that restricts the smoking of cigarettes or other tobacco products.