Categories theme v0.2
This commit is contained in:
parent
80c69a24cb
commit
c210cdbfea
@ -5,10 +5,10 @@
|
|||||||
$theme['name'] = 'Categories';
|
$theme['name'] = 'Categories';
|
||||||
// Description (you can use Tinyboard markup here)
|
// Description (you can use Tinyboard markup here)
|
||||||
$theme['description'] =
|
$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\'].';
|
Requires $config[\'boards\'] and $config[\'categories\'].';
|
||||||
$theme['version'] = 'v0.1';
|
$theme['version'] = 'v0.2';
|
||||||
|
|
||||||
// Theme configuration
|
// Theme configuration
|
||||||
$theme['config'] = Array();
|
$theme['config'] = Array();
|
||||||
|
@ -59,7 +59,11 @@
|
|||||||
. '<title>News</title>'
|
. '<title>News</title>'
|
||||||
. '</head><body>';
|
. '</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>';
|
. '<div class="title">' . ($settings['subtitle'] ? utf8tohtml($settings['subtitle']) : '') . '</div>';
|
||||||
|
|
||||||
$query = query("SELECT * FROM `news` ORDER BY `time` DESC") or error(db_error());
|
$query = query("SELECT * FROM `news` ORDER BY `time` DESC") or error(db_error());
|
||||||
@ -105,10 +109,16 @@
|
|||||||
. '</style>'
|
. '</style>'
|
||||||
. '<base target="main" />'
|
. '<base target="main" />'
|
||||||
. '<title>' . $settings['title'] . '</title>'
|
. '<title>' . $settings['title'] . '</title>'
|
||||||
|
. '<script type="text/javascript">'
|
||||||
|
. 'function removeFrames() {'
|
||||||
|
. 'parent.window.location = "' . $config['root'] . 'news.html"'
|
||||||
|
. '}'
|
||||||
|
. '</script>'
|
||||||
. '</head><body>';
|
. '</head><body>';
|
||||||
|
|
||||||
$body .= '<fieldset><legend>' . $settings['title'] . '</legend><ul>' .
|
$body .= '<fieldset><legend>' . $settings['title'] . '</legend><ul>' .
|
||||||
'<li><a class="system" href="news.html">[News]</a></li>' .
|
'<li><a class="system" href="news.html">[News]</a></li>' .
|
||||||
|
'<li><a class="system" href="javascript:removeFrames()">[Remove Frames]</a></li>' .
|
||||||
'</ul></fieldset>';
|
'</ul></fieldset>';
|
||||||
|
|
||||||
for($cat = 0; $cat < count($config['categories']); $cat++) {
|
for($cat = 0; $cat < count($config['categories']); $cat++) {
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 9.7 KiB |
Loading…
Reference in New Issue
Block a user