PHP Class Kirki_Fonts, kirki

Afficher le fichier Open project: aristath/kirki Class Usage Examples

Méthodes publiques

Свойство Type Description
$google_fonts null | object An array of our google fonts.
$mode string This is a todo item, not yet functional.

Méthodes publiques

Méthode Description
get_all_fonts ( ) : array Compile font options from different sources.
get_all_variants ( ) : array Returns an array of all available variants.
get_backup_fonts ( ) : array Return an array of backup fonts based on the font-category
get_font_choices ( ) : array Gets available options for a font.
get_google_font_subsets ( ) : array Returns an array of all available subsets.
get_google_font_uri ( ) Dummy function to avoid issues with backwards-compatibility.
get_google_fonts ( ) : array Return an array of all available Google Fonts.
get_instance ( ) : object Get the one, true instance of this class.
get_standard_fonts ( ) : array Return an array of standard websafe fonts.
is_google_font ( string $fontname ) : boolean Determine if a font-name is a valid google font or not.

Private Methods

Méthode Description
__construct ( ) The class constructor.

Method Details

get_all_fonts() public static méthode

Compile font options from different sources.
public static get_all_fonts ( ) : array
Résultat array All available fonts.

get_all_variants() public static méthode

Returns an array of all available variants.
public static get_all_variants ( ) : array
Résultat array

get_backup_fonts() public static méthode

Return an array of backup fonts based on the font-category
public static get_backup_fonts ( ) : array
Résultat array

get_font_choices() public static méthode

Gets available options for a font.
public static get_font_choices ( ) : array
Résultat array

get_google_font_subsets() public static méthode

Returns an array of all available subsets.
public static get_google_font_subsets ( ) : array
Résultat array

get_google_font_uri() public static méthode

This is not functional, but it will prevent PHP Fatal errors.
public static get_google_font_uri ( )

get_google_fonts() public static méthode

Return an array of all available Google Fonts.
public static get_google_fonts ( ) : array
Résultat array All Google Fonts.

get_instance() public static méthode

Prevents performance issues since this is only loaded once.
public static get_instance ( ) : object
Résultat object Kirki_Fonts

get_standard_fonts() public static méthode

Return an array of standard websafe fonts.
public static get_standard_fonts ( ) : array
Résultat array Standard websafe fonts.

is_google_font() public static méthode

Determine if a font-name is a valid google font or not.
public static is_google_font ( string $fontname ) : boolean
$fontname string The name of the font we want to check.
Résultat boolean

Property Details

$google_fonts public_oe static_oe property

An array of our google fonts.
public static null|object $google_fonts
Résultat null | object

$mode public_oe static_oe property

This is a todo item, not yet functional.
public static string $mode
Résultat string