Print, PDF, Email by PrintFriendly - Version 3.1.4

Version Description

  • Changed https url. Don't hide text change box when disabling css.
Download this release

Release Info

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

Code changes from version 3.1.3 to 3.1.4

Files changed (3) hide show
  1. admin.js +2 -2
  2. pf.php +10 -6
  3. readme.txt +7 -3
admin.js CHANGED
@@ -42,11 +42,11 @@ jQuery(document).ready(function() {
42
  jQuery('#css input').change(function() {
43
  if(jQuery(this).attr('checked')) {
44
  jQuery(this).val('off');
45
- jQuery('#margin, #custom-txt').hide('slow');
46
  pf_reset_style();
47
  } else {
48
  jQuery(this).val('on');
49
- jQuery('#margin, #custom-txt').show('slow');
50
  pf_apply_style();
51
  }
52
  }).change();
42
  jQuery('#css input').change(function() {
43
  if(jQuery(this).attr('checked')) {
44
  jQuery(this).val('off');
45
+ jQuery('#margin, #txt-color, #txt-size').hide('slow');
46
  pf_reset_style();
47
  } else {
48
  jQuery(this).val('on');
49
+ jQuery('#margin, #txt-color, #txt-size').show('slow');
50
  pf_apply_style();
51
  }
52
  }).change();
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.3
8
  Author: Print Friendly
9
  Author URI: http://www.PrintFriendly.com
10
 
11
  Changelog :
 
12
  3.1.3 - Fixed bug with disable css option
13
  3.1.2 - Added disable css option to admin settings.
14
  3.1.1 - Fixed admin js caching.
@@ -385,7 +386,7 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
385
  */
386
  function admin_enqueue_scripts( $screen_id ) {
387
  if ( $this->settings_page == $screen_id ) {
388
- $ver = '3.1.3';
389
  wp_register_script( 'pf-color-picker', plugins_url( 'colorpicker.js', __FILE__ ), array( 'jquery', 'media-upload' ), $ver );
390
  wp_register_script( 'pf-admin-js', plugins_url( 'admin.js', __FILE__ ), array( 'jquery', 'media-upload' ), $ver );
391
 
@@ -545,6 +546,9 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
545
  $name = $this->options['button_type'];
546
 
547
  $text = $this->options['custom_text'];
 
 
 
548
 
549
  switch($name){
550
  case "custom-image":
@@ -562,18 +566,18 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
562
  break;
563
 
564
  case "pf-icon-both.gif":
565
- return '<span class="printfriendly-text2 printandpdf"><img style="border:none;margin-right:6px;" src="http://cdn.printfriendly.com/pf-print-icon.gif" width="16" height="15" alt="Print Friendly Version of this page" />Print <img style="border:none;margin:0 6px" src="http://cdn.printfriendly.com/pf-pdf-icon.gif" width="12" height="12" alt="Get a PDF version of this webpage" />PDF</span>';
566
  break;
567
 
568
  case "pf-icon-small.gif":
569
- return '<img style="border:none;margin-right:4px;" src="http://cdn.printfriendly.com/pf-icon-small.gif" alt="PrintFriendly and PDF" width="18" height="18"><span class="printfriendly-text2">'.$text.'</span>';
570
  break;
571
  case "pf-icon.gif":
572
- return '<img style="border:none;margin-right:6px;" src="http://cdn.printfriendly.com/pf-icon.gif" width="23" height="25" alt="PrintFriendly and PDF"><span class="printfriendly-text2">'.$text.'</span>';
573
  break;
574
 
575
  default:
576
- return '<img src="//cdn.printfriendly.com/'.$name.'" alt="Print Friendly" />';
577
  break;
578
  }
579
  }
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.4
8
  Author: Print Friendly
9
  Author URI: http://www.PrintFriendly.com
10
 
11
  Changelog :
12
+ 3.1.4 - Changed https url. Don't hide text change box when disabling css.
13
  3.1.3 - Fixed bug with disable css option
14
  3.1.2 - Added disable css option to admin settings.
15
  3.1.1 - Fixed admin js caching.
386
  */
387
  function admin_enqueue_scripts( $screen_id ) {
388
  if ( $this->settings_page == $screen_id ) {
389
+ $ver = '3.1.4';
390
  wp_register_script( 'pf-color-picker', plugins_url( 'colorpicker.js', __FILE__ ), array( 'jquery', 'media-upload' ), $ver );
391
  wp_register_script( 'pf-admin-js', plugins_url( 'admin.js', __FILE__ ), array( 'jquery', 'media-upload' ), $ver );
392
 
546
  $name = $this->options['button_type'];
547
 
548
  $text = $this->options['custom_text'];
549
+ $img_path = 'http://cdn.printfriendly.com/';
550
+ if($this->options['website_protocol'] == 'https')
551
+ $img_path = 'https://pf-cdn.printfriendly.com/images/';
552
 
553
  switch($name){
554
  case "custom-image":
566
  break;
567
 
568
  case "pf-icon-both.gif":
569
+ return '<span class="printfriendly-text2 printandpdf"><img style="border:none;margin-right:6px;" src="'.$img_path.'pf-print-icon.gif" width="16" height="15" alt="Print Friendly Version of this page" />Print <img style="border:none;margin:0 6px" src="'.$img_path.'pf-pdf-icon.gif" width="12" height="12" alt="Get a PDF version of this webpage" />PDF</span>';
570
  break;
571
 
572
  case "pf-icon-small.gif":
573
+ return '<img style="border:none;margin-right:4px;" src="'.$img_path.'pf-icon-small.gif" alt="PrintFriendly and PDF" width="18" height="18"><span class="printfriendly-text2">'.$text.'</span>';
574
  break;
575
  case "pf-icon.gif":
576
+ return '<img style="border:none;margin-right:6px;" src="'.$img_path.'pf-icon.gif" width="23" height="25" alt="PrintFriendly and PDF"><span class="printfriendly-text2">'.$text.'</span>';
577
  break;
578
 
579
  default:
580
+ return '<img src="'.$img_path.$name.'" alt="Print Friendly" />';
581
  break;
582
  }
583
  }
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.4.2
6
- Stable tag: 3.1.3
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
 
@@ -18,7 +18,7 @@ The Print Friendly & PDF button automatically creates printer friendly and PDF v
18
  **Cool Features For You:**
19
 
20
  * Get a Printer Friendly and PDF button for your users.
21
- * Fully Customizable! Choose your favorite print and PDF button, use a text link, or use your own graphic.
22
  * Get precision placement with easy to change margins, alignment, and pages for your Print and PDF button.
23
  * On-Page-Lightbox. Have you noticed that other printer friendly buttons open new windows, or tabs? Not with Print Friendly & PDF button. It opens in a Lightbox so you your users stay on the page, and your wp website.
24
  * Professional looking print and PDFs with branded headers.
@@ -37,7 +37,7 @@ PrintFriendly and PDF is the #1 print optimization technology, **as featured in
37
  == Installation ==
38
 
39
  1. Search for PrintFriendly in your WordPress backend and click install, or download the printfriendly.zip file and unzip it.
40
- 2. If you downloaded the zip, upload the printfriendly folder into wp-content/plugins folder
41
  3. Activate the plugin in your WordPress Admin area.
42
  4. Select "Settings" to customize button style and placement.
43
 
@@ -65,6 +65,10 @@ If you have any other issues with the plugin or the PrintFriendly widget, please
65
 
66
  == Changelog ==
67
 
 
 
 
 
68
  = 3.1.3 =
69
 
70
  * Fixed bug with disable css option.
3
  Tags: print, pdf, printer, printing, printable, widget, plugin
4
  Requires at least: 2.8
5
  Tested up to: 3.4.2
6
+ Stable tag: 3.1.4
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
 
18
  **Cool Features For You:**
19
 
20
  * Get a Printer Friendly and PDF button for your users.
21
+ * Fully Customizable! Choose your favorite print and PDF button, use a text link, or use your own graphic.
22
  * Get precision placement with easy to change margins, alignment, and pages for your Print and PDF button.
23
  * On-Page-Lightbox. Have you noticed that other printer friendly buttons open new windows, or tabs? Not with Print Friendly & PDF button. It opens in a Lightbox so you your users stay on the page, and your wp website.
24
  * Professional looking print and PDFs with branded headers.
37
  == Installation ==
38
 
39
  1. Search for PrintFriendly in your WordPress backend and click install, or download the printfriendly.zip file and unzip it.
40
+ 2. If you downloaded the zip, upload the printfriendly folder into wp-content/plugins folder
41
  3. Activate the plugin in your WordPress Admin area.
42
  4. Select "Settings" to customize button style and placement.
43
 
65
 
66
  == Changelog ==
67
 
68
+ = 3.1.4 =
69
+
70
+ * Changed https url. Don't hide text change box when disabling css.
71
+
72
  = 3.1.3 =
73
 
74
  * Fixed bug with disable css option.