summaryrefslogtreecommitdiff
path: root/templates/themes/catalog/info.php
diff options
context:
space:
mode:
authorMichael Walker <mike@barrucadu.co.uk>2015-09-09 23:51:00 +0100
committerMichael Walker <mike@barrucadu.co.uk>2015-09-09 23:51:00 +0100
commit05c569e656070f086de49d24749d4b18916975da (patch)
tree890818fc1360a191ab65c37e7f3580eb56c574d8 /templates/themes/catalog/info.php
parent68291a0fc05ad6ba4d12d802529ad947744ef7a6 (diff)
parent1c641eb46b850055a64f18493aa851242d464dc5 (diff)
Merge pull request #17 from mgrabovsky/ukko-catalog
Add catalog for ukko
Diffstat (limited to 'templates/themes/catalog/info.php')
-rw-r--r--templates/themes/catalog/info.php38
1 files changed, 23 insertions, 15 deletions
diff --git a/templates/themes/catalog/info.php b/templates/themes/catalog/info.php
index c20a0ca3..e2b13307 100644
--- a/templates/themes/catalog/info.php
+++ b/templates/themes/catalog/info.php
@@ -1,27 +1,27 @@
<?php
$theme = array();
-
+
// Theme name
$theme['name'] = 'Catalog';
// Description (you can use Tinyboard markup here)
$theme['description'] = 'Show a post catalog.';
- $theme['version'] = 'v0.2';
-
- // Theme configuration
+ $theme['version'] = 'v0.2.1';
+
+ // Theme configuration
$theme['config'] = Array();
-
+
$theme['config'][] = Array(
'title' => 'Title',
'name' => 'title',
'type' => 'text',
'default' => 'Catalog'
);
-
+
$__boards = listBoards();
$__default_boards = Array();
foreach ($__boards as $__board)
$__default_boards[] = $__board['uri'];
-
+
$theme['config'][] = Array(
'title' => 'Included boards',
'name' => 'boards',
@@ -29,7 +29,7 @@
'comment' => '(space seperated)',
'default' => implode(' ', $__default_boards)
);
-
+
$theme['config'][] = Array(
'title' => 'Update on new posts',
'name' => 'update_on_posts',
@@ -38,14 +38,22 @@
'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.'
- );
+ $theme['config'][] = Array(
+ 'title' => 'Enable Ukko catalog',
+ 'name' => 'enable_ukko',
+ 'type' => 'checkbox',
+ 'default' => false,
+ 'comment' => 'Enable catalog for the Ukko theme. This requires the Ukko theme to be enabled.'
+ );
+ $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.'
+ );
// Unique function name for building everything
$theme['build_function'] = 'catalog_build';
+