PHP – Dynamically adding an active state class

PHP – Dynamically adding an active state class

As I prefer to use PHP includes to visually clean up my sites, I tend to run into a problem where an active state for buttons or icons is not set. This means that if the header is in an include, and a user lands on the contact page, they’re unable to tell...