View Single Post
  #3  
Old 17th May 2012, 19:11
cfoe cfoe is offline
ISPConfig Developer
 
Join Date: Oct 2011
Location: NRW, Germany
Posts: 233
Thanks: 27
Thanked 57 Times in 32 Posts
Send a message via Skype™ to cfoe
Default

I just thought a little bit more about the "problem".

In a module file e.g. dashboard/dashboard.php
$app->tpl->newTemplate("templates/dashboard.htm");
loads the template-file from dashboard/templates/dashboard.htm

public function newTemplate($tmplfile)
"just" needs to add "(ISPC_WEB_PATH.)../themes/.$_SESSION['s']['theme']./" to the $tmplfile-var.

-> themes/*theme-name*/templates/dashboard.htm

In this case templates must be moved to the theme-folder but no modifications to modules are necessary.
Reply With Quote