function toData()
{
+ $ts = microtime(true);
+
$templateFile = $this->template;
$args = (array)$this->contents;
$content = clone($this->page);
$htmlbody = false;
$html_tmp_opts = $tmp_opts;
$htmltemplate = new HTML_Template_Flexy( $html_tmp_opts );
+
if (is_string($htmltemplate->resolvePath('mail/'.$templateFile.'.body.html')) ) {
// then we have a multi-part email...
if (!empty($this->html_locale)) {
// for the html body, we may want to convert the attachments to images.
// var_dump($htmlbody);exit;
- if($content->body_cls && strlen($content->body_cls)){
+ if(!empty($content->body_cls) && strlen($content->body_cls)){
$htmlbody = $this->htmlbodySetClass($htmlbody, $content->body_cls);
}
}
$tmp_opts['nonHTML'] = true;
+ $diff = microtime(true) - $ts;
+ print_r($diff);exit;
//print_R($tmp_opts);
// $tmp_opts['force'] = true;
function htmlbodySetClass($html, $cls)
{
- print_R('run???');exit;
$dom = new DOMDocument();
@$dom->loadHTML('<?xml encoding="UTF-8">' .$html);