summaryrefslogtreecommitdiff
path: root/info.php
diff options
context:
space:
mode:
authorRiku Rouvila <riku.rouvila@gmail.com>2013-01-02 19:40:30 +0200
committerczaks <marcin@6irc.net>2013-05-26 18:00:46 -0400
commit9b8326473555d2419c1c62f957893eb97e6082eb (patch)
tree8166d54fea6a0616931ee82b4db1ad51f8f119b7 /info.php
parent258083e5cbcf905d6454866ee8f1ca9e75f247ea (diff)
Here we go
Diffstat (limited to 'info.php')
-rw-r--r--info.php53
1 files changed, 53 insertions, 0 deletions
diff --git a/info.php b/info.php
new file mode 100644
index 00000000..34d59d4e
--- /dev/null
+++ b/info.php
@@ -0,0 +1,53 @@
+<?php
+ $theme = Array();
+
+ // Theme name
+ $theme['name'] = 'Ukko';
+ // Description (you can use Tinyboard markup here)
+ $theme['description'] = 'Board with threads and messages from all boards';
+ $theme['version'] = 'v0.1';
+
+ // Theme configuration
+ $theme['config'] = Array();
+
+ $theme['config'][] = Array(
+ 'title' => 'Board name',
+ 'name' => 'title',
+ 'type' => 'text',
+ 'default' => 'Ukko'
+ );
+ $theme['config'][] = Array(
+ 'title' => 'Board URI',
+ 'name' => 'uri',
+ 'type' => 'text',
+ 'comment' => '(ukko for example)'
+ );
+ $theme['config'][] = Array(
+ 'title' => 'Subtitle',
+ 'name' => 'subtitle',
+ 'type' => 'text',
+ 'comment' => '(%s = thread limit. for example "%s freshly bumped threads")'
+ );
+ $theme['config'][] = Array(
+ 'title' => 'Excluded boards',
+ 'name' => 'exclude',
+ 'type' => 'text',
+ 'comment' => '(space seperated)'
+ );
+ $theme['config'][] = Array(
+ 'title' => 'Number of threads',
+ 'name' => 'thread_limit',
+ 'type' => 'text',
+ 'default' => '15',
+ );
+ // Unique function name for building everything
+ $theme['build_function'] = 'ukko_build';
+ $theme['install_callback'] = 'ukko_install';
+
+ if(!function_exists('ukko_install')) {
+ function ukko_install($settings) {
+ if (!file_exists($settings['uri']))
+ @mkdir($settings['uri'], 0777) or error("Couldn't create " . $settings['uri'] . ". Check permissions.", true);
+ }
+ }
+