Version Description
- Changed print button from to to support floating the print and PDF button to right.
Download this release
Release Info
Developer | printfriendly |
Plugin | Print, PDF, Email by PrintFriendly |
Version | 2.1.7 |
Comparing to | |
See all releases |
Code changes from version 2.1.6 to 2.1.7
- pf.php +5 -4
- readme.txt +4 -1
pf.php
CHANGED
@@ -5,11 +5,12 @@
|
|
5 |
Description: PrintFriendly & PDF optimizes your pages for print. Help your readers save paper and ink, plus enjoy your content in printed form. Website
|
6 |
Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared. [<a href="options-general.php?page=printfriendly/pf.php">Settings</a>]
|
7 |
Developed by <a href="http://printfriendly.com" target="_blank">PrintFriendly</a>
|
8 |
-
Version: 2.1.
|
9 |
Author: Print Friendly
|
10 |
Author URI: http://www.PrintFriendly.com
|
11 |
|
12 |
Changelog :
|
|
|
13 |
2.1.6 - Added rel="nofollow" to links. Changed button from <a> to <span> to fix target_new or target_blank issues.
|
14 |
2.1.5 - Fix conflict with link tracking plugins. Custom image support for hosted wordpress sites.
|
15 |
2.1.4 - wp head fix.
|
@@ -157,7 +158,7 @@ function pf_button($name=false){
|
|
157 |
}
|
158 |
$return = '<img class="printfriendly" src="'.$custom_image.'" />';
|
159 |
if( get_option('pf_custom_text') != null){
|
160 |
-
$return .='<
|
161 |
}
|
162 |
return $return;
|
163 |
break;
|
@@ -217,9 +218,9 @@ function pf_show_link($content=false)
|
|
217 |
$style.=' margin: '.pf_margin_down('top').'px '.pf_margin_down('right').'px '.pf_margin_down('bottom').'px '.pf_margin_down('left').'px;';
|
218 |
|
219 |
|
220 |
-
$button = '<script src="http://cdn.printfriendly.com/printfriendly.js" type="text/javascript"></script><
|
221 |
|
222 |
-
$button_link = '<
|
223 |
|
224 |
//This goes on article pages
|
225 |
if((is_single() || is_page()) && $pf_display=='single' || (is_single() && $pf_display=='posts'))
|
5 |
Description: PrintFriendly & PDF optimizes your pages for print. Help your readers save paper and ink, plus enjoy your content in printed form. Website
|
6 |
Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared. [<a href="options-general.php?page=printfriendly/pf.php">Settings</a>]
|
7 |
Developed by <a href="http://printfriendly.com" target="_blank">PrintFriendly</a>
|
8 |
+
Version: 2.1.7
|
9 |
Author: Print Friendly
|
10 |
Author URI: http://www.PrintFriendly.com
|
11 |
|
12 |
Changelog :
|
13 |
+
2.1.7 - Changed button from span to div to support floating.
|
14 |
2.1.6 - Added rel="nofollow" to links. Changed button from <a> to <span> to fix target_new or target_blank issues.
|
15 |
2.1.5 - Fix conflict with link tracking plugins. Custom image support for hosted wordpress sites.
|
16 |
2.1.4 - wp head fix.
|
158 |
}
|
159 |
$return = '<img class="printfriendly" src="'.$custom_image.'" />';
|
160 |
if( get_option('pf_custom_text') != null){
|
161 |
+
$return .='<div class="printfriendly" style="font-size:'.get_option('pf_text_size').'px; margin-left:3px; color: '.get_option('pf_text_color').';">'.$text.'</div>';
|
162 |
}
|
163 |
return $return;
|
164 |
break;
|
218 |
$style.=' margin: '.pf_margin_down('top').'px '.pf_margin_down('right').'px '.pf_margin_down('bottom').'px '.pf_margin_down('left').'px;';
|
219 |
|
220 |
|
221 |
+
$button = '<script src="http://cdn.printfriendly.com/printfriendly.js" type="text/javascript"></script><div onclick="window.print(); return false;" style="'.$style.' text-decoration: none; outline: none; color: '.get_option('pf_text_color').'; cursor:pointer;">'.pf_button().'</div>';
|
222 |
|
223 |
+
$button_link = '<div style="'.$style.'"><a href="'.$plink_url.$separator.'" rel="nofollow" style="text-decoration: none; outline: none; color: '.get_option('pf_text_color').';">'.pf_button().'</a></div>';
|
224 |
|
225 |
//This goes on article pages
|
226 |
if((is_single() || is_page()) && $pf_display=='single' || (is_single() && $pf_display=='posts'))
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Print Friendly
|
|
3 |
Tags: print, pdf, printer, printing, printable, widget, plugin
|
4 |
Requires at least: 1.5
|
5 |
Tested up to: 3.1.3
|
6 |
-
Stable tag: 2.1.
|
7 |
|
8 |
#1 Print and PDF button for your wp site. Printer Friendly pages without coding, css, or print.css. Fast, easy, and professional.
|
9 |
|
@@ -55,6 +55,9 @@ If you have any issues with the plugin or the PrintFriendly widget, please write
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
|
|
|
|
|
|
58 |
= 2.1.6 =
|
59 |
* Added rel="no follow" to the print links to avoid search engines indexing the print pages.
|
60 |
* Changed print button from link <a> to <span>. Some tracking plugins added target_new/blank to link, therefore breaking print friendly.
|
3 |
Tags: print, pdf, printer, printing, printable, widget, plugin
|
4 |
Requires at least: 1.5
|
5 |
Tested up to: 3.1.3
|
6 |
+
Stable tag: 2.1.7
|
7 |
|
8 |
#1 Print and PDF button for your wp site. Printer Friendly pages without coding, css, or print.css. Fast, easy, and professional.
|
9 |
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
= 2.1.7 =
|
59 |
+
* Changed print button from <span> to <div> to support floating the print and PDF button to right.
|
60 |
+
|
61 |
= 2.1.6 =
|
62 |
* Added rel="no follow" to the print links to avoid search engines indexing the print pages.
|
63 |
* Changed print button from link <a> to <span>. Some tracking plugins added target_new/blank to link, therefore breaking print friendly.
|