Clanbite Since 1.3.0
clanbite_avatar_frame_svg( string $shape, array $opts = array() ): stringThe avatar frame: a border in the avatar's shape plus the XP ring (track and progress arc) inside it.
Used by the server-rendered and the Interactivity avatars. Options: – ring (bool): draw the ring track and progress arc. Default true when progress or bind is given. – progress (int): 0-100 fill of the ring (server rendering). – bind (string): Interactivity path of an avatar_badge object; the arc follows its dash and the ring hides with hide_ring.
Parameters
$shape(string) Requiredcircle,squareorhexagon.$opts(array<string, mixed>) OptionalOptions.
Default:
array()
Returns
string SVG markup (numbers and constants only; bind paths are escaped).
Defined in inc/avatar-helpers.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Introduced. |