Version Description
Download this release
Release Info
| Developer | printfriendly |
| Plugin | |
| Version | 0.3 |
| Comparing to | |
| See all releases | |
Code changes from version 0.2 to 0.3
pf.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: PrintFriendly
|
| 4 |
Plugin URI: http://www.printfriendly.com/button
|
| 5 |
Description: Creates PrintFriendly.com button for easy printing. [<a href="options-general.php?page=printfriendly/pf.php">Settings</a>].
|
| 6 |
-
Version: 0.
|
| 7 |
Author: Vamsee Kanakala
|
| 8 |
Author URI: http://kanakala.net
|
| 9 |
*/
|
|
@@ -14,9 +14,9 @@ function pf_show_link($content)
|
|
| 14 |
$button_type = get_option('pf_button_type');
|
| 15 |
|
| 16 |
if ($button_type != 'text-only')
|
| 17 |
-
return $content.'<div><script src="http://www.printfriendly.com/javascripts/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" onclick="window.print(); return false;" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none;" src="http://www.printfriendly.com/images/'.$button_type.'" alt="Print"/></a></div>';
|
| 18 |
else
|
| 19 |
-
return $content.'<script src="http://www.printfriendly.com/javascripts/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com"
|
| 20 |
} else {
|
| 21 |
return $content;
|
| 22 |
}
|
| 3 |
Plugin Name: PrintFriendly
|
| 4 |
Plugin URI: http://www.printfriendly.com/button
|
| 5 |
Description: Creates PrintFriendly.com button for easy printing. [<a href="options-general.php?page=printfriendly/pf.php">Settings</a>].
|
| 6 |
+
Version: 0.3
|
| 7 |
Author: Vamsee Kanakala
|
| 8 |
Author URI: http://kanakala.net
|
| 9 |
*/
|
| 14 |
$button_type = get_option('pf_button_type');
|
| 15 |
|
| 16 |
if ($button_type != 'text-only')
|
| 17 |
+
return $content.'<div><script src="http://www.printfriendly.com/javascripts/printfriendly.js" type="text/javascript"></script><a id="pfLink" href="http://www.printfriendly.com" onclick="window.print(); return false;" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none;" src="http://www.printfriendly.com/images/'.$button_type.'" alt="Print" /></a></div>';
|
| 18 |
else
|
| 19 |
+
return $content.'<script src="http://www.printfriendly.com/javascripts/printfriendly.js" type="text/javascript"></script><a id="pfLink" href="http://www.printfriendly.com" onclick="window.print(); return false;" title="Print an optimized version of this web page">Print</a>';
|
| 20 |
} else {
|
| 21 |
return $content;
|
| 22 |
}
|
