$config, 'settings' => $settings)); } // Build news page public static function news($settings) { global $config; $query = query("SELECT * FROM `news` ORDER BY `time` DESC") or error(db_error()); $news = $query->fetchAll(PDO::FETCH_ASSOC); return Element('themes/frameset/news.html', Array( 'settings' => $settings, 'config' => $config, 'news' => $news )); } // Build sidebar public static function sidebar($settings) { global $config, $board; return Element('themes/frameset/sidebar.html', Array( 'settings' => $settings, 'config' => $config, 'boards' => listBoards() )); } }; ?>