Changeset 2862843
- Timestamp:
- 02/09/2023 04:44:21 PM (3 years ago)
- Location:
- cf7-reply-manager
- Files:
-
- 10 edited
- 1 copied
-
tags/1.2.2 (copied) (copied from cf7-reply-manager/trunk)
-
tags/1.2.2/admin/partials/form-list.php (modified) (4 diffs)
-
tags/1.2.2/admin/partials/replies.php (modified) (2 diffs)
-
tags/1.2.2/contact-form-7-reply-manager.php (modified) (2 diffs)
-
tags/1.2.2/includes/class-cf7-reply-manager.php (modified) (1 diff)
-
tags/1.2.2/readme.txt (modified) (2 diffs)
-
trunk/admin/partials/form-list.php (modified) (4 diffs)
-
trunk/admin/partials/replies.php (modified) (2 diffs)
-
trunk/contact-form-7-reply-manager.php (modified) (2 diffs)
-
trunk/includes/class-cf7-reply-manager.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cf7-reply-manager/tags/1.2.2/admin/partials/form-list.php
r2861665 r2862843 11 11 $uploaddir = WP_CONTENT_DIR.'/cf7-rm-uploads/'; 12 12 13 $status_filter = isset($_GET['filter']) ? sanitize_text_field($_GET['filter']) : null;13 $status_filter = isset($_GET['filter']) ? sanitize_text_field($_GET['filter']) : ''; 14 14 15 15 if(isset($_POST['ids']) && count($_POST['ids']) >= 1){ … … 27 27 } 28 28 else { 29 $selected = $wpdb->get_results(30 $wpdb->prepare("SELECT `value`, `data_id` FROM " . RM_CF7_DATA_ENTRY_TABLE_NAME . " WHERE cf7_id = %s AND name = %s AND data_id IN ($preparedIds)",31 $fid,32 'your-email',33 ...$ids34 )35 );36 29 $fields = $wpdb->get_results( 37 30 $wpdb->prepare("SELECT `value` FROM `".RM_CF7_REPLIES_TABLE_NAME."` WHERE cf7_id = %s", $fid) … … 39 32 $formData = json_decode($fields[0]->value); 40 33 41 // @TODO Retrive from settings42 34 $from_mail = sanitize_email($formData->from_mail); 43 35 $reply_to = sanitize_email($formData->reply_to); … … 66 58 67 59 if($from_mail && $from_name && $subject && $body ) { 60 61 $selected = $wpdb->get_results( 62 $wpdb->prepare("SELECT `value`, `data_id` FROM " . RM_CF7_DATA_ENTRY_TABLE_NAME . " WHERE cf7_id = %s AND name = %s AND data_id IN ($preparedIds)", 63 $fid, 64 $formData->email_field ?: 'your-email', 65 ...$ids 66 ) 67 ); 68 68 $headers = [ 69 69 "From: $from_name<$from_mail>", -
cf7-reply-manager/tags/1.2.2/admin/partials/replies.php
r2861665 r2862843 48 48 49 49 $update = (!(array)$formData ? false : true); 50 $formData->email_field = sanitize_text_field($_POST['email_field']); 50 51 $formData->from_name = sanitize_text_field($_POST['from_name']); 51 52 $formData->from_mail = sanitize_email($_POST['from_mail']); … … 75 76 <form enctype="multipart/form-data" action="" method="post"> 76 77 <div class="sender-settings"> 78 <h2>Form Settings</h2> 79 <label for="">E-mail field name in CF7</label> 80 <input name="email_field" type="text" required value="<?= $formData->email_field ?: 'your-email' ?>"> 81 77 82 <h2>Sender Settings</h2> 78 83 <label for="">Name</label> -
cf7-reply-manager/tags/1.2.2/contact-form-7-reply-manager.php
r2862189 r2862843 8 8 * Plugin Name: CF7 Reply Manager 9 9 * Description: CF7 add-on to provide easy, pre-compiled answers for each form in your website 10 * Version: 1.2. 110 * Version: 1.2.2 11 11 * Author: Bigfive 12 12 * Author URI: https://bigfive.it/ … … 28 28 29 29 global $cf7rm_current_version; 30 $cf7rm_current_version = '1.2. 1';30 $cf7rm_current_version = '1.2.2'; 31 31 32 32 /** -
cf7-reply-manager/tags/1.2.2/includes/class-cf7-reply-manager.php
r2862189 r2862843 67 67 68 68 $this->plugin_name = 'cf7_reply_manager'; 69 $this->version = '1.2. 1';69 $this->version = '1.2.2'; 70 70 71 71 // $this->load_dependencies(); -
cf7-reply-manager/tags/1.2.2/readme.txt
r2862189 r2862843 21 21 == Installation == 22 22 1. Ensure you have istalled Contact Form 7. 23 2. In cf7 settings the email field must be called "your-email" 24 3. Upload the plugin files to the `/wp-content/plugins/cf7-reply-manager` directory, or install the plugin through the WordPress plugins screen directly. 25 4. Activate the plugin through the 'Plugins' screen in WordPress 26 5. Use the Cf7 Reply Manager->Settings screen to configure the plugin. 23 2. Upload the plugin files to the `/wp-content/plugins/cf7-reply-manager` directory, or install the plugin through the WordPress plugins screen directly. 24 3. Activate the plugin through the 'Plugins' screen in WordPress 25 4. Use the Cf7 Reply Manager->Settings screen to configure the plugin. 27 26 28 27 == Screenshots == … … 45 44 = 1.2.1 = 46 45 * Increased entries size 46 = 1.2.2 = 47 * Select the name of the e-mail field -
cf7-reply-manager/trunk/admin/partials/form-list.php
r2861665 r2862843 11 11 $uploaddir = WP_CONTENT_DIR.'/cf7-rm-uploads/'; 12 12 13 $status_filter = isset($_GET['filter']) ? sanitize_text_field($_GET['filter']) : null;13 $status_filter = isset($_GET['filter']) ? sanitize_text_field($_GET['filter']) : ''; 14 14 15 15 if(isset($_POST['ids']) && count($_POST['ids']) >= 1){ … … 27 27 } 28 28 else { 29 $selected = $wpdb->get_results(30 $wpdb->prepare("SELECT `value`, `data_id` FROM " . RM_CF7_DATA_ENTRY_TABLE_NAME . " WHERE cf7_id = %s AND name = %s AND data_id IN ($preparedIds)",31 $fid,32 'your-email',33 ...$ids34 )35 );36 29 $fields = $wpdb->get_results( 37 30 $wpdb->prepare("SELECT `value` FROM `".RM_CF7_REPLIES_TABLE_NAME."` WHERE cf7_id = %s", $fid) … … 39 32 $formData = json_decode($fields[0]->value); 40 33 41 // @TODO Retrive from settings42 34 $from_mail = sanitize_email($formData->from_mail); 43 35 $reply_to = sanitize_email($formData->reply_to); … … 66 58 67 59 if($from_mail && $from_name && $subject && $body ) { 60 61 $selected = $wpdb->get_results( 62 $wpdb->prepare("SELECT `value`, `data_id` FROM " . RM_CF7_DATA_ENTRY_TABLE_NAME . " WHERE cf7_id = %s AND name = %s AND data_id IN ($preparedIds)", 63 $fid, 64 $formData->email_field ?: 'your-email', 65 ...$ids 66 ) 67 ); 68 68 $headers = [ 69 69 "From: $from_name<$from_mail>", -
cf7-reply-manager/trunk/admin/partials/replies.php
r2861665 r2862843 48 48 49 49 $update = (!(array)$formData ? false : true); 50 $formData->email_field = sanitize_text_field($_POST['email_field']); 50 51 $formData->from_name = sanitize_text_field($_POST['from_name']); 51 52 $formData->from_mail = sanitize_email($_POST['from_mail']); … … 75 76 <form enctype="multipart/form-data" action="" method="post"> 76 77 <div class="sender-settings"> 78 <h2>Form Settings</h2> 79 <label for="">E-mail field name in CF7</label> 80 <input name="email_field" type="text" required value="<?= $formData->email_field ?: 'your-email' ?>"> 81 77 82 <h2>Sender Settings</h2> 78 83 <label for="">Name</label> -
cf7-reply-manager/trunk/contact-form-7-reply-manager.php
r2862189 r2862843 8 8 * Plugin Name: CF7 Reply Manager 9 9 * Description: CF7 add-on to provide easy, pre-compiled answers for each form in your website 10 * Version: 1.2. 110 * Version: 1.2.2 11 11 * Author: Bigfive 12 12 * Author URI: https://bigfive.it/ … … 28 28 29 29 global $cf7rm_current_version; 30 $cf7rm_current_version = '1.2. 1';30 $cf7rm_current_version = '1.2.2'; 31 31 32 32 /** -
cf7-reply-manager/trunk/includes/class-cf7-reply-manager.php
r2862189 r2862843 67 67 68 68 $this->plugin_name = 'cf7_reply_manager'; 69 $this->version = '1.2. 1';69 $this->version = '1.2.2'; 70 70 71 71 // $this->load_dependencies(); -
cf7-reply-manager/trunk/readme.txt
r2862189 r2862843 21 21 == Installation == 22 22 1. Ensure you have istalled Contact Form 7. 23 2. In cf7 settings the email field must be called "your-email" 24 3. Upload the plugin files to the `/wp-content/plugins/cf7-reply-manager` directory, or install the plugin through the WordPress plugins screen directly. 25 4. Activate the plugin through the 'Plugins' screen in WordPress 26 5. Use the Cf7 Reply Manager->Settings screen to configure the plugin. 23 2. Upload the plugin files to the `/wp-content/plugins/cf7-reply-manager` directory, or install the plugin through the WordPress plugins screen directly. 24 3. Activate the plugin through the 'Plugins' screen in WordPress 25 4. Use the Cf7 Reply Manager->Settings screen to configure the plugin. 27 26 28 27 == Screenshots == … … 45 44 = 1.2.1 = 46 45 * Increased entries size 46 = 1.2.2 = 47 * Select the name of the e-mail field
Note: See TracChangeset
for help on using the changeset viewer.