mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
Issue 0000614: Display hits under thumbnails like comments counter
- Comments are not plurial < 2 - hits and comments have specific classes for css control git-svn-id: http://piwigo.org/svn/trunk@1769 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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';
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user