[ticket/11768] Added support for template inheritance

PHPBB3-11768