Replaced php syntax to use short code and other easier-to-read formats