' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . ''; } /** Single-colour mark with no tile, for the dashboard menu; centred in a square box. */ public static function glyph( string $fill = self::MENU ): string { $fill = preg_match( '/^#[0-9a-fA-F]{3,8}$/', $fill ) ? $fill : self::MENU; return '' . '' . ''; } /** The menu icon as a data: URI, in the colour WordPress uses for menu icons. */ public static function menu_icon(): string { return 'data:image/svg+xml;base64,' . base64_encode( self::glyph() ); } /** The mark as a data: URI. */ public static function mark_uri(): string { return 'data:image/svg+xml;base64,' . base64_encode( self::mark() ); } }