Clanbite Since 1.6.3
clanbite_render_component( string $slug, array $args = array() ): stringRender a component. Returns an empty string when it (or something it requires) is not available.
Parameters
$slug(string) RequiredComponent slug.
$args(array<string, mixed>) OptionalArguments for the component.
surface(where it is shown:feed,forums…) is understood by every component and becomes the classis-{surface};viewer_iddefaults to the current user.Default:
array()
Returns
string HTML as the component printed it (the provider escapes it).
Defined in inc/components.php
Changelog
| Version | Description |
|---|---|
| 1.6.3 | Introduced. |