Update footer.php

Added `close_main` and `after_main` hooks