PHP 클래스 Kirki_Fonts_Google, kirki

파일 보기 프로젝트 열기: aristath/kirki 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$force_load_all_subsets boolean If set to true, forces loading ALL subsets.
$force_load_all_variants boolean If set to true, forces loading ALL variants.

공개 메소드들

메소드 설명
enqueue ( ) Calls all the other necessary methods to populate and create the link.
get_instance ( ) : object Get the one, true instance of this class.

비공개 메소드들

메소드 설명
__construct ( ) The class constructor.
create_link ( ) Creates the google-fonts link.
generate_google_font ( array $args ) Processes the arguments of a field determines if it's a typography field and if it is, then takes appropriate actions.
loop_fields ( ) Goes through all our fields and then populates the $this->fonts property.
process_fonts ( ) Determines the vbalidity of the selected font as well as its properties.

메소드 상세

enqueue() 공개 메소드

Calls all the other necessary methods to populate and create the link.
public enqueue ( )

get_instance() 공개 정적인 메소드

Prevents performance issues since this is only loaded once.
public static get_instance ( ) : object
리턴 object Kirki_Fonts_Google

프로퍼티 상세

$force_load_all_subsets 공개적으로 정적으로 프로퍼티

If set to true, forces loading ALL subsets.
public static bool $force_load_all_subsets
리턴 boolean

$force_load_all_variants 공개적으로 정적으로 프로퍼티

If set to true, forces loading ALL variants.
public static bool $force_load_all_variants
리턴 boolean