I'm running several sites off of one template with with custom logos and a few custom options and I'd like to keep using just one template so when I make changes to the structure I only update once and it updates all the sites. The only problem I'm having is I'd like to be able to call different elements into the template for different sites with php includes that call a specific value from my admin panel but can't get the include statement to work.
Basically I have a custom function that names the style of the site. To call this I would normally call:
<?php echo get_option('custom_style'); ?>
The "custom style" is the name of the directory that custom site specific files are in. How would I call this in my php include statement to it would inject the value between the temlplate path and the php file name?
I'd like this...
<?php include (TEMPLATEPATH . '/custom_header.php'); ?>
to somehow do this...
<?php include (TEMPLATEPATH . '/[insert my custom function here]netheader.php'); ?>
I know this isn't really a wordpress issue, more of an issue with my php knowledge but I'd really appreciate any help.
Thanks!
Matt