[ticket/9341] Use UA_BASE_URL in template files

PHPBB3-9341
[ticket/9341] Use U_PREVIOUS and U_NEXT in template files

PHPBB3-9341