private function DisplayComments() { # Display review topic listing require_once 'forums/forum-topic-listing.class.php'; require_once 'forums/forum-comments-topic-navbar.class.php'; if (!isset($this->topic)) { $this->topic = new ForumTopic($this->GetSettings()); } $this->topic->SetReviewItem($this->review_item); $signed_in = AuthenticationManager::GetUser()->IsSignedIn(); echo '<div id="comments-topic"'; if ($signed_in) { echo ' class="signed-in"'; } echo '>'; if ($this->topic->GetCount() or !$signed_in) { echo '<h2>Comments</h2>'; } $navbar = new ForumCommentsTopicNavbar($this->topic, $this->GetAuthenticationManager()); echo $navbar; $o_review_topic = new ForumTopicListing($this->GetSettings(), AuthenticationManager::GetUser(), $this->topic); echo $o_review_topic; if ($this->topic->GetCount() and !$signed_in) { echo $navbar; } # Add comment if (AuthenticationManager::GetUser()->Permissions()->HasPermission(PermissionType::ForumAddMessage())) { # create form $this->LoadClientScript("/scripts/tiny_mce/jquery.tinymce.js"); $this->LoadClientScript("/scripts/tinymce.js"); require_once 'forums/forum-message-form.class.php'; $o_form = new ForumMessageForm(); echo $o_form->GetForm(); } echo '</div>'; }