[functions] Fix use of transients in query
[thelayout] Add social buttons for RSS, Twitter, and Google+