<div class="codeheader">Code: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">[Select]</a></div><code class="bbc_code"><?php ssi_recentPosts(); ?></code> <h3>Result</h3> <div class="ssi_result"><?php ssi_recentPosts(); flush(); ?> </div> </div> <div class="ssi_preview" id="ssi_recentPoll"> <h2>Recent Poll Function</h2> <h3>Code</h3> <div class="codeheader">Code: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">[Select]</a></div><code class="bbc_code"><?php ssi_recentPoll(); ?></code> <h3>Result</h3> <div class="ssi_result"><?php ssi_recentPoll(); flush(); ?> </div> </div> <!-- TOP ITEMS --> <div class="ssi_preview" id="ssi_topBoards"> <h2>Top Boards Function</h2> <p>Shows top boards by the number of posts.</p> <h3>Code</h3> <div class="codeheader">Code: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">[Select]</a></div><code class="bbc_code"><?php ssi_topBoards(); ?></code> <h3>Result</h3> <div class="ssi_result"><?php ssi_topBoards();
/** * Show the most-voted-in poll. * * @param string $output_method = 'echo' */ function ssi_topPoll($output_method = 'echo') { // Just use recentPoll, no need to duplicate code... return ssi_recentPoll(true, $output_method); }
/** * Short description * * Long description * * @param * @return */ protected function show_recentPoll() { try { $this->loadSSI(); } catch (Exception $e) { throw new \Exception($e->getMessage()); } if ('echo' == $this->output_method) { ob_start(); ssi_recentPoll($this->topPollInstead, $this->output_method); $this->data = ob_get_contents(); ob_end_clean(); } else { $this->data = ssi_recentPoll($this->topPollInstead, $this->output_method); } }