Added template.php and ding event template file