tidy templates and consistantly use single quotes in php