diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-02-14 21:26:08 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-02-14 21:26:08 +1100 |
| commit | 5ea4de048a8371597fef2c33b0132084005976b1 (patch) | |
| tree | 310879297cb680fb7e547b8f6a79b57f832a2a91 /templates/themes/categories/info.php | |
| parent | de2238d55c9d647379c0b1ba277a4a45ad6fdec3 (diff) | |
categories theme v0.3
Diffstat (limited to 'templates/themes/categories/info.php')
| -rw-r--r-- | templates/themes/categories/info.php | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/templates/themes/categories/info.php b/templates/themes/categories/info.php index 108cc254..45b4d6f0 100644 --- a/templates/themes/categories/info.php +++ b/templates/themes/categories/info.php @@ -7,14 +7,14 @@ $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'; +Requires $config[\'categories\'].'; + $theme['version'] = 'v0.2.2'; // Theme configuration $theme['config'] = Array(); $theme['config'][] = Array( - 'title' => 'Title', + 'title' => 'Site title', 'name' => 'title', 'type' => 'text' ); @@ -22,18 +22,43 @@ Requires $config[\'boards\'] and $config[\'categories\'].'; $theme['config'][] = Array( 'title' => 'Slogan', 'name' => 'subtitle', - 'type' => 'text' + 'type' => 'text', + 'comment' => '(optional)' + ); + + $theme['config'][] = Array( + 'title' => 'Main HTML file', + 'name' => 'file_main', + 'type' => 'text', + 'default' => $config['file_index'], + 'comment' => '(eg. "index.html")' + ); + + $theme['config'][] = Array( + 'title' => 'Sidebar file', + 'name' => 'file_sidebar', + 'type' => 'text', + 'default' => 'sidebar.html', + 'comment' => '(eg. "sidebar.html")' + ); + + $theme['config'][] = Array( + 'title' => 'News file', + 'name' => 'file_news', + 'type' => 'text', + 'default' => 'news.html', + 'comment' => '(eg. "news.html")' ); // 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'])) { + if(!isset($config['categories'])) { return Array(false, '<h2>Prerequisites not met!</h2>' . 'This theme requires $config[\'boards\'] and $config[\'categories\'] to be set.'); } |
