[ticket/13419] Add the lowermost template event

PHPBB3-13419
Merge pull request #3218 from rxu/ticket/13419

[ticket/13419] Add the lowermost template event