Move the archive title into a function

Move the code for the archive title into a function. The reason for the this is that the archive title is a lot of PHP and this cleans up the html side of things. It also allows the archive title to be moved and displayed elsewhere easily.