function draw($condense = false) { // get buffer $txt = funx::inc(DIR_KIT . 'html/header.html') . ob_get_contents() . funx::inc(DIR_KIT . 'html/footer.html'); // replace buffer contents ob_clean(); $out = self::replace($txt); if ($condense) { $out = self::condense($out); } echo $out; }
static function parse($fname, $args) { $msg = explode("\n", funx::inc($fname, $args)); $subject = trim(array_shift($msg)); $body = ra::condense($msg, '<br />'); return array($subject, $body); }