Conditional 'active' class on current page

This code now expects the page slugs to be specific, as follows:

/about
/food
/drinks
/games
/events