Version Description
Download this release
Release Info
Developer | printfriendly |
Plugin | Print, PDF, Email by PrintFriendly |
Version | 0.6 |
Comparing to | |
See all releases |
Code changes from version 0.5 to 0.6
- pf.php +11 -3
- readme.txt +2 -2
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 id="pfButton"><script src="http://
|
18 |
else
|
19 |
-
return $content.'<script src="http://
|
20 |
} else {
|
21 |
return $content;
|
22 |
}
|
@@ -27,6 +27,14 @@ add_action('the_content', 'pf_show_link', 98);
|
|
27 |
|
28 |
add_action('admin_menu', 'pf_menu');
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
function pf_menu() {
|
31 |
add_options_page('PrintFriendly Options', 'PrintFriendly', 8, __FILE__, 'pf_options');
|
32 |
}
|
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.6
|
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://cdn.printnicer.com/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://cdn.printnicer.com/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 |
}
|
27 |
|
28 |
add_action('admin_menu', 'pf_menu');
|
29 |
|
30 |
+
function pf_head() {
|
31 |
+
?>
|
32 |
+
<link rel="stylesheet" href="http://cdn.printnicer.com/printfriendly.css" type="text/css" />
|
33 |
+
<?php
|
34 |
+
}
|
35 |
+
|
36 |
+
add_action('wp_head', 'pf_head');
|
37 |
+
|
38 |
function pf_menu() {
|
39 |
add_options_page('PrintFriendly Options', 'PrintFriendly', 8, __FILE__, 'pf_options');
|
40 |
}
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ 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.
|
9 |
|
10 |
== Description ==
|
11 |
|
3 |
Tags: print, friendly, save, paper, ink
|
4 |
Requires at least: 1.5
|
5 |
Tested up to: 2.7.1
|
6 |
+
Stable tag: 0.6
|
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 |
|
10 |
== Description ==
|
11 |
|