|
|
@ -1,34 +1,6 @@ |
|
|
|
<?php |
|
|
|
$theme = Array(); |
|
|
|
require 'info.php'; |
|
|
|
|
|
|
|
// Theme name |
|
|
|
$theme['name'] = 'Frameset'; |
|
|
|
// Description (you can use Tinyboard markup here) |
|
|
|
$theme['description'] = |
|
|
|
'Use a basic frameset layout, with a list of boards and pages on a sidebar to the left of the page. |
|
|
|
|
|
|
|
Users never have to leave the homepage; they can do all their browsing from the one page.'; |
|
|
|
$theme['version'] = 'v0.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'] = 'frameset_build'; |
|
|
|
|
|
|
|
if(!function_exists('frameset_build')) { |
|
|
|
function frameset_build($action, $settings) { |
|
|
|
// Possible values for $action: |
|
|
|
// - all (rebuild everything, initialization) |
|
|
@ -37,7 +9,6 @@ Users never have to leave the homepage; they can do all their browsing from the |
|
|
|
|
|
|
|
Frameset::build($action, $settings); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// Wrap functions in a class so they don't interfere with normal Tinyboard operations |
|
|
|
class Frameset { |
|
|
|