<h2>Today's Holidays 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_todaysHolidays(); ?></code> <h3>Result</h3> <div class="ssi_result"><?php ssi_todaysHolidays(); flush(); ?> </div> <h2>Today's Events 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_todaysEvents(); ?></code> <h3>Result</h3> <div class="ssi_result"><?php ssi_todaysEvents(); flush(); ?> </div> </div> <div class="ssi_preview" id="ssi_recentEvents"> <h2>Recent Calendar Events 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_recentEvents(); ?></code> <h3>Result</h3> <div class="ssi_result"><?php ssi_recentEvents(); flush(); ?>
/** * Short description * * Long description * * @param * @return */ protected function show_todaysEvents() { try { $this->loadSSI(); } catch (Exception $e) { throw new \Exception($e->getMessage()); } if ('echo' == $this->output_method) { ob_start(); ssi_todaysEvents($this->output_method); $this->data = ob_get_contents(); ob_end_clean(); } else { $this->data = ssi_todaysEvents($this->output_method); } }