adding smarty to elgg