mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-29 15:53:06 +01:00
47 lines
1.2 KiB
PHP
47 lines
1.2 KiB
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.2';
|
|
|
|
// Theme configuration
|
|
$theme['config'] = Array();
|
|
|
|
$theme['config'][] = Array(
|
|
'title' => 'Title',
|
|
'name' => 'title',
|
|
'type' => 'text',
|
|
'default' => 'Catalog'
|
|
);
|
|
|
|
$theme['config'][] = Array(
|
|
'title' => 'Included boards',
|
|
'name' => 'boards',
|
|
'type' => 'text',
|
|
'comment' => '(space seperated)',
|
|
'default' => '*'
|
|
);
|
|
|
|
$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.'
|
|
);
|
|
|
|
$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';
|