theme update

This commit is contained in:
Savetheinternet 2011-04-14 22:02:23 +10:00
parent da6d9c4d2e
commit 702f37ccc5
2 changed files with 18 additions and 15 deletions

View File

@ -25,15 +25,16 @@
// Unique function name for building everything // Unique function name for building everything
$theme['build_function'] = 'basic_build'; $theme['build_function'] = 'basic_build';
function basic_build($action, $settings) { if(!function_exists('basic_build')) {
// Possible values for $action: function basic_build($action, $settings) {
// - all (rebuild everything, initialization) // Possible values for $action:
// - news (news has been updated) // - all (rebuild everything, initialization)
// - boards (board list changed) // - news (news has been updated)
// - boards (board list changed)
Basic::build($action, $settings);
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) {

View File

@ -28,13 +28,15 @@ Users never have to leave the homepage; they can do all their browsing from the
// Unique function name for building everything // Unique function name for building everything
$theme['build_function'] = 'frameset_build'; $theme['build_function'] = 'frameset_build';
function frameset_build($action, $settings) { if(!function_exists('frameset_build')) {
// Possible values for $action: function frameset_build($action, $settings) {
// - all (rebuild everything, initialization) // Possible values for $action:
// - news (news has been updated) // - all (rebuild everything, initialization)
// - boards (board list changed) // - news (news has been updated)
// - boards (board list changed)
Frameset::build($action, $settings);
Frameset::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