Modified php template