Plugin Directory

Changeset 3045395

Timestamp:
03/05/2024 06:34:39 AM (5 months ago)
Author:
itpathsolutions
Message:

1.2.0

  • New - UTF8 support
  • New - Special string UTF-8 allows in JSON
  • Fix - Multi-site installation error
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  
    11=== Contact Form to Any API ===
    22Contributors: itpathsolutions,mayur8991,pateljaymin,thakordarshil
    3 Tags: rest api, api, contact form, crm, lead, pro, export, entries, contact form 7
     3Tags: rest api, api, contact form, crm, lead
    44Requires at least: 6.0
    55Tested up to: 6.4
    66Requires PHP: 7.4
    7 Stable tag: 1.1.9
     7Stable tag: 1.
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    9191* Network Worldfilia
    9292* One Page CRM
     93
     94
     95
     96
    9397* And many more
    9498
     
    163167
    164168== Changelog ==
     169
     170
     171
     172
     173
    165174
    166175= 1.1.9 =
  • contact-form-to-any-api/trunk/admin/class-cf7-to-any-api-admin.php

    r3037812 r3045395  
    111111    public function cf7_to_any_api_verify_dependencies(){
    112112        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')){
    114114
    115115                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>';
     
    314314
    315315                $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']);
    317317                if(isset($_POST['cf7anyapi_basic_auth'])){
    318318                    $options['cf7anyapi_basic_auth'] = sanitize_text_field($_POST['cf7anyapi_basic_auth']);
     
    347347        }
    348348        $html = '';
    349         $form_ID     = (int)stripslashes($_POST['form_id']); # change the 80 to your CF7 form ID
    350         $post_id     = (int)stripslashes($_POST['post_id']); # change the 80 to your CF7 form ID
     349        $form_ID     = (int)stripslashes($_POST['form_id']);
     350        $post_id     = (int)stripslashes($_POST['post_id']);
    351351        $ContactForm = WPCF7_ContactForm::get_instance($form_ID);
    352352        $form_fields = $ContactForm->scan_form_tags();
     
    513513                $cf7anyapi_method = get_post_meta(get_the_ID(),'cf7anyapi_method',true);
    514514
    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);
    516517
    517518                foreach($cf7anyapi_form_field as $key => $value){
     
    653654     */
    654655    public static function Cf7_To_Any_Api_parse_json($string){
    655         return json_encode($string);
     656        return json_encode($string);
    656657    }
    657658
     
    669670            foreach($posted_data as $key => $arr){
    670671                if(strstr($key, 'file-')){
    671                     $posted_data[$key] = substr($arr, 0, 10).'...';
     672                    $posted_data[$key] = substr($arr, 0, 10).'...';
    672673                }
    673674            }
    674675        }
    675676       
    676         $form_data = json_encode($posted_data);
     677        $form_data = json_encode($posted_data);
    677678        if (gettype($response) != 'string') {
    678             $response = json_encode($response);
     679            $response = json_encode($response);
    679680        }
    680681        $data = array(
  • contact-form-to-any-api/trunk/admin/partials/cf7-to-any-api-admin-display-docs.php

    r3037812 r3045395  
    3939            <p><b><?php esc_html_e( 'Authorization having Username & Password with Base64 ?', 'contact-form-to-any-api' ); ?></br>
    4040
    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>
    4242            <b><?php esc_html_e( 'Example', 'contact-form-to-any-api' ); ?></b><code>
    4343                <pre>
     
    6363        <h5><?php esc_html_e( 'Logs', 'contact-form-to-any-api' ); ?></h5>
    6464            <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>
    6666                <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>
    6868                <?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%;">
    6969            </ol>
     
    7575            <ol>
    7676                <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>
    7878                <?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%;">
    7979            </ol>
     
    8585        <h5><?php esc_html_e( 'Supported JSON format', 'contact-form-to-any-api' ); ?></h5>
    8686            <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>
    8888                <code>
    8989            <pre>
     
    9898                    </li>
    9999
    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>
    101101                    <code>
    102102            <pre>
     
    113113                </code>
    114114
    115                 <h5><?php __( '<b>Your API has Unsupported 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>
     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>
    116116                </li>
    117117            </ol>
     
    140140                 <li><?php esc_html_e( 'File input supported – Uploaded file will convert into BASE64 and send to API', 'contact-form-to-any-api' ); ?></li>
    141141                 <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
    142145                 <li><?php esc_html_e( 'Priority Support', 'contact-form-to-any-api' ); ?></li>
    143146                 <li><?php esc_html_e( 'Paid plugin customization support', 'contact-form-to-any-api' ); ?></li>
     
    160163                 <li><?php esc_html_e( 'FRS Labs API', 'contact-form-to-any-api' ); ?></li>
    161164                 <li><?php esc_html_e( 'Mikrowisp', 'contact-form-to-any-api' ); ?></li>
     165
     166
     167
     168
     169
     170
    162171                 <li><?php esc_html_e( 'And many more', 'contact-form-to-any-api' ); ?></li>
    163172             </ul>
     
    169178         <div class="tab-pane fade cf7anyapi_full_width" id="v-pills-contact-us" role="tabpanel" aria-labelledby="v-pills-contact-us-tab">
    170179        <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>
    173182        </div>
    174183        </div>
  • contact-form-to-any-api/trunk/cf7-to-any-api.php

    r3037812 r3045395  
    1717 * Plugin URI:        https://wordpress.org/plugins/contact-form-to-any-api/
    1818 * Description:       Send CF7 Lead/Data to CRM or Any REST API.
    19  * Version:           1.1.9
     19 * Version:           1.
    2020 * Author:            IT Path Solutions
    2121 * Author URI:        https://www.itpathsolutions.com/
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'CF7_TO_ANY_API_VERSION', '1.1.9' );
     38define( 'CF7_TO_ANY_API_VERSION', '1.' );
    3939
    4040define( 'CF7_CURL_DOMAIN', 'https://www.contactformtoapi.com' );
  • contact-form-to-any-api/trunk/includes/class-cf7-to-any-api-activator.php

    r3037812 r3045395  
    3232    public static function activate() {
    3333        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')){
    3535                deactivate_plugins(plugin_basename( __FILE__));
    3636                 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.