summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/theme.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index ba2051ff7..b90d6505e 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -862,21 +862,23 @@ function theme_stylesheet_import($path, $media = 'all') {
* An array of items to be displayed in the list.
* @param $title
* The title of the list.
+ * @param $type
+ * The type of list to return (e.g. "ul", "ol")
* @return
* A string containing the list output.
*/
-function theme_item_list($items = array(), $title = NULL) {
+function theme_item_list($items = array(), $title = NULL, $type = 'ul') {
$output = '<div class="item-list">';
if (isset($title)) {
$output .= '<h3>'. $title .'</h3>';
}
if (isset($items)) {
- $output .= '<ul>';
+ $output .= "<$type>";
foreach ($items as $item) {
$output .= '<li>'. $item .'</li>';
}
- $output .= '</ul>';
+ $output .= "</$type>";
}
$output .= '</div>';
return $output;