add theme capability to tpl snippets
added custom theme variable functions to tpl snippets