1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 09:20:58 +01:00
vichan/inc/mod.php

25 lines
492 B
PHP
Raw Normal View History

2010-12-02 08:26:09 +01:00
<?php
// Generates a <ul> element with a list of linked
// boards and their subtitles.
function ulBoards() {
$body = '<ul>';
// List of boards
$boards = listBoards();
foreach($boards as &$b) {
$body .= '<li>' .
'<a href="?/' .
sprintf(BOARD_PATH, $b['uri']) . FILE_INDEX .
'">' .
sprintf(BOARD_ABBREVIATION, $b['uri']) .
'</a>' .
(isset($b['subtitle']) ? ' - ' . $b['subtitle'] : '') .
'</li>';
}
return $body . '</ul>';
}
?>