Greetingz....
The code I use is as follows...
I've got different directories under themes each with html files in them.... (header.htm, footer.htm...)
Then in my "Theme" Files I use $variables In the HTML code.
Also you would then use sessions to get the users Theme Preference...
Might be to much for what you need but the above has worked for me...
Enjoy...