Version Description
Download this release
Release Info
Developer | aaroncampbell |
Plugin | WP-Print |
Version | 2.50 |
Comparing to | |
See all releases |
Code changes from version 2.40 to 2.50
- print-comments.php +1 -1
- print-css-rtl.css +3 -3
- print-css.css +9 -1
- print-options.php +10 -11
- print-posts.php +1 -1
- print.php +1 -1
- readme.html +18 -7
- readme.txt +4 -4
- wp-print.mo +0 -0
- wp-print.php +11 -7
- wp-print.pot +57 -57
print-comments.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
-
| WordPress 2.
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
+
| WordPress 2.7 Plugin: WP-Print 2.50 |
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
print-css-rtl.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/*
|
2 |
+----------------------------------------------------------------+
|
3 |
| |
|
4 |
-
| WordPress 2.
|
5 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
6 |
| |
|
7 |
| File Written By: |
|
@@ -9,8 +9,8 @@
|
|
9 |
| - http://lesterchan.net |
|
10 |
| |
|
11 |
| File Information: |
|
12 |
-
| - CSS Style For Printer Friendly Page (RTL)
|
13 |
-
| - wp-content/plugins/wp-print/print-css-rtl.css
|
14 |
| |
|
15 |
+----------------------------------------------------------------+
|
16 |
*/
|
1 |
/*
|
2 |
+----------------------------------------------------------------+
|
3 |
| |
|
4 |
+
| WordPress 2.7 Plugin: WP-Print 2.50 |
|
5 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
6 |
| |
|
7 |
| File Written By: |
|
9 |
| - http://lesterchan.net |
|
10 |
| |
|
11 |
| File Information: |
|
12 |
+
| - CSS Style For Printer Friendly Page (RTL) |
|
13 |
+
| - wp-content/plugins/wp-print/print-css-rtl.css |
|
14 |
| |
|
15 |
+----------------------------------------------------------------+
|
16 |
*/
|
print-css.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/*
|
2 |
+----------------------------------------------------------------+
|
3 |
| |
|
4 |
-
| WordPress 2.
|
5 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
6 |
| |
|
7 |
| File Written By: |
|
@@ -66,4 +66,12 @@ HR.Divider {
|
|
66 |
#print-link {
|
67 |
display: none;
|
68 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
}
|
1 |
/*
|
2 |
+----------------------------------------------------------------+
|
3 |
| |
|
4 |
+
| WordPress 2.7 Plugin: WP-Print 2.50 |
|
5 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
6 |
| |
|
7 |
| File Written By: |
|
66 |
#print-link {
|
67 |
display: none;
|
68 |
}
|
69 |
+
}
|
70 |
+
.alignleft, div.alignleft {
|
71 |
+
float: left;
|
72 |
+
margin: 10px 10px 5px 0;
|
73 |
+
}
|
74 |
+
.alignright, div.alignright {
|
75 |
+
float: right;
|
76 |
+
margin: 10px 0 5px 10px;
|
77 |
}
|
print-options.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
-
| WordPress 2.
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
@@ -29,8 +29,8 @@ $print_settings = array('print_options');
|
|
29 |
// Update Options
|
30 |
if(!empty($_POST['Submit'])) {
|
31 |
$print_options = array();
|
32 |
-
$print_options['post_text'] = addslashes(trim($_POST['print_post_text']));
|
33 |
-
$print_options['page_text'] = addslashes(trim($_POST['print_page_text']));
|
34 |
$print_options['print_icon'] = trim($_POST['print_icon']);
|
35 |
$print_options['print_style'] = intval($_POST['print_style']);
|
36 |
$print_options['print_html'] = trim($_POST['print_html']);
|
@@ -102,12 +102,11 @@ switch($mode) {
|
|
102 |
<script type="text/javascript">
|
103 |
/* <![CDATA[*/
|
104 |
function check_print_style() {
|
105 |
-
|
106 |
-
|
107 |
-
document.getElementById("print_style_custom").style.display = 'block';
|
108 |
} else {
|
109 |
-
if(
|
110 |
-
|
111 |
}
|
112 |
}
|
113 |
}
|
@@ -121,12 +120,12 @@ switch($mode) {
|
|
121 |
default_template = '<?php echo js_escape(sprintf(__('Copyright © %s %s. All rights reserved.', 'wp-print'), date('Y'), get_option('blogname'))); ?>';
|
122 |
break;
|
123 |
}
|
124 |
-
|
125 |
}
|
126 |
/* ]]> */
|
127 |
</script>
|
128 |
<?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
|
129 |
-
<form method="post" action="<?php echo $_SERVER['
|
130 |
<div class="wrap">
|
131 |
<?php screen_icon(); ?>
|
132 |
<h2><?php _e('Print Options', 'wp-print'); ?></h2>
|
@@ -250,7 +249,7 @@ switch($mode) {
|
|
250 |
<p> </p>
|
251 |
|
252 |
<!-- Uninstall WP-Print -->
|
253 |
-
<form method="post" action="<?php echo $_SERVER['
|
254 |
<div class="wrap">
|
255 |
<h3><?php _e('Uninstall WP-Print', 'wp-print'); ?></h3>
|
256 |
<p>
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
+
| WordPress 2.7 Plugin: WP-Print 2.50 |
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
29 |
// Update Options
|
30 |
if(!empty($_POST['Submit'])) {
|
31 |
$print_options = array();
|
32 |
+
$print_options['post_text'] = addslashes(trim(wp_filter_kses($_POST['print_post_text'])));
|
33 |
+
$print_options['page_text'] = addslashes(trim(wp_filter_kses($_POST['print_page_text'])));
|
34 |
$print_options['print_icon'] = trim($_POST['print_icon']);
|
35 |
$print_options['print_style'] = intval($_POST['print_style']);
|
36 |
$print_options['print_html'] = trim($_POST['print_html']);
|
102 |
<script type="text/javascript">
|
103 |
/* <![CDATA[*/
|
104 |
function check_print_style() {
|
105 |
+
if (parseInt(jQuery("#print_style").val()) == 4) {
|
106 |
+
jQuery("#print_style_custom").show();
|
|
|
107 |
} else {
|
108 |
+
if(jQuery("#print_style_custom").is(":visible")) {
|
109 |
+
jQuery("#print_style_custom").hide();
|
110 |
}
|
111 |
}
|
112 |
}
|
120 |
default_template = '<?php echo js_escape(sprintf(__('Copyright © %s %s. All rights reserved.', 'wp-print'), date('Y'), get_option('blogname'))); ?>';
|
121 |
break;
|
122 |
}
|
123 |
+
jQuery("#print_template_" + template).val(default_template);
|
124 |
}
|
125 |
/* ]]> */
|
126 |
</script>
|
127 |
<?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
|
128 |
+
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>?page=<?php echo plugin_basename(__FILE__); ?>">
|
129 |
<div class="wrap">
|
130 |
<?php screen_icon(); ?>
|
131 |
<h2><?php _e('Print Options', 'wp-print'); ?></h2>
|
249 |
<p> </p>
|
250 |
|
251 |
<!-- Uninstall WP-Print -->
|
252 |
+
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>?page=<?php echo plugin_basename(__FILE__); ?>">
|
253 |
<div class="wrap">
|
254 |
<h3><?php _e('Uninstall WP-Print', 'wp-print'); ?></h3>
|
255 |
<p>
|
print-posts.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
-
| WordPress 2.
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
+
| WordPress 2.7 Plugin: WP-Print 2.50 |
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
print.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
-
| WordPress 2.
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
+
| WordPress 2.7 Plugin: WP-Print 2.50 |
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
readme.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
3 |
<head>
|
4 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
5 |
-
<title>WP-Print 2.
|
6 |
<style type="text/css" media="screen">
|
7 |
/* Default Style */
|
8 |
BODY {
|
@@ -203,7 +203,7 @@
|
|
203 |
<body>
|
204 |
<div id="Container">
|
205 |
<!-- Title -->
|
206 |
-
<div id="Title">WP-Print 2.
|
207 |
|
208 |
<!-- Tabs -->
|
209 |
<ul id="Tabs">
|
@@ -234,7 +234,7 @@
|
|
234 |
</p>
|
235 |
<p>
|
236 |
<strong>Download:</strong><br />
|
237 |
-
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-print.2.
|
238 |
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-print.2.31.zip" title="http://downloads.wordpress.org/plugin/wp-print.2.31.zip">WP-Print 2.31 For WordPress 2.5.x And 2.6.x</a><br />
|
239 |
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-print.2.20.zip" title="http://downloads.wordpress.org/plugin/wp-print.2.20.zip">WP-Print 2.20 For WordPress 2.1.x, 2.2.x And 2.3.x</a><br />
|
240 |
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-print.2.06.zip" title="http://downloads.wordpress.org/plugin/wp-print.2.06.zip">WP-Print 2.06 For WordPress 2.0.x</a><br />
|
@@ -286,10 +286,20 @@
|
|
286 |
<div id="Changelog" style="display: none;">
|
287 |
<div class="SubTitle">» Changelog</div>
|
288 |
<ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
<li>
|
290 |
<strong>Version 2.40 (12-12-2008)</strong>
|
291 |
<ul>
|
292 |
-
<li>NEW: Works For WordPress 2.
|
293 |
<li>NEW: Better Translation Using __ngetext() by <a href="http://hweia.ru/" title="http://hweia.ru/">Anna Ozeritskaya</a></li>
|
294 |
<li>NEW: Right To Left Language Support by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a></li>
|
295 |
<li>NEW: Call print_textdomain() In print_init() by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a></li>
|
@@ -455,7 +465,7 @@
|
|
455 |
<!-- Upgrade Instructions -->
|
456 |
<div id="Upgrade" style="display: none;">
|
457 |
<div class="SubTitle">» Upgrade Instructions</div>
|
458 |
-
<div class="SubSubTitle">From v2.0x To v2.
|
459 |
<ol>
|
460 |
<li>
|
461 |
<strong>Deactivate</strong> WP-Print Plugin
|
@@ -522,8 +532,9 @@
|
|
522 |
<blockquote>
|
523 |
[donotprint]Text within this tag will not be displayed when printing[/donotprint]
|
524 |
</blockquote>
|
525 |
-
<p>The text within [donotprint][/donotprint] will not be displayed when you are viewing a printer friendly version of a post or page.</p>
|
526 |
<p>However, it will still be displayed as normal on a normal post or page view.</p>
|
|
|
527 |
</li>
|
528 |
<li>
|
529 |
WP-Print will load '<strong>print-css.css</strong>', '<strong>print-posts.php</strong>' and '<strong>print-comments.php</strong>' from your theme's directory if it exists.
|
@@ -536,6 +547,6 @@
|
|
536 |
</div>
|
537 |
</div>
|
538 |
</div>
|
539 |
-
<p id="Copyright">WP-Print 2.
|
540 |
</body>
|
541 |
</html>
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
3 |
<head>
|
4 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
5 |
+
<title>WP-Print 2.50 Readme</title>
|
6 |
<style type="text/css" media="screen">
|
7 |
/* Default Style */
|
8 |
BODY {
|
203 |
<body>
|
204 |
<div id="Container">
|
205 |
<!-- Title -->
|
206 |
+
<div id="Title">WP-Print 2.50 <span style="color: #aaaaaa;">Readme</span></div>
|
207 |
|
208 |
<!-- Tabs -->
|
209 |
<ul id="Tabs">
|
234 |
</p>
|
235 |
<p>
|
236 |
<strong>Download:</strong><br />
|
237 |
+
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-print.2.50.zip" title="http://downloads.wordpress.org/plugin/wp-print.2.50.zip">WP-Print 2.50 For WordPress 2.7.x And 2.8.x</a><br />
|
238 |
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-print.2.31.zip" title="http://downloads.wordpress.org/plugin/wp-print.2.31.zip">WP-Print 2.31 For WordPress 2.5.x And 2.6.x</a><br />
|
239 |
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-print.2.20.zip" title="http://downloads.wordpress.org/plugin/wp-print.2.20.zip">WP-Print 2.20 For WordPress 2.1.x, 2.2.x And 2.3.x</a><br />
|
240 |
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-print.2.06.zip" title="http://downloads.wordpress.org/plugin/wp-print.2.06.zip">WP-Print 2.06 For WordPress 2.0.x</a><br />
|
286 |
<div id="Changelog" style="display: none;">
|
287 |
<div class="SubTitle">» Changelog</div>
|
288 |
<ul>
|
289 |
+
<li>
|
290 |
+
<strong>Version 2.50 (01-06-2009)</strong>
|
291 |
+
<ul>
|
292 |
+
<li>NEW: Uses jQuery Framework</li>
|
293 |
+
<li>NEW: [donotprint][/donotprint] ShortCode Will Not Be Displayed As Well When Using WP-Email (Refer To Usage Tab)</li>
|
294 |
+
<li>NEW: Use _n() Instead Of __ngettext() And _n_noop() Instead Of __ngettext_noop()</li>
|
295 |
+
<li>FIXED: Uses $_SERVER['PHP_SELF'] With plugin_basename(__FILE__) Instead Of Just $_SERVER['REQUEST_URI']</li>
|
296 |
+
<li>FIXED: Nested ShortCode Issues</li>
|
297 |
+
</ul>
|
298 |
+
</li>
|
299 |
<li>
|
300 |
<strong>Version 2.40 (12-12-2008)</strong>
|
301 |
<ul>
|
302 |
+
<li>NEW: Works For WordPress 2.7 Only</li>
|
303 |
<li>NEW: Better Translation Using __ngetext() by <a href="http://hweia.ru/" title="http://hweia.ru/">Anna Ozeritskaya</a></li>
|
304 |
<li>NEW: Right To Left Language Support by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a></li>
|
305 |
<li>NEW: Call print_textdomain() In print_init() by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a></li>
|
465 |
<!-- Upgrade Instructions -->
|
466 |
<div id="Upgrade" style="display: none;">
|
467 |
<div class="SubTitle">» Upgrade Instructions</div>
|
468 |
+
<div class="SubSubTitle">From v2.0x To v2.50</div>
|
469 |
<ol>
|
470 |
<li>
|
471 |
<strong>Deactivate</strong> WP-Print Plugin
|
532 |
<blockquote>
|
533 |
[donotprint]Text within this tag will not be displayed when printing[/donotprint]
|
534 |
</blockquote>
|
535 |
+
<p>The text within [donotprint][/donotprint] will not be displayed when you are viewing a printer friendly version of a post or page.</p>
|
536 |
<p>However, it will still be displayed as normal on a normal post or page view.</p>
|
537 |
+
<p>Do note that if you are using WP-Email, any text within [donotprint][/donotprint] will not be emailed as well.</p>
|
538 |
</li>
|
539 |
<li>
|
540 |
WP-Print will load '<strong>print-css.css</strong>', '<strong>print-posts.php</strong>' and '<strong>print-comments.php</strong>' from your theme's directory if it exists.
|
547 |
</div>
|
548 |
</div>
|
549 |
</div>
|
550 |
+
<p id="Copyright">WP-Print 2.50<br />Copyright © 2009 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
|
551 |
</body>
|
552 |
</html>
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== WP-Print ===
|
2 |
-
Contributors: GamerZ
|
3 |
Donate link: http://lesterchan.net/wordpress
|
4 |
Tags: print, printer, wp-print
|
5 |
-
Requires at least: 2.
|
6 |
-
Stable tag: 2.
|
7 |
|
8 |
Displays a printable version of your WordPress blog's post/page.
|
9 |
|
@@ -26,4 +26,4 @@ It is the exact same readme.html is included in the zip package.
|
|
26 |
|
27 |
== Frequently Asked Questions ==
|
28 |
|
29 |
-
[WP-Print Support Forums](http://forums.lesterchan.net/index.php?board=18.0 "WP-Print Support Forums")
|
1 |
=== WP-Print ===
|
2 |
+
Contributors: aaroncampbell,GamerZ
|
3 |
Donate link: http://lesterchan.net/wordpress
|
4 |
Tags: print, printer, wp-print
|
5 |
+
Requires at least: 2.8
|
6 |
+
Stable tag: 2.50
|
7 |
|
8 |
Displays a printable version of your WordPress blog's post/page.
|
9 |
|
26 |
|
27 |
== Frequently Asked Questions ==
|
28 |
|
29 |
+
[WP-Print Support Forums](http://forums.lesterchan.net/index.php?board=18.0 "WP-Print Support Forums")
|
wp-print.mo
CHANGED
Binary file
|
wp-print.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
Plugin Name: WP-Print
|
4 |
Plugin URI: http://lesterchan.net/portfolio/programming/php/
|
5 |
Description: Displays a printable version of your WordPress blog's post/page.
|
6 |
-
Version: 2.
|
7 |
Author: Lester 'GaMerZ' Chan
|
8 |
Author URI: http://lesterchan.net
|
9 |
*/
|
10 |
|
11 |
|
12 |
/*
|
13 |
-
Copyright
|
14 |
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
@@ -191,7 +191,7 @@ function print_link_shortcode2($atts) {
|
|
191 |
### Function: Short Code For DO NOT PRINT Content
|
192 |
add_shortcode('donotprint', 'print_donotprint_shortcode');
|
193 |
function print_donotprint_shortcode($atts, $content = null) {
|
194 |
-
return $content;
|
195 |
}
|
196 |
function print_donotprint_shortcode2($atts, $content = null) {
|
197 |
return;
|
@@ -214,9 +214,13 @@ function print_content($display = true) {
|
|
214 |
} else {
|
215 |
$content = $pages[0];
|
216 |
}
|
217 |
-
|
|
|
|
|
|
|
|
|
218 |
add_shortcode('donotprint', 'print_donotprint_shortcode2');
|
219 |
-
remove_shortcode('print_link'
|
220 |
add_shortcode('print_link', 'print_link_shortcode2');
|
221 |
$content = apply_filters('the_content', $content);
|
222 |
$content = str_replace(']]>', ']]>', $content);
|
@@ -343,7 +347,7 @@ function print_comments_number() {
|
|
343 |
if($num_comments == 0) {
|
344 |
$comment_text = __('No Comments', 'wp-print');
|
345 |
} else {
|
346 |
-
$comment_text = sprintf(
|
347 |
}
|
348 |
} else {
|
349 |
$comment_text = __('Comments Disabled', 'wp-print');
|
@@ -373,7 +377,7 @@ add_action('template_redirect', 'wp_print', 5);
|
|
373 |
function wp_print() {
|
374 |
if(intval(get_query_var('print')) == 1 || intval(get_query_var('printpage')) == 1) {
|
375 |
include(WP_PLUGIN_DIR.'/wp-print/print.php');
|
376 |
-
exit;
|
377 |
}
|
378 |
}
|
379 |
|
3 |
Plugin Name: WP-Print
|
4 |
Plugin URI: http://lesterchan.net/portfolio/programming/php/
|
5 |
Description: Displays a printable version of your WordPress blog's post/page.
|
6 |
+
Version: 2.50
|
7 |
Author: Lester 'GaMerZ' Chan
|
8 |
Author URI: http://lesterchan.net
|
9 |
*/
|
10 |
|
11 |
|
12 |
/*
|
13 |
+
Copyright 2009 Lester Chan (email : lesterchan@gmail.com)
|
14 |
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
191 |
### Function: Short Code For DO NOT PRINT Content
|
192 |
add_shortcode('donotprint', 'print_donotprint_shortcode');
|
193 |
function print_donotprint_shortcode($atts, $content = null) {
|
194 |
+
return do_shortcode($content);
|
195 |
}
|
196 |
function print_donotprint_shortcode2($atts, $content = null) {
|
197 |
return;
|
214 |
} else {
|
215 |
$content = $pages[0];
|
216 |
}
|
217 |
+
if(function_exists('email_rewrite')) {
|
218 |
+
remove_shortcode('donotemail');
|
219 |
+
add_shortcode('donotemail', 'email_donotemail_shortcode2');
|
220 |
+
}
|
221 |
+
remove_shortcode('donotprint');
|
222 |
add_shortcode('donotprint', 'print_donotprint_shortcode2');
|
223 |
+
remove_shortcode('print_link');
|
224 |
add_shortcode('print_link', 'print_link_shortcode2');
|
225 |
$content = apply_filters('the_content', $content);
|
226 |
$content = str_replace(']]>', ']]>', $content);
|
347 |
if($num_comments == 0) {
|
348 |
$comment_text = __('No Comments', 'wp-print');
|
349 |
} else {
|
350 |
+
$comment_text = sprintf(_n('%s Comment', '%s Comments', $num_comments, 'wp-print'), number_format_i18n($num_comments));
|
351 |
}
|
352 |
} else {
|
353 |
$comment_text = __('Comments Disabled', 'wp-print');
|
377 |
function wp_print() {
|
378 |
if(intval(get_query_var('print')) == 1 || intval(get_query_var('printpage')) == 1) {
|
379 |
include(WP_PLUGIN_DIR.'/wp-print/print.php');
|
380 |
+
exit();
|
381 |
}
|
382 |
}
|
383 |
|
wp-print.pot
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: WP-Print 2.
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: Lester Chan <lesterchan@gmail.com>\n"
|
8 |
"Language-Team: Lester Chan <lesterchan@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -11,7 +11,7 @@ msgstr ""
|
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Poedit-Language: English\n"
|
13 |
"X-Poedit-Country: SINGAPORE\n"
|
14 |
-
"X-Poedit-KeywordsList: __;_e;
|
15 |
"X-Poedit-Basepath: .\n"
|
16 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
@@ -60,8 +60,8 @@ msgid "Your comment is awaiting moderation."
|
|
60 |
msgstr ""
|
61 |
|
62 |
#: print-options.php:45
|
63 |
-
#: print-options.php:
|
64 |
-
#: print-options.php:
|
65 |
msgid "Print Options"
|
66 |
msgstr ""
|
67 |
|
@@ -74,7 +74,7 @@ msgid "No Print Option Updated"
|
|
74 |
msgstr ""
|
75 |
|
76 |
#: print-options.php:61
|
77 |
-
#: print-options.php:
|
78 |
msgid "UNINSTALL WP-Print"
|
79 |
msgstr ""
|
80 |
|
@@ -89,7 +89,7 @@ msgid "Error deleting Setting Key '%s'."
|
|
89 |
msgstr ""
|
90 |
|
91 |
#: print-options.php:94
|
92 |
-
#: print-options.php:
|
93 |
msgid "Uninstall WP-Print"
|
94 |
msgstr ""
|
95 |
|
@@ -98,130 +98,130 @@ msgstr ""
|
|
98 |
msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-Print Will Be Deactivated Automatically."
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: print-options.php:
|
102 |
-
#: wp-print.php:
|
103 |
#, php-format
|
104 |
msgid "Copyright © %s %s. All rights reserved."
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: print-options.php:
|
108 |
msgid "Print Styles"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: print-options.php:
|
112 |
msgid "Print Text Link For Post"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: print-options.php:
|
116 |
msgid "Print Text Link For Page"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: print-options.php:
|
120 |
msgid "Print Icon"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: print-options.php:
|
124 |
msgid "Print Text Link Style"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: print-options.php:
|
128 |
msgid "Print Icon With Text Link"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: print-options.php:
|
132 |
msgid "Print Icon Only"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: print-options.php:
|
136 |
msgid "Print Text Link Only"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: print-options.php:
|
140 |
msgid "Custom"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: print-options.php:
|
144 |
-
#: print-options.php:
|
145 |
msgid "HTML is allowed."
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: print-options.php:
|
149 |
msgid "URL to the printable post/page."
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: print-options.php:
|
153 |
msgid "Print text link of the post/page that you have typed in above."
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: print-options.php:
|
157 |
msgid "URL to the print icon you have chosen above."
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: print-options.php:
|
161 |
-
#: print-options.php:
|
162 |
msgid "Restore Default Template"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: print-options.php:
|
166 |
msgid "Print Comments?"
|
167 |
msgstr ""
|
168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
#: print-options.php:202
|
170 |
#: print-options.php:211
|
171 |
#: print-options.php:220
|
172 |
#: print-options.php:229
|
173 |
-
#: print-options.php:286
|
174 |
-
msgid "Yes"
|
175 |
-
msgstr ""
|
176 |
-
|
177 |
-
#: print-options.php:203
|
178 |
-
#: print-options.php:212
|
179 |
-
#: print-options.php:221
|
180 |
-
#: print-options.php:230
|
181 |
msgid "No"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: print-options.php:
|
185 |
msgid "Print Links?"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: print-options.php:
|
189 |
msgid "Print Images?"
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: print-options.php:
|
193 |
msgid "Print Videos?"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: print-options.php:
|
197 |
msgid "Disclaimer/Copyright Text?"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: print-options.php:
|
201 |
msgid "Save Changes"
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: print-options.php:
|
205 |
msgid "Deactivating WP-Print plugin does not remove any data that may have been created, such as the print options. To completely remove this plugin, you can uninstall it here."
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: print-options.php:
|
209 |
msgid "WARNING:"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: print-options.php:
|
213 |
msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: print-options.php:
|
217 |
msgid "The following WordPress Options will be DELETED:"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: print-options.php:
|
221 |
msgid "WordPress Options"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: print-options.php:
|
225 |
msgid ""
|
226 |
"You Are About To Uninstall WP-Print From WordPress.\\n"
|
227 |
"This Action Is Not Reversible.\\n"
|
@@ -266,7 +266,7 @@ msgid "No posts matched your criteria."
|
|
266 |
msgstr ""
|
267 |
|
268 |
#: wp-print.php:42
|
269 |
-
#: wp-print.php:
|
270 |
msgid "Print"
|
271 |
msgstr ""
|
272 |
|
@@ -274,43 +274,43 @@ msgstr ""
|
|
274 |
msgid "Note: There is a print link embedded within this post, please visit this post to print it."
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: wp-print.php:
|
278 |
-
#: wp-print.php:
|
279 |
msgid "Image"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: wp-print.php:
|
283 |
msgid ","
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: wp-print.php:
|
287 |
msgid "No Comments"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: wp-print.php:
|
291 |
#, php-format
|
292 |
msgid "%s Comment"
|
293 |
msgid_plural "%s Comments"
|
294 |
msgstr[0] ""
|
295 |
msgstr[1] ""
|
296 |
|
297 |
-
#: wp-print.php:
|
298 |
msgid "Comments Disabled"
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: wp-print.php:
|
302 |
msgid "Comments Hidden"
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: wp-print.php:
|
306 |
msgid "URLs in this post:"
|
307 |
msgstr ""
|
308 |
|
309 |
-
#: wp-print.php:
|
310 |
msgid "Print This Post"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: wp-print.php:
|
314 |
msgid "Print This Page"
|
315 |
msgstr ""
|
316 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: WP-Print 2.50\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-08-02 01:12+0800\n"
|
6 |
+
"PO-Revision-Date: 2009-08-02 01:12+0800\n"
|
7 |
"Last-Translator: Lester Chan <lesterchan@gmail.com>\n"
|
8 |
"Language-Team: Lester Chan <lesterchan@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Poedit-Language: English\n"
|
13 |
"X-Poedit-Country: SINGAPORE\n"
|
14 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;__ngettext_noop:1,2\n"
|
15 |
"X-Poedit-Basepath: .\n"
|
16 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
60 |
msgstr ""
|
61 |
|
62 |
#: print-options.php:45
|
63 |
+
#: print-options.php:131
|
64 |
+
#: print-options.php:195
|
65 |
msgid "Print Options"
|
66 |
msgstr ""
|
67 |
|
74 |
msgstr ""
|
75 |
|
76 |
#: print-options.php:61
|
77 |
+
#: print-options.php:286
|
78 |
msgid "UNINSTALL WP-Print"
|
79 |
msgstr ""
|
80 |
|
89 |
msgstr ""
|
90 |
|
91 |
#: print-options.php:94
|
92 |
+
#: print-options.php:254
|
93 |
msgid "Uninstall WP-Print"
|
94 |
msgstr ""
|
95 |
|
98 |
msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-Print Will Be Deactivated Automatically."
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: print-options.php:120
|
102 |
+
#: wp-print.php:450
|
103 |
#, php-format
|
104 |
msgid "Copyright © %s %s. All rights reserved."
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: print-options.php:132
|
108 |
msgid "Print Styles"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: print-options.php:135
|
112 |
msgid "Print Text Link For Post"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: print-options.php:141
|
116 |
msgid "Print Text Link For Page"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: print-options.php:147
|
120 |
msgid "Print Icon"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: print-options.php:176
|
124 |
msgid "Print Text Link Style"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: print-options.php:179
|
128 |
msgid "Print Icon With Text Link"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: print-options.php:180
|
132 |
msgid "Print Icon Only"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: print-options.php:181
|
136 |
msgid "Print Text Link Only"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: print-options.php:182
|
140 |
msgid "Custom"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: print-options.php:186
|
144 |
+
#: print-options.php:240
|
145 |
msgid "HTML is allowed."
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: print-options.php:187
|
149 |
msgid "URL to the printable post/page."
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: print-options.php:188
|
153 |
msgid "Print text link of the post/page that you have typed in above."
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: print-options.php:189
|
157 |
msgid "URL to the print icon you have chosen above."
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: print-options.php:190
|
161 |
+
#: print-options.php:237
|
162 |
msgid "Restore Default Template"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: print-options.php:198
|
166 |
msgid "Print Comments?"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: print-options.php:201
|
170 |
+
#: print-options.php:210
|
171 |
+
#: print-options.php:219
|
172 |
+
#: print-options.php:228
|
173 |
+
#: print-options.php:285
|
174 |
+
msgid "Yes"
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
#: print-options.php:202
|
178 |
#: print-options.php:211
|
179 |
#: print-options.php:220
|
180 |
#: print-options.php:229
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
msgid "No"
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: print-options.php:207
|
185 |
msgid "Print Links?"
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: print-options.php:216
|
189 |
msgid "Print Images?"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: print-options.php:225
|
193 |
msgid "Print Videos?"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: print-options.php:235
|
197 |
msgid "Disclaimer/Copyright Text?"
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: print-options.php:245
|
201 |
msgid "Save Changes"
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: print-options.php:256
|
205 |
msgid "Deactivating WP-Print plugin does not remove any data that may have been created, such as the print options. To completely remove this plugin, you can uninstall it here."
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: print-options.php:259
|
209 |
msgid "WARNING:"
|
210 |
msgstr ""
|
211 |
|
212 |
+
#: print-options.php:260
|
213 |
msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: print-options.php:263
|
217 |
msgid "The following WordPress Options will be DELETED:"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: print-options.php:268
|
221 |
msgid "WordPress Options"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: print-options.php:286
|
225 |
msgid ""
|
226 |
"You Are About To Uninstall WP-Print From WordPress.\\n"
|
227 |
"This Action Is Not Reversible.\\n"
|
266 |
msgstr ""
|
267 |
|
268 |
#: wp-print.php:42
|
269 |
+
#: wp-print.php:398
|
270 |
msgid "Print"
|
271 |
msgstr ""
|
272 |
|
274 |
msgid "Note: There is a print link embedded within this post, please visit this post to print it."
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: wp-print.php:260
|
278 |
+
#: wp-print.php:325
|
279 |
msgid "Image"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: wp-print.php:280
|
283 |
msgid ","
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: wp-print.php:348
|
287 |
msgid "No Comments"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: wp-print.php:350
|
291 |
#, php-format
|
292 |
msgid "%s Comment"
|
293 |
msgid_plural "%s Comments"
|
294 |
msgstr[0] ""
|
295 |
msgstr[1] ""
|
296 |
|
297 |
+
#: wp-print.php:353
|
298 |
msgid "Comments Disabled"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: wp-print.php:356
|
302 |
msgid "Comments Hidden"
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: wp-print.php:367
|
306 |
msgid "URLs in this post:"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: wp-print.php:441
|
310 |
msgid "Print This Post"
|
311 |
msgstr ""
|
312 |
|
313 |
+
#: wp-print.php:442
|
314 |
msgid "Print This Page"
|
315 |
msgstr ""
|
316 |
|