Sidebar and footer tweaks

Coding consistency, checks to prevent PHP notices, and updates to the footer to use theme info (instead of hard coded names and URLs).