PHP Template with variables returning output HTML