# Social_Kit::avatar_html()

Markup for a player, team or group avatar, built by Clanbite core's shared avatar component.

Social Kit never draws its own avatars: shape, XP ring, rank badge and every `clanbite_avatar_*` filter come from core, and the
arguments here tell those filters where the avatar sits (`context`, `object_type`, `object_id`, `extension`, `context_data`);
the viewer is added by core. Falls back to a plain image on a Clanbite without `clanbite_render_avatar()`.

```php
avatar_html( string $type, int $id, string $fallback_url = '', array $args = array() ): string
```

## Parameters

- `$type` (string) `player`, `team` or `group`.
- `$id` (int) Entity ID.
- `$fallback_url` (string) Image used when the shared component is missing.
- `$args` (array<string, mixed>) Extra `clanbite_render_avatar()` arguments (`size`, `context`, `object_type`, `object_id`, `link`, `context_data`…).

## Return

`string` Avatar HTML, empty when there is nothing to show.

## Changelog

| Version | Description |
| --- | --- |
| 1.6.2 | Introduced |
