David,
This scripting is actually Smarty PHP template engine. It is actually quite a nice tool, but a little confusing at first glance. You can learn more at this site and get some good documentation that is instructional.
http://smarty.php.net/manual/en/
I found it helpful.