summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-12-02 18:26:09 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-12-02 18:26:09 +1100
commitbbb791039821637c045b2378383b0eb167063a27 (patch)
treef71854748ddca1e45a06244f7baebdb7c6209674 /inc
parente16a05cda7e59041eb2a3c4ffd144d0d89c19f83 (diff)
Created basis for mod dashboard
Diffstat (limited to 'inc')
-rw-r--r--inc/mod.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/inc/mod.php b/inc/mod.php
new file mode 100644
index 00000000..00f94544
--- /dev/null
+++ b/inc/mod.php
@@ -0,0 +1,25 @@
+<?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>';
+ }
+
+?> \ No newline at end of file