public function enqueue_scripts_and_styles() { wp_enqueue_script('jquery-multi-select', plugins_url('js/jquery.multi-select.js', __FILE__), array('jquery'), $this->script_version, true); $vars = array('default_backup_location' => ITSEC_Modules::get_default($this->id, 'location'), 'available_tables_label' => __('Tables for Backup', 'better-wp-security'), 'excluded_tables_label' => __('Excluded Tables', 'better-wp-security'), 'creating_backup_text' => __('Creating Backup...', 'better-wp-security')); wp_enqueue_script('itsec-backup-settings-page-script', plugins_url('js/settings-page.js', __FILE__), array('jquery', 'jquery-multi-select'), $this->script_version, true); wp_localize_script('itsec-backup-settings-page-script', 'itsec_backup', $vars); wp_enqueue_style('itsec-backup-settings-page-style', plugins_url('css/settings-page.css', __FILE__), array(), $this->script_version); }
public function enqueue_scripts_and_styles() { $vars = array('ip' => ITSEC_Lib::get_ip(), 'log_location' => ITSEC_Modules::get_default($this->id, 'log_location')); wp_enqueue_script('itsec-global-settings-page-script', plugins_url('js/settings-page.js', __FILE__), array('jquery'), $this->version, true); wp_localize_script('itsec-global-settings-page-script', 'itsec_global_settings_page', $vars); }