Version Description
Download this release
Release Info
Developer | printfriendly |
Plugin | Print, PDF, Email by PrintFriendly |
Version | 1.3 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.3
- pf.php +43 -6
- readme.txt +11 -7
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
pf.php
CHANGED
@@ -3,9 +3,14 @@
|
|
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: 1.
|
7 |
Author: Vamsee Kanakala
|
8 |
Author URI: http://kanakala.net
|
|
|
|
|
|
|
|
|
|
|
9 |
*/
|
10 |
|
11 |
function pf_show_link($content)
|
@@ -39,6 +44,16 @@ function pf_show_link($content)
|
|
39 |
return $content.'<div id="pfButton"><a href="'.$plink_url.$separator.'" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button-big.gif" alt="Print"/></a></div>';
|
40 |
}
|
41 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
case "pf-icon-small.gif":
|
43 |
if (is_single() || is_page()) {
|
44 |
return $content.'<div id="pfButton"><script src="http://cdn.printfriendly.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; padding:0;" src="http://cdn.printfriendly.com/pf-icon-small.gif" alt="Print"/><span style="font-size: 12px; color: rgb(85, 117, 12);">Print Friendly</span></a></div>';
|
@@ -59,6 +74,16 @@ function pf_show_link($content)
|
|
59 |
return $content.'<div id="pfButton"><a href="'.$plink_url.$separator.'" title="Print an optimized version of this web page" style="text-decoration: none;"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-icon.gif" alt="Print"/><span style="font-size: 15px; color: rgb(85, 117, 12);">Print Friendly</span></a></div>';
|
60 |
}
|
61 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
default:
|
63 |
if (is_single() || is_page()) {
|
64 |
return $content.'<div id="pfButton"><script src="http://cdn.printfriendly.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; padding:0;" src="http://cdn.printfriendly.com/pf-button.gif" alt="Print"/></a></div>';
|
@@ -79,11 +104,8 @@ add_action('admin_menu', 'pf_menu');
|
|
79 |
function pf_head() {
|
80 |
if (is_single() || is_page()) {
|
81 |
?>
|
82 |
-
|
83 |
-
|
84 |
-
<?php } ?>
|
85 |
-
<link rel="stylesheet" href="http://cdn.printfriendly.com/printfriendly.css" type="text/css" />
|
86 |
-
<?php
|
87 |
}
|
88 |
}
|
89 |
|
@@ -147,6 +169,21 @@ function pf_options() {
|
|
147 |
<span style="font-size: 15px; color: rgb(85, 117, 12);">Print Friendly</span>
|
148 |
</td>
|
149 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
<tr>
|
151 |
<td><input name="pf_button_type" type="radio" value="text-only" <?php if ($option_value == 'text-only') _e('checked="checked"') ?>/></td>
|
152 |
<td>
|
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: 1.3
|
7 |
Author: Vamsee Kanakala
|
8 |
Author URI: http://kanakala.net
|
9 |
+
|
10 |
+
Recent changes:
|
11 |
+
1.3 - Added new buttons, removed redundant code.
|
12 |
+
1.2 - User can choose to show or not show buttons on the listing page.
|
13 |
+
|
14 |
*/
|
15 |
|
16 |
function pf_show_link($content)
|
44 |
return $content.'<div id="pfButton"><a href="'.$plink_url.$separator.'" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button-big.gif" alt="Print"/></a></div>';
|
45 |
}
|
46 |
break;
|
47 |
+
case "pf-button-both.gif":
|
48 |
+
if (is_single() || is_page()) {
|
49 |
+
return $content.'<div id="pfButton"><script src="http://cdn.printfriendly.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; padding:0;" src="http://cdn.printfriendly.com/pf-button-both.gif" alt="Print"/></a></div>';
|
50 |
+
} else {
|
51 |
+
if ($show_list != 0)
|
52 |
+
return $content;
|
53 |
+
else
|
54 |
+
return $content.'<div id="pfButton"><a href="'.$plink_url.$separator.'" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button-both.gif" alt="Print"/></a></div>';
|
55 |
+
}
|
56 |
+
break;
|
57 |
case "pf-icon-small.gif":
|
58 |
if (is_single() || is_page()) {
|
59 |
return $content.'<div id="pfButton"><script src="http://cdn.printfriendly.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; padding:0;" src="http://cdn.printfriendly.com/pf-icon-small.gif" alt="Print"/><span style="font-size: 12px; color: rgb(85, 117, 12);">Print Friendly</span></a></div>';
|
74 |
return $content.'<div id="pfButton"><a href="'.$plink_url.$separator.'" title="Print an optimized version of this web page" style="text-decoration: none;"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-icon.gif" alt="Print"/><span style="font-size: 15px; color: rgb(85, 117, 12);">Print Friendly</span></a></div>';
|
75 |
}
|
76 |
break;
|
77 |
+
case "pf-icon-both.gif":
|
78 |
+
if (is_single() || is_page()) {
|
79 |
+
return $content.'<div id="pfButton"><script src="http://cdn.printfriendly.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; padding:0;" src="http://cdn.printfriendly.com/pf-print-icon.gif" alt="Print"/><span style="font-size: 12px; color: #55750c;"> Print <img src="http://cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF </span></a></div>';
|
80 |
+
} else {
|
81 |
+
if ($show_list != 0)
|
82 |
+
return $content;
|
83 |
+
else
|
84 |
+
return $content.'<div id="pfButton"><a href="'.$plink_url.$separator.'" title="Print an optimized version of this web page" style="text-decoration: none;"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-print-icon.gif" alt="Print"/><span style="font-size: 12px; color: #55750c;"> Print <img src="http://cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF </span></a></div>';
|
85 |
+
}
|
86 |
+
break;
|
87 |
default:
|
88 |
if (is_single() || is_page()) {
|
89 |
return $content.'<div id="pfButton"><script src="http://cdn.printfriendly.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; padding:0;" src="http://cdn.printfriendly.com/pf-button.gif" alt="Print"/></a></div>';
|
104 |
function pf_head() {
|
105 |
if (is_single() || is_page()) {
|
106 |
?>
|
107 |
+
<link rel="stylesheet" href="http://cdn.printfriendly.com/printfriendly.css" type="text/css" />
|
108 |
+
<?php
|
|
|
|
|
|
|
109 |
}
|
110 |
}
|
111 |
|
169 |
<span style="font-size: 15px; color: rgb(85, 117, 12);">Print Friendly</span>
|
170 |
</td>
|
171 |
</tr>
|
172 |
+
<tr valign="top">
|
173 |
+
<td><input name="pf_button_type" type="radio" value="pf-button-both.gif"
|
174 |
+
<?php if ($option_value == 'pf-button-both.gif') _e('checked="checked"') ?>/></td>
|
175 |
+
<td><img src="http://cdn.printfriendly.com/pf-button-both.gif" alt="Select This Button Style" /></td>
|
176 |
+
</tr>
|
177 |
+
<tr>
|
178 |
+
<td><input name="pf_button_type" type="radio" value="pf-icon-both.gif"
|
179 |
+
<?php if ($option_value == 'pf-icon-both.gif') _e('checked="checked"') ?>/></td>
|
180 |
+
<td>
|
181 |
+
<img src="http://cdn.printfriendly.com/pf-print-icon.gif" alt="Print Friendly Version of this page" />
|
182 |
+
<span style="font-size: 12px; color: #55750c;">
|
183 |
+
Print <img src="http://cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF
|
184 |
+
</span>
|
185 |
+
</td>
|
186 |
+
</tr>
|
187 |
<tr>
|
188 |
<td><input name="pf_button_type" type="radio" value="text-only" <?php if ($option_value == 'text-only') _e('checked="checked"') ?>/></td>
|
189 |
<td>
|
readme.txt
CHANGED
@@ -1,17 +1,16 @@
|
|
1 |
=== PrintFriendly ===
|
2 |
Contributors: printfriendly, vamsee
|
3 |
-
Tags: print,
|
4 |
Requires at least: 1.5
|
5 |
-
|
6 |
-
Stable tag: 1.2
|
7 |
|
8 |
-
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
|
16 |
== Installation ==
|
17 |
|
@@ -23,3 +22,8 @@ user can also genrate a PDF if he likes to save the content.
|
|
23 |
== Support ==
|
24 |
|
25 |
If you have any issues with the plugin or the PrintFriendly widget, please write to support@printfriendly.com
|
|
|
|
|
|
|
|
|
|
1 |
=== PrintFriendly ===
|
2 |
Contributors: printfriendly, vamsee
|
3 |
+
Tags: print, printer, pdf, version, button
|
4 |
Requires at least: 1.5
|
5 |
+
Stable tag: 1.3
|
|
|
6 |
|
7 |
+
Add the Print Friendly button to your WordPress blog and help your readers save paper and ink when they print. Print Friendly cleans and optimizes your pages and lets readers get PDF versions too.
|
8 |
|
9 |
== Description ==
|
10 |
|
11 |
+
Add the Print Friendly button to your WordPress blog and help people save paper and ink when they print. Print friendly cleans and optimizes your pages. Cool features include get PDF, and the ability to remove images before printing.
|
12 |
+
|
13 |
+
Learn more, and take PrintFriendly for a test drive. Check out <a href"http://www.PrintFriendly.com" title="Print Friendly button widget" target="_new">PrintFriendly.com</a>
|
14 |
|
15 |
== Installation ==
|
16 |
|
22 |
== Support ==
|
23 |
|
24 |
If you have any issues with the plugin or the PrintFriendly widget, please write to support@printfriendly.com
|
25 |
+
|
26 |
+
== Screenshots ==
|
27 |
+
|
28 |
+
1. The PrintFriendly widget optimizes and formats your pages for print. Users can remove images and get a PDF
|
29 |
+
2. Choose your button, text link, or use your own text or graphic.
|
screenshot-1.png
ADDED
Binary file
|
screenshot-2.png
ADDED
Binary file
|