[ticket/11552] Join functions for hiding tabs and menu

PHPBB3-11552