private function templateThread() { $this->thread->increase('thread_viewcount', 1); if (false !== ($user = GWF_Session::getUser())) { if (false === $this->thread->markRead($user)) { echo GWF_HTML::err('ERR_DATABASE', __FILE__, __LINE__); } } $tVars = array('thread' => $this->thread, 'posts' => $this->thread->getPostPage($this->ppt, $this->page), 'pagemenu' => $this->getPageMenu(), 'actions' => true, 'title' => true, 'reply' => $this->thread->hasReplyPermission(GWF_Session::getUser(), $this->module), 'nav' => true, 'can_vote' => $user === false ? false : $this->module->cfgVotesEnabled(), 'can_thank' => $user === false ? false : $this->module->cfgThanksEnabled(), 'term' => GWF_QuickSearch::getQuickSearchHighlights(Common::getRequest('term', '')), 'page' => $this->page, 'href_add_poll' => $this->thread->hrefAddPoll(), 'href_edit' => $this->thread->getEditHREF()); return $this->module->templatePHP('show_thread.php', $tVars); }
private function templateEditThread() { $form = $this->getForm(); $tVars = array('thread' => $this->thread, 'href_add_poll' => $this->thread->hrefAddPoll(), 'form' => $form->templateY($this->module->lang('ft_edit_thread'))); return $this->module->templatePHP('edit_thread.php', $tVars); }