diff options
Diffstat (limited to '')
-rw-r--r-- | include/functions_html.inc.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 48c05ea06..53690211b 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -718,4 +718,17 @@ function set_status_header($code, $text='') header("Status: $code $text"); trigger_action('set_status_header', $code, $text); } + +/** + * set a class to display a counter + * .zero .one .2nmore + */ +function set_span_class($count) +{ + if ($count > 1) + { + return '2nmore'; + } + return ( $count == 0 ) ? 'zero':'one'; +} ?> |