Print, PDF, Email by PrintFriendly - Version 0.5

Version Description

Download this release

Release Info

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

Code changes from version 0.4 to 0.5

Files changed (2) hide show
  1. pf.php +2 -2
  2. readme.txt +4 -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.4
7
  Author: Vamsee Kanakala
8
  Author URI: http://kanakala.net
9
  */
@@ -14,7 +14,7 @@ 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 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 {
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.5
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 id="pfButton"><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; padding:0;" 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 {
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === PrintFriendly ===
2
- Contributors: vamsee, printfriendly
3
- Tags: print, save, paper, ink
4
  Requires at least: 1.5
5
  Tested up to: 2.7.1
6
- Stable tag: 0.4
7
 
8
  Adds the PrintFriendly button to your posts and pages. Calls the widget at PrintFriendly.com to help you save ink and paper.
9
 
@@ -18,6 +18,7 @@ user can also genrate a PDF if he likes to save the content.
18
  1. Download the printfriendly.zip file and unzip it.
19
  2. Move the resulting folder into wp-content/plugins folder your wordpress install
20
  3. Activate the plugin in your Wordpress Admin area.
 
21
 
22
  == Support ==
23
 
1
  === PrintFriendly ===
2
+ Contributors: printfriendly, vamsee
3
+ Tags: print, friendly, save, paper, ink
4
  Requires at least: 1.5
5
  Tested up to: 2.7.1
6
+ Stable tag: 0.5
7
 
8
  Adds the PrintFriendly button to your posts and pages. Calls the widget at PrintFriendly.com to help you save ink and paper.
9
 
18
  1. Download the printfriendly.zip file and unzip it.
19
  2. Move the resulting folder into wp-content/plugins folder your wordpress install
20
  3. Activate the plugin in your Wordpress Admin area.
21
+ 4. Choose your button style in the plugin settings area.
22
 
23
  == Support ==
24