PHP Класс Kirki_Fonts, kirki

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$google_fonts null | object An array of our google fonts.
$mode string This is a todo item, not yet functional.

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
__construct ( ) The class constructor.

Описание методов

get_all_fonts() публичный статический Метод

Compile font options from different sources.
public static get_all_fonts ( ) : array
Результат array All available fonts.

get_all_variants() публичный статический Метод

Returns an array of all available variants.
public static get_all_variants ( ) : array
Результат array

get_backup_fonts() публичный статический Метод

Return an array of backup fonts based on the font-category
public static get_backup_fonts ( ) : array
Результат array

get_font_choices() публичный статический Метод

Gets available options for a font.
public static get_font_choices ( ) : array
Результат array

get_google_font_subsets() публичный статический Метод

Returns an array of all available subsets.
public static get_google_font_subsets ( ) : array
Результат array

get_google_font_uri() публичный статический Метод

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

get_google_fonts() публичный статический Метод

Return an array of all available Google Fonts.
public static get_google_fonts ( ) : array
Результат array All Google Fonts.

get_instance() публичный статический Метод

Prevents performance issues since this is only loaded once.
public static get_instance ( ) : object
Результат object Kirki_Fonts

get_standard_fonts() публичный статический Метод

Return an array of standard websafe fonts.
public static get_standard_fonts ( ) : array
Результат array Standard websafe fonts.

is_google_font() публичный статический Метод

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.
Результат boolean

Описание свойств

$google_fonts публичное статическое свойство

An array of our google fonts.
public static null|object $google_fonts
Результат null | object

$mode публичное статическое свойство

This is a todo item, not yet functional.
public static string $mode
Результат string