Custom links in the board list
This commit is contained in:
parent
08c3edecc1
commit
fe9a8a1074
|
@ -410,12 +410,13 @@
|
||||||
$config['always_noko'] = false;
|
$config['always_noko'] = false;
|
||||||
|
|
||||||
// Boardlinks
|
// Boardlinks
|
||||||
// You can group, order and place the boardlist at the top of every page, using the following template.
|
// You can group, order and place the boardlist at the top of every page, using the following template.
|
||||||
//$config['boards'] = Array(
|
//$config['boards'] = Array(
|
||||||
// Array('a', 'b'),
|
// Array('a', 'b'),
|
||||||
// Array('c', 'd', 'e', 'f', 'g'),
|
// Array('c', 'd', 'e', 'f', 'g'),
|
||||||
// Array('h', 'i', 'j'),
|
// Array('h', 'i', 'j'),
|
||||||
// Array('k', Array('l', 'm'))
|
// Array('k', Array('l', 'm')),
|
||||||
|
// 'status' => 'http://status.example.org/'
|
||||||
//);
|
//);
|
||||||
|
|
||||||
?>
|
?>
|
|
@ -27,7 +27,11 @@
|
||||||
if(is_array($board))
|
if(is_array($board))
|
||||||
$body .= ' [' . doBoardListPart($board, $root) . '] ';
|
$body .= ' [' . doBoardListPart($board, $root) . '] ';
|
||||||
else {
|
else {
|
||||||
$body .= ' <a href="' . $root . $board . '/' . $config['file_index'] . '">' . $board . '</a> /';
|
if(($key = array_search($board, $list)) && gettype($key) == 'string') {
|
||||||
|
$body .= ' <a href="' . $board . '">' . $key . '</a> /';
|
||||||
|
} else {
|
||||||
|
$body .= ' <a href="' . $root . $board . '/' . $config['file_index'] . '">' . $board . '</a> /';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$body = preg_replace('/\/$/', '', $body);
|
$body = preg_replace('/\/$/', '', $body);
|
||||||
|
|
Loading…
Reference in New Issue