Changeset 3045395
- Timestamp:
- 03/05/2024 06:34:39 AM (5 months ago)
- Location:
- contact-form-to-any-api
- Files:
-
- 43 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
contact-form-to-any-api/trunk/README.txt
r3037812 r3045395 1 1 === Contact Form to Any API === 2 2 Contributors: itpathsolutions,mayur8991,pateljaymin,thakordarshil 3 Tags: rest api, api, contact form, crm, lead , pro, export, entries, contact form 73 Tags: rest api, api, contact form, crm, lead 4 4 Requires at least: 6.0 5 5 Tested up to: 6.4 6 6 Requires PHP: 7.4 7 Stable tag: 1. 1.97 Stable tag: 1. 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 91 91 * Network Worldfilia 92 92 * One Page CRM 93 94 95 96 93 97 * And many more 94 98 … … 163 167 164 168 == Changelog == 169 170 171 172 173 165 174 166 175 = 1.1.9 = -
contact-form-to-any-api/trunk/admin/class-cf7-to-any-api-admin.php
r3037812 r3045395 111 111 public function cf7_to_any_api_verify_dependencies(){ 112 112 if(is_multisite()){ 113 if(!is_plugin_active_for_network('contact-form-7/wp-contact-form-7.php') ){113 if(!is_plugin_active_for_network('contact-form-7/wp-contact-form-7.php')){ 114 114 115 115 echo '<div class="notice notice-warning is-dismissible"><p>'.esc_html__( 'Contact form 7 API integrations requires CONTACT FORM 7 Plugin to be installed and active', 'contact-form-to-any-api' ).'</p></div>'; … … 314 314 315 315 $options['cf7anyapi_selected_form'] = (int)stripslashes($_POST['cf7anyapi_selected_form']); 316 $options['cf7anyapi_base_url'] = esc_url ($_POST['cf7anyapi_base_url']);316 $options['cf7anyapi_base_url'] = esc_url($_POST['cf7anyapi_base_url']); 317 317 if(isset($_POST['cf7anyapi_basic_auth'])){ 318 318 $options['cf7anyapi_basic_auth'] = sanitize_text_field($_POST['cf7anyapi_basic_auth']); … … 347 347 } 348 348 $html = ''; 349 $form_ID = (int)stripslashes($_POST['form_id']); # change the 80 to your CF7 form ID350 $post_id = (int)stripslashes($_POST['post_id']); # change the 80 to your CF7 form ID349 $form_ID = (int)stripslashes($_POST['form_id']); 350 $post_id = (int)stripslashes($_POST['post_id']); 351 351 $ContactForm = WPCF7_ContactForm::get_instance($form_ID); 352 352 $form_fields = $ContactForm->scan_form_tags(); … … 513 513 $cf7anyapi_method = get_post_meta(get_the_ID(),'cf7anyapi_method',true); 514 514 515 $cf7anyapi_header_request = get_post_meta(get_the_ID(),'cf7anyapi_header_request',true); 515 $header_request = get_post_meta(get_the_ID(),'cf7anyapi_header_request' ,true); 516 $cf7anyapi_header_request = apply_filters( 'cf7anyapi_header_request', $header_request, get_the_ID(), $form_id); 516 517 517 518 foreach($cf7anyapi_form_field as $key => $value){ … … 653 654 */ 654 655 public static function Cf7_To_Any_Api_parse_json($string){ 655 return json_encode($string );656 return json_encode($string); 656 657 } 657 658 … … 669 670 foreach($posted_data as $key => $arr){ 670 671 if(strstr($key, 'file-')){ 671 $posted_data[$key] = substr($arr, 0, 10).'...';672 $posted_data[$key] = substr($arr, 0, 10).'...'; 672 673 } 673 674 } 674 675 } 675 676 676 $form_data = json_encode($posted_data );677 $form_data = json_encode($posted_data); 677 678 if (gettype($response) != 'string') { 678 $response = json_encode($response );679 $response = json_encode($response); 679 680 } 680 681 $data = array( -
contact-form-to-any-api/trunk/admin/partials/cf7-to-any-api-admin-display-docs.php
r3037812 r3045395 39 39 <p><b><?php esc_html_e( 'Authorization having Username & Password with Base64 ?', 'contact-form-to-any-api' ); ?></br> 40 40 41 <?php __( 'To convert online <a href="https://www.base64encode.net/" target="_blank"> click here </a> and put it in the header.', 'contact-form-to-any-api' ); ?></b></p>41 <?php __( 'To convert online <a href="https://www.base64encode.net/" target="_blank"> click here </a> and put it in the header.', 'contact-form-to-any-api' ); ?></b></p> 42 42 <b><?php esc_html_e( 'Example', 'contact-form-to-any-api' ); ?></b><code> 43 43 <pre> … … 63 63 <h5><?php esc_html_e( 'Logs', 'contact-form-to-any-api' ); ?></h5> 64 64 <ol> 65 <li><?php __( 'After submitting data you can see your data in <b>Logs</b> tab.', 'contact-form-to-any-api' ); ?></li>65 <li><?php __( 'After submitting data you can see your data in <b>Logs</b> tab.', 'contact-form-to-any-api' ); ?></li> 66 66 <li><?php esc_html_e( 'You can see your API logs and its data which is submitted by user', 'contact-form-to-any-api' ); ?></li> 67 <li><?php __( 'You can see your <b>API response too</b>.', 'contact-form-to-any-api'); ?></li>67 <li><?php __( 'You can see your <b>API response too</b>.', 'contact-form-to-any-api'); ?></li> 68 68 <?php esc_html_e( 'Ex. ', 'contact-form-to-any-api' ); ?><img src="<?php echo plugins_url().'/contact-form-to-any-api/admin/images/logs.png';?>" alt="" style="height:100%; width:100%;"> 69 69 </ol> … … 75 75 <ol> 76 76 <li><?php esc_html_e( 'Select the form and its data will display.', 'contact-form-to-any-api' ); ?></li> 77 <li><?php __( 'You can download your data in <b>CSV</b>, <b>Excel</b>, <b>PDF</b> and also you can <b>Print</b> your data.', 'contact-form-to-any-api' ); ?></li>77 <li><?php __( 'You can download your data in <b>CSV</b>, <b>Excel</b>, <b>PDF</b> and also you can <b>Print</b> your data.', 'contact-form-to-any-api' ); ?></li> 78 78 <?php esc_html_e( 'Ex. ', 'contact-form-to-any-api' ); ?><img src="<?php echo plugins_url().'/contact-form-to-any-api/admin/images/entries.png';?>" alt="" style="height:100%; width:100%;"> 79 79 </ol> … … 85 85 <h5><?php esc_html_e( 'Supported JSON format', 'contact-form-to-any-api' ); ?></h5> 86 86 <ol> 87 <li><b><?php esc_html_e( 'Supported JSON format by CF7 to any API', 'contact-form-to-any-api' ); ?></b></br>87 <li><b><?php esc_html_e( 'Supported JSON format by ', 'contact-form-to-any-api' ); ?></b></br> 88 88 <code> 89 89 <pre> … … 98 98 </li> 99 99 100 <li><?php __( '<b>Unsupported JSON Format:</b> Required<a href="https://www.contactformtoapi.com/pricing/#pricing" class="cf7_to_any_api_doc_link" target="_blank"><strong>Pro Version</strong></a>', 'contact-form-to-any-api' ); ?></br>100 <li><?php <a href="https://www.contactformtoapi.com/pricing/#pricing" class="cf7_to_any_api_doc_link" target="_blank"><strong>Pro Version</strong></a>', 'contact-form-to-any-api' ); ?></br> 101 101 <code> 102 102 <pre> … … 113 113 </code> 114 114 115 <h5><?php __( '<b>Your API has Unsupportedformat of json ?? Don\'t worry our development team can customize our plugin as per your need</b> <a target="_blank" href="https://www.itpathsolutions.com/contact-us/">Click here to contact us</a>', 'contact-form-to-any-api' ); ?></h5>115 <h5><?php format of json ?? Don\'t worry our development team can customize our plugin as per your need</b> <a target="_blank" href="https://www.itpathsolutions.com/contact-us/">Click here to contact us</a>', 'contact-form-to-any-api' ); ?></h5> 116 116 </li> 117 117 </ol> … … 140 140 <li><?php esc_html_e( 'File input supported – Uploaded file will convert into BASE64 and send to API', 'contact-form-to-any-api' ); ?></li> 141 141 <li><?php esc_html_e( 'Option to Choose when to send data to API – Before cf7 mail sent OR After mail sent', 'contact-form-to-any-api' ); ?></li> 142 143 144 142 145 <li><?php esc_html_e( 'Priority Support', 'contact-form-to-any-api' ); ?></li> 143 146 <li><?php esc_html_e( 'Paid plugin customization support', 'contact-form-to-any-api' ); ?></li> … … 160 163 <li><?php esc_html_e( 'FRS Labs API', 'contact-form-to-any-api' ); ?></li> 161 164 <li><?php esc_html_e( 'Mikrowisp', 'contact-form-to-any-api' ); ?></li> 165 166 167 168 169 170 162 171 <li><?php esc_html_e( 'And many more', 'contact-form-to-any-api' ); ?></li> 163 172 </ul> … … 169 178 <div class="tab-pane fade cf7anyapi_full_width" id="v-pills-contact-us" role="tabpanel" aria-labelledby="v-pills-contact-us-tab"> 170 179 <h5><?php esc_html_e( 'Contact Us', 'contact-form-to-any-api' ); ?></h5><br> 171 <h5><?php __( 'Email : <a href="mailto:support@contactformtoapi.com">support@contactformtoapi.com</a>', 'contact-form-to-any-api' ); ?></h5>172 <p><?php __( 'Need Help with Plugin Integration ? <a target="_blank" href="https://www.contactformtoapi.com/#contact_us">Click to Connect us</a>', 'contact-form-to-any-api' ); ?></p>180 <h5><?php __( 'Email : <a href="mailto:support@contactformtoapi.com">support@contactformtoapi.com</a>', 'contact-form-to-any-api' ); ?></h5> 181 <p><?php __( 'Need Help with Plugin Integration ? <a target="_blank" href="https://www.contactformtoapi.com/#contact_us">Click to Connect us</a>', 'contact-form-to-any-api' ); ?></p> 173 182 </div> 174 183 </div> -
contact-form-to-any-api/trunk/cf7-to-any-api.php
r3037812 r3045395 17 17 * Plugin URI: https://wordpress.org/plugins/contact-form-to-any-api/ 18 18 * Description: Send CF7 Lead/Data to CRM or Any REST API. 19 * Version: 1. 1.919 * Version: 1. 20 20 * Author: IT Path Solutions 21 21 * Author URI: https://www.itpathsolutions.com/ … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'CF7_TO_ANY_API_VERSION', '1. 1.9' );38 define( 'CF7_TO_ANY_API_VERSION', '1.' ); 39 39 40 40 define( 'CF7_CURL_DOMAIN', 'https://www.contactformtoapi.com' ); -
contact-form-to-any-api/trunk/includes/class-cf7-to-any-api-activator.php
r3037812 r3045395 32 32 public static function activate() { 33 33 if(is_multisite()){ 34 if(!is_plugin_active_for_network('contact-form-7/wp-contact-form-7.php') ){34 if(!is_plugin_active_for_network('contact-form-7/wp-contact-form-7.php')){ 35 35 deactivate_plugins(plugin_basename( __FILE__)); 36 36 wp_die( __( 'Please activate <a href="https://wordpress.org/plugins/contact-form-7/" target="_blank">Contact Form 7.</a>', 'contact-form-to-any-api' ), 'Plugin dependency check', array( 'back_link' => true ) );
Note: See TracChangeset
for help on using the changeset viewer.