WP-Print - Version 2.20

Version Description

Download this release

Release Info

Developer GamerZ
Plugin Icon WP-Print
Version 2.20
Comparing to
See all releases

Code changes from version 2.11 to 2.20

print/print-options.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-Print 2.11 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Print Options Page |
@@ -21,37 +21,83 @@
21
  $base_name = plugin_basename('print/print-options.php');
22
  $base_page = 'admin.php?page='.$base_name;
23
  $id = intval($_GET['id']);
 
 
24
 
25
- ### If Form Is Submitted
26
- if($_POST['Submit']) {
27
- $print_options = array();
28
- $print_options['post_text'] = addslashes(trim($_POST['print_post_text']));
29
- $print_options['page_text'] = addslashes(trim($_POST['print_page_text']));
30
- $print_options['print_icon'] = trim($_POST['print_icon']);
31
- $print_options['print_style'] = intval($_POST['print_style']);
32
- $print_options['print_html'] = trim($_POST['print_html']);
33
- $print_options['comments'] = intval($_POST['print_comments']);
34
- $print_options['links'] = intval($_POST['print_links']);
35
- $print_options['images'] = intval($_POST['print_images']);
36
- $update_print_queries = array();
37
- $update_print_text = array();
38
- $update_print_queries[] = update_option('print_options', $print_options);
39
- $update_print_text[] = __('Print Options', 'wp-print');
40
- $i=0;
41
- $text = '';
42
- foreach($update_print_queries as $update_print_query) {
43
- if($update_print_query) {
44
- $text .= '<font color="green">'.$update_print_text[$i].' '.__('Updated', 'wp-print').'</font><br />';
45
- }
46
- $i++;
47
- }
48
- if(empty($text)) {
49
- $text = '<font color="red">'.__('No Print Option Updated', 'wp-print').'</font>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  }
51
  }
52
 
53
- ### Get Print Options
54
- $print_options = get_option('print_options');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  ?>
56
  <script type="text/javascript">
57
  /* <![CDATA[*/
@@ -71,113 +117,167 @@ $print_options = get_option('print_options');
71
  case 'html':
72
  default_template = '<a href="%PRINT_URL%" rel="nofollow" title="%PRINT_TEXT%">%PRINT_TEXT%</a>';
73
  break;
 
 
 
74
  }
75
  document.getElementById("print_template_" + template).value = default_template;
76
  }
77
  /* ]]> */
78
  </script>
79
  <?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
 
80
  <div class="wrap">
81
  <h2><?php _e('Print Options', 'wp-print'); ?></h2>
82
- <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
83
- <fieldset class="options">
84
- <legend><?php _e('Print Styles', 'wp-print'); ?></legend>
85
- <table width="100%" border="0" cellspacing="3" cellpadding="3">
86
- <tr valign="top">
87
- <th align="left" width="30%"><?php _e('Print Text Link For Post', 'wp-print'); ?></th>
88
- <td align="left">
89
- <input type="text" name="print_post_text" value="<?php echo stripslashes($print_options['post_text']); ?>" size="30" />
90
- </td>
91
- </tr>
92
- <tr valign="top">
93
- <th align="left" width="30%"><?php _e('Print Text Link For Page', 'wp-print'); ?></th>
94
- <td align="left">
95
- <input type="text" name="print_page_text" value="<?php echo stripslashes($print_options['page_text']); ?>" size="30" />
96
- </td>
97
- </tr>
98
- <tr valign="top">
99
- <th align="left" width="30%"><?php _e('Print Icon', 'wp-print'); ?></th>
100
- <td align="left">
101
- <?php
102
- $print_icon = $print_options['print_icon'];
103
- $print_icon_url = get_option('siteurl').'/wp-content/plugins/print/images';
104
- $print_icon_path = ABSPATH.'/wp-content/plugins/print/images';
105
- if($handle = @opendir($print_icon_path)) {
106
- while (false !== ($filename = readdir($handle))) {
107
- if ($filename != '.' && $filename != '..') {
108
- if(is_file($print_icon_path.'/'.$filename)) {
109
- if($print_icon == $filename) {
110
- echo '<input type="radio" name="print_icon" value="'.$filename.'" checked="checked" />'."\n";
111
- } else {
112
- echo '<input type="radio" name="print_icon" value="'.$filename.'" />'."\n";
113
- }
114
- echo '&nbsp;&nbsp;&nbsp;';
115
- echo '<img src="'.$print_icon_url.'/'.$filename.'" alt="'.$filename.'" />'."\n";
116
- echo '&nbsp;&nbsp;&nbsp;('.$filename.')';
117
- echo '<br /><br />'."\n";
118
  }
119
- }
 
 
 
 
120
  }
121
- closedir($handle);
122
- }
123
- ?>
124
- </td>
125
- </tr>
126
- <tr valign="top">
127
- <th align="left" width="30%"><?php _e('Print Text Link Style', 'wp-print'); ?></th>
128
- <td align="left">
129
- <select name="print_style" id="print_style" size="1" onchange="check_print_style();">
130
- <option value="1"<?php selected('1', $print_options['print_style']); ?>><?php _e('Print Icon With Text Link', 'wp-print'); ?></option>
131
- <option value="2"<?php selected('2', $print_options['print_style']); ?>><?php _e('Print Icon Only', 'wp-print'); ?></option>
132
- <option value="3"<?php selected('3', $print_options['print_style']); ?>><?php _e('Print Text Link Only', 'wp-print'); ?></option>
133
- <option value="4"<?php selected('4', $print_options['print_style']); ?>><?php _e('Custom', 'wp-print'); ?></option>
134
- </select>
135
- <div id="print_style_custom" style="display: <?php if(intval($print_options['print_style']) == 4) { echo 'block'; } else { echo 'none'; } ?>; margin-top: 20px;">
136
- <textarea rows="2" cols="80" name="print_html" id="print_template_html"><?php echo htmlspecialchars(stripslashes($print_options['print_html'])); ?></textarea><br />
137
- <?php _e('HTML is allowed.', 'wp-print'); ?><br />
138
- %PRINT_URL% - <?php _e('URL to the printable post/page.', 'wp-print'); ?><br />
139
- %PRINT_TEXT% - <?php _e('Print text link of the post/page that you have typed in above.', 'wp-print'); ?><br />
140
- %PRINT_ICON_URL% - <?php _e('URL to the print icon you have chosen above.', 'wp-print'); ?><br />
141
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-print'); ?>" onclick="javascript: print_default_templates('html');" class="button" />
142
- </div>
143
- </td>
144
- </tr>
145
- </table>
146
- </fieldset>
147
- <fieldset class="options">
148
- <legend><?php _e('Print Options', 'wp-print'); ?></legend>
149
- <table width="100%" border="0" cellspacing="3" cellpadding="3">
150
- <tr valign="top">
151
- <th align="left" width="30%"><?php _e('Print Comments?', 'wp-print'); ?></th>
152
- <td align="left">
153
- <select name="print_comments" size="1">
154
- <option value="1"<?php selected('1', $print_options['comments']); ?>><?php _e('Yes', 'wp-print'); ?></option>
155
- <option value="0"<?php selected('0', $print_options['comments']); ?>><?php _e('No', 'wp-print'); ?></option>
156
- </select>
157
- </td>
158
- </tr>
159
- <tr valign="top">
160
- <th align="left" width="30%"><?php _e('Print Links?', 'wp-print'); ?></th>
161
- <td align="left">
162
- <select name="print_links" size="1">
163
- <option value="1"<?php selected('1', $print_options['links']); ?>><?php _e('Yes', 'wp-print'); ?></option>
164
- <option value="0"<?php selected('0', $print_options['links']); ?>><?php _e('No', 'wp-print'); ?></option>
165
- </select>
166
- </td>
167
- </tr>
168
- <tr valign="top">
169
- <th align="left" width="30%"><?php _e('Print Images?', 'wp-print'); ?></th>
170
- <td align="left">
171
- <select name="print_images" size="1">
172
- <option value="1"<?php selected('1', $print_options['images']); ?>><?php _e('Yes', 'wp-print'); ?></option>
173
- <option value="0"<?php selected('0', $print_options['images']); ?>><?php _e('No', 'wp-print'); ?></option>
174
- </select>
175
- </td>
176
- </tr>
177
- </table>
178
- </fieldset>
179
- <div align="center">
180
- <input type="submit" name="Submit" class="button" value="<?php _e('Update Options', 'wp-print'); ?>" />&nbsp;&nbsp;<input type="button" name="cancel" value="<?php _e('Cancel', 'wp-print'); ?>" class="button" onclick="javascript:history.go(-1)" />
181
- </div>
182
- </form>
183
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-Print 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Print Options Page |
21
  $base_name = plugin_basename('print/print-options.php');
