Clanbite Since 1.3.0

clanbite_avatar_frame_svg( string $shape, array $opts = array() ): string

The 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) Required

circle, square or hexagon.

$opts (array<string, mixed>) Optional

Options.

Default: array()

Returns

string SVG markup (numbers and constants only; bind paths are escaped).

Defined in inc/avatar-helpers.php

Changelog

VersionDescription
1.3.0Introduced.