summaryrefslogtreecommitdiff
path: root/templates/themes/favelog/info.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-04-29 21:35:50 +0200
committerczaks <marcin@6irc.net>2014-04-29 21:35:50 +0200
commitbb5446a93d05185cc78cc4b61edc99d3035e295e (patch)
tree9bd8e9cc87fa564f3e0cf4aa84c3c042690029a1 /templates/themes/favelog/info.php
parentc1aaf78cbb126c51aa95afcac98f530512cb67f5 (diff)
parentbfc4df8276f1f3577e8d40f300ed0f3f02613cd0 (diff)
Merge remote-tracking branch 'origin/br-integration' into staging
Diffstat (limited to 'templates/themes/favelog/info.php')
-rw-r--r--templates/themes/favelog/info.php58
1 files changed, 58 insertions, 0 deletions
diff --git a/templates/themes/favelog/info.php b/templates/themes/favelog/info.php
new file mode 100644
index 00000000..5e339930
--- /dev/null
+++ b/templates/themes/favelog/info.php
@@ -0,0 +1,58 @@
+<?php
+ $theme = array();
+
+ // Theme name
+ $theme['name'] = 'Favelog';
+ // Description (you can use Tinyboard markup here)
+ $theme['description'] = 'Show a post favelog.';
+ $theme['version'] = 'v0.1';
+
+ // Theme configuration
+ $theme['config'] = Array();
+
+ $theme['config'][] = Array(
+ 'title' => 'Title',
+ 'name' => 'title',
+ 'type' => 'text',
+ 'default' => 'Favelog'
+ );
+
+ $__boards = listBoards();
+ $__default_boards = Array();
+ foreach ($__boards as $__board)
+ $__default_boards[] = $__board['uri'];
+
+ $theme['config'][] = Array(
+ 'title' => 'Included boards',
+ 'name' => 'boards',
+ 'type' => 'text',
+ 'comment' => '(space seperated)',
+ 'default' => implode(' ', $__default_boards)
+ );
+
+ $theme['config'][] = Array(
+ 'title' => 'CSS file',
+ 'name' => 'css',
+ 'type' => 'text',
+ 'default' => 'catalog.css',
+ 'comment' => '(eg. "catalog.css")'
+ );
+
+ $theme['config'][] = Array(
+ 'title' => 'Update on new posts',
+ 'name' => 'update_on_posts',
+ 'type' => 'checkbox',
+ 'default' => true,
+ 'comment' => 'Without this checked, the catalog only updates on new threads.'
+ );
+
+ $theme['config'][] = Array(
+ 'title' => 'Use tooltipster',
+ 'name' => 'use_tooltipster',
+ 'type' => 'checkbox',
+ 'default' => true,
+ 'comment' => 'Check this if you wish to show a nice tooltip with info about the thread on mouse over. Texts only available in PT-br.'
+ );
+
+ // Unique function name for building everything
+ $theme['build_function'] = 'favelog_build';