22
  $base_page = 'admin.php?page='.$base_name;
23
  $id = intval($_GET['id']);
24
+ $mode = trim($_GET['mode']);
25
+ $print_settings = array('print_options');
26
 
27
+
28
+ ### Form Processing
29
+ if(!empty($_POST['do'])) {
30
+ // Decide What To Do
31
+ switch($_POST['do']) {
32
+ case __('Update Options', 'wp-print'):
33
+ $print_options = array();
34
+ $print_options['post_text'] = addslashes(trim($_POST['print_post_text']));
35
+ $print_options['page_text'] = addslashes(trim($_POST['print_page_text']));
36
+ $print_options['print_icon'] = trim($_POST['print_icon']);
37
+ $print_options['print_style'] = intval($_POST['print_style']);
38
+ $print_options['print_html'] = trim($_POST['print_html']);
39
+ $print_options['comments'] = intval($_POST['print_comments']);
40
+ $print_options['links'] = intval($_POST['print_links']);
41
+ $print_options['images'] = intval($_POST['print_images']);
42
+ $print_options['disclaimer'] = trim($_POST['print_disclaimer']);
43
+ $update_print_queries = array();
44
+ $update_print_text = array();
45
+ $update_print_queries[] = update_option('print_options', $print_options);
46
+ $update_print_text[] = __('Print Options', 'wp-print');
47
+ $i=0;
48
+ $text = '';
49
+ foreach($update_print_queries as $update_print_query) {
50
+ if($update_print_query) {
51
+ $text .= '<font color="green">'.$update_print_text[$i].' '.__('Updated', 'wp-print').'</font><br />';
52
+ }
53
+ $i++;
54
+ }
55
+ if(empty($text)) {
56
+ $text = '<font color="red">'.__('No Print Option Updated', 'wp-print').'</font>';
57
+ }
58
+ break;
59
+ // Uninstall WP-Print
60
+ case __('UNINSTALL WP-Print', 'wp-print') :
61
+ if(trim($_POST['uninstall_print_yes']) == 'yes') {
62
+ echo '<div id="message" class="updated fade">';
63
+ echo '<p>';
64
+ foreach($print_settings as $setting) {
65
+ $delete_setting = delete_option($setting);
66
+ if($delete_setting) {
67
+ echo '<font color="green">';
68
+ printf(__('Setting Key \'%s\' has been deleted.', 'wp-print'), "<strong><em>{$setting}</em></strong>");
69
+ echo '</font><br />';
70
+ } else {
71
+ echo '<font color="red">';
72
+ printf(__('Error deleting Setting Key \'%s\'.', 'wp-print'), "<strong><em>{$setting}</em></strong>");
73
+ echo '</font><br />';
74
+ }
75
+ }
76
+ echo '</p>';
77
+ echo '</div>';
78
+ $mode = 'end-UNINSTALL';
79
+ }
80
+ break;
81
  }
82
  }
83
 
84
+
85
+ ### Determines Which Mode It Is
86
+ switch($mode) {
87
+ // Deactivating WP-Print
88
+ case 'end-UNINSTALL':
89
+ $deactivate_url = 'plugins.php?action=deactivate&amp;plugin=print/print.php';
90
+ if(function_exists('wp_nonce_url')) {
91
+ $deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_print/print.php');
92
+ }
93
+ echo '<div class="wrap">';
94
+ echo '<h2>'.__('Uninstall WP-Print', 'wp-print').'</h2>';
95
+ echo '<p><strong>'.sprintf(__('<a href="%s">Click Here</a> To Finish The Uninstallation And WP-Print Will Be Deactivated Automatically.', 'wp-print'), $deactivate_url).'</strong></p>';
96
+ echo '</div>';
97
+ break;
98
+ // Main Page
99
+ default:
100
+ $print_options = get_option('print_options');
101
  ?>
102
  <script type="text/javascript">
103
  /* <![CDATA[*/
117
  case 'html':
118
  default_template = '<a href="%PRINT_URL%" rel="nofollow" title="%PRINT_TEXT%">%PRINT_TEXT%</a>';
119
  break;
120
+ case 'disclaimer':
121
+ default_template = '<?php printf(__('Copyright &copy; %s %s. All rights reserved.', 'wp-print'), date('Y'), get_option('blogname')); ?>';
122
+ break;
123
  }
124
  document.getElementById("print_template_" + template).value = default_template;
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['REQUEST_URI']; ?>">
130
  <div class="wrap">
131
  <h2><?php _e('Print Options', 'wp-print'); ?></h2>
