/home/techb158/primomovers.ca/wp-content/plugins/everest-forms/addons/CleanTalk
NameSizeModeActions
assets/-0755rm
Builder/-0755rm
Settings/-0755rm
CleanTalk.php44980644editdlrm
Edit: /home/techb158/primomovers.ca/wp-content/plugins/everest-forms/addons/CleanTalk/CleanTalk.php (4498B)
setup(); } /** * Setup the CleanTalk. * * @since 3.2.2 */ public function setup() { if ( ! is_admin() ) { return; } new Builder(); add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); } /** * Admin Enqueue Scripts. */ public function admin_enqueue_scripts() { $screen = get_current_screen(); $screen_id = $screen ? $screen->id : ''; $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; wp_register_script( 'everest-forms-clean-talk', plugins_url( "addons/CleanTalk/assets/js/admin/admin{$suffix}.js", EVF_PLUGIN_FILE ), array( 'jquery' ), EVF_VERSION, true ); wp_register_style( 'everest-forms-clean-talk-backward', plugins_url( 'addons/CleanTalk/assets/css/admin/backward.css', EVF_PLUGIN_FILE ), array(), EVF_VERSION ); wp_register_style( 'everest-forms-clean-talk-style', plugins_url( 'addons/CleanTalk/assets/css/admin/admin.css', EVF_PLUGIN_FILE ), array(), EVF_VERSION ); if ( 'everest-forms_page_evf-settings' === $screen_id || 'everest-forms_page_evf-builder' === $screen_id ) { if ( ! defined( 'EFP_PLUGIN_FILE' ) ) { wp_enqueue_style( 'everest-forms-clean-talk-backward' ); } wp_enqueue_script( 'everest-forms-clean-talk' ); wp_enqueue_style( 'everest-forms-clean-talk-style' ); wp_localize_script( 'everest-forms-clean-talk', 'everest_forms_clean_talk', array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'security' => wp_create_nonce( 'everest_forms_clean_talk_nonce' ), 'output' => $this->evf_get_popup_output(), ) ); } } /** * Get the output for the CleanTalk popup. * * @since 3.2.3 */ public function evf_get_popup_output() { $output = ''; $output .= '
'; $output .= '
'; $output .= ''; $output .= '
' . __( 'CleanTalk Access Key', 'everest-forms' ) . '
'; $output .= ''; $output .= '

'; $output .= __( 'Enter your CleanTalk REST API key from your ', 'everest-forms' ); $output .= '' . __( 'account dashboard here', 'everest-forms' ) . '.'; $output .= '

'; $output .= '
'; $output .= ''; $output .= ''; $output .= ''; $output .= '

Note : ' . __( 'This will update the CleanTalk Access Key globally. You can check here on ', 'everest-forms' ); $output .= '' . __( 'Settings > Security > Integration > CleanTalk', 'everest-forms' ) . '.

'; $output .= '
'; $output .= '
'; $output .= '
'; return $output; } }