diff options
| author | Michael D. Reiley <mreiley@omegasdg.com> | 2011-09-22 14:47:19 -0700 |
|---|---|---|
| committer | Michael D. Reiley <mreiley@omegasdg.com> | 2011-09-22 14:47:19 -0700 |
| commit | c210cdbfea79834873a78f114f5c33e161cfe140 (patch) | |
| tree | 35b0425b32654539f86330982ea6e99aeda2b2e7 /templates | |
| parent | 80c69a24cbc707ccee142d012b09f86d418023e0 (diff) | |
Categories theme v0.2
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/themes/categories/info.php | 4 | ||||
| -rw-r--r-- | templates/themes/categories/theme.php | 12 | ||||
| -rw-r--r-- | templates/themes/categories/thumb.png | bin | 8442 -> 9965 bytes |
3 files changed, 13 insertions, 3 deletions
diff --git a/templates/themes/categories/info.php b/templates/themes/categories/info.php index d0cedb13..3718344c 100644 --- a/templates/themes/categories/info.php +++ b/templates/themes/categories/info.php @@ -5,10 +5,10 @@ $theme['name'] = 'Categories'; // Description (you can use Tinyboard markup here) $theme['description'] = -'Group-ordered, category-aware modification of the Frameset theme. +'Group-ordered, category-aware modification of the Frameset theme, with removable sidebar frame. Requires $config[\'boards\'] and $config[\'categories\'].'; - $theme['version'] = 'v0.1'; + $theme['version'] = 'v0.2'; // Theme configuration $theme['config'] = Array(); diff --git a/templates/themes/categories/theme.php b/templates/themes/categories/theme.php index f625fe79..393ad5bd 100644 --- a/templates/themes/categories/theme.php +++ b/templates/themes/categories/theme.php @@ -59,7 +59,11 @@ . '<title>News</title>' . '</head><body>'; - $body .= '<h1>' . $settings['title'] . '</h1>' + $boardlist = createBoardlist(); + + $body .= $boardlist['top'] + + . '<h1>' . $settings['title'] . '</h1>' . '<div class="title">' . ($settings['subtitle'] ? utf8tohtml($settings['subtitle']) : '') . '</div>'; $query = query("SELECT * FROM `news` ORDER BY `time` DESC") or error(db_error()); @@ -105,10 +109,16 @@ . '</style>' . '<base target="main" />' . '<title>' . $settings['title'] . '</title>' + . '<script type="text/javascript">' + . 'function removeFrames() {' + . 'parent.window.location = "' . $config['root'] . 'news.html"' + . '}' + . '</script>' . '</head><body>'; $body .= '<fieldset><legend>' . $settings['title'] . '</legend><ul>' . '<li><a class="system" href="news.html">[News]</a></li>' . + '<li><a class="system" href="javascript:removeFrames()">[Remove Frames]</a></li>' . '</ul></fieldset>'; for($cat = 0; $cat < count($config['categories']); $cat++) { diff --git a/templates/themes/categories/thumb.png b/templates/themes/categories/thumb.png Binary files differindex 4326ee35..35d747e2 100644 --- a/templates/themes/categories/thumb.png +++ b/templates/themes/categories/thumb.png |
