fix class ref for older php. use config variable for top nav items.