PHP 클래스 MC4WP_Form_Asset_Manager

파일 보기 프로젝트 열기: dannyvankooten/mailchimp-for-wordpress 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$dummy_printed boolean
$filename_suffix string
$load_scripts boolean

공개 메소드들

메소드 설명
__construct ( ) MC4WP_Form_Asset_Manager constructor.
before_output_form ( ) Load JavaScript files
get_active_stylesheets ( ) : array Get array of stylesheet handles which should be enqueued.
get_javascript_config ( ) : array Get configuration object for client-side use.
get_registered_stylesheets ( ) : array
get_stylesheet_url ( string $stylesheet ) : string
hook ( ) Add hooks
is_registered_stylesheet ( string $stylesheet ) : boolean
load_scripts ( ) Outputs the inline JavaScript that is used to enhance forms
load_stylesheets ( ) Load the various stylesheets
print_dummy_javascript ( ) Prints dummy JavaScript which allows people to call mc4wp.forms.on() before the JS is loaded.
register_assets ( ) Register the various JS files used by the plugin

메소드 상세

__construct() 공개 메소드

MC4WP_Form_Asset_Manager constructor.
public __construct ( )

before_output_form() 공개 메소드

Load JavaScript files
public before_output_form ( )

get_active_stylesheets() 공개 메소드

Get array of stylesheet handles which should be enqueued.
public get_active_stylesheets ( ) : array
리턴 array

get_javascript_config() 공개 메소드

Get configuration object for client-side use.
public get_javascript_config ( ) : array
리턴 array

get_registered_stylesheets() 공개 메소드

public get_registered_stylesheets ( ) : array
리턴 array

get_stylesheet_url() 공개 메소드

public get_stylesheet_url ( string $stylesheet ) : string
$stylesheet string
리턴 string

hook() 공개 메소드

Add hooks
public hook ( )

is_registered_stylesheet() 공개 메소드

public is_registered_stylesheet ( string $stylesheet ) : boolean
$stylesheet string
리턴 boolean

load_scripts() 공개 메소드

Outputs the inline JavaScript that is used to enhance forms
public load_scripts ( )

load_stylesheets() 공개 메소드

Load the various stylesheets
public load_stylesheets ( )

print_dummy_javascript() 공개 메소드

Prints dummy JavaScript which allows people to call mc4wp.forms.on() before the JS is loaded.

register_assets() 공개 메소드

Register the various JS files used by the plugin
사용 중단: 3.1.9
public register_assets ( )

프로퍼티 상세

$dummy_printed 보호되어 있는 프로퍼티

protected bool $dummy_printed
리턴 boolean

$filename_suffix 보호되어 있는 프로퍼티

protected string $filename_suffix
리턴 string

$load_scripts 보호되어 있는 프로퍼티

protected bool $load_scripts
리턴 boolean