[ticket/10411] Ensure we only get services that do exist

PHPBB3-10411
[ticket/10411] Use template loops instead of defining the html in php files

PHPBB3-10411