refactor homepage layout code to allow for proper use of internationalization functions, use more modern style of php class definition for each layout