/** * Displays row of buttons that go along the bottom of a discussion. * @return string HTML code for all feature buttons in this discussion */ public function display_forumngfeature_discussions() { // Get forum type $type = $this->get_forum()->get_type(); // Print discussion features $features = ''; foreach (forumngfeature_discussion::get_all() as $feature) { if ($feature->should_display($this) && $type->allow_forumngfeature_discussion($this, $feature)) { $features .= $feature->display($this); } } if ($features) { print '<div id="forumng-features">' . $features . '</div>'; } }