VID-1648 updating wfMessage calls with parse method and adding php vars to the top of the file