Only add the SiteLinks code when the search module is used.

I also refactored the Footer class to contain shorter and more
descriptive methods.