Clanbite Components Since 1.6.3
A player, team or group avatar with its shape, XP ring and rank badge.
- Slug
avatar- Provider
- clanbite
- Version
- 1.0.0
Arguments
| Argument | Description |
|---|---|
type | player, team or group. |
id | Entity ID. |
size | large, medium, small or a size slug. |
context | Where it is shown; added as the class is-{context}. |
mode | "static" (default) or "interactive" for Interactivity API templates. |
object_type | What it sits in (post, reply, notification…). |
extension | Slug of the extension rendering it. |
Use it
echo clanbite_render_component( 'avatar', array( /* arguments */ ) );
clanbite_enqueue_component( 'avatar' );Defined in inc/components.php
Changelog
| Version | Description |
|---|---|
| 1.6.3 | Introduced. |