MailTemplateList.php
[Pman.Core] / MailTemplateList.php
index 4728340..f6e0bdc 100644 (file)
@@ -10,7 +10,14 @@ class Pman_Core_MailTemplateList extends Pman_Core_ConvertStyle
         $fopts = HTML_FlexyFramework::get()->HTML_Template_Flexy;
         
         $templateDir = explode(PATH_SEPARATOR, $fopts['templateDir']);
-        print_r($fopts);exit;
+        
+        $base = 'http://' . $fopts['host'] . $this->rootURL;
+        
+        $path = '/home/edward/gitlive/web.madeinnz/Pman/Shop/templates/mail/orderDetails.body.html';
+        
+        $data = $this->convertStyle($base, $path, false);
+        
+        print_r($data);exit;
         
         $ret = array();
         
@@ -27,10 +34,10 @@ class Pman_Core_MailTemplateList extends Pman_Core_ConvertStyle
                     }
                     
                     $path = "$dir/mail/$entry";
-                    
+                    print_r($path);exit;
                     $ret[] = array(
                         'file' => $entry,
-                        'content' => $this->convertStyle()
+                        'content' => $this->convertStyle($base, $path, false)
                     );
                 }