Method |
Description |
|
__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 |
|