Remove closing PHP tags
Use single-quotes for most PHP strings

Err on the side of single quotes unless we're evaluating something or we'd have to do tons of escaping as a result of single quote usage.
Conform to WordPress brace style for ifs and foreachs
Fix bug introduced when we switched to single quotes
Modify function names from camelCase to underscore