{if $type == 'answer'} {include file='ajax.answers.answer.tpl'method='post'} {elseif $type == 'note'} {includefile='ajax.answers.note.tpl'method='post'} {/if} <script>jQuery("span[class*=timeago]").timeago();</script>