Fix indentation, remove alternative php syntax, fix misplaced DIVs