Understanding the code in footer.tpl