132
+ <fieldset class="options">
133
+ <legend><?php _e('Print Styles', 'wp-print'); ?></legend>
134
+ <table width="100%" border="0" cellspacing="3" cellpadding="3">
135
+ <tr valign="top">
136
+ <th align="left" width="30%"><?php _e('Print Text Link For Post', 'wp-print'); ?></th>
137
+ <td align="left">
138
+ <input type="text" name="print_post_text" value="<?php echo stripslashes($print_options['post_text']); ?>" size="30" />
139
+ </td>
140
+ </tr>
141
+ <tr valign="top">
142
+ <th align="left" width="30%"><?php _e('Print Text Link For Page', 'wp-print'); ?></th>
143
+ <td align="left">
144
+ <input type="text" name="print_page_text" value="<?php echo stripslashes($print_options['page_text']); ?>" size="30" />
145
+ </td>
146
+ </tr>
147
+ <tr valign="top">
148
+ <th align="left" width="30%"><?php _e('Print Icon', 'wp-print'); ?></th>
149
+ <td align="left">
150
+ <?php
151
+ $print_icon = $print_options['print_icon'];
152
+ $print_icon_url = get_option('siteurl').'/wp-content/plugins/print/images';
153
+ $print_icon_path = ABSPATH.'/wp-content/plugins/print/images';
154
+ if($handle = @opendir($print_icon_path)) {
155
+ while (false !== ($filename = readdir($handle))) {
156
+ if ($filename != '.' && $filename != '..') {
157
+ if(is_file($print_icon_path.'/'.$filename)) {
158
+ if($print_icon == $filename) {
159
+ echo '<input type="radio" name="print_icon" value="'.$filename.'" checked="checked" />'."\n";
160
+ } else {
161
+ echo '<input type="radio" name="print_icon" value="'.$filename.'" />'."\n";
 
 
 
 
 
 
162
  }
163
+ echo '&nbsp;&nbsp;&nbsp;';
164
+ echo '<img src="'.$print_icon_url.'/'.$filename.'" alt="'.$filename.'" />'."\n";
165
+ echo '&nbsp;&nbsp;&nbsp;('.$filename.')';
166
+ echo '<br /><br />'."\n";
167
+ }
168
  }
169
+ }
170
+ closedir($handle);
171
+ }
172
+ ?>
173
+ </td>
174
+ </tr>
175
+ <tr valign="top">
176
+ <th align="left" width="30%"><?php _e('Print Text Link Style', 'wp-print'); ?></th>
177
+ <td align="left">
178
+ <select name="print_style" id="print_style" size="1" onchange="check_print_style();">
179
+ <option value="1"<?php selected('1', $print_options['print_style']); ?>><?php _e('Print Icon With Text Link', 'wp-print'); ?></option>
180
+ <option value="2"<?php selected('2', $print_options['print_style']); ?>><?php _e('Print Icon Only', 'wp-print'); ?></option>
181
+ <option value="3"<?php selected('3', $print_options['print_style']); ?>><?php _e('Print Text Link Only', 'wp-print'); ?></option>
182
+ <option value="4"<?php selected('4', $print_options['print_style']); ?>><?php _e('Custom', 'wp-print'); ?></option>
183
+ </select>
184
+ <div id="print_style_custom" style="display: <?php if(intval($print_options['print_style']) == 4) { echo 'block'; } else { echo 'none'; } ?>; margin-top: 20px;">
185
+ <textarea rows="2" cols="80" name="print_html" id="print_template_html"><?php echo htmlspecialchars(stripslashes($print_options['print_html'])); ?></textarea><br />
186
+ <?php _e('HTML is allowed.', 'wp-print'); ?><br />
187
+ %PRINT_URL% - <?php _e('URL to the printable post/page.', 'wp-print'); ?><br />
188
+ %PRINT_TEXT% - <?php _e('Print text link of the post/page that you have typed in above.', 'wp-print'); ?><br />
189
+ %PRINT_ICON_URL% - <?php _e('URL to the print icon you have chosen above.', 'wp-print'); ?><br />
190
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-print'); ?>" onclick="print_default_templates('html');" class="button" />
191
+ </div>
192
+ </td>
193
+ </tr>
194
+ </table>
195
+ </fieldset>
196
+ <fieldset class="options">
197
+ <legend><?php _e('Print Options', 'wp-print'); ?></legend>
198
+ <table width="100%" border="0" cellspacing="3" cellpadding="3">
199
+ <tr valign="top">
200
+ <th align="left" width="30%"><?php _e('Print Comments?', 'wp-print'); ?></th>
201
+ <td align="left">
202
+ <select name="print_comments" size="1">
203
+ <option value="1"<?php selected('1', $print_options['comments']); ?>><?php _e('Yes', 'wp-print'); ?></option>
204
+ <option value="0"<?php selected('0', $print_options['comments']); ?>><?php _e('No', 'wp-print'); ?></option>
205
+ </select>
206
+ </td>
207
+ </tr>
208
+ <tr valign="top">
209
+ <th align="left" width="30%"><?php _e('Print Links?', 'wp-print'); ?></th>
210
+ <td align="left">
211
+ <select name="print_links" size="1">
212
+ <option value="1"<?php selected('1', $print_options['links']); ?>><?php _e('Yes', 'wp-print'); ?></option>
213
+ <option value="0"<?php selected('0', $print_options['links']); ?>><?php _e('No', 'wp-print'); ?></option>
214
+ </select>
215
+ </td>
216
+ </tr>
217
+ <tr valign="top">
218
+ <th align="left" width="30%"><?php _e('Print Images?', 'wp-print'); ?></th>
219
+ <td align="left">
220
+ <select name="print_images" size="1">
221
+ <option value="1"<?php selected('1', $print_options['images']); ?>><?php _e('Yes', 'wp-print'); ?></option>
222
+ <option value="0"<?php selected('0', $print_options['images']); ?>><?php _e('No', 'wp-print'); ?></option>
223
+ </select>
224
+ </td>
225
+ </tr>
226
+ <tr valign="top">
227
+ <th align="left" width="30%">
228
+ <?php _e('Disclaimer/Copyright Text?', 'wp-print'); ?>
229
+ <br /><br />
230
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-print'); ?>" onclick="print_default_templates('disclaimer');" class="button" />
231
+ </th>
232
+ <td align="left">
233
+ <textarea rows="2" cols="80" name="print_disclaimer" id="print_template_disclaimer"><?php echo htmlspecialchars(stripslashes($print_options['disclaimer'])); ?></textarea><br /><?php _e('HTML is allowed.', 'wp-print'); ?><br />
234
+ </td>
235
+ </tr>
236
+ </table>
237
+ </fieldset>
238
+ <div align="center">
239
+ <input type="submit" name="do" class="button" value="<?php _e('Update Options', 'wp-print'); ?>" />&nbsp;&nbsp;<input type="button" name="cancel" value="<?php _e('Cancel', 'wp-print'); ?>" class="button" onclick="javascript:history.go(-1)" />
240
+ </div>
241
+ </div>
242
+ </form>
243
+
244
+ <!-- Uninstall WP-Print -->
245
+ <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
246
+ <div class="wrap">
247
+ <h2><?php _e('Uninstall WP-Print', 'wp-print'); ?></h2>
248
+ <p style="text-align: left;">
249
+ <?php _e('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.', 'wp-print'); ?>
250
+ </p>
251
+ <p style="text-align: left; color: red">
252
+ <strong><?php _e('WARNING:', 'wp-print'); ?></strong><br />
253
+ <?php _e('Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first.', 'wp-print'); ?>
254
+ </p>
255
+ <p style="text-align: left; color: red">
256
+ <strong><?php _e('The following WordPress Options will be DELETED:', 'wp-print'); ?></strong><br />
257
+ </p>
258
+ <table width="70%" border="0" cellspacing="3" cellpadding="3">
259
+ <tr class="thead">
260
+ <td align="center"><strong><?php _e('WordPress Options', 'wp-print'); ?></strong></td>
261
+ </tr>
262
+ <tr>
263
+ <td valign="top" style="background-color: #eee;">
264
+ <ol>
265
+ <?php
266
+ foreach($print_settings as $settings) {
267
+ echo '<li>'.$settings.'</li>'."\n";
268
+ }
269
+ ?>
270
+ </ol>
271
+ </td>
272
+ </tr>
273
+ </table>
274
+ <p>&nbsp;</p>
275
+ <p style="text-align: center;">
276
+ <input type="checkbox" name="uninstall_print_yes" value="yes" />&nbsp;<?php _e('Yes', 'wp-print'); ?><br /><br />
277
+ <input type="submit" name="do" value="<?php _e('UNINSTALL WP-Print', 'wp-print'); ?>" class="button" onclick="return confirm('<?php _e('You Are About To Uninstall WP-Print From WordPress.\nThis Action Is Not Reversible.\n\n Choose [Cancel] To Stop, [OK] To Uninstall.', 'wp-print'); ?>')" />
278
+ </p>
279
+ </div>
280
+ </form>
281
+ <?php
282
+ } // End switch($mode)
283
+ ?>
print/print.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: WP-Print
4
- Plugin URI: http://www.lesterchan.net/portfolio/programming.php
5
  Description: Displays a printable version of your WordPress blog's post/page.
6
- Version: 2.11
7
  Author: Lester 'GaMerZ' Chan
8
- Author URI: http://www.lesterchan.net
9
  */
10
 
11
 
@@ -29,7 +29,10 @@ Author URI: http://www.lesterchan.net
29
 
30
 
31
  ### Create Text Domain For Translations
32
- load_plugin_textdomain('wp-print', 'wp-content/plugins/print');
 
 
 
33
 
34
 
35
  ### Function: Print Option Menu
