fixes navigations

extends to PHP 5.3+
touches frontend templates