[ticket/12530] Move style and class to parent <a>.

PHPBB3-12530