Esempio n. 1
0
 private function templateShow($translate)
 {
     $pm = $this->pm;
     $pm->markRead(GWF_Session::getUser());
     $sender = $this->module->lang('th_pm_from') . ' ' . $pm->getSender()->displayProfileLink();
     $receiver = $this->module->lang('th_pm_to') . ' ' . $pm->getReceiver()->displayProfileLink();
     if ('' === ($translated = $this->getTranslated($translate))) {
         $translated = $pm->displayMessage();
     }
     $tVars = array('pm' => $this->pm, 'actions' => true, 'title' => $this->pm->display('pm_title'), 'unread' => GWF_PM::getUnreadPMs($this->module, GWF_Session::getUserID()), 'translated' => $translated, 'sender' => $sender, 'receiver' => $receiver, 'sendrec' => $pm->isRecipient() ? $sender : $receiver, 'transid' => 'pm_trans_' . $pm->getID(), 'buttons' => $this->getButtons($this->pm));
     return $this->module->template('show.tpl', $tVars);
 }