Email Before Download - Version 5.0.3

Version Description

Download this release

Release Info

Developer mandsconsulting
Plugin Icon 128x128 Email Before Download
Version 5.0.3
Comparing to
See all releases

Code changes from version 5.0.2 to 5.0.3

admin/class-email-before-download-admin.php CHANGED
@@ -194,7 +194,7 @@ class Email_Before_Download_Admin
194
  {
195
  echo "<span class='subtitle'>". __('Email Before Download started as a plugin we developed for personal in-house needs. We realized this could be useful to other WordPress users. At that point, we made the decision to release the plugin for anyone to use. We apologize if we cannot provide support to you on an individual or timely basis. However, please feel free to post in the WordPress forums where we hope your questions can be answered by the WordPress community.', 'email-before-download')."</span>";
196
  echo "<ul>
197
- <li><a href=\"https://www.mandsconsulting.com/products/wp-email-before-downloadic\" target=\"_blank\">".__('Plugin Homepage at M&amp;S Consulting with Live Demos and Test Download','email-before-download')."</a></li>
198
  <li><a href=\"https://wordpress.org/plugins/email-before-download/V\" target=\"_blank\">". __('Plugin Homepage at WordPress', 'email-before-download')."</a></li>
199
  <li><a href=\"https://wordpress.org/plugins/email-before-download/#changelog\" target=\"_blank\">".__('Plugin Changelog: Current and Past Releases','email-before-download')."</a></li>
200
  <li><a href=\"https://wordpress.org/support/topic-tag/email-before-download/?forum_id=10\" target=\"_blank\">".__('Plugin Support Forums','email-before-download')."</a></li>
194
  {
195
  echo "<span class='subtitle'>". __('Email Before Download started as a plugin we developed for personal in-house needs. We realized this could be useful to other WordPress users. At that point, we made the decision to release the plugin for anyone to use. We apologize if we cannot provide support to you on an individual or timely basis. However, please feel free to post in the WordPress forums where we hope your questions can be answered by the WordPress community.', 'email-before-download')."</span>";
196
  echo "<ul>
197
+ <li><a href=\"https://www.mandsconsulting.com/products/wp-email-before-download\" target=\"_blank\">".__('Plugin Homepage at M&amp;S Consulting with Live Demos and Test Download','email-before-download')."</a></li>
198
  <li><a href=\"https://wordpress.org/plugins/email-before-download/V\" target=\"_blank\">". __('Plugin Homepage at WordPress', 'email-before-download')."</a></li>
199
  <li><a href=\"https://wordpress.org/plugins/email-before-download/#changelog\" target=\"_blank\">".__('Plugin Changelog: Current and Past Releases','email-before-download')."</a></li>
200
  <li><a href=\"https://wordpress.org/support/topic-tag/email-before-download/?forum_id=10\" target=\"_blank\">".__('Plugin Support Forums','email-before-download')."</a></li>
email-before-download.php CHANGED
@@ -11,7 +11,7 @@
11
  * @wordpress-plugin
12
  * Plugin Name: Email Before Download
13
  * Plugin URI: mandsconsulting.com
14
- * Version: 5.0.2
15
  * Author: M&S Consulting
16
  * Author URI: mandsconsulting.com
17
  * License: GPL-2.0+
@@ -25,7 +25,7 @@ if ( ! defined( 'WPINC' ) ) {
25
  }
26
 
27
 
28
- define( 'PLUGIN_NAME_VERSION', '5.0.2' );
29
 
30
  function activate_email_before_download() {
31
  require_once plugin_dir_path( __FILE__ ) . 'includes/class-email-before-download-activator.php';
11
  * @wordpress-plugin
12
  * Plugin Name: Email Before Download
13
  * Plugin URI: mandsconsulting.com
14
+ * Version: 5.0.3
15
  * Author: M&S Consulting
16
  * Author URI: mandsconsulting.com
17
  * License: GPL-2.0+
25
  }
26
 
27
 
28
+ define( 'PLUGIN_NAME_VERSION', '5.0.3' );
29
 
30
  function activate_email_before_download() {
31
  require_once plugin_dir_path( __FILE__ ) . 'includes/class-email-before-download-activator.php';
includes/class-email-before-download-process.php CHANGED
@@ -171,7 +171,7 @@ class Email_Before_Download_Process
171
  }
172
  $linkHTML .= get_option('email_before_download_html_after','') . "</div>";
173
  $additional_settings = $form_obj->prop('additional_settings');
174
- $additional_settings .= "\n" . "on_sent_ok: \"jQuery('.ebd_input').hide();jQuery('.cf7_input').hide(); jQuery('#ebdForm').append('$linkHTML'); \"";
175
  $form_obj->set_properties(array('additional_settings' => $additional_settings));
176
  return $form_obj;
177
  }
171
  }
