Moved footer code to output from footer.php.