From 1025fcf1e1e3aa823c94b2a2c0c3069a28c6940e Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 14 Apr 2011 22:12:56 +1000 Subject: themes --- templates/homepage/basic/theme.php | 43 +++++++------------------------- templates/homepage/frameset/theme.php | 47 +++++++---------------------------- 2 files changed, 18 insertions(+), 72 deletions(-) (limited to 'templates') diff --git a/templates/homepage/basic/theme.php b/templates/homepage/basic/theme.php index 401d3f5a..5782d63d 100644 --- a/templates/homepage/basic/theme.php +++ b/templates/homepage/basic/theme.php @@ -1,40 +1,15 @@ '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); - } + 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) { diff --git a/templates/homepage/frameset/theme.php b/templates/homepage/frameset/theme.php index ff81608a..90af409c 100644 --- a/templates/homepage/frameset/theme.php +++ b/templates/homepage/frameset/theme.php @@ -1,44 +1,15 @@ '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'; - - 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); - } + 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 class Frameset { public static function build($action, $settings) { -- cgit v1.3