Plugin Directory

Changeset 2862843


Ignore:
Timestamp:
02/09/2023 04:44:21 PM (3 years ago)
Author:
jadascript
Message:

v1.2.2

Location:
cf7-reply-manager
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • cf7-reply-manager/tags/1.2.2/admin/partials/form-list.php

    r2861665 r2862843  
    1111$uploaddir = WP_CONTENT_DIR.'/cf7-rm-uploads/';
    1212
    13 $status_filter = isset($_GET['filter']) ? sanitize_text_field($_GET['filter']) : null;
     13$status_filter = isset($_GET['filter']) ? sanitize_text_field($_GET['filter']) : '';
    1414
    1515if(isset($_POST['ids']) && count($_POST['ids']) >=  1){
     
    2727   }
    2828   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             ...$ids
    34          )
    35       );
    3629      $fields = $wpdb->get_results(
    3730         $wpdb->prepare("SELECT `value` FROM `".RM_CF7_REPLIES_TABLE_NAME."` WHERE cf7_id = %s", $fid)
     
    3932      $formData = json_decode($fields[0]->value);
    4033     
    41       // @TODO Retrive from settings
    4234      $from_mail = sanitize_email($formData->from_mail);
    4335      $reply_to =  sanitize_email($formData->reply_to);
     
    6658
    6759      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         );
    6868         $headers = [
    6969            "From: $from_name<$from_mail>",
  • cf7-reply-manager/tags/1.2.2/admin/partials/replies.php

    r2861665 r2862843  
    4848
    4949      $update = (!(array)$formData ? false : true);
     50      $formData->email_field = sanitize_text_field($_POST['email_field']);
    5051      $formData->from_name = sanitize_text_field($_POST['from_name']);
    5152      $formData->from_mail = sanitize_email($_POST['from_mail']);
     
    7576   <form enctype="multipart/form-data" action="" method="post">
    7677      <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
    7782         <h2>Sender Settings</h2>
    7883         <label for="">Name</label>
  • cf7-reply-manager/tags/1.2.2/contact-form-7-reply-manager.php

    r2862189 r2862843  
    88 * Plugin Name:       CF7 Reply Manager
    99 * Description:       CF7 add-on to provide easy, pre-compiled answers for each form in your website
    10  * Version:           1.2.1
     10 * Version:           1.2.2
    1111 * Author:            Bigfive
    1212 * Author URI:        https://bigfive.it/
     
    2828
    2929global $cf7rm_current_version;
    30 $cf7rm_current_version = '1.2.1';
     30$cf7rm_current_version = '1.2.2';
    3131
    3232/**
  • cf7-reply-manager/tags/1.2.2/includes/class-cf7-reply-manager.php

    r2862189 r2862843  
    6767
    6868        $this->plugin_name = 'cf7_reply_manager';
    69         $this->version = '1.2.1';
     69        $this->version = '1.2.2';
    7070
    7171        // $this->load_dependencies();
  • cf7-reply-manager/tags/1.2.2/readme.txt

    r2862189 r2862843  
    2121== Installation ==
    22221. 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.
     232. Upload the plugin files to the `/wp-content/plugins/cf7-reply-manager` directory, or install the plugin through the WordPress plugins screen directly.
     243. Activate the plugin through the 'Plugins' screen in WordPress
     254. Use the Cf7 Reply Manager->Settings screen to configure the plugin.
    2726
    2827== Screenshots ==
     
    4544= 1.2.1 =
    4645* 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  
    1111$uploaddir = WP_CONTENT_DIR.'/cf7-rm-uploads/';
    1212
    13 $status_filter = isset($_GET['filter']) ? sanitize_text_field($_GET['filter']) : null;
     13$status_filter = isset($_GET['filter']) ? sanitize_text_field($_GET['filter']) : '';
    1414
    1515if(isset($_POST['ids']) && count($_POST['ids']) >=  1){
     
    2727   }
    2828   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             ...$ids
    34          )
    35       );
    3629      $fields = $wpdb->get_results(
    3730         $wpdb->prepare("SELECT `value` FROM `".RM_CF7_REPLIES_TABLE_NAME."` WHERE cf7_id = %s", $fid)
     
    3932      $formData = json_decode($fields[0]->value);
    4033     
    41       // @TODO Retrive from settings
    4234      $from_mail = sanitize_email($formData->from_mail);
    4335      $reply_to =  sanitize_email($formData->reply_to);
     
    6658
    6759      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         );
    6868         $headers = [
    6969            "From: $from_name<$from_mail>",
  • cf7-reply-manager/trunk/admin/partials/replies.php

    r2861665 r2862843  
    4848
    4949      $update = (!(array)$formData ? false : true);
     50      $formData->email_field = sanitize_text_field($_POST['email_field']);
    5051      $formData->from_name = sanitize_text_field($_POST['from_name']);
    5152      $formData->from_mail = sanitize_email($_POST['from_mail']);
     
    7576   <form enctype="multipart/form-data" action="" method="post">
    7677      <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
    7782         <h2>Sender Settings</h2>
    7883         <label for="">Name</label>
  • cf7-reply-manager/trunk/contact-form-7-reply-manager.php

    r2862189 r2862843  
    88 * Plugin Name:       CF7 Reply Manager
    99 * Description:       CF7 add-on to provide easy, pre-compiled answers for each form in your website
    10  * Version:           1.2.1
     10 * Version:           1.2.2
    1111 * Author:            Bigfive
    1212 * Author URI:        https://bigfive.it/
     
    2828
    2929global $cf7rm_current_version;
    30 $cf7rm_current_version = '1.2.1';
     30$cf7rm_current_version = '1.2.2';
    3131
    3232/**
  • cf7-reply-manager/trunk/includes/class-cf7-reply-manager.php

    r2862189 r2862843  
    6767
    6868        $this->plugin_name = 'cf7_reply_manager';
    69         $this->version = '1.2.1';
     69        $this->version = '1.2.2';
    7070
    7171        // $this->load_dependencies();
  • cf7-reply-manager/trunk/readme.txt

    r2862189 r2862843  
    2121== Installation ==
    22221. 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.
     232. Upload the plugin files to the `/wp-content/plugins/cf7-reply-manager` directory, or install the plugin through the WordPress plugins screen directly.
     243. Activate the plugin through the 'Plugins' screen in WordPress
     254. Use the Cf7 Reply Manager->Settings screen to configure the plugin.
    2726
    2827== Screenshots ==
     
    4544= 1.2.1 =
    4645* 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.