TemplatePower() is outdated library for site templating, not available anymore.
e107 uses its own template system but it is too complex and it demands creating e107 shortcodes what could time consuming.
At this phase (after some attempt to use e107::getTemplate()) we decided only replace existing code with e107 simpleParser() that replaces shortcodes with variables without need e107 shortcodes files.
Get template file
For time being - creating e107 templates is advanted stuff, tons of arrays -
/* temp solution before e107 templating to replace TemplatePower solution */
public function getTpl($filename) {
$sitetheme = deftrue('USERTHEME', e107::getPref('sitetheme'));
$themepath = e_THEME.$sitetheme."/skins/";
/*
$defaultskin = e107::getSingleton('efiction_settings')->getPref('skin'); //will be removed ???
$skinpath = _BASEDIR."skins/".$defaultskin."/";
*/
$default = "efiction_tpls/"; //new folder used to see what left
$defaultpath = _BASEDIR.$default;
if(file_exists($themepath.$filename)) $tpl = file_get_contents($themepath.$filename) ;
else $tpl = file_get_contents($defaultpath.$filename) ;
return $tpl;
}
It is possible that paths will be changed in future. After full testing this approach.