'Title',
'name' => 'title',
'type' => 'text'
);
$theme['config'][] = Array(
'title' => 'Slogan',
'name' => 'subtitle',
'type' => 'text'
);
// Unique function name for building everything
$theme['build_function'] = 'frameset_build';
function frameset_build($settings) {
Frameset::build($settings);
}
// Wrap functions in a class so they don't interfere with normal Tinyboard operations
class Frameset {
public static function build($settings) {
global $config;
file_put_contents($config['dir']['home'] . $config['file_index'], Frameset::homepage($settings));
file_put_contents($config['dir']['home'] . 'sidebar.html', Frameset::sidebar($settings));
file_put_contents($config['dir']['home'] . 'news.html', Frameset::news($settings));
}
// Build homepage
public static function homepage($settings) {
global $config;
// HTML5
return ''
. '