Example #1
0
 private function templateSend($preview = '')
 {
     $form = $this->getForm();
     if ($this->pm !== false) {
         $this->pm->markRead(GWF_Session::getUser());
     }
     if ($this->pm === false) {
         GWF_Javascript::focusElementByName('title');
     } else {
         GWF_Javascript::focusElementByName('message');
     }
     $tVars = array('reply_to' => $this->pm === false ? '' : $this->templatePM($this->pm), 'form' => $form->templateY($this->getSEOTitle()), 'preview' => $preview);
     return $this->module->templatePHP('send.php', $tVars);
 }