|
@ -1,40 +1,15 @@ |
|
|
<?php |
|
|
<?php |
|
|
$theme = Array(); |
|
|
require 'info.php'; |
|
|
|
|
|
|
|
|
// Theme name |
|
|
function basic_build($action, $settings) { |
|
|
$theme['name'] = 'Basic'; |
|
|
// Possible values for $action: |
|
|
// Description (you can use Tinyboard markup here) |
|
|
// - all (rebuild everything, initialization) |
|
|
$theme['description'] = 'Extremely basic news listing for the homepage. It\'s suggested that you enable boardlinks for this theme.'; |
|
|
// - news (news has been updated) |
|
|
$theme['version'] = 'v0.9'; |
|
|
// - boards (board list changed) |
|
|
|
|
|
|
|
|
// Theme configuration |
|
|
Basic::build($action, $settings); |
|
|
$theme['config'] = Array(); |
|
|
|
|
|
|
|
|
|
|
|
$theme['config'][] = Array( |
|
|
|
|
|
'title' => '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 |
|
|
// Wrap functions in a class so they don't interfere with normal Tinyboard operations |
|
|
class Basic { |
|
|
class Basic { |
|
|
public static function build($action, $settings) { |
|
|
public static function build($action, $settings) { |
|
|