It seems that the main.tpl doesn't support php. So how can I use the footer and header from my wordpress theme?