Render a count of ratings
Usage
// basic usage
$string = $commentStars->renderCount(int $count);
// usage with all arguments
$string = $commentStars->renderCount(int $count, $stars = 0, string $schema = '');
Arguments
Name | Type(s) | Description |
---|---|---|
count | int | |
stars (optional) | float, int | |
schema (optional) | string | May be "rdfa" or "microdata" or blank (default) to omit. |
Return value
string
CommentStars methods and properties
API reference based on ProcessWire core version 3.0.244