Plugin Directory

Changeset 3368065


Ignore:
Timestamp:
09/25/2025 09:07:52 PM (6 months ago)
Author:
pokhar
Message:

Release Version 1.0.7

Location:
websync-builder-cf7/trunk
Files:
7 added
3 edited

Legend:

Unmodified
Added
Removed
  • websync-builder-cf7/trunk/readme.txt

    r3356315 r3368065  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.7
    88License: GPL-3.0-or-later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1010
    11 Stop pasting shortcodes! Build Contact Form 7 forms visually with a drag-and-drop builder, add conditional logic, and save all submissions to your database.
     11Create Contact Form 7 forms visually with drag-and-drop, add conditional logic, and store all submissions in your database.
    1212
    1313== Description ==
    1414
    15 Modern drag-and-drop form builder for Contact Form 7 with live preview, conditional fields, and user submissions in database.
     15Tired of the tedious shortcode editor in Contact Form 7? **Websync Builder** replaces it with a modern, intuitive **drag-and-drop visual form builder** featuring a live preview.
     16
     17Build complex, powerful forms in minutes. Add conditional fields to show or hide questions, and most importantly, **save all form submissions to your database** so you never lose a lead again. Manage entries right from your WordPress dashboard—all while maintaining 100% compatibility with the lightweight Contact Form 7 plugin.
    1618
    1719= Key Features =
     
    8486== Changelog ==
    8587
     88= 1.0.7 =
     89*   NEW: Deactivation reason
     90
    8691= 1.0.6 =
    8792*   CHANGED: Tags
  • websync-builder-cf7/trunk/src/Core/Plugin.php

    r3353512 r3368065  
    4141            return $elements; // always return the HTML unchanged
    4242        }, 10, 1 );
     43
     44        if ( !WBSY_CF7_PRO ) {
     45            add_action('wp_ajax_wbsycf7_send_deactivation_reason', array($this, 'wbsycf7_send_deactivation_reason') );
     46            add_action('current_screen', array( $this, 'wbsycf7_check_plugins_page' ) );
     47        }
    4348    }
    4449
     
    128133        wp_register_script('select2-js', WBSY_CF7_PLUGIN_URL . '/assets/admin/js/select2.min.js', ['jquery'], WBSY_CF7_VERSION, true);
    129134        wp_register_style('select2-css', WBSY_CF7_PLUGIN_URL . '/assets/admin/css/select2.min.css', [],WBSY_CF7_VERSION);
     135
     136        wp_register_script('wbsycf7-deactivate', WBSY_CF7_PLUGIN_URL . 'src/Apps/deactivate/assets/deactivate.js', array('jquery'), WBSY_CF7_VERSION);
     137        // Pass AJAX URL to the script
     138        wp_localize_script('wbsycf7-deactivate', 'deactivate_options', [
     139            'ajax_url' => admin_url('admin-ajax.php'),
     140            'nonce' => wp_create_nonce('wbsycf7_ajax_nonce'),
     141            'pro' => WBSY_CF7_PRO,
     142        ]);
     143        wp_register_style('wbsycf7-deactivate', WBSY_CF7_PLUGIN_URL . 'src/Apps/deactivate/assets/deactivate.css', array(), WBSY_CF7_VERSION);
     144
    130145    }
    131146
     
    153168        );
    154169    }
     170
     171    public function wbsycf7_send_deactivation_reason() {
     172        $nonce = isset($_POST['nonce']) ? sanitize_text_field($_POST['nonce']) : '';
     173        if ( ! wp_verify_nonce( $nonce, 'wbsycf7_ajax_nonce' ) ) {
     174            wp_send_json_error(['message' => 'Security issue.']);
     175        }
     176        $this->wbsycf7_check_plugins_page('plugins' );
     177    }
     178
     179    public function wbsycf7_check_plugins_page( $current_screen ) {
     180        $task = isset($_POST['task']) ? sanitize_text_field($_POST['task']) : '';
     181        $cid = '';
     182        if( isset($current_screen->id) ) {
     183            $cid = $current_screen->id;
     184        } elseif( $current_screen == 'plugins' ) {
     185            $cid = 'plugins';
     186        }
     187        if ( 'plugins' == $cid ) {
     188            require_once WBSY_CF7_PLUGIN_DIR."/src/Apps/deactivate/deactivate.php";
     189            new \WBSYCF7_deactivate\WBSYCF7_Deactivate($task);
     190        }
     191    }
     192
    155193}
  • websync-builder-cf7/trunk/websync-builder-cf7.php

    r3356315 r3368065  
    44 * Plugin URI: https://whistleblowing-form.de/en/builder-for-contact-form-7/
    55 * Description: A powerful visual builder for Contact Form 7. Build forms easily with a drag-and-drop interface instead of shortcodes and HTML.
    6  * Version: 1.0.6
     6 * Version: 1.0.7
    77 * Author: Whistleblowing System Team
    88 * Author URI: https://whistleblowing-form.de
     
    1515defined( 'ABSPATH' ) || exit;
    1616
    17 define( 'WBSY_CF7_VERSION', '1.0.6' );
     17define( 'WBSY_CF7_VERSION', '1.0.7' );
    1818define( 'WBSY_CF7_PREFIX', 'wblscf7' );
    1919define( 'WBSY_CF7_PRO', false );
Note: See TracChangeset for help on using the changeset viewer.