Understanding the code in header.tpl