Changeset 3368065
- Timestamp:
- 09/25/2025 09:07:52 PM (6 months ago)
- Location:
- websync-builder-cf7/trunk
- Files:
-
- 7 added
- 3 edited
-
readme.txt (modified) (2 diffs)
-
src/Apps (added)
-
src/Apps/deactivate (added)
-
src/Apps/deactivate/assets (added)
-
src/Apps/deactivate/assets/deactivate.css (added)
-
src/Apps/deactivate/assets/deactivate.js (added)
-
src/Apps/deactivate/assets/loader.svg (added)
-
src/Apps/deactivate/deactivate.php (added)
-
src/Core/Plugin.php (modified) (3 diffs)
-
websync-builder-cf7.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
websync-builder-cf7/trunk/readme.txt
r3356315 r3368065 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 67 Stable tag: 1.0.7 8 8 License: GPL-3.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html 10 10 11 Stop pasting shortcodes! Build Contact Form 7 forms visually with a drag-and-drop builder, add conditional logic, and save all submissions toyour database.11 Create Contact Form 7 forms visually with drag-and-drop, add conditional logic, and store all submissions in your database. 12 12 13 13 == Description == 14 14 15 Modern drag-and-drop form builder for Contact Form 7 with live preview, conditional fields, and user submissions in database. 15 Tired 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 17 Build 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. 16 18 17 19 = Key Features = … … 84 86 == Changelog == 85 87 88 = 1.0.7 = 89 * NEW: Deactivation reason 90 86 91 = 1.0.6 = 87 92 * CHANGED: Tags -
websync-builder-cf7/trunk/src/Core/Plugin.php
r3353512 r3368065 41 41 return $elements; // always return the HTML unchanged 42 42 }, 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 } 43 48 } 44 49 … … 128 133 wp_register_script('select2-js', WBSY_CF7_PLUGIN_URL . '/assets/admin/js/select2.min.js', ['jquery'], WBSY_CF7_VERSION, true); 129 134 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 130 145 } 131 146 … … 153 168 ); 154 169 } 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 155 193 } -
websync-builder-cf7/trunk/websync-builder-cf7.php
r3356315 r3368065 4 4 * Plugin URI: https://whistleblowing-form.de/en/builder-for-contact-form-7/ 5 5 * 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. 66 * Version: 1.0.7 7 7 * Author: Whistleblowing System Team 8 8 * Author URI: https://whistleblowing-form.de … … 15 15 defined( 'ABSPATH' ) || exit; 16 16 17 define( 'WBSY_CF7_VERSION', '1.0. 6' );17 define( 'WBSY_CF7_VERSION', '1.0.7' ); 18 18 define( 'WBSY_CF7_PREFIX', 'wblscf7' ); 19 19 define( 'WBSY_CF7_PRO', false );
Note: See TracChangeset
for help on using the changeset viewer.