Esempio n. 1
0
 private function templateHistory()
 {
     $pagemenuHREF = $this->channel === '' ? 'chat/history/page-%PAGE%' : 'chat/history/for/' . $this->channel . '/page-%PAGE%';
     $pagemenuHREF = GWF_WEB_ROOT . $pagemenuHREF;
     $tVars = array('friends' => $this->module->getFriends(), 'history' => $this->module->getHistoryMessages($this->channel, $this->page), 'pagemenu' => GWF_PageMenu::display($this->page, $this->nPages, $pagemenuHREF), 'prevpage' => GWF_PageMenu::prevPage($this->page, $this->nPages, $pagemenuHREF), 'nextpage' => GWF_PageMenu::nextPage($this->page, $this->nPages, $pagemenuHREF));
     return $this->module->templatePHP('history.php', $tVars);
 }