Пример #1
0
 /**
  * Renders the body of the email and inline any applicable CSS.
  */
 private function renderContent($language, $mail)
 {
     $smarty = TikiLib::lib('smarty');
     $activity = $mail['args'];
     $activity['event_type'] = $mail['event'];
     $smarty->assign('monitor', $activity);
     TikiLib::setExternalContext(true);
     $html = $smarty->fetchLang($language, 'monitor/notification_email_body.tpl');
     TikiLib::setExternalContext(false);
     return $this->applyStyle($html);
 }