Print, PDF, Email by PrintFriendly - Version 0.3

Version Description

Download this release

Release Info

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

Code changes from version 0.2 to 0.3

Files changed (1) hide show
  1. pf.php +3 -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.2
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" id="printfriendly" onclick="window.print(); return false;" title="Print an optimized version of this web page">Print</a>';
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
  }