2013-07-18 17:30:00 +02:00
|
|
|
<?php
|
|
|
|
$theme = array();
|
|
|
|
|
|
|
|
// Theme name
|
|
|
|
$theme['name'] = 'Catalog';
|
|
|
|
// Description (you can use Tinyboard markup here)
|
|
|
|
$theme['description'] = 'Show a post catalog.';
|
2014-04-30 00:13:04 +02:00
|
|
|
$theme['version'] = 'v0.2';
|
2013-07-18 17:30:00 +02:00
|
|
|
|
|
|
|
// 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',
|
|
|
|
'type' => 'text',
|
|
|
|
'comment' => '(space seperated)',
|
|
|
|
'default' => implode(' ', $__default_boards)
|
|
|
|
);
|
2014-04-05 23:04:46 +02:00
|
|
|
|
|
|
|
$theme['config'][] = Array(
|
|
|
|
'title' => 'Use all boards - ∞chan',
|
|
|
|
'name' => 'all',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'default' => false
|
|
|
|
);
|
2013-07-18 17:30:00 +02:00
|
|
|
|
2013-08-18 18:26:54 +02:00
|
|
|
$theme['config'][] = Array(
|
|
|
|
'title' => 'Update on new posts',
|
|
|
|
'name' => 'update_on_posts',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'default' => false,
|
|
|
|
'comment' => 'Without this checked, the catalog only updates on new threads.'
|
|
|
|
);
|
|
|
|
|
2014-04-30 00:13:04 +02:00
|
|
|
$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.'
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2013-07-18 17:30:00 +02:00
|
|
|
// Unique function name for building everything
|
|
|
|
$theme['build_function'] = 'catalog_build';
|