Print, PDF, Email by PrintFriendly - Version 3.2.0

Version Description

  • Important chrome issue fix. Ie syntax error fix.
Download this release

Release Info

Developer printfriendly
Plugin Icon 128x128 Print, PDF, Email by PrintFriendly
Version 3.2.0
Comparing to
See all releases

Code changes from version 3.1.9 to 3.2.0

Files changed (3) hide show
  1. admin.js +16 -9
  2. pf.php +4 -3
  3. readme.txt +7 -2
admin.js CHANGED
@@ -59,18 +59,26 @@ jQuery(document).ready(function() {
59
 
60
  function pf_initialize_preview(urlInputSelector, previewSelector) {
61
  var el = jQuery(urlInputSelector);
 
62
  var preview = jQuery(previewSelector + '-preview');
63
  var error = jQuery(previewSelector + '-error');
64
  el.bind('input paste change keyup', function() {
65
  setTimeout(function() {
66
- var img = jQuery('<img />').on('error', function() {
67
- preview.html('');
68
- if(img.attr('src') != '') {
69
- error.html('<div class="error settings-error"><p><strong>Invalid Image URL</strong></p></div>');
70
- }
71
- }).attr('src', jQuery.trim(el.val()));
72
- error.html('');
73
- preview.html('').append(img);
 
 
 
 
 
 
 
74
  }, 100);
75
  });
76
  }
@@ -140,7 +148,6 @@ jQuery(document).ready(function() {
140
  }
141
 
142
  function pf_reset_style() {
143
- console.log('reseting styles');
144
  jQuery('.printfriendly-text2').css('font-size',14);
145
  jQuery('.printfriendly-text2').css('color','#000000');
146
  }
59
 
60
  function pf_initialize_preview(urlInputSelector, previewSelector) {
61
  var el = jQuery(urlInputSelector);
62
+ var imgUrl = jQuery.trim(el.val());
63
  var preview = jQuery(previewSelector + '-preview');
64
  var error = jQuery(previewSelector + '-error');
65
  el.bind('input paste change keyup', function() {
66
  setTimeout(function() {
67
+ // ie shows error if we try to merge the two below into a single statement
68
+ var img = jQuery('<img/>');
69
+ var imgUrl = jQuery.trim(el.val());
70
+ img.load(function() {
71
+ error.html('');
72
+ preview.html('').append(img);})
73
+ .error(function() {
74
+ preview.html('');
75
+ if(img.attr('src') != '') {
76
+ error.html('<div class="error settings-error"><p><strong>Invalid Image URL</strong></p></div>');
77
+ }
78
+ }).attr('src', imgUrl);
79
+ // hide error for empty url
80
+ if(imgUrl == '')
81
+ error.html('');
82
  }, 100);
83
  });
84
  }
148
  }
149
 
150
  function pf_reset_style() {
 
151
  jQuery('.printfriendly-text2').css('font-size',14);
152
  jQuery('.printfriendly-text2').css('color','#000000');
153
  }
pf.php CHANGED
@@ -4,11 +4,12 @@ Plugin Name: Print Friendly and PDF
4
  Plugin URI: http://www.printfriendly.com
5
  Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email.
6
  Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared.
7
- Version: 3.1.9
8
  Author: Print Friendly
9
  Author URI: http://www.PrintFriendly.com
10
 
11
  Changelog :
 
12
  3.1.9 - Minor css detail.
13
  3.1.8 - Add printfriendly options to allow/not allow print, pdf, email from the Printfriendly and PDF dialog.
14
  3.1.7 - Revert default print button show settings. Prevent easy override of print button text-decoration and border style properties.
@@ -400,7 +401,7 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
400
  */
401
  function admin_enqueue_scripts( $screen_id ) {
402
  if ( $this->settings_page == $screen_id ) {
403
- $ver = '3.1.5';
404
  wp_register_script( 'pf-color-picker', plugins_url( 'colorpicker.js', __FILE__ ), array( 'jquery', 'media-upload' ), $ver );
405
  wp_register_script( 'pf-admin-js', plugins_url( 'admin.js', __FILE__ ), array( 'jquery', 'media-upload' ), $ver );
406
 
@@ -927,7 +928,7 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
927
  <option value="http" <?php selected( $this->options['website_protocol'], 'http' ); ?>><?php _e( "http (common)", $this->hook ); ?></option>
928
  <option value="https" <?php selected( $this->options['website_protocol'], 'https' ); ?>><?php _e( "https (secure)", $this->hook ); ?></option>
929
  </select>
930
- <span id="https-beta-registration" class="description">HTTPS is in Beta. Please <a href="#" onclick="window.open('http://www.printfriendly.com/https-registration.html', 'newwindow', 'width=600, height=550'; return false;">Register for updates</a>.
931
  </span>
932
  </label>
933
  <label for="password-site">Password Protected Content
4
  Plugin URI: http://www.printfriendly.com
5
  Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email.
6
  Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared.
7
+ Version: 3.2.0
8
  Author: Print Friendly
9
  Author URI: http://www.PrintFriendly.com
10
 
11
  Changelog :
12
+ 3.2.0 - Important chrome issue fix. Ie syntax error fix.
13
  3.1.9 - Minor css detail.
14
  3.1.8 - Add printfriendly options to allow/not allow print, pdf, email from the Printfriendly and PDF dialog.
15
  3.1.7 - Revert default print button show settings. Prevent easy override of print button text-decoration and border style properties.
401
  */
402
  function admin_enqueue_scripts( $screen_id ) {
403
  if ( $this->settings_page == $screen_id ) {
404
+ $ver = '3.2.0';
405
  wp_register_script( 'pf-color-picker', plugins_url( 'colorpicker.js', __FILE__ ), array( 'jquery', 'media-upload' ), $ver );
406
  wp_register_script( 'pf-admin-js', plugins_url( 'admin.js', __FILE__ ), array( 'jquery', 'media-upload' ), $ver );
407
 
928
  <option value="http" <?php selected( $this->options['website_protocol'], 'http' ); ?>><?php _e( "http (common)", $this->hook ); ?></option>
929
  <option value="https" <?php selected( $this->options['website_protocol'], 'https' ); ?>><?php _e( "https (secure)", $this->hook ); ?></option>
930
  </select>
931
+ <span id="https-beta-registration" class="description">HTTPS is in Beta. Please <a href="#" onclick="window.open('http://www.printfriendly.com/https-registration.html', 'newwindow', 'width=600, height=550'); return false;">Register for updates</a>.
932
  </span>
933
  </label>
934
  <label for="password-site">Password Protected Content
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: printfriendly,joostdevalk
3
  Tags: print, pdf, printer, printing, printable, widget, plugin
4
  Requires at least: 2.8
5
  Tested up to: 3.5
6
- Stable tag: 3.1.9
7
 
8
  The #1 Print and PDF button for your WordPress site. Printer Friendly pages without coding, css, or print.css. Fast, easy, and professional.
9
 
@@ -98,7 +98,12 @@ If you have any other issues with the plugin or the PrintFriendly widget, please
98
 
99
  == Changelog ==
100
 
101
- = 3.1.8 =
 
 
 
 
 
102
 
103
  * Minor css detail.
104
 
3
  Tags: print, pdf, printer, printing, printable, widget, plugin
4
  Requires at least: 2.8
5
  Tested up to: 3.5
6
+ Stable tag: 3.2.0
7
 
8
  The #1 Print and PDF button for your WordPress site. Printer Friendly pages without coding, css, or print.css. Fast, easy, and professional.
9
 
98
 
99
  == Changelog ==
100
 
101
+
102
+ = 3.2.0 =
103
+
104
+ * Important chrome issue fix. Ie syntax error fix.
105
+
106
+ = 3.1.9 =
107
 
108
  * Minor css detail.
109