<h3>Result</h3>
				<div class="ssi_result"><?php 
ssi_welcome();
flush();
?>
</div>
			</div>

<!-- CALENDAR -->
			<div class="ssi_preview" id="ssi_todaysCalendar">
				<h2>Today's Calendar 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">&lt;?php ssi_todaysCalendar(); ?&gt;</code>
				<h3>Result</h3>
				<div class="ssi_result"><?php 
ssi_todaysCalendar();
flush();
?>
</div>

				<h2>Today's Birthdays 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">&lt;?php ssi_todaysBirthdays(); ?&gt;</code>
				<h3>Result</h3>
				<div class="ssi_result"><?php 
ssi_todaysBirthdays();
flush();
?>
</div>

				<h2>Today's Holidays Function</h2>
Ejemplo n.º 2
0
function TPortal_ssi()
{
    global $context;
    echo '
	<div style="padding: 5px;" class="smalltext">';
    if ($context['TPortal']['ssifunction'] == 'topboards') {
        ssi_topBoards();
    } elseif ($context['TPortal']['ssifunction'] == 'topposters') {
        ssi_topPoster(5);
    } elseif ($context['TPortal']['ssifunction'] == 'topreplies') {
        ssi_topTopicsReplies();
    } elseif ($context['TPortal']['ssifunction'] == 'topviews') {
        ssi_topTopicsViews();
    } elseif ($context['TPortal']['ssifunction'] == 'calendar') {
        ssi_todaysCalendar();
    }
    echo '
    </div>';
}
 /**
  * Short description
  *
  * Long description
  *
  * @param
  * @return
  */
 protected function show_todaysCalendar()
 {
     try {
         $this->loadSSI();
     } catch (Exception $e) {
         throw new \Exception($e->getMessage());
     }
     if ('echo' == $this->output_method) {
         ob_start();
         ssi_todaysCalendar($this->output_method);
         $this->data = ob_get_contents();
         ob_end_clean();
     } else {
         $this->data = ssi_todaysCalendar($this->output_method);
     }
 }