vshare use smarty templates, it is possible to run php inside smarty templates, you can find more details at

http://www.google.com/search?q=running+ ... y+template