Version Description
Download this release
Release Info
| Developer | printfriendly |
| Plugin | |
| Version | 0.8 |
| Comparing to | |
| See all releases | |
Code changes from version 0.7 to 0.8
- pf.php +6 -6
- readme.txt +1 -1
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 |
*/
|
|
@@ -15,19 +15,19 @@ function pf_show_link($content)
|
|
| 15 |
|
| 16 |
switch ($button_type) {
|
| 17 |
case "text-only":
|
| 18 |
-
return $content.'<script src="http://cdn.printnicer.com/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" id="
|
| 19 |
break;
|
| 20 |
case "pf-button-big.gif":
|
| 21 |
-
return $content.'<script src="http://cdn.printnicer.com/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" id="
|
| 22 |
break;
|
| 23 |
case "pf-icon-small.gif":
|
| 24 |
-
return $content.'<script src="http://cdn.printnicer.com/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" id="
|
| 25 |
break;
|
| 26 |
case "pf-icon.gif":
|
| 27 |
-
return $content.'<script src="http://cdn.printnicer.com/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" id="
|
| 28 |
break;
|
| 29 |
default:
|
| 30 |
-
return $content.'<script src="http://cdn.printnicer.com/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" id="
|
| 31 |
}
|
| 32 |
} else {
|
| 33 |
return $content;
|
| 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.8
|
| 7 |
Author: Vamsee Kanakala
|
| 8 |
Author URI: http://kanakala.net
|
| 9 |
*/
|
| 15 |
|
| 16 |
switch ($button_type) {
|
| 17 |
case "text-only":
|
| 18 |
+
return $content.'<div id="pfButton"><script src="http://cdn.printnicer.com/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" id="pfLink" onclick="window.print(); return false;" title="Print an optimized version of this web page" style="text-decoration: none;"><span style="color: rgb(85, 117, 12);">Print Friendly</span></a></div>';
|
| 19 |
break;
|
| 20 |
case "pf-button-big.gif":
|
| 21 |
+
return $content.'<div id="pfButton"><script src="http://cdn.printnicer.com/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" id="pfLink" 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/pf-button-big.gif" alt="Print"/></a></div>';
|
| 22 |
break;
|
| 23 |
case "pf-icon-small.gif":
|
| 24 |
+
return $content.'<div id="pfButton"><script src="http://cdn.printnicer.com/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" id="pfLink" onclick="window.print(); return false;" title="Print an optimized version of this web page" style="text-decoration: none;"><img id="printfriendly" style="border:none;" src="http://www.printfriendly.com/images/pf-icon-small.gif" alt="Print"/><span style="font-size: 12px; color: rgb(85, 117, 12);">Print Friendly</span></a></div>';
|
| 25 |
break;
|
| 26 |
case "pf-icon.gif":
|
| 27 |
+
return $content.'<div id="pfButton"><script src="http://cdn.printnicer.com/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" id="pfLink" onclick="window.print(); return false;" title="Print an optimized version of this web page" style="text-decoration: none;"><img id="printfriendly" style="border:none;" src="http://www.printfriendly.com/images/pf-icon.gif" alt="Print"/><span style="font-size: 15px; color: rgb(85, 117, 12);">Print Friendly</span></a></div>';
|
| 28 |
break;
|
| 29 |
default:
|
| 30 |
+
return $content.'<div id="pfButton"><script src="http://cdn.printnicer.com/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" id="pfLink" 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/pf-button.gif" alt="Print"/></a></div>';
|
| 31 |
}
|
| 32 |
} else {
|
| 33 |
return $content;
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ 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.
|
| 7 |
|
| 8 |
Adds the PrintFriendly button to your posts and pages. On clicking, it opens a lightbox-like modal window with cleaned up, print friendly content of your blog post or page. It will help your readers save ink, paper and thereby helps the environment too!
|
| 9 |
|
| 3 |
Tags: print, friendly, save, paper, ink
|
| 4 |
Requires at least: 1.5
|
| 5 |
Tested up to: 2.7.1
|
| 6 |
+
Stable tag: 0.8
|
| 7 |
|
| 8 |
Adds the PrintFriendly button to your posts and pages. On clicking, it opens a lightbox-like modal window with cleaned up, print friendly content of your blog post or page. It will help your readers save ink, paper and thereby helps the environment too!
|
| 9 |
|
