Clanbite Forums

class Forum_Icons

Icon lookup and rendering helpers for forum rows.

class final

Full name
Kernowdev\ClanbiteForums\Forums\Forum_Icons

Methods

  • all() Icons available for forums, keyed by namespaced name (collection/name).
  • display_fields() Display fields for a forum row, shared by REST and any server rendering.
  • get() One icon by name.
  • mask_url() CSS url() value that masks an element into the icon's shape (the glyph then takes the element's colour).
  • sanitize_name() Keep a submitted icon name only when it is an available icon.

Defined in inc/Forums/Forum_Icons.php