leftypol/templates/themes/ukko/info.php

55 lines
1.4 KiB
PHP
Raw Normal View History

2013-01-02 17:40:30 +00:00
<?php
2014-04-30 15:24:11 +00:00
$theme = array();
2013-01-02 17:40:30 +00:00
// Theme name
2014-04-30 15:24:11 +00:00
$theme['name'] = 'Overboard (Ukko)';
2013-01-02 17:40:30 +00:00
// Description (you can use Tinyboard markup here)
$theme['description'] = 'Board with threads and messages from all boards';
2014-04-30 15:24:11 +00:00
$theme['version'] = 'v0.2';
2013-01-02 17:40:30 +00:00
// Theme configuration
2014-04-30 15:24:11 +00:00
$theme['config'] = array();
2013-01-02 17:40:30 +00:00
2014-04-30 15:24:11 +00:00
$theme['config'][] = array(
2013-01-02 17:40:30 +00:00
'title' => 'Board name',
'name' => 'title',
'type' => 'text',
'default' => 'Ukko'
);
2014-04-30 15:24:11 +00:00
$theme['config'][] = array(
2013-01-02 17:40:30 +00:00
'title' => 'Board URI',
'name' => 'uri',
'type' => 'text',
2014-04-30 15:24:11 +00:00
'default' => '*',
2013-01-02 17:40:30 +00:00
'comment' => '(ukko for example)'
);
2014-04-30 15:24:11 +00:00
$theme['config'][] = array(
2013-01-02 17:40:30 +00:00
'title' => 'Subtitle',
'name' => 'subtitle',
'type' => 'text',
'comment' => '(%s = thread limit. for example "%s freshly bumped threads")'
);
2014-04-30 15:24:11 +00:00
$theme['config'][] = array(
2013-01-02 17:40:30 +00:00
'title' => 'Excluded boards',
'name' => 'exclude',
'type' => 'text',
'comment' => '(space seperated)'
);
2014-04-30 15:24:11 +00:00
$theme['config'][] = array(
2013-01-02 17:40:30 +00:00
'title' => 'Number of threads',
'name' => 'thread_limit',
'type' => 'text',
'default' => '15',
);
// Unique function name for building everything
$theme['build_function'] = 'ukko_build';
$theme['install_callback'] = 'ukko_install';
if(!function_exists('ukko_install')) {
function ukko_install($settings) {
if (!file_exists($settings['uri']))
@mkdir($settings['uri'], 0777) or error("Couldn't create " . $settings['uri'] . ". Check permissions.", true);
}
}