Removed the remaining {php} tags from smarty templates. They just don't belong there, and smarty 3.1 doesn't like them.