[ticket/12484] Add template event ucp_agreement_terms_before/after

https://tracker.phpbb.com/browse/PHPBB3-12484

PHPBB3-12484