diff options
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index da4d3ca06..e153258af 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -49,7 +49,7 @@ class BaseTheme { $output .= "<small>(". $this->links($terms) .")</small><br />"; } if ($main && $node->teaser) { - $output .= strip_tags(check_output($node->teaser, 1)); + $output .= check_output($node->teaser, 1); } else { $output .= check_output($node->body, 1); @@ -83,6 +83,22 @@ function theme_mark() { return "<span style=\"color: red;\">*</span>"; } +function theme_item_list($items = array(), $title = 0) { + /* + ** Return a formatted array of items. + */ + + if ($title) { + $output .= "<b>$title</b><br />"; + } + + foreach ($items as $item) { + $output .= "- $item<br />"; + } + + return $output; +} + function theme_error($message) { /* ** Return an error message. |