dbFields = array( 'label'=>'Latest posts', 'amount'=>5 ); } public function form() { $html = '
'; $html .= ''; $html .= ''; $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= '
'; return $html; } public function siteSidebar() { // This function is declared in 70.posts.php $posts = buildPostsForPage(0, $this->getDbField('amount'), true, false); $html = '
'; // Print the label if not empty. $label = $this->getDbField('label'); if( !empty($label) ) { $html .= '

'.$label.'

'; } $html .= '
'; $html .= ''; $html .= '
'; $html .= '
'; return $html; } }