* * For frontend contexts where wp-admin CSS is unavailable, use this helper: * Jetpack_Spinner::render(); * * @package automattic/jetpack * @since 15.8 */ /** * Renders an inline SVG spinner matching the WordPress Core visual. */ class Jetpack_Spinner { /** * Returns the SVG markup for a spinner matching the WP Core Spinner visual: * a gray circle track with a rotating quarter-arc indicator. * * Uses for CSS-free animation, making it safe for * frontend contexts where wp-admin styles are not enqueued. * * @since 15.8 * * @param int $size Width and height in pixels. Default 24. * @return string SVG markup. */ public static function render( $size = 24 ) { return sprintf( '', (int) $size ); } }