2013-07-18 11:30:00 -04:00
|
|
|
<?php
|
|
|
|
$theme = array();
|
2015-06-02 09:28:06 -04:00
|
|
|
|
2013-07-18 11:30:00 -04:00
|
|
|
// Theme name
|
|
|
|
$theme['name'] = 'Catalog';
|
|
|
|
// Description (you can use Tinyboard markup here)
|
|
|
|
$theme['description'] = 'Show a post catalog.';
|
2015-06-02 09:28:06 -04:00
|
|
|
$theme['version'] = 'v0.2.1';
|
|
|
|
|
|
|
|
// Theme configuration
|
2013-07-18 11:30:00 -04:00
|
|
|
$theme['config'] = Array();
|
2015-06-02 09:28:06 -04:00
|
|
|
|
2013-07-18 11:30:00 -04:00
|
|
|
$theme['config'][] = Array(
|
|
|
|
'title' => 'Title',
|
|
|
|
'name' => 'title',
|
|
|
|
'type' => 'text',
|
|
|
|
'default' => 'Catalog'
|
|
|
|
);
|
2015-06-02 09:28:06 -04:00
|
|
|
|
2013-07-18 11:30:00 -04:00
|
|
|
$__boards = listBoards();
|
|
|
|
$__default_boards = Array();
|
|
|
|
foreach ($__boards as $__board)
|
|
|
|
$__default_boards[] = $__board['uri'];
|
2015-06-02 09:28:06 -04:00
|
|
|
|
2013-07-18 11:30:00 -04:00
|
|
|
$theme['config'][] = Array(
|
|
|
|
'title' => 'Included boards',
|
|
|
|
'name' => 'boards',
|
|
|
|
'type' => 'text',
|
|
|
|
'comment' => '(space seperated)',
|
|
|
|
'default' => implode(' ', $__default_boards)
|
|
|
|
);
|
2015-06-02 09:28:06 -04:00
|
|
|
|
2013-07-18 11:30:00 -04:00
|
|
|
$theme['config'][] = Array(
|
2013-08-18 12:26:54 -04:00
|
|
|
'title' => 'Update on new posts',
|
|
|
|
'name' => 'update_on_posts',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'default' => false,
|
|
|
|
'comment' => 'Without this checked, the catalog only updates on new threads.'
|
|
|
|
);
|
|
|
|
|
2015-06-02 09:28:06 -04:00
|
|
|
$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.'
|
|
|
|
);
|
2014-04-29 18:13:04 -04:00
|
|
|
|
2015-06-02 09:28:06 -04:00
|
|
|
$theme['config'][] = Array(
|
2016-09-23 09:38:24 -04:00
|
|
|
'title' => 'Enable Rand catalog',
|
|
|
|
'name' => 'enable_rand',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'default' => false,
|
|
|
|
'comment' => 'Enable catalog for the Rand theme. This requires the Rand theme to be enabled.'
|
|
|
|
);
|
|
|
|
$theme['config'][] = Array(
|
2015-06-02 09:28:06 -04:00
|
|
|
'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.'
|
|
|
|
);
|
2014-04-29 18:13:04 -04:00
|
|
|
|
2013-07-18 11:30:00 -04:00
|
|
|
// Unique function name for building everything
|
|
|
|
$theme['build_function'] = 'catalog_build';
|
2015-06-02 09:28:06 -04:00
|
|
|
|