# clanbite_avatar_frame_svg()

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`.

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

## Parameters

- `$shape` (string) `circle`, `square` or `hexagon`.
- `$opts` (array<string, mixed>) Options.

## Return

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

## Changelog

| Version | Description |
| --- | --- |
| 1.3.0 | Introduced |
