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

ArgumentDescription
typeplayer, team or group.
idEntity ID.
sizelarge, medium, small or a size slug.
contextWhere it is shown; added as the class is-{context}.
mode"static" (default) or "interactive" for Interactivity API templates.
object_typeWhat it sits in (post, reply, notification…).
extensionSlug of the extension rendering it.

Use it

echo clanbite_render_component( 'avatar', array( /* arguments */ ) );
clanbite_enqueue_component( 'avatar' );

Defined in inc/components.php

Changelog

VersionDescription
1.6.3Introduced.