PUM_Admin_Assets::maybe_localize_and_templates()
Description Description
Source Source
File: classes/Admin/Assets.php
public static function maybe_localize_and_templates() { if ( wp_script_is( 'pum-admin-general' ) || wp_script_is( 'popup-maker-admin' ) ) { // Register Templates. PUM_Admin_Templates::init(); } if ( wp_script_is( 'pum-admin-batch' ) ) { wp_localize_script( 'pum-admin-batch', 'pum_batch_vars', array( 'complete' => __( 'Your all set, the upgrades completed successfully!', 'popup-maker' ), 'unsupported_browser' => __( 'We are sorry but your browser is not compatible with this kind of file upload. Please upgrade your browser.', 'popup-maker' ), 'import_field_required' => 'This field must be mapped for the import to proceed.', ) ); } }
Expand full source code Collapse full source code View on Trac