Ok thanks.
But what code is involved?
Code:
function get_template($template_name)
{
$tn = './skin/'.$template_name.'.htm';
if (file_exists($tn))
{
$t = file_get_contents($tn);
return "return <<<TMP\r\n<!-- START: $template_name -->\r\n{$t}\r\n<!-- END: $template_name -->\r\nTMP;\r\n";
}
else
die("FATAL ERROR: File not found $template_name");
}
I found this function in ./code/skin.php but surely this isnt it...or is it?
Im already aware about initiating a template like so:
Code:
print eval(get_template('mainfooter'));
Is there anymore involved?
|