Clanbite Social Kit Since 1.6.2
summary( array $args ): stringThe reaction chips for one object, each with a tooltip naming the reaction, its count and who reacted.
public static
Class: Kernowdev\ClanbiteSocialKit\Social\Reaction_Markup
Parameters
$args(array<string, mixed>) RequiredChip arguments.
$prefixstringBEM block. Required.$surfacestringWhere it is shown (feed,forums…): added as the classis-{surface}on the wrapper and tooltips, for per-surface styling.$itemstringContext path of the object holdingreactions_displayandreactions_count. Required.$chip_aliasstringdata-wp-eachalias for a chip (defaultrx).$reactor_aliasstringAlias for a reactor (defaultru).$togglestringStore action that opens/closes a chip's tooltip on click. Required.$popover_hiddenstringBinding that hides the tooltip. Required.$reactors_hiddenstringBinding that hides the reactor row. Required.$dropdown_classstringTooltip class suffix (defaultsimple-dropdown; Forums usesreaction-dropdown).$hoverarray<string, string>Optional hover actions:enterandleavestore actions on each chip.$word_bindingstringBinding for the word after the count ("reactions"); empty uses a translated string.$count_in_chipboolPrint the count inside the chip (Forums) instead of only a total after the chips.$contextstringAvatar context for reactors (defaultreactions).$extensionstringAvatarextension(the plugin rendering it).$summary_classstringExtra class on the wrapper (e.g.…__reaction-summary--reply).
Returns
string HTML (already escaped).
Defined in inc/Social/Reaction_Markup.php
Changelog
| Version | Description |
|---|---|
| 1.6.2 | Introduced. |