Source code of Leftypol imageboard
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

42 lines
1.1 KiB

<?php
$theme = Array();
// Theme name
$theme['name'] = 'Categories';
// Description (you can use Tinyboard markup here)
$theme['description'] =
'Group-ordered, category-aware modification of the Frameset theme, with removable sidebar frame.
Requires $config[\'boards\'] and $config[\'categories\'].';
$theme['version'] = 'v0.2.1';
// Theme configuration
$theme['config'] = Array();
$theme['config'][] = Array(
'title' => 'Title',
'name' => 'title',
'type' => 'text'
);
$theme['config'][] = Array(
'title' => 'Slogan',
'name' => 'subtitle',
'type' => 'text'
);
// Unique function name for building everything
$theme['build_function'] = 'categories_build';
$theme['install_callback'] = 'categories_install';
if(!function_exists('categories_install')) {
function categories_install($settings) {
global $config;
if(!isset($config['boards']) || !isset($config['categories'])) {
return Array(false, '<h2>Prerequisites not met!</h2>' .
'This theme requires $config[\'boards\'] and $config[\'categories\'] to be set.');
}
}
}
?>