Stat
Single metric displays and grouped stat rows. Use for hero numbers, dashboard KPIs, and marketing callouts.
Single Stat
50+
Workshops
120+
Exercises
1,000+
Facilitators
<?= ws_stat('50+', 'Workshops') ?>
<?= ws_stat('120+', 'Exercises', ['color' => '#E54D4D']) ?>
<?= ws_stat('1,000+', 'Facilitators', ['icon' => 'groups']) ?>Stats Group
Use ws_stats() to render a row of stats with dividers.
50+
Workshops
120+
Exercises
80+
Icebreakers
1,000+
Facilitators
<?= ws_stats([
['value' => '50+', 'label' => 'Workshops'],
['value' => '120+', 'label' => 'Exercises'],
['value' => '80+', 'label' => 'Icebreakers'],
['value' => '1,000+', 'label' => 'Facilitators'],
]) ?>With Color
50+
Workshops
120+
Exercises
80+
Icebreakers
With Icons
50+
Workshops
120+
Exercises
80+
Icebreakers
API Reference
ws_stat()
| Param | Type | Default | Description |
|---|---|---|---|
$value | string | required | Display value (e.g. "50+") |
$label | string | required | Label text |
color | string | null | Value color (hex or CSS var) |
icon | string | null | Material icon name |
id | string | null | Element ID |
class | string | '' | Additional CSS classes |
ws_stats()
| Param | Type | Default | Description |
|---|---|---|---|
$stats | array | required | Array of stat items (value, label, color, icon) |
id | string | null | Container ID |
class | string | '' | Additional CSS classes |