@@ -46,7 +49,13 @@ add_filter('generate_rewrite_rules', 'print_rewrite');
46
  function print_rewrite($wp_rewrite) {
47
  $r_rule = '';
48
  $r_link = '';
49
- $rewrite_rules2 = $wp_rewrite->generate_rewrite_rule($wp_rewrite->permalink_structure.'print');
 
 
 
 
 
 
50
  array_splice($rewrite_rules2, 1);
51
  $r_rule = array_keys($rewrite_rules2);
52
  $r_rule = array_shift($r_rule);
@@ -89,10 +98,10 @@ function print_link($deprecated = '', $deprecated2 ='', $echo = true) {
89
  }
90
  }
91
  if(!empty($using_permalink)) {
 
 
 
92
  if(is_page()) {
93
- if(substr($print_link, -1, 1) != '/') {
94
- $print_link = $print_link.'/';
95
- }
96
  $print_text = stripslashes($print_options['page_text']);
97
  $print_link = $print_link.'printpage/'.$polyglot_append;
98
  } else {
@@ -108,7 +117,7 @@ function print_link($deprecated = '', $deprecated2 ='', $echo = true) {
108
  switch($print_style) {
109
  // Icon + Text Link
110
  case 1:
111
- $output = '<img class="WP-PrintIcon" src="'.$print_icon.'" alt="'.$print_text.'" title="'.$print_text.'" style="border: 0px;" />&nbsp;<a href="'.$print_link.'" title="'.$print_text.'" rel="nofollow">'.$print_text.'</a>';
112
  break;
113
  // Icon Only
114
  case 2:
@@ -141,11 +150,12 @@ function print_link_image() {
141
 
142
  ### Function: Place Print Link
143
  add_filter('the_content', 'place_printlink', 7);
 
144
  function place_printlink($content){
145
  if(!is_feed()) {
146
  $content = str_replace("[print_link]", print_link('', '', false), $content);
147
  } else {
148
- $content = str_replace("[print_link]", __('Note: You can print this post by visiting the site.', 'wp-print'), $content);
149
  }
150
  return $content;
151
  }
@@ -345,8 +355,6 @@ function str_replace_one($search, $replace, $content){
345
  ### Function: Print Options
346
  add_action('activate_print/print.php', 'print_init');
347
  function print_init() {
348
- // Delete Options First
349
- delete_option('print_options');
350
  // Add Options
351
  $print_options = array();
352
  $print_options['post_text'] = __('Print This Post', 'wp-print');
@@ -357,6 +365,7 @@ function print_init() {
357
  $print_options['comments'] = 0;
358
  $print_options['links'] = 1;
359
  $print_options['images'] = 1;
 
360
  add_option('print_options', $print_options, 'Print Options');
361
  }
362
  ?>
1
  <?php
2
  /*
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.20
7
  Author: Lester 'GaMerZ' Chan
8
+ Author URI: http://lesterchan.net
9
  */
10
 
11
 
29
 
30
 
31
  ### Create Text Domain For Translations
32
+ add_action('init', 'print_textdomain');
33
+ function print_textdomain() {
34
+ load_plugin_textdomain('wp-print', 'wp-content/plugins/print');
35
+ }
36
 
37
 
38
  ### Function: Print Option Menu
49
  function print_rewrite($wp_rewrite) {
50
  $r_rule = '';
51
  $r_link = '';
52
+ $print_link = get_permalink();
53
+ if(substr($print_link, -1, 1) != '/' && substr($wp_rewrite->permalink_structure, -1, 1) != '/') {
54
+ $print_link_text = '/print';
55
+ } else {
56
+ $print_link_text = 'print';
57
+ }
58
+ $rewrite_rules2 = $wp_rewrite->generate_rewrite_rule($wp_rewrite->permalink_structure.$print_link_text);
59
  array_splice($rewrite_rules2, 1);
60
  $r_rule = array_keys($rewrite_rules2);
61
  $r_rule = array_shift($r_rule);
98
  }
99
  }
100
  if(!empty($using_permalink)) {
101
+ if(substr($print_link, -1, 1) != '/') {
102
+ $print_link = $print_link.'/';
103
+ }
104
  if(is_page()) {
 
 
 
105
  $print_text = stripslashes($print_options['page_text']);
106
  $print_link = $print_link.'printpage/'.$polyglot_append;
107
  } else {
117
  switch($print_style) {
118
  // Icon + Text Link
119
  case 1:
120
+ $output = '<a href="'.$print_link.'" title="'.$print_text.'" rel="nofollow"><img class="WP-PrintIcon" src="'.$print_icon.'" alt="'.$print_text.'" title="'.$print_text.'" style="border: 0px;" /></a>&nbsp;<a href="'.$print_link.'" title="'.$print_text.'" rel="nofollow">'.$print_text.'</a>';
121
  break;
122
  // Icon Only
123
  case 2:
150
 
151
  ### Function: Place Print Link
152
  add_filter('the_content', 'place_printlink', 7);
153
+ add_filter('the_excerpt', 'place_printlink', 7);
154
  function place_printlink($content){
155
  if(!is_feed()) {
156
  $content = str_replace("[print_link]", print_link('', '', false), $content);
157
  } else {
158
+ $content = str_replace("[print_link]", __('Note: There is a print link embedded within this post, please visit this post to print it.', 'wp-print'), $content);
159
  }
160
  return $content;
161
  }
355
  ### Function: Print Options
356
  add_action('activate_print/print.php', 'print_init');
357
  function print_init() {
 
 
358
  // Add Options
359
  $print_options = array();
360
  $print_options['post_text'] = __('Print This Post', 'wp-print');
365
  $print_options['comments'] = 0;
366
  $print_options['links'] = 1;
367
  $print_options['images'] = 1;
368
+ $print_options['disclaimer'] = sprintf(__('Copyright &copy; %s %s. All rights reserved.', 'wp-print'), date('Y'), get_option('blogname'));
369
  add_option('print_options', $print_options, 'Print Options');
370
  }
371
  ?>
print/wp-print-comments.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-Print 2.11 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Printer Friendly Page For Comments |
@@ -18,17 +18,21 @@
18
  ?>
19
  <?php if($comments) : ?>
20
  <?php $comment_count = 1; ?>
21
- <p id="CommentTitle"><?php print_comments_number(); ?> <?php _e('To', 'wp-print'); ?> "<?php the_title(); ?>"</p>
22
- <?php foreach ($comments as $comment) : ?>
23
- <p class="CommentDate">
24
- <strong>#<?php echo $comment_count; ?> <?php comment_type(); ?></strong> <?php _e('By', 'wp-print'); ?> <u><?php comment_author(); ?></u> <?php _e('On', 'wp-print'); ?> <?php comment_date(get_option("date_format").' @ '.get_option("time_format")); ?></p>
25
- <div class="CommentContent">
26
- <?php if ($comment->comment_approved == '0') : ?>
27
- <p><em><?php _e('Your comment is awaiting moderation.', 'wp-print'); ?></em></p>
28
- <?php endif; ?>
29
- <?php print_comments_content(); ?>
30
- </div>
31
- <?php $comment_count++; ?>
32
- <?php endforeach; ?>
33
- <hr class="Divider" style="text-align: center;" />
 
 
 
 
34
  <?php endif; ?>
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-Print 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Printer Friendly Page For Comments |
18
  ?>
19
  <?php if($comments) : ?>
20
  <?php $comment_count = 1; ?>
21
+ <span style='float:right' id='comments_controls'><?php print_comments_number(); ?> (<a href="#" onclick="javascript:document.getElementById('comments_box').style.display = 'block'; return false;"><?php _e('Open', 'wp-print'); ?></a> | <a href="#" onclick="javascript:document.getElementById('comments_box').style.display = 'none'; return false;"><?php _e('Close', 'wp-print'); ?></a>)</span>
22
+ <div id="comments_box">
23
+ <p id="CommentTitle"><?php print_comments_number(); ?> <?php _e('To', 'wp-print'); ?> "<?php the_title(); ?>"</p>
24
+ <?php foreach ($comments as $comment) : ?>
25
+ <p class="CommentDate">
26
+ <strong>#<?php echo $comment_count; ?> <?php comment_type(); ?></strong> <?php _e('By', 'wp-print'); ?> <u><?php comment_author(); ?></u> <?php _e('On', 'wp-print'); ?> <?php comment_date(sprintf(__('%s @ %s', 'wp-print'), get_option('date_format'), get_option('time_format'))); ?>
27
+ </p>
28
+ <div class="CommentContent">
29
+ <?php if ($comment->comment_approved == '0') : ?>
30
+ <p><em><?php _e('Your comment is awaiting moderation.', 'wp-print'); ?></em></p>
31
+ <?php endif; ?>
32
+ <?php print_comments_content(); ?>
33
+ </div>
34
+ <?php $comment_count++; ?>
35
+ <?php endforeach; ?>
36
+ <hr class="Divider" style="text-align: center;" />
37
+ </div>
38
  <?php endif; ?>
print/wp-print-css.css CHANGED
@@ -1,3 +1,69 @@
1
- .WPPrintImage {
2
- vertical-align: top;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  }
1
+ /*
2
+ +----------------------------------------------------------------+
3
+ | |
4
+ | WordPress 2.1 Plugin: WP-Print 2.20 |
5
+ | Copyright (c) 2007 Lester "GaMerZ" Chan |
6
+ | |
7
+ | File Written By: |
8
+ | - Lester "GaMerZ" Chan |
9
+ | - http://lesterchan.net |
10
+ | |
11
+ | File Information: |
12
+ | - CSS Style For Printer Friendly Page |
13
+ | - wp-print-css.css |
14
+ | |
15
+ +----------------------------------------------------------------+
16
+ */
17
+
18
+
19
+ Body {
20
+ font-family: Verdana, Arial, Tahoma;
21
+ font-size: 12px;
22
+ color: #000000;
23
+ direction: ltr;
24
+ text-align: left;
25
+ }
26
+ #Outline {
27
+ width: 90%;
28
+ margin-left: auto;
29
+ margin-right: auto;
30
+ padding: 10px;
31
+ border: 1px solid #000000;
32
+ direction: ltr;
33
+ text-align: left;
34
+ }
35
+ #BlogTitle {
36
+ font-weight: bold;
37
+ font-size: 16px;
38
+ margin-bottom: 5px;
39
+ }
40
+ #BlogDate {
41
+ margin-top: 5px;
42
+ margin-bottom: 10px;
43
+ }
44
+ #BlogContent {
45
+ padding: 10px;
46
+ margin-top: 10px;
47
+ }
48
+ HR.Divider {
49
+ width: 80%;
50
+ height: 1px;
51
+ color: #000000;
52
+ }
53
+ #CommentTitle {
54
+ font-weight: bold;
55
+ font-size: 16px;
56
+ padding-bottom: 10px;
57
+ }
58
+ .CommentDate {
59
+ margin-top: 5px;
60
+ margin-bottom: 10px;
61
+ }
62
+ .CommentContent {
63
+ padding: 2px 10px 10px 10px;
64
+ }
65
+ @media print {
66
+ #print-link {
67
+ display: none;
68
+ }
69
  }
print/wp-print.mo CHANGED
Binary file
print/wp-print.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-Print 2.11 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Printer Friendly Page |
@@ -26,63 +26,17 @@ add_action('init', 'print_content');
26
  ### Filters
27
  add_filter('wp_title', 'print_pagetitle');
28
  add_filter('comments_template', 'print_template_comments');
 
 
 
29
  ?>
30
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
31
  <html xmlns="http://www.w3.org/1999/xhtml">
32
  <head>
33
- <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
34
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
35
- <meta name="Robots" content="noindex, nofollow" />
36
- <style type="text/css" media="screen, print">
37
- Body {
38
- font-family: Verdana, Arial, Tahoma;
39
- font-size: 12px;
40
- color: #000000;
41
- }
42
- #Outline {
43
- text-align: left;
44
- width: 90%;
45
- margin-left: auto;
46
- margin-right: auto;
47
- padding: 10px;
48
- border: 1px solid #000000;
49
- }
50
- #BlogTitle {
51
- font-weight: bold;
52
- font-size: 16px;
53
- margin-bottom: 5px;
54
- }
55
- #BlogDate {
56
- margin-top: 5px;
57
- margin-bottom: 10px;
58
- }
59
- #BlogContent {
60
- padding: 10px;
61
- margin-top: 10px;
62
- }
63
- HR.Divider {
64
- width: 80%;
65
- height: 1px;
66
- color: #000000;
67
- }
68
- #CommentTitle {
69
- font-weight: bold;
70
- font-size: 16px;
71
- padding-bottom: 10px;
72
- }
73
- .CommentDate {
74
- margin-top: 5px;
75
- margin-bottom: 10px;
76
- }
77
- .CommentContent {
78
- padding: 2px 10px 10px 10px;
79
- }
80
- @media print {
81
- #print-link {
82
- display: none;
83
- }
84
- }
85
- </style>
86
  </head>
