Version Description
- Optimized JavaScript, reducing the file size by 65%!
- Better syncing between client-side/server-side content detection algorithm. This will make improvements to content detection easier than ever.
- Support for international language sub-regions, for example PT-BR vs. PT (Portuguese-Brazil vs. Portuguese for Portugal)
- Support for Wordpress - 3.6 .
- Printfriendly custom commands support.
Download this release
Release Info
| Developer | printfriendly |
| Plugin | |
| Version | 3.3.0 |
| Comparing to | |
| See all releases | |
Code changes from version 3.2.10 to 3.3.0
- pf.php +17 -3
- readme.txt +14 -3
pf.php
CHANGED
|
@@ -5,11 +5,12 @@ Plugin Name: Print Friendly and PDF
|
|
| 5 |
Plugin URI: http://www.printfriendly.com
|
| 6 |
Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email.
|
| 7 |
Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared.
|
| 8 |
-
Version: 3.
|
| 9 |
Author: Print Friendly
|
| 10 |
Author URI: http://www.PrintFriendly.com
|
| 11 |
|
| 12 |
Changelog :
|
|
|
|
| 13 |
3.2.10 - Fixed Bug.
|
| 14 |
3.2.9 - Added Support for Google Analytics
|
| 15 |
3.2.8 - Algorithm Update
|
|
@@ -165,7 +166,7 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
| 165 |
*
|
| 166 |
**/
|
| 167 |
function add_pf_content_class_around_content_hook($content = false) {
|
| 168 |
-
if($content) {
|
| 169 |
add_action( 'wp_footer', array( &$this, 'print_script_footer' ));
|
| 170 |
return '<div class="pf-content">'.$content.'</div>';
|
| 171 |
}
|
|
@@ -173,6 +174,17 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
| 173 |
return $content;
|
| 174 |
}
|
| 175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
/**
|
| 177 |
* PHP 4 Compatible Constructor
|
| 178 |
*
|
|
@@ -1065,8 +1077,10 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
| 1065 |
settings_errors();
|
| 1066 |
|
| 1067 |
// Show the content of the options array when debug is enabled
|
| 1068 |
-
if ( WP_DEBUG )
|
|
|
|
| 1069 |
echo '<pre>Options:<br><br>' . print_r( $this->options, 1 ) . '</pre>';
|
|
|
|
| 1070 |
?>
|
| 1071 |
<div id="pf_settings" class="wrap">
|
| 1072 |
|
| 5 |
Plugin URI: http://www.printfriendly.com
|
| 6 |
Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email.
|
| 7 |
Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared.
|
| 8 |
+
Version: 3.3.0
|
| 9 |
Author: Print Friendly
|
| 10 |
Author URI: http://www.PrintFriendly.com
|
| 11 |
|
| 12 |
Changelog :
|
| 13 |
+
3.3.0 - Printfriendly custom commands support and PF Algo V6 release.
|
| 14 |
3.2.10 - Fixed Bug.
|
| 15 |
3.2.9 - Added Support for Google Analytics
|
| 16 |
3.2.8 - Algorithm Update
|
| 166 |
*
|
| 167 |
**/
|
| 168 |
function add_pf_content_class_around_content_hook($content = false) {
|
| 169 |
+
if($content && !$this->print_only_override($content)) {
|
| 170 |
add_action( 'wp_footer', array( &$this, 'print_script_footer' ));
|
| 171 |
return '<div class="pf-content">'.$content.'</div>';
|
| 172 |
}
|
| 174 |
return $content;
|
| 175 |
}
|
| 176 |
|
| 177 |
+
/**
|
| 178 |
+
* Override to check if print-only command is being used
|
| 179 |
+
*
|
| 180 |
+
* @since 3.3.0
|
| 181 |
+
**/
|
| 182 |
+
function print_only_override($content) {
|
| 183 |
+
$pattern = '/class=[\"]print-only|class=[\']print-only|print-only/';
|
| 184 |
+
$pf_pattern = '/class=[\"]pf-content|class=[\']pf-content|pf-content/';
|
| 185 |
+
return (preg_match($pattern, $content) || preg_match($pf_pattern, $content)) ;
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
/**
|
| 189 |
* PHP 4 Compatible Constructor
|
| 190 |
*
|
| 1077 |
settings_errors();
|
| 1078 |
|
| 1079 |
// Show the content of the options array when debug is enabled
|
| 1080 |
+
if ( WP_DEBUG ) {
|
| 1081 |
+
echo "<p>Currently in Debug Mode. Following information is visible in debug mode only:</p>";
|
| 1082 |
echo '<pre>Options:<br><br>' . print_r( $this->options, 1 ) . '</pre>';
|
| 1083 |
+
}
|
| 1084 |
?>
|
| 1085 |
<div id="pf_settings" class="wrap">
|
| 1086 |
|
readme.txt
CHANGED
|
@@ -2,8 +2,9 @@
|
|
| 2 |
Contributors: printfriendly,joostdevalk, jrf
|
| 3 |
Tags: print, pdf, printer, printing, printable, widget, plugin
|
| 4 |
Requires at least: 2.8
|
| 5 |
-
Tested up to: 3.
|
| 6 |
-
Stable tag: 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 |
|
|
@@ -97,13 +98,23 @@ If you have any other issues with the plugin or the PrintFriendly widget, please
|
|
| 97 |
3. Localization example: Spanish
|
| 98 |
|
| 99 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
= 3.2.10 =
|
| 101 |
* Fixed Bug in Google Analytics generation
|
| 102 |
|
| 103 |
= 3.2.9 =
|
| 104 |
* Enabled support for Google Analytics
|
| 105 |
|
| 106 |
-
= 3.2.8 =
|
| 107 |
* Algorithm Update
|
| 108 |
|
| 109 |
= 3.2.7 =
|
| 2 |
Contributors: printfriendly,joostdevalk, jrf
|
| 3 |
Tags: print, pdf, printer, printing, printable, widget, plugin
|
| 4 |
Requires at least: 2.8
|
| 5 |
+
Tested up to: 3.6
|
| 6 |
+
Stable tag: 3.3.0
|
| 7 |
+
|
| 8 |
|
| 9 |
The #1 Print and PDF button for your WordPress site. Printer Friendly pages without coding, css, or print.css. Fast, easy, and professional.
|
| 10 |
|
| 98 |
3. Localization example: Spanish
|
| 99 |
|
| 100 |
== Changelog ==
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
= 3.3.0 =
|
| 104 |
+
|
| 105 |
+
* Optimized JavaScript, reducing the file size by 65%!
|
| 106 |
+
* Better syncing between client-side/server-side content detection algorithm. This will make improvements to content detection easier than ever.
|
| 107 |
+
* Support for international language sub-regions, for example PT-BR vs. PT (Portuguese-Brazil vs. Portuguese for Portugal)
|
| 108 |
+
* Support for Wordpress - 3.6 .
|
| 109 |
+
* Printfriendly custom commands support.
|
| 110 |
+
|
| 111 |
= 3.2.10 =
|
| 112 |
* Fixed Bug in Google Analytics generation
|
| 113 |
|
| 114 |
= 3.2.9 =
|
| 115 |
* Enabled support for Google Analytics
|
| 116 |
|
| 117 |
+
= 3.2.8 =
|
| 118 |
* Algorithm Update
|
| 119 |
|
| 120 |
= 3.2.7 =
|
