I have a social sign-in code. When I put them inside my smarty php tpl file it give me some unclose {elseif} or {/if} error.
I would like to know how to put "if(this..." inside smarty php or better solution.

Code:
	<div id="loginFm">Sign in using your registered account:<br>
	<input type="text" name="username" {literal}onblur="if(this.value=='')this.value='Username';" onfocus="if(this.value=='Username')this.value='';"{/literal} value="Username" class="loginFm userFm">
	</div>