Changeset 2932855
- Timestamp:
- 07/01/2023 08:49:02 AM (3 years ago)
- Location:
- wpcf7-redirect/tags/2.9.0
- Files:
-
- 6 edited
-
build/js/wpcf7-redirect-backend-script.js (modified) (2 diffs)
-
class-wpcf7-redirect.php (modified) (4 diffs)
-
classes/class-wpcf7r-form-helper.php (modified) (12 diffs)
-
classes/class-wpcf7r-form.php (modified) (1 diff)
-
templates/fields/field-debug-log.php (modified) (2 diffs)
-
wpcf7r-functions.php (modified) (19 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpcf7-redirect/tags/2.9.0/build/js/wpcf7-redirect-backend-script.js
r2865253 r2932855 444 444 //reset all plugin settings 445 445 $(document.body).on('click', this.reset_all_button, this.reset_all_settings.bind(this)); 446 //show pro banner 447 $(document.body).on('click', this.tab_actions_selector, this.show_pro_banner.bind(this)); 448 //submit pro banner ajax request 449 $(document.body).on('click', this.pro_banner_submit_btn_selector, this.ajax_get_coupon.bind(this)); 450 //submit pro banner get a coupon request when clicking enter key 451 $(document.body).on('keyup', this.pro_banner_user_email_selector, this.pro_banner_user_email_keyup.bind(this)); 446 452 447 //pro banner close 453 448 $(document.body).on('click', this.pro_banner_close_selector, this.pro_banner_close.bind(this)); … … 1188 1183 } 1189 1184 }); 1190 }1191 1192 /**1193 * Show PRO Banner1194 */1195 this.show_pro_banner = function (e) {1196 window.setTimeout(function () {1197 $('.rp-overlay').addClass('active');1198 }, 500);1199 }1200 1201 /**1202 * Send pro banner ajax request when clicking 'enter' key1203 */1204 this.pro_banner_user_email_keyup = function (e) {1205 e.stopPropagation();1206 if (e.key === 'Enter' || e.keyCode === 13) {1207 e.preventDefault();1208 this.ajax_get_coupon();1209 }1210 }1211 1212 /**1213 * PRO Banner ajax request - get a coupon request1214 */1215 this.ajax_get_coupon = function (e) {1216 $('.rp-form-message').html('<span class="rp-loader-wrap"><span class="rp-loader"></span></span>');1217 var get_offers = $('[name="rp_get_offers"]').prop("checked") == true ? '1' : '0';1218 $.ajax({1219 type: 'POST',1220 dataType: 'json',1221 url: ajaxurl,1222 data: {1223 action: 'get_coupon',1224 wpcf7r_nonce: wpcf_get_nonce(),1225 data: {1226 email: $('[name="rp_user_email"]').val(),1227 get_offers: get_offers1228 }1229 },1230 success: function (results) {1231 if (!results.url) {1232 $('.rp-form-message').html('<span class="rp-form-message-text ' + results.status + '">' + results.message + '</span>');1233 } else {1234 location.href = results.url;1235 }1236 }1237 });1238 }1239 /**1240 * Close pro banner1241 */1242 this.pro_banner_close = function (e) {1243 e.preventDefault();1244 sign = window.location.href.indexOf("?") > -1 ? '&' : '?';1245 location.href = window.location.href + sign + 'wpcf7_redirect_dismiss_banner=1';1246 1185 } 1247 1186 this.init(); -
wpcf7-redirect/tags/2.9.0/class-wpcf7-redirect.php
r2865253 r2932855 1 1 <?php 2 2 /** 3 * Main Contact Form 7 Redirect Class 3 * The admin-specific functionality of the plugin. 4 * 5 * @link https://redirection-for-contact-form7.com/ 6 * @since 1.0.0 7 * 8 * @package Wpcf7_Redirect 9 * @subpackage Wpcf7_Redirect 10 */ 11 12 /** 13 * The admin-specific functionality of the plugin. 14 * 15 * Defines the plugin name, version, and two examples hooks for how to 16 * enqueue the admin-specific stylesheet and JavaScript. 17 * 18 * @package Wpcf7_Redirect 19 * @subpackage Wpcf7_Redirect 20 * @author Lior Regev <regevlio@gmail.com> 4 21 */ 5 22 class Wpcf7_Redirect { 23 24 /** 25 * Instance of the main plugin class object. 26 * 27 * @var [object] 28 */ 29 public $cf7_redirect_base; 30 31 /** 32 * Constructor 33 */ 6 34 public function init() { 7 35 $this->define(); … … 16 44 */ 17 45 public function load_dependencies() { 18 // Load all actions 46 // Load all actions. 19 47 foreach ( glob( WPCF7_PRO_REDIRECT_BASE_PATH . 'modules/*.php' ) as $filename ) { 20 require_once ( $filename );48 require_once $filename; 21 49 } 22 require_once ( WPCF7_PRO_REDIRECT_CLASSES_PATH . 'class-wpcf7r-base.php' );50 require_once WPCF7_PRO_REDIRECT_CLASSES_PATH . 'class-wpcf7r-base.php'; 23 51 } 24 52 … … 28 56 public function notice_to_remove_old_plugin() { 29 57 if ( ! function_exists( 'is_plugin_active' ) ) { 30 include_once ( ABSPATH . 'wp-admin/includes/plugin.php' );58 include_once ABSPATH . 'wp-admin/includes/plugin.php'; 31 59 } 32 60 if ( is_plugin_active( 'cf7-to-api/cf7-to-api.php' ) ) { … … 57 85 define( 'WPCF7_PRO_REDIRECT_BASE_PATH', plugin_dir_path( __FILE__ ) ); 58 86 define( 'WPCF7_PRO_REDIRECT_BASE_URL', plugin_dir_url( __FILE__ ) ); 59 define( 'WPCF7_PRO_REDIRECT_PLUGINS_PATH', plugin_dir_path( dirname( __FILE__ )) );87 define( 'WPCF7_PRO_REDIRECT_PLUGINS_PATH', plugin_dir_path( __DIR__ ) ); 60 88 define( 'WPCF7_PRO_REDIRECT_TEMPLATE_PATH', WPCF7_PRO_REDIRECT_BASE_PATH . 'templates/' ); 61 89 define( 'WPCF7_PRO_REDIRECT_ACTIONS_TEMPLATE_PATH', WPCF7_PRO_REDIRECT_CLASSES_PATH . 'actions/html/' ); -
wpcf7-redirect/tags/2.9.0/classes/class-wpcf7r-form-helper.php
r2865253 r2932855 12 12 */ 13 13 class WPCF7r_Form_Helper { 14 15 /** 16 * The plugin url. 17 * 18 * @var string 19 */ 20 public $plugin_url = ''; 21 22 /** 23 * The plugin assets js lib url. 24 * 25 * @var string 26 */ 27 public $assets_js_lib = ''; 28 29 /** 30 * The plugin assets js url. 31 * 32 * @var string 33 */ 34 public $assets_js_url = ''; 35 36 /** 37 * The plugin assets css url. 38 * 39 * @var string 40 */ 41 public $assets_css_url = ''; 42 43 /** 44 * The plugin build js url. 45 * 46 * @var string 47 */ 48 public $build_js_url = ''; 49 50 /** 51 * The plugin build css url. 52 * 53 * @var string 54 */ 55 public $build_css_url = ''; 56 57 /** 58 * The plugin extensions. 59 * 60 * @var string 61 */ 62 public $extensions = ''; 14 63 15 64 /** … … 25 74 $this->build_css_url = WPCF7_PRO_REDIRECT_BASE_URL . 'build/css/'; 26 75 $this->extensions = wpcf7_get_extensions(); 76 27 77 $this->add_actions(); 28 29 78 } 30 79 … … 33 82 */ 34 83 private function add_actions() { 35 36 global $pagenow;37 38 84 add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) ); 39 85 add_action( 'wpcf7_editor_panels', array( $this, 'add_panel' ) ); … … 43 89 // add contact form scripts for admin panel. 44 90 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_backend' ) ); 45 add_action( 'wp_ajax_activate_wpcf7r_extension', array( $this, 'activate_extension' ) );46 add_action( 'wp_ajax_deactivate_wpcf7r_extension', array( $this, 'deactivate_plugin_license' ) );47 add_action( 'wp_ajax_get_coupon', array( $this, 'get_coupon' ) );48 add_action( 'wpcf7_admin_notices', array( $this, 'render_discount_banner' ), 15, 3 );49 add_action( 'admin_init', array( $this, 'dismiss_ads' ) );50 91 } 51 92 … … 61 102 62 103 return $extention_object; 63 64 } 65 66 /** 67 * Deactivate plugin license. 68 * 69 * @return void 70 */ 71 public function deactivate_plugin_license() { 72 73 $results = array(); 74 75 if ( current_user_can( 'wpcf7_edit_contact_form' ) && wpcf7_validate_nonce() ) { 76 if ( ! isset( $_POST['extension_name'] ) ) { 77 78 $results = array( 79 'message' => __( 'Missing name or serial', 'wpcf7-redirect' ), 80 ); 81 82 } else { 83 84 $extentsion_settings = $this->extensions[ $_POST['extension_name'] ]; 85 86 if ( $extentsion_settings ) { 87 $extentsion = new WPCF7R_Extension( $extentsion_settings ); 88 $results = $extentsion->deactivate_license(); 89 } 90 } 91 } 92 93 wp_send_json( $results ); 94 95 } 96 97 /** 98 * Activate extension license. 99 * 100 * @return void 101 */ 102 public function activate_extension() { 103 if ( current_user_can( 'wpcf7_edit_contact_form' ) && wpcf7_validate_nonce() ) { 104 if ( ! isset( $_POST['extension_name'] ) || ! isset( $_POST['serial'] ) ) { 105 $results = array( 106 'message' => __( 'Missing name or serial', 'wpcf7-redirect' ), 107 ); 108 } else { 109 110 $extentsion_settings = $this->extensions[ $_POST['extension_name'] ]; 111 112 if ( $extentsion_settings ) { 113 $extentsion = new WPCF7R_extension( $extentsion_settings ); 114 $serial = sanitize_text_field( $_POST['serial'] ); 115 $results = $extentsion->activate( $serial ); 116 } else { 117 $results['extension_html'] = __( 'Somthing went wrong', 'wpcf7-redirect' ); 118 } 119 } 120 121 wp_send_json( $results ); 122 } 123 } 124 125 /** 126 * Dismiss plugin ads 127 */ 128 public function dismiss_ads() { 129 130 if ( isset( $_GET['wpcf7_redirect_dismiss_banner'] ) && '1' === $_GET['wpcf7_redirect_dismiss_banner'] ) { 131 $banner_version = wpcf7r_get_banner_version() ? wpcf7r_get_banner_version() : 1; 132 133 update_option( 'wpcf7_redirect_dismiss_banner', $banner_version ); 134 } 135 136 } 104 } 105 137 106 138 107 /** … … 141 110 public function front_end_scripts() { 142 111 143 wp_register_style( 'wpcf7-redirect-script-frontend', $this->build_css_url . 'wpcf7-redirect-frontend.min.css', '1.1' );112 wp_register_style( 'wpcf7-redirect-script-frontend', $this->build_css_url . 'wpcf7-redirect-frontend.min.css', array(), '1.1' ); 144 113 wp_enqueue_style( 'wpcf7-redirect-script-frontend' ); 114 145 115 wp_register_script( 'wpcf7-redirect-script', $this->build_js_url . 'wpcf7r-fe.js', array( 'jquery' ), '1.1', true ); 146 116 wp_enqueue_script( 'wpcf7-redirect-script' ); … … 156 126 } 157 127 158 // add support for other plugins128 // Add support for other plugins. 159 129 do_action( 'wpcf7_redirect_enqueue_frontend', $this ); 160 130 } … … 187 157 */ 188 158 public function load_textdomain() { 189 load_plugin_textdomain( 'wpcf7-redirect', false, basename( dirname( __FILE__ )) . '/lang' );159 load_plugin_textdomain( 'wpcf7-redirect', false, basename( __DIR__ ) . '/lang' ); 190 160 } 191 161 … … 276 246 277 247 /** 278 * Handler to retrive banner to display279 * At the moment used to display the pro version bannner280 */281 public function banner() {282 $banner_manager = new Banner_Manager();283 $banner_manager->show_banner();284 }285 286 /**287 248 * Create the panel inputs. 288 249 * … … 297 258 298 259 /** 299 * Manage contact form 7 redirection pro extensions 300 * 301 * @param object $cf7 - Contact form 7 post object. 302 */ 303 public function extensions_manager( $cf7 ) { 304 305 $this->extensions_manager = $this->get_extension_manager(); 306 $this->extensions_manager->init(); 307 308 } 309 310 /** 311 * Get extension manager instance 312 * 313 * @return object - extensions manager object. 314 */ 315 public function get_extension_manager() { 316 return isset( $this->extensions_manager ) ? $this->extensions_manager : new WPCF7R_Extensions(); 317 } 318 319 /** 320 * Display debug tab on contact form 321 * 322 * @param $cf7 - Contact form 7 post object. 260 * Display debug tab on contact form. 261 * 262 * @param [type] $cf7 - contact form 7 post object. 323 263 * @return void 324 264 */ 325 265 public function wpcf7_debug( $cf7 ) { 326 327 global $wp_version;328 329 266 $form_json = self::get_debug_data( $cf7->id() ); 330 267 331 echo '<h3>' . __( 'Debug Information', 'wpcf7-redirect' ) . '</h3>'; 332 echo '<div>' . __( 'The debug information includes the following details', 'wpcf7-redirect' ) . '</div><ul>'; 333 echo '<li>' . __( 'Form post data.', 'wpcf7-redirect' ) . '</li>'; 334 echo '<li>' . __( 'Actions post data.', 'wpcf7-redirect' ) . '</li>'; 335 echo '<li>' . __( 'PHP Version', 'wpcf7-redirect' ) . '</li>'; 336 echo '<li>' . __( 'Installed plugins list', 'wpcf7-redirect' ) . '</li>'; 337 echo '<li>' . __( 'WordPress Version', 'wpcf7-redirect' ) . '</li>'; 338 echo '</ul>'; 339 echo '<div style="color:red;font-size:18px;margin-bottom:20px;">' . __( 'The data is used for debug purposes only!', 'wpcf7-redirect' ) . '</div>'; 340 echo "<div><textarea style='width:100%;height:200px;margin-bottom:40px;font-size:11px'>{$form_json}</textarea><br/></div>"; 341 echo '<input type="submit" class="button button-primary send-debug-info" value="Send Debug Report"/><br/><br/>'; 342 echo '<label><input type="checkbox" class="approve-debug" /> I approve sending debug information to Query Solutions support team.</label>'; 343 344 } 345 346 /** 347 * Get encoded debug data 348 * 349 * @param $form_id - contact form 7 ID. 350 * @return void 268 $output = '<h3>' . __( 'Debug Information', 'wpcf7-redirect' ) . '</h3>'; 269 $output = '<div>' . __( 'The debug information includes the following details', 'wpcf7-redirect' ) . '</div><ul>'; 270 $output = '<li>' . __( 'Form post data.', 'wpcf7-redirect' ) . '</li>'; 271 $output = '<li>' . __( 'Actions post data.', 'wpcf7-redirect' ) . '</li>'; 272 $output = '<li>' . __( 'PHP Version', 'wpcf7-redirect' ) . '</li>'; 273 $output = '<li>' . __( 'Installed plugins list', 'wpcf7-redirect' ) . '</li>'; 274 $output = '<li>' . __( 'WordPress Version', 'wpcf7-redirect' ) . '</li>'; 275 $output = '</ul>'; 276 $output = '<div style="color:red;font-size:18px;margin-bottom:20px;">' . __( 'The data is used for debug purposes only!', 'wpcf7-redirect' ) . '</div>'; 277 $output = "<div><textarea style='width:100%;height:200px;margin-bottom:40px;font-size:11px'>{$form_json}</textarea><br/></div>"; 278 $output = '<input type="submit" class="button button-primary send-debug-info" value="Send Debug Report"/><br/><br/>'; 279 $output = '<label><input type="checkbox" class="approve-debug" /> I approve sending debug information to Query Solutions support team.</label>'; 280 281 echo esc_html( $output ); 282 } 283 284 /** 285 * Get encoded debug data. 286 * 287 * @param [string] $form_id - the id of the contact form 7 post. 288 * @return [json_object] - the encoded debug data. 351 289 */ 352 290 public static function get_debug_data( $form_id ) { … … 373 311 374 312 /** 375 * Render discount banner376 *377 * @param [object] $page - the current page.378 * @param [object] $action - the required action.379 * @param [object] $object - contact form 7 object.380 */381 public function render_discount_banner( $page, $action, $object ) {382 383 if ( 'edit' === $action ) {384 $banner_version_dismissed = get_option( 'wpcf7_redirect_dismiss_banner' );385 $banner = wpcf7r_get_discount_banner();386 387 if ( $banner ) {388 update_option( 'wpcf7r_banner_version', $banner->version );389 390 if ( ! $banner_version_dismissed && wpcf7r_get_banner_version() !== $banner_version_dismissed ) {391 echo $banner->banner;392 }393 }394 }395 }396 397 /**398 313 * Returns an html for displaying a link to the form. 399 314 * … … 413 328 } 414 329 415 /**416 * Get coupon ajax function417 */418 public function get_coupon() {419 $results = array();420 421 if ( current_user_can( 'wpcf7_edit_contact_form' ) && wpcf7_validate_nonce() ) {422 $data = $_POST['data'];423 424 $email = isset( $data['email'] ) && is_email( $data['email'] ) ? $data['email'] : false;425 426 if ( ! $email ) {427 $results = array(428 'status' => 'rp-error',429 'message' => 'Please enter a valid email.',430 );431 432 wp_send_json( $results );433 } else {434 $ip = $_SERVER['REMOTE_ADDR'];435 $url = home_url();436 $accept = sanitize_text_field( $data['get_offers'] );437 $params = array(438 'ip_address' => $ip,439 'accept' => $accept,440 'email' => $email,441 'url' => $url,442 );443 444 $params = http_build_query( $params );445 446 $endpoint = WPCF7_PRO_REDIRECT_PLUGIN_PAGE_URL . "wp-json/api-v1/get-coupon?{$params}";447 448 $response = wp_remote_post( $endpoint );449 450 $body = json_decode( wp_remote_retrieve_body( $response ), true );451 452 if ( isset( $body['message'] ) ) {453 $results = array(454 'status' => 'rp-success',455 'message' => $body['message'],456 );457 } elseif ( isset( $body['redirect'] ) ) {458 $results = array(459 'status' => 'rp-success',460 'url' => $body['redirect'],461 );462 }463 }464 }465 466 wp_send_json( $results );467 }468 330 } -
wpcf7-redirect/tags/2.9.0/classes/class-wpcf7r-form.php
r2865253 r2932855 247 247 } else { 248 248 self::$mail_tags = $this->get_cf7_fields(); 249 $fields = $this->get_fields_values(); 250 $redirect_type = isset( $fields['redirect_type'] ) && $fields['redirect_type'] ? $fields['redirect_type'] : ''; 251 $active_tab_title = 'active'; 252 $active_tab = 'active'; 249 253 250 $this->html = new WPCF7R_html( self::$mail_tags ); 254 251 include WPCF7_PRO_REDIRECT_TEMPLATE_PATH . 'settings.php'; -
wpcf7-redirect/tags/2.9.0/templates/fields/field-debug-log.php
r2865253 r2932855 1 1 <?php 2 2 /** 3 * Render debug log by requested fields 3 * Render debug log by requested fields. 4 * 5 * @package wpcf7-redirect 6 * @since 1.0.0 7 * @version 1.0.0 4 8 */ 5 9 … … 7 11 ?> 8 12 9 <div class="field-wrap field-wrap-<?php echo $field['name']; ?> <?php echo isset( $field['class'] ) ? $field['class']: ''; ?>">13 <div class="field-wrap field-wrap-<?php echo esc_attr( $field['name'] ); ?> <?php echo isset( $field['class'] ) ? esc_attr( $field['class'] ) : ''; ?>"> 10 14 <div class="debug-log-wrap"> 11 15 <?php foreach ( $field['fields'] as $debug_field_name => $debug_field_value ) : ?> 12 16 <div class="debug_log"> 13 <h4><?php echo $debug_field_name; ?>:</h4>17 <h4><?php echo esc_attr( $debug_field_name ); ?>:</h4> 14 18 <textarea rows="10"> 15 19 <?php 16 $debug_field_value = maybe_unserialize( $debug_field_value ); 20 21 $debug_field_value = unserialize( $debug_field_value ); 17 22 18 23 if ( is_array( $debug_field_value ) || is_object( $debug_field_value ) ) { 19 24 print_r( $debug_field_value ); 20 25 } else { 21 echo trim( esc_attr( $debug_field_value ));26 echo esc_attr( $debug_field_value ); 22 27 } 23 28 ?> -
wpcf7-redirect/tags/2.9.0/wpcf7r-functions.php
r2865253 r2932855 40 40 $nonce = isset( $_REQUEST['wpcf7r_nonce'] ) && $_REQUEST['wpcf7r_nonce'] ? $_REQUEST['wpcf7r_nonce'] : ''; 41 41 42 $verified = wp_verify_nonce( $nonce , 'manage_cf7_redirect');42 $verified = wp_verify_nonce( $nonce, 'manage_cf7_redirect' ); 43 43 44 44 if ( $verified ) { … … 48 48 header( 'HTTP/1.0 403 Forbidden' ); 49 49 die( 'You are not allowed to access.' ); 50 51 50 } 52 51 … … 58 57 function wpcf7_redirect_get_all_extensions_list() { 59 58 $defaults = array( 60 'wpcf7r-conditional-logic' => array(59 'wpcf7r-conditional-logic' => array( 61 60 'name' => 'wpcf7r-conditional-logic', 62 61 'filename' => 'class-wpcf7r-conditions.php', … … 66 65 'classname' => 'WPCF7_Redirect_Conditional_Logic', 67 66 ), 68 'wpcf7r-create-pdf' => array(67 'wpcf7r-create-pdf' => array( 69 68 'name' => 'wpcf7r-create-pdf', 70 69 'filename' => 'class-wpcf7r-create-pdf', … … 74 73 'classname' => 'WPCF7R_Action_Create_pdf', 75 74 ), 76 'wpcf7r-paypal' => array(75 'wpcf7r-paypal' => array( 77 76 'name' => 'wpcf7r-paypal', 78 77 'filename' => 'class-wpcf7r-action-paypal.php', … … 82 81 'classname' => 'WPCF7R_Action_redirect_to_paypal', 83 82 ), 84 'wpcf7r-stripe' => array(83 'wpcf7r-stripe' => array( 85 84 'name' => 'wpcf7r-stripe', 86 85 'filename' => 'class-wpcf7r-stripe.php', … … 90 89 'classname' => 'WPCF7R_Action_Stripe_Integration', 91 90 ), 92 'wpcf7r-api' => array(91 'wpcf7r-api' => array( 93 92 'name' => 'wpcf7r-api', 94 93 'filename' => 'class-wpcf7r-action-api-url.php', … … 98 97 'classname' => 'WPCF7R_Action_api_url_request', 99 98 ), 100 'wpcf7r-custom-errors' => array(99 'wpcf7r-custom-errors' => array( 101 100 'name' => 'wpcf7r-custom-errors', 102 101 'filename' => 'class-wpcf7r-action-custom-errors.php', … … 106 105 'classname' => 'WPCF7R_Action_custom_errors', 107 106 ), 108 'wpcf7r-popup' => array(107 'wpcf7r-popup' => array( 109 108 'name' => 'wpcf7r-popup', 110 109 'filename' => 'class-wpcf7r-action-popup.php', … … 114 113 'classname' => 'WPCF7R_Action_Popup', 115 114 ), 116 'wpcf7r-create-post' => array(115 'wpcf7r-create-post' => array( 117 116 'name' => 'wpcf7r-create-post', 118 117 'filename' => 'class-wpcf7r-action-create-post.php', … … 122 121 'classname' => 'WPCF7R_Action_Create_Post', 123 122 ), 124 'wpcf7r-login' => array(123 'wpcf7r-login' => array( 125 124 'name' => 'wpcf7r-login', 126 125 'filename' => 'class-wpcf7r-action-login.php', … … 130 129 'classname' => 'WPCF7R_Action_login', 131 130 ), 132 'wpcf7r-register' => array(131 'wpcf7r-register' => array( 133 132 'name' => 'wpcf7r-register', 134 133 'filename' => 'class-wpcf7r-action-register.php', … … 138 137 'classname' => 'WPCF7R_Action_Register', 139 138 ), 140 'wpcf7r-mailchimp' => array(139 'wpcf7r-mailchimp' => array( 141 140 'name' => 'wpcf7r-mailchimp', 142 141 'filename' => 'class-wpcf7r-action-mailchimp.php', … … 146 145 'classname' => 'WPCF7R_Action_Mailchimp', 147 146 ), 148 'wpcf7r-salesforce' => array(147 'wpcf7r-salesforce' => array( 149 148 'name' => 'wpcf7r-salesforce', 150 149 'filename' => 'class-wpcf7r-action-salesforce.php', … … 154 153 'classname' => 'WPCF7R_Action_Salesforce', 155 154 ), 156 'wpcf7r-hubspot' => array(155 'wpcf7r-hubspot' => array( 157 156 'name' => 'wpcf7r-hubspot', 158 157 'filename' => 'class-wpcf7r-action-hubspot.php', … … 162 161 'classname' => 'WPCF7R_Action_Hubspot', 163 162 ), 164 'wpcf7r-twilio' => array( 163 'wpcf7r-monday' => array( 164 'name' => 'wpcf7r-monday', 165 'filename' => 'class-wpcf7r-action-monday.php', 166 'title' => __( 'Monday Integration', 'wpcf7-redirect' ), 167 'description' => __( 'Send your leads to monday.', 'wpcf7-redirect' ), 168 'icon' => '', 169 'classname' => 'WPCF7R_Action_Monday', 170 ), 171 'wpcf7r-twilio' => array( 165 172 'name' => 'wpcf7r-twillio', 166 173 'filename' => 'class-wpcf7r-action-twilio.php', … … 170 177 'classname' => 'WPCF7R_Action_TwilioSms', 171 178 ), 172 'wpcf7r-slack' => array(179 'wpcf7r-slack' => array( 173 180 'name' => 'wpcf7r-slack', 174 181 'filename' => 'class-wpcf7r-action-slack.php', … … 178 185 'classname' => 'WPCF7R_Action_SlackMessage', 179 186 ), 180 'wpcf7r-eliminate-duplicates' => array(187 'wpcf7r-eliminate-duplicates' => array( 181 188 'name' => 'wpcf7r-eliminate-duplicates', 182 189 'filename' => 'class-wpcf7r-action-eliminate-duplicates.php', … … 185 192 'icon' => WPCF7_PRO_REDIRECT_BUILD_PATH . 'images/icon11.png', 186 193 'classname' => 'WPCF7R_Action_Eliminate_Duplicates', 187 ) 194 ), 188 195 ); 189 196
Note: See TracChangeset
for help on using the changeset viewer.