diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-10-18 14:45:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-10-18 14:45:09 +0000 |
commit | 8d460b406dca3df18d55e49a208fd19de9f53a8e (patch) | |
tree | e45a2b6d02fbb76fb805665e68f6c9363e009e52 /includes | |
parent | 909d6928acb47cb9b50740e589b5e7447353e19c (diff) | |
download | brdo-8d460b406dca3df18d55e49a208fd19de9f53a8e.tar.gz brdo-8d460b406dca3df18d55e49a208fd19de9f53a8e.tar.bz2 |
- Patch #32573 by Moshe: added support for ordered lists to theme_item_list().
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 8 |
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; |