172
  $linkHTML .= get_option('email_before_download_html_after','') . "</div>";
173
  $additional_settings = $form_obj->prop('additional_settings');
174
+ $additional_settings .= "\n" . "on_sent_ok: \" jQuery('#ebdForm').append('$linkHTML'); \"";
175
  $form_obj->set_properties(array('additional_settings' => $additional_settings));
176
  return $form_obj;
177
  }
includes/class-email-before-download.php CHANGED
@@ -11,7 +11,7 @@
11
  * @since 5.0.0
12
  * @package Email_Before_Download
13
  * @subpackage Email_Before_Download/includes
14
- * @author M & S Consulting
15
  */
16
  class Email_Before_Download {
17
 
@@ -23,7 +23,7 @@ class Email_Before_Download {
23
  if ( defined( 'PLUGIN_NAME_VERSION' ) ) {
24
  $this->version = PLUGIN_NAME_VERSION;
25
  } else {
26
- $this->version = '1.0.0';
27
  }
28
  $this->plugin_name = 'email-before-download';
29
 
11
  * @since 5.0.0
12
  * @package Email_Before_Download
13
  * @subpackage Email_Before_Download/includes
14
+ * @author M&S Consulting
15
  */
16
  class Email_Before_Download {
17
 
23
  if ( defined( 'PLUGIN_NAME_VERSION' ) ) {
24
  $this->version = PLUGIN_NAME_VERSION;
25
  } else {
26
+ $this->version = '5.0.3';
27
  }
28
  $this->plugin_name = 'email-before-download';
29
 
public/js/email-before-download-public.js CHANGED
@@ -1,10 +1,6 @@
1
 
2
  jQuery(document).ready(function(){
3
  if (jQuery("#downloadinputform").length === 1) {
4
- var atLeastOneIsChecked = jQuery('input:checked[name*=ebd_downloads]:checked').length;
5
- if(atLeastOneIsChecked < 1){
6
- jQuery( ".cf7_input" ).hide();
7
- }
8
  jQuery( "input[name*=ebd_downloads]" ).on( "click", function () {
9
  var n = jQuery( "input:checked[name*=ebd_downloads]" ).length;
10
  if(n > 0) jQuery( ".cf7_input" ).show();
1
 
2
  jQuery(document).ready(function(){
3
  if (jQuery("#downloadinputform").length === 1) {
 
 
 
 
4
  jQuery( "input[name*=ebd_downloads]" ).on( "click", function () {
5
  var n = jQuery( "input:checked[name*=ebd_downloads]" ).length;
6
  if(n > 0) jQuery( ".cf7_input" ).show();
readme.txt CHANGED
@@ -104,6 +104,8 @@ This is the list of all short code attributes that can be used. Some of them o
104
 
105
 
106
  == Changelog ==
 
 
107
 
108
  =5.0.2=
109
  Fixed issue with admin tables not showing.
104
 
105
 
106
  == Changelog ==
107
+ =5.0.3=
108
+ Fixed issue with form not displayig for some people
109
 
110
  =5.0.2=
111
  Fixed issue with admin tables not showing.