'Title', 'name' => 'title', 'type' => 'text' ); $theme['config'][] = Array( 'title' => 'Slogan', 'name' => 'subtitle', 'type' => 'text' ); // Unique function name for building everything $theme['build_function'] = 'basic_build'; if(!function_exists('basic_build')) { function basic_build($action, $settings) { // Possible values for $action: // - all (rebuild everything, initialization) // - news (news has been updated) // - boards (board list changed) Basic::build($action, $settings); } } // Wrap functions in a class so they don't interfere with normal Tinyboard operations class Basic { public static function build($action, $settings) { global $config; if($action == 'all' || $action == 'news') file_put_contents($config['dir']['home'] . $config['file_index'], Basic::homepage($settings)); } // Build news page public static function homepage($settings) { global $config; // HTML5 $body = '' . '
' . '' . '(No news to show.)
'; } else { // List news while($news = $query->fetch()) { $body .= '' . $news['body'] . '
'; } } $body .= 'Powered by Tinyboard'; return $body; } }; ?>