Vat 578 code indentation and changes into tpl and php file 

Are we using $defaults anywhere in the later part of the code?