87
  <body>
88
  <p style="text-align: center;"><strong>- <?php bloginfo('name'); ?> - <?php bloginfo('url')?> -</strong></p>
@@ -91,7 +45,7 @@ HR.Divider {
91
  <?php if (have_posts()): ?>
92
  <?php while (have_posts()): the_post(); ?>
93
  <p id="BlogTitle"><?php the_title(); ?></p>
94
- <p id="BlogDate"><?php _e('Posted By', 'wp-print'); ?> <u><?php the_author(); ?></u> <?php _e('On', 'wp-print'); ?> <?php the_time(get_option("date_format").' @ '.get_option("time_format")); ?> <?php _e('In', 'wp-print'); ?> <?php print_categories('<u>', '</u>'); ?> | <u><?php print_comments_number(); ?></u></p>
95
  <div id="BlogContent"><?php print_content(); ?></div>
96
  <?php endwhile; ?>
97
  <hr class="Divider" style="text-align: center;" />
@@ -109,5 +63,6 @@ HR.Divider {
109
  <?php endif; ?>
110
  </div>
111
  </center>
 
112
  </body>
113
  </html>
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-Print 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Printer Friendly Page |
26
  ### Filters
27
  add_filter('wp_title', 'print_pagetitle');
28
  add_filter('comments_template', 'print_template_comments');
29
+
30
+ ### Print Options
31
+ $print_options = get_option('print_options');
32
  ?>
33
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
34
  <html xmlns="http://www.w3.org/1999/xhtml">
35
  <head>
36
+ <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
37
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
38
+ <meta name="Robots" content="noindex, nofollow" />
39
+ <link rel="stylesheet" href="<?php bloginfo('wpurl'); ?>/wp-content/plugins/print/wp-print-css.css" type="text/css" media="screen, print" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  </head>
41
  <body>
42
  <p style="text-align: center;"><strong>- <?php bloginfo('name'); ?> - <?php bloginfo('url')?> -</strong></p>
45
  <?php if (have_posts()): ?>
46
  <?php while (have_posts()): the_post(); ?>
47
  <p id="BlogTitle"><?php the_title(); ?></p>
48
+ <p id="BlogDate"><?php _e('Posted By', 'wp-print'); ?> <u><?php the_author(); ?></u> <?php _e('On', 'wp-print'); ?> <?php the_time(sprintf(__('%s @ %s', 'wp-print'), get_option('date_format'), get_option('time_format'))); ?> <?php _e('In', 'wp-print'); ?> <?php print_categories('<u>', '</u>'); ?> | <u><a href='#comments_controls'><?php print_comments_number(); ?></a></u></p>
49
  <div id="BlogContent"><?php print_content(); ?></div>
50
  <?php endwhile; ?>
51
  <hr class="Divider" style="text-align: center;" />
63
  <?php endif; ?>
64
  </div>
65
  </center>
66
+ <p style="text-align: center;"><?php echo stripslashes($print_options['disclaimer']); ?></p>
67
  </body>
68
  </html>
print/wp-print.pot CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WP-Print 2.11\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2007-06-16 01:30+0800\n"
6
  "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n"
7
  "Language-Team: Lester Chan <gamerz84@hotmail.com>\n"
8
  "MIME-Version: 1.0\n"
@@ -14,204 +14,285 @@ msgstr ""
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: print-options.php:39
18
- #: print-options.php:81
19
- #: print-options.php:148
 
 
 
 
 
20
  msgid "Print Options"
21
  msgstr ""
22
 
23
- #: print-options.php:44
24
  msgid "Updated"
25
  msgstr ""
26
 
27
- #: print-options.php:49
28
  msgid "No Print Option Updated"
29
  msgstr ""
30
 
31
- #: print-options.php:84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  msgid "Print Styles"
33
  msgstr ""
34
 
35
- #: print-options.php:87
36
  msgid "Print Text Link For Post"
37
  msgstr ""
38
 
39
- #: print-options.php:93
40
  msgid "Print Text Link For Page"
41
  msgstr ""
42
 
43
- #: print-options.php:99
44
  msgid "Print Icon"
45
  msgstr ""
46
 
47
- #: print-options.php:127
48
  msgid "Print Text Link Style"
49
  msgstr ""
50
 
51
- #: print-options.php:130
52
  msgid "Print Icon With Text Link"
53
  msgstr ""
54
 
55
- #: print-options.php:131
56
  msgid "Print Icon Only"
57
  msgstr ""
58
 
59
- #: print-options.php:132
60
  msgid "Print Text Link Only"
61
  msgstr ""
62
 
63
- #: print-options.php:133
64
  msgid "Custom"
65
  msgstr ""
66
 
67
- #: print-options.php:137
 
68
  msgid "HTML is allowed."
69
  msgstr ""
70
 
71
- #: print-options.php:138
72
  msgid "URL to the printable post/page."
73
  msgstr ""
74
 
75
- #: print-options.php:139
76
  msgid "Print text link of the post/page that you have typed in above."
77
  msgstr ""
78
 
79
- #: print-options.php:140
80
  msgid "URL to the print icon you have chosen above."
81
  msgstr ""
82
 
83
- #: print-options.php:141
 
84
  msgid "Restore Default Template"
85
  msgstr ""
86
 
87
- #: print-options.php:151
88
  msgid "Print Comments?"
89
  msgstr ""
90
 
91
- #: print-options.php:154
92
- #: print-options.php:163
93
- #: print-options.php:172
 
94
  msgid "Yes"
95
  msgstr ""
96
 
97
- #: print-options.php:155
98
- #: print-options.php:164
99
- #: print-options.php:173
100
  msgid "No"
101
  msgstr ""
102
 
103
- #: print-options.php:160
104
  msgid "Print Links?"
105
  msgstr ""
106
 
107
- #: print-options.php:169
108
  msgid "Print Images?"
109
  msgstr ""
110
 
111
- #: print-options.php:180
112
- msgid "Update Options"
113
  msgstr ""
114
 
115
- #: print-options.php:180
116
  msgid "Cancel"
117
  msgstr ""
118
 
119
- #: print.php:39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  msgid "Print"
121
  msgstr ""
122
 
123
- #: print.php:148
124
- msgid "Note: You can print this post by visiting the site."
125
  msgstr ""
126
 
127
- #: print.php:194
128
- #: print.php:247
129
  msgid "Image"
130
  msgstr ""
131
 
132
- #: print.php:269
133
  msgid "No Comments"
134
  msgstr ""
135
 
136
- #: print.php:271
137
  msgid "1 Comment"
138
  msgstr ""
139
 
140
- #: print.php:273
141
  #, php-format
142
  msgid "%s Comments"
143
  msgstr ""
144
 
145
- #: print.php:276
146
  msgid "Comments Disabled"
147
  msgstr ""
148
 
149
- #: print.php:279
150
  msgid "Comments Hidden"
151
  msgstr ""
152
 
153
- #: print.php:290
154
  msgid "URLs in this post:"
155
  msgstr ""
156
 
157
- #: print.php:352
158
  msgid "Print This Post"
159
  msgstr ""
160
 
161
- #: print.php:353
162
  msgid "Print This Page"
163
  msgstr ""
164
 
165
  #: wp-print-comments.php:21
 
 
 
 
 
 
 
 
166
  msgid "To"
167
  msgstr ""
168
 
169
- #: wp-print-comments.php:24
170
  msgid "By"
171
  msgstr ""
172
 
173
- #: wp-print-comments.php:24
174
- #: wp-print.php:94
175
  msgid "On"
176
  msgstr ""
177
 
178
- #: wp-print-comments.php:27
 
 
 
 
 
 
179
  msgid "Your comment is awaiting moderation."
180
  msgstr ""
181
 
182
- #: wp-print.php:94
183
  msgid "Posted By"
184
  msgstr ""
185
 
186
- #: wp-print.php:94
187
  msgid "In"
188
  msgstr ""
189
 
190
- #: wp-print.php:101
191
  msgid "Article printed from"
192
  msgstr ""
193
 
194
- #: wp-print.php:102
195
  msgid "URL to article"
196
  msgstr ""
197
 
198
- #: wp-print.php:106
199
  msgid "Click"
200
  msgstr ""
201
 
202
- #: wp-print.php:106
203
  msgid "Click here to print."
204
  msgstr ""
205
 
206
- #: wp-print.php:106
207
  msgid "here"
208
  msgstr ""
209
 
210
- #: wp-print.php:106
211
  msgid "to print."
212
  msgstr ""
213
 
214
- #: wp-print.php:108
215
  msgid "No posts matched your criteria."
216
  msgstr ""
217
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WP-Print 2.20\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-09-30 16:07+0800\n"
6
  "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n"
7
  "Language-Team: Lester Chan <gamerz84@hotmail.com>\n"
8
  "MIME-Version: 1.0\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
+ #: print-options.php:32
18
+ #: print-options.php:239
19
+ msgid "Update Options"
20
+ msgstr ""
21
+
22
+ #: print-options.php:46
23
+ #: print-options.php:131
24
+ #: print-options.php:197
25
  msgid "Print Options"
26
  msgstr ""
27
 
28
+ #: print-options.php:51
29
  msgid "Updated"
30
  msgstr ""
31
 
32
+ #: print-options.php:56
33
  msgid "No Print Option Updated"
34
  msgstr ""
35
 
36
+ #: print-options.php:60
37
+ #: print-options.php:277
38
+ msgid "UNINSTALL WP-Print"
39
+ msgstr ""
40
+
41
+ #: print-options.php:68
42
+ #, php-format
43
+ msgid "Setting Key '%s' has been deleted."
44
+ msgstr ""
45
+
46
+ #: print-options.php:72
47
+ #, php-format
48
+ msgid "Error deleting Setting Key '%s'."
49
+ msgstr ""
50
+
51
+ #: print-options.php:94
52
+ #: print-options.php:247
53
+ msgid "Uninstall WP-Print"
54
+ msgstr ""
55
+
56
+ #: print-options.php:95
57
+ #, php-format
58
+ msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-Print Will Be Deactivated Automatically."
59
+ msgstr ""
60
+
61
+ #: print-options.php:121
62
+ #: print.php:368
63
+ #, php-format
64
+ msgid "Copyright &copy; %s %s. All rights reserved."
65
+ msgstr ""
66
+
67
+ #: print-options.php:133
68
  msgid "Print Styles"
69
  msgstr ""
70
 
71
+ #: print-options.php:136
72
  msgid "Print Text Link For Post"
73
  msgstr ""
74
 
75
+ #: print-options.php:142
76
  msgid "Print Text Link For Page"
77
  msgstr ""
78
 
79
+ #: print-options.php:148
80
  msgid "Print Icon"
81
  msgstr ""
82
 
83
+ #: print-options.php:176
84
  msgid "Print Text Link Style"
85
  msgstr ""
86
 
87
+ #: print-options.php:179
88
  msgid "Print Icon With Text Link"
89
  msgstr ""
90
 
91
+ #: print-options.php:180
92
  msgid "Print Icon Only"
93
  msgstr ""
94
 
95
+ #: print-options.php:181
96
  msgid "Print Text Link Only"
97
  msgstr ""
98
 
99
+ #: print-options.php:182
100
  msgid "Custom"
101
  msgstr ""
102
 
103
+ #: print-options.php:186
104
+ #: print-options.php:233
105
  msgid "HTML is allowed."
106
  msgstr ""
107
 
108
+ #: print-options.php:187
109
  msgid "URL to the printable post/page."
110
  msgstr ""
111
 
112
+ #: print-options.php:188
113
  msgid "Print text link of the post/page that you have typed in above."
114
  msgstr ""
115
 
116
+ #: print-options.php:189
117
  msgid "URL to the print icon you have chosen above."
118
  msgstr ""
119
 
120
+ #: print-options.php:190
121
+ #: print-options.php:230
122
  msgid "Restore Default Template"
123
  msgstr ""
124
 
125
+ #: print-options.php:200
126
  msgid "Print Comments?"
127
  msgstr ""
128
 
129
+ #: print-options.php:203
130
+ #: print-options.php:212
131
+ #: print-options.php:221
132
+ #: print-options.php:276
133
  msgid "Yes"
134
  msgstr ""
135
 
136
+ #: print-options.php:204
137
+ #: print-options.php:213
138
+ #: print-options.php:222
139
  msgid "No"
140
  msgstr ""
141
 
142
+ #: print-options.php:209
143
  msgid "Print Links?"
144
  msgstr ""
145
 
146
+ #: print-options.php:218
147
  msgid "Print Images?"
148
  msgstr ""
149
 
150
+ #: print-options.php:228
151
+ msgid "Disclaimer/Copyright Text?"
152
  msgstr ""
153
 
154
+ #: print-options.php:239
155
  msgid "Cancel"
156
  msgstr ""
157
 
158
+ #: print-options.php:249
159
+ 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."
160
+ msgstr ""
161
+
162
+ #: print-options.php:252
163
+ msgid "WARNING:"
164
+ msgstr ""
165
+
166
+ #: print-options.php:253
167
+ msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
168
+ msgstr ""
169
+
170
+ #: print-options.php:256
171
+ msgid "The following WordPress Options will be DELETED:"
172
+ msgstr ""
173
+
174
+ #: print-options.php:260
175
+ msgid "WordPress Options"
176
+ msgstr ""
177
+
178
+ #: print-options.php:277
179
+ msgid ""
180
+ "You Are About To Uninstall WP-Print From WordPress.\\n"
181
+ "This Action Is Not Reversible.\\n"
182
+ "\\n"
183
+ " Choose [Cancel] To Stop, [OK] To Uninstall."
184
+ msgstr ""
185
+
186
+ #: print.php:42
187
  msgid "Print"
188
  msgstr ""
189
 
190
+ #: print.php:158
191
+ msgid "Note: There is a print link embedded within this post, please visit this post to print it."
192
  msgstr ""
193
 
194
+ #: print.php:204
195
+ #: print.php:257
196
  msgid "Image"
197
  msgstr ""
198
 
199
+ #: print.php:279
200
  msgid "No Comments"
201
  msgstr ""
202
 
203
+ #: print.php:281
204
  msgid "1 Comment"
205
  msgstr ""
206
 
207
+ #: print.php:283
208
  #, php-format
209
  msgid "%s Comments"
210
  msgstr ""
211
 
212
+ #: print.php:286
213
  msgid "Comments Disabled"
214
  msgstr ""
215
 
216
+ #: print.php:289
217
  msgid "Comments Hidden"
218
  msgstr ""
219
 
220
+ #: print.php:300
221
  msgid "URLs in this post:"
222
  msgstr ""
223
 
224
+ #: print.php:360
225
  msgid "Print This Post"
226
  msgstr ""
227
 
228
+ #: print.php:361
229
  msgid "Print This Page"
230
  msgstr ""
231
 
232
  #: wp-print-comments.php:21
233
+ msgid "Open"
234
+ msgstr ""
235
+
236
+ #: wp-print-comments.php:21
237
+ msgid "Close"
238
+ msgstr ""
239
+
240
+ #: wp-print-comments.php:23
241
  msgid "To"
242
  msgstr ""
243
 
244
+ #: wp-print-comments.php:26
245
  msgid "By"
246
  msgstr ""
247
 
248
+ #: wp-print-comments.php:26
249
+ #: wp-print.php:48
250
  msgid "On"
251
  msgstr ""
252
 
253
+ #: wp-print-comments.php:26
254
+ #: wp-print.php:48
255
+ #, php-format
256
+ msgid "%s @ %s"
257
+ msgstr ""
258
+
259
+ #: wp-print-comments.php:30
260
  msgid "Your comment is awaiting moderation."
261
  msgstr ""
262
 
263
+ #: wp-print.php:48
264
  msgid "Posted By"
265
  msgstr ""
266
 
267
+ #: wp-print.php:48
268
  msgid "In"
269
  msgstr ""
270
 
271
+ #: wp-print.php:55
272
  msgid "Article printed from"
273
  msgstr ""
274
 
275
+ #: wp-print.php:56
276
  msgid "URL to article"
277
  msgstr ""
278
 
279
+ #: wp-print.php:60
280
  msgid "Click"
281
  msgstr ""
282
 
283
+ #: wp-print.php:60
284
  msgid "Click here to print."
285
  msgstr ""
286
 
287
+ #: wp-print.php:60
288
  msgid "here"
289
  msgstr ""
290
 
291
+ #: wp-print.php:60
292
  msgid "to print."
293
  msgstr ""
294
 
295
+ #: wp-print.php:62
296
  msgid "No posts matched your criteria."
297
  msgstr ""
298
 
readme.html CHANGED
@@ -2,7 +2,7 @@
2
  <html>
3
  <head>
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
- <title>WP-Print 2.11 Readme</title>
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.11&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
207
 
208
  <!-- Tabs -->
209
  <ul id="Tabs">
@@ -229,13 +229,13 @@
229
  <strong>&raquo;</strong>
230
  <script type="text/javascript">
231
  /* <![CDATA[*/
232
- document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-Print%202.11%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>');
233
  /* ]]> */
234
  </script>
235
  </p>
236
  <p>
237
  <strong>Website:</strong><br />
238
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/" title="http://www.lesterchan.net/">http://www.lesterchan.net/</a>
239
  </p>
240
  <p>
241
  <strong>Features:</strong><br />
@@ -243,13 +243,17 @@
243
  </p>
244
  <p>
245
  <strong>Download:</strong><br />
246
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads.php?id=12" title="http://www.lesterchan.net/others/downloads.php?id=12">WP-Print 2.11 For WordPress 2.1.x And Above</a><br />
247
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-print206.zip" title="http://www.lesterchan.net/others/downloads/wp-print206.zip">WP-Print 2.06 For WordPress 2.0.x</a><br />
248
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-print200a.zip" title="http://www.lesterchan.net/others/downloads/wp-print200a.zip">WP-Print 2.00a For WordPress 1.5.2</a>
 
 
 
 
249
  </p>
250
  <p>
251
  <strong>Demo:</strong><br />
252
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/wordpress/2006/07/05/donations/print/" title="http://www.lesterchan.net/wordpress/2006/07/05/donations/print/">http://www.lesterchan.net/wordpress/2006/07/05/donations/print/</a>
253
  </p>
254
  <p>
255
  <strong>Development:</strong><br />
@@ -287,6 +291,19 @@
287
  <div id="Changelog" style="display: none;">
288
  <div class="SubTitle">&raquo; Changelog</div>
289
  <ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
290
  <li>
291
  <strong>Version 2.11 (01-06-2007)</strong>
292
  <ul>
@@ -400,7 +417,7 @@
400
  <!-- Upgrade Instructions -->
401
  <div id="Upgrade" style="display: none;">
402
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
403
- <div class="SubSubTitle">From v1.0x To v2.11</div>
404
  <ol>
405
  <li>
406
  <strong>Deactivate</strong> WP-Print Plugin
@@ -460,6 +477,6 @@
460
  </div>
461
  </div>
462
  </div>
463
- <p id="Copyright">WP-Print 2.11<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
464
  </body>
465
  </html>
2
  <html>
3
  <head>
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
+ <title>WP-Print 2.20 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.20&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
207
 
208
  <!-- Tabs -->
209
  <ul id="Tabs">
229
  <strong>&raquo;</strong>
230
  <script type="text/javascript">
231
  /* <![CDATA[*/
232
+ document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-Print%202.20%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>');
233
  /* ]]> */
234
  </script>
235
  </p>
236
  <p>
237
  <strong>Website:</strong><br />
238
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/" title="http://lesterchan.net/">http://lesterchan.net/</a>
239
  </p>
240
  <p>
241
  <strong>Features:</strong><br />
243
  </p>
244
  <p>
245
  <strong>Download:</strong><br />
246
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/others/downloads.php?id=12" title="http://lesterchan.net/others/downloads.php?id=12">WP-Print 2.20 For WordPress 2.1.x And Above</a><br />
247
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/others/downloads/wp-print206.zip" title="http://lesterchan.net/others/downloads/wp-print206.zip">WP-Print 2.06 For WordPress 2.0.x</a><br />
248
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/others/downloads/wp-print200a.zip" title="http://lesterchan.net/others/downloads/wp-print200a.zip">WP-Print 2.00a For WordPress 1.5.2</a>
249
+ </p>
250
+ <p>
251
+ <strong>Screenshots:</strong><br />
252
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/wordpress/screenshots/browse/wp-print/" title="http://lesterchan.net/wordpress/screenshots/browse/wp-print/">http://lesterchan.net/wordpress/screenshots/browse/wp-print/</a>
253
  </p>
254
  <p>
255
  <strong>Demo:</strong><br />
256
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/wordpress/2006/07/05/donations/print/" title="http://lesterchan.net/wordpress/2006/07/05/donations/print/">http://lesterchan.net/wordpress/2006/07/05/donations/print/</a>
257
  </p>
258
  <p>
259
  <strong>Development:</strong><br />
291
  <div id="Changelog" style="display: none;">
292
  <div class="SubTitle">&raquo; Changelog</div>
293
  <ul>
294
+ <li>
295
+ <strong>Version 2.20 (01-10-2007)</strong>
296
+ <ul>
297
+ <li>NEW: Works For WordPress 2.3 Only</li>
298
+ <li>NEW: Ability To Embed [print_link] Into Excerpt</li>
299
+ <li>NEW: wp-print-css.css Now Controls The CSS Styles For The Printer Friendly Page</li>
300
+ <li>NEW: Disclaimer/Copyright Text Option By <a href="http://www.journalsoftheheart.com/">Duane Craig</a></li>
301
+ <li>NEW: Anchor Link To Comments By <a href="http://www.reinventia.net/">Reinventia</a></li>
302
+ <li>NEW: Collapsable Comments By <a href="http://www.reinventia.net/">Reinventia</a></li>
303
+ <li>NEW: Ability To Uninstall WP-Print</li>
304
+ <li>FIXED: If There Is No Trailing Slash In Your Permalink, WP-Print Will Add It For You</li>
305
+ </ul>
306
+ </li>
307
  <li>
308
  <strong>Version 2.11 (01-06-2007)</strong>
309
  <ul>
417
  <!-- Upgrade Instructions -->
418
  <div id="Upgrade" style="display: none;">
419
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
420
+ <div class="SubSubTitle">From v1.0x To v2.20</div>
421
  <ol>
422
  <li>
423
  <strong>Deactivate</strong> WP-Print Plugin
477
  </div>
478
  </div>
479
  </div>
480
+ <p id="Copyright">WP-Print 2.20<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
481
  </body>
482
  </html>
readme.txt CHANGED
@@ -1,29 +1,29 @@
1
  === WP-Print ===
2
  Contributors: GamerZ
3
- Donate link: http://www.lesterchan.net/wordpress
4
  Tags: print, printer, wp-print
5
- Requires at least: 2.1.0
6
- Stable tag: 2.11
7
 
8
  Displays a printable version of your WordPress blog's post/page.
9
 
10
  == Description ==
11
 
12
- All the information (general, changelog, installation, upgrade, usage) you need about this plugin can be found here: [WP-Print Readme](http://www.lesterchan.net/wordpress/readme/wp-print.html "WP-Print Readme").
13
  It is the exact same readme.html is included in the zip package.
14
 
15
  == Development Blog ==
16
 
17
- [GaMerZ WordPress Plugins Development Blog](http://www.lesterchan.net/wordpress/ "GaMerZ WordPress Plugins Development Blog")
18
 
19
  == Installation ==
20
 
21
- [WP-Print Readme](http://www.lesterchan.net/wordpress/readme/wp-print.html "WP-Print Readme") (Installation Tab)
22
 
23
  == Screenshots ==
24
 
25
- [GaMerZ WordPress Plugins Screenshots](http://www.lesterchan.net/wordpress/screenshots/ "GaMerZ WordPress Plugins Screenshots")
26
 
27
  == Frequently Asked Questions ==
28
 
29
- You will need [GaMerZ WordPress Plugins Support Forums](http://forums.lesterchan.net/ "GaMerZ WordPress Plugins Support Forums")
1
  === WP-Print ===
2
  Contributors: GamerZ
3
+ Donate link: http://lesterchan.net/wordpress
4
  Tags: print, printer, wp-print
5
+ Requires at least: 2.3.0
6
+ Stable tag: 2.20
7
 
8
  Displays a printable version of your WordPress blog's post/page.
9
 
10
  == Description ==
11
 
12
+ All the information (general, changelog, installation, upgrade, usage) you need about this plugin can be found here: [WP-Print Readme](http://lesterchan.net/wordpress/readme/wp-print.html "WP-Print Readme").
13
  It is the exact same readme.html is included in the zip package.
14
 
15
  == Development Blog ==
16
 
17
+ [GaMerZ WordPress Plugins Development Blog](http://lesterchan.net/wordpress/ "GaMerZ WordPress Plugins Development Blog")
18
 
19
  == Installation ==
20
 
21
+ [WP-Print Readme](http://lesterchan.net/wordpress/readme/wp-print.html "WP-Print Readme") (Installation Tab)
22
 
23
  == Screenshots ==
24
 
25
+ [WP-Print Screenshots](http://lesterchan.net/wordpress/screenshots/browse/wp-print/ "WP-Print Screenshots")
26
 
27
  == Frequently Asked Questions ==
28
 
29
+ [WP-Print Support Forums](http://forums.lesterchan.net/index.php?board=18.0 "WP-Print Support Forums")