summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-04-14 22:12:56 +1000
committerSavetheinternet <savetheinternet@n0v4.com>2011-04-14 22:12:56 +1000
commit1025fcf1e1e3aa823c94b2a2c0c3069a28c6940e (patch)
treeecb56ba0494d509a33fa8141a2e1085b4f0d9668 /templates
parent702f37ccc50397c0d042627983d26d22195192aa (diff)
themes
Diffstat (limited to 'templates')
-rw-r--r--templates/homepage/basic/theme.php43
-rw-r--r--templates/homepage/frameset/theme.php47
2 files changed, 18 insertions, 72 deletions
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 @@
<?php
- $theme = Array();
+ require 'info.php';
- // Theme name
- $theme['name'] = 'Basic';
- // Description (you can use Tinyboard markup here)
- $theme['description'] = 'Extremely basic news listing for the homepage. It\'s suggested that you enable boardlinks for this theme.';
- $theme['version'] = 'v0.9';
-
- // Theme configuration
- $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);
- }
+ 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 @@
<?php
- $theme = Array();
+ require 'info.php';
- // Theme name
- $theme['name'] = 'Frameset';
- // Description (you can use Tinyboard markup here)
- $theme['description'] =
-'Use a basic frameset layout, with a list of boards and pages on a sidebar to the left of the page.
-
-Users never have to leave the homepage; they can do all their browsing from the one page.';
- $theme['version'] = 'v0.1';
-
- // Theme configuration
- $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'] = '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) {