mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 16:00:22 +01:00
theme update
This commit is contained in:
parent
3cc253cf1f
commit
da1bde883f
@ -25,15 +25,16 @@
|
||||
// Unique function name for building everything
|
||||
$theme['build_function'] = '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);
|
||||
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) {
|
||||
|
@ -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
|
||||
$theme['build_function'] = 'frameset_build';
|
||||
|
||||
function frameset_build($action, $settings) {
|
||||
// Possible values for $action:
|
||||
// - all (rebuild everything, initialization)
|
||||
// - news (news has been updated)
|
||||
// - boards (board list changed)
|
||||
|
||||
Frameset::build($action, $settings);
|
||||
if(!function_exists('frameset_build')) {
|
||||
function frameset_build($action, $settings) {
|
||||
// Possible values for $action:
|
||||
// - all (rebuild everything, initialization)
|
||||
// - news (news has been updated)
|
||||
// - boards (board list changed)
|
||||
|
||||
Frameset::build($action, $settings);
|
||||
}
|
||||
}
|
||||
|
||||
// Wrap functions in a class so they don't interfere with normal Tinyboard operations
|
||||
|
Loading…
Reference in New Issue
Block a user