context['postId'] ) { return ''; } $contributors = Contributor\get_contributor_user_objects( Contributor\get_pledge_contributors( $block->context['postId'], 'publish' ) ); $is_truncated = isset( $attributes['className'] ) && str_contains( $attributes['className'], 'is-style-truncated' ); // Initialize count to zero for untruncated view. $count_more = 0; // Set avatar size at smallest usage in px. $avatar_size = 70; if ( $is_truncated ) { $count_more = count( $contributors ) - TRUNCATED_MAX; $contributors = array_splice( $contributors, 0, TRUNCATED_MAX ); $avatar_size = 30; } ?>