Facilitate styling of subboard listings

This commit is contained in:
Marcin Łabanowski 2012-12-22 20:14:43 +01:00 committed by Michael Foster
parent 22556f43f5
commit 7e0cec3d9d

View File

@ -25,7 +25,7 @@ function doBoardListPart($list, $root) {
$body = ''; $body = '';
foreach ($list as $board) { foreach ($list as $board) {
if (is_array($board)) if (is_array($board))
$body .= ' [' . doBoardListPart($board, $root) . '] '; $body .= ' <span class="sub">[' . doBoardListPart($board, $root) . ']</span> ';
else { else {
if (($key = array_search($board, $list)) && gettype($key) == 'string') { if (($key = array_search($board, $list)) && gettype($key) == 'string') {
$body .= ' <a href="' . $board . '">' . $key . '</a> /'; $body .= ' <a href="' . $board . '">' . $key . '</a> /';