{{$allowRep = TRUE;}}
{{if $content}} {{if \IPS\Settings::i()->reaction_count_display == 'count'}} {{else}}
{{if $content->reactBlurb()}} {template="reactionBlurb" group="global" app="core" params="$content"} {{endif}}
{{endif}} {{if $content->canReact()}} {{$reactButton = NULL;}} {{$defaultReaction = NULL;}} {{foreach \IPS\Content\Reaction::roots() AS $id => $reaction}} {{if !$defaultReaction}} {{$defaultReaction = $reaction;}} {{endif}} {{if ( $content->reacted() !== FALSE && $reaction->id == $content->reacted()->id ) || ( $content->reacted() === FALSE )}} {{$reactButton = $reaction;}} {{break;}} {{endif}} {{endforeach}} {{if $allowRep}} {expression="\count( $content->reactions() )"} {{endif}} {{endif}} {{endif}}