How to get a footer with alternating alignment and custom text per page?

Sounds like a duplicate of How to combine the title of the document with the page counter in the footer - #7 by sijo, even though the main topic and solution are different. The question uses the same problem.