3 require_once 'ConvertStyle.php';
5 class Pman_Core_MailTemplateList extends Pman_Core_ConvertStyle
10 $fopts = HTML_FlexyFramework::get()->HTML_Template_Flexy;
12 $templateDir = explode(PATH_SEPARATOR, $fopts['templateDir']);
14 $base = 'http://' . $fopts['host'] . $this->rootURL;
19 foreach ($templateDir as $dir){
21 if(!file_exists($dir . '/mail')){
25 if ($handle = opendir($dir . '/mail')) {
26 while (false !== ($entry = readdir($handle))) {
27 if ($entry == "." || $entry == ".." || !preg_match('/\.html$/', $entry)) {
31 $path = "$dir/mail/$entry";
35 'content' => $this->convertStyle()