Version Description
Download this release
Release Info
| Developer | printfriendly |
| Plugin | |
| Version | 3.2.8 |
| Comparing to | |
| See all releases | |
Code changes from version 3.2.7 to 3.2.8
- pf.php +32 -3
- readme.txt +3 -1
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.2.
|
| 9 |
Author: Print Friendly
|
| 10 |
Author URI: http://www.PrintFriendly.com
|
| 11 |
|
| 12 |
Changelog :
|
|
|
|
| 13 |
3.2.7 - Removed Break tag from button code.
|
| 14 |
3.2.6 - Fixed Button behavior when displayed on Homepage for NON-JS version. Fixed CSS issue with Button when placed above content. Fixed box-shadow issue with button. Custom print and pdf options now available for Non-JS version (custom header, custom css, image alignment, etc.). Fixed custom header bug.
|
| 15 |
3.2.5 - Added hide images and image style options. Improved input validation. Improved output escaping. Removed printfriendly post_class. Small i8n fix. Few small HTML fixes.
|
|
@@ -122,7 +123,10 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
| 122 |
add_filter( 'the_content', array( &$this, 'show_link' ) );
|
| 123 |
add_filter( 'the_excerpt', array( &$this, 'show_link' ) );
|
| 124 |
}
|
| 125 |
-
|
|
|
|
|
|
|
|
|
|
| 126 |
|
| 127 |
if ( is_admin() ) {
|
| 128 |
// Hook into init for registration of the option and the language files
|
|
@@ -142,6 +146,31 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
| 142 |
}
|
| 143 |
}
|
| 144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
/**
|
| 146 |
* PHP 4 Compatible Constructor
|
| 147 |
*
|
|
@@ -281,7 +310,7 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
| 281 |
|
| 282 |
if ( !is_singular() && '' != $onclick && $js_enabled) {
|
| 283 |
$onclick = '';
|
| 284 |
-
$href =
|
| 285 |
}
|
| 286 |
|
| 287 |
$align = '';
|
| 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.2.8
|
| 9 |
Author: Print Friendly
|
| 10 |
Author URI: http://www.PrintFriendly.com
|
| 11 |
|
| 12 |
Changelog :
|
| 13 |
+
3.2.8 - Algorithm Update
|
| 14 |
3.2.7 - Removed Break tag from button code.
|
| 15 |
3.2.6 - Fixed Button behavior when displayed on Homepage for NON-JS version. Fixed CSS issue with Button when placed above content. Fixed box-shadow issue with button. Custom print and pdf options now available for Non-JS version (custom header, custom css, image alignment, etc.). Fixed custom header bug.
|
| 16 |
3.2.5 - Added hide images and image style options. Improved input validation. Improved output escaping. Removed printfriendly post_class. Small i8n fix. Few small HTML fixes.
|
| 123 |
add_filter( 'the_content', array( &$this, 'show_link' ) );
|
| 124 |
add_filter( 'the_excerpt', array( &$this, 'show_link' ) );
|
| 125 |
}
|
| 126 |
+
|
| 127 |
+
if ($this->use_wp_content_hook()) {
|
| 128 |
+
add_action('the_content', array(&$this, 'add_pf_content_class_around_content_hook'));
|
| 129 |
+
}
|
| 130 |
|
| 131 |
if ( is_admin() ) {
|
| 132 |
// Hook into init for registration of the option and the language files
|
| 146 |
}
|
| 147 |
}
|
| 148 |
|
| 149 |
+
|
| 150 |
+
/**
|
| 151 |
+
* Returns true if WP content hooks are to used to find content
|
| 152 |
+
* @since 3.2.8
|
| 153 |
+
*
|
| 154 |
+
**/
|
| 155 |
+
function use_wp_content_hook() {
|
| 156 |
+
return $this->options['button_type'] == 'button-print-blu20.png';
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
/**
|
| 160 |
+
* Adds wraps content in pf-content class to help Printfriendly algo determine the content
|
| 161 |
+
*
|
| 162 |
+
* @since 3.2.8
|
| 163 |
+
*
|
| 164 |
+
**/
|
| 165 |
+
function add_pf_content_class_around_content_hook($content = false) {
|
| 166 |
+
if($content) {
|
| 167 |
+
add_action( 'wp_footer', array( &$this, 'print_script_footer' ));
|
| 168 |
+
return '<div class="pf-content">'.$content.'</div>';
|
| 169 |
+
}
|
| 170 |
+
else
|
| 171 |
+
return $content;
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
/**
|
| 175 |
* PHP 4 Compatible Constructor
|
| 176 |
*
|
| 310 |
|
| 311 |
if ( !is_singular() && '' != $onclick && $js_enabled) {
|
| 312 |
$onclick = '';
|
| 313 |
+
$href = add_query_arg('pfstyle','wp',get_permalink());
|
| 314 |
}
|
| 315 |
|
| 316 |
$align = '';
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: printfriendly,joostdevalk, jrf
|
|
| 3 |
Tags: print, pdf, printer, printing, printable, widget, plugin
|
| 4 |
Requires at least: 2.8
|
| 5 |
Tested up to: 3.5.1
|
| 6 |
-
Stable tag: 3.2.
|
| 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,6 +97,8 @@ If you have any other issues with the plugin or the PrintFriendly widget, please
|
|
| 97 |
3. Localization example: Spanish
|
| 98 |
|
| 99 |
== Changelog ==
|
|
|
|
|
|
|
| 100 |
|
| 101 |
= 3.2.7 =
|
| 102 |
* Removed Break tag from button code.
|
| 3 |
Tags: print, pdf, printer, printing, printable, widget, plugin
|
| 4 |
Requires at least: 2.8
|
| 5 |
Tested up to: 3.5.1
|
| 6 |
+
Stable tag: 3.2.8
|
| 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 |
3. Localization example: Spanish
|
| 98 |
|
| 99 |
== Changelog ==
|
| 100 |
+
= 3.2.8
|
| 101 |
+
* Algorithm Update
|
| 102 |
|
| 103 |
= 3.2.7 =
|
| 104 |
* Removed Break tag from button code.
|
