0, 'hidden' => static function (): bool { $context = wp_interactivity_get_context(); return empty( $context['showZero'] ); }, ] ); $wrapper = get_block_wrapper_attributes( [ 'class' => 'rooster-badge rooster-badge--wishlist rooster-action rooster-action--wishlist' . ( Rooster\Core\Blocks::labeled( 'wishlist' ) ? ' rooster-action--labeled' : '' ), 'data-wp-interactive' => 'rooster/wishlist', 'data-wp-context' => wp_json_encode( [ 'showZero' => ! empty( $attributes['showZero'] ) || Rooster\Core\Blocks::badge_zero() ] ), ] ); AIEO_Engine_Blocks::out( sprintf( '%4$s%5$s', $wrapper, $href, esc_attr( $label ), rooster_icon( method_exists( 'Rooster\Core\HeaderActions', 'icon' ) ? Rooster\Core\HeaderActions::icon( 'heart' ) : 'heart', [ 'width' => 22, 'height' => 22 ] ), esc_html( $label ) ) );