diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-11-09 13:59:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-11-09 13:59:36 +0000 |
commit | 562df8fe43f8794317c974dae463f5470cfdc497 (patch) | |
tree | 73d897d51f8b1873eff41193733d309495d01aea /includes/theme.inc | |
parent | 29adfb4086c8ef6102d9f22f5351382485444be5 (diff) | |
download | brdo-562df8fe43f8794317c974dae463f5470cfdc497.tar.gz brdo-562df8fe43f8794317c974dae463f5470cfdc497.tar.bz2 |
* Added Jeremy's pager:
"This is a simple, generic pager for Drupal-CVS. It is designed to be
easily themeable and expandable. The code is highly-commented to
enhance readability."
"Pagers are constructed by combining the provided pieces (all of which
can be easily modified to display the text or image you prefer) into
your custom pager."
* Statistics module fixes by Jeremy:
- removed superfluous check for existence of watchdog()
- saving changes in admin page displays status and returns same page
- no longer return 1971/01/01 in "view statistics" table
- switched from "!=" to "<>" in SQL queries for ANSI-SQL compliance
- switched from "MAX(timestamp) as timestamp" to "MAX(timestamp) as
max_timestamp" moving towards ANSI-SQL compliance.
* Added a "theme_item_list" function to format itemized lists. Also
changed a couple of modules to take advantage of it. Makes for a
more consistent UI.
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. |