43 lines
967 B
PHP
43 lines
967 B
PHP
|
<?php
|
||
|
$theme = array();
|
||
|
|
||
|
// Theme name
|
||
|
$theme['name'] = 'Catalog';
|
||
|
// Description (you can use Tinyboard markup here)
|
||
|
$theme['description'] = 'Show a post catalog.';
|
||
|
$theme['version'] = 'v0.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',
|
||
|
'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")'
|
||
|
);
|
||
|
|
||
|
// Unique function name for building everything
|
||
|
$theme['build_function'] = 'catalog_build';
|