Version Description
- Update deprecated jQuery to prevent deprecation log noitice.
Download this release
Release Info
Developer | printfriendly |
Plugin | Print, PDF, Email by PrintFriendly |
Version | 3.16.0 |
Comparing to | |
See all releases |
Code changes from version 3.15.0 to 3.16.0
- admin.js +39 -40
- pf.php +2 -1
- readme.txt +7 -3
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
admin.js
CHANGED
@@ -3,12 +3,12 @@ jQuery(document).ready(function() {
|
|
3 |
jQuery('.show_list').change(function() {
|
4 |
if (jQuery('.show_list:checked').length == 0) {
|
5 |
jQuery('.content_placement').hide('slow');
|
6 |
-
jQuery('.content_placement input').
|
7 |
-
jQuery('.show_template').
|
8 |
} else {
|
9 |
-
jQuery('.show_template').
|
10 |
jQuery('.content_placement').show('slow');
|
11 |
-
jQuery('.content_placement input').
|
12 |
}
|
13 |
|
14 |
var postName = 'printfriendly_option[show_on_posts]';
|
@@ -27,15 +27,15 @@ jQuery(document).ready(function() {
|
|
27 |
|
28 |
jQuery('.show_template').change(function() {
|
29 |
if(jQuery(this).is(':checked')) {
|
30 |
-
jQuery('.show_list').
|
31 |
-
jQuery('.show_list').
|
32 |
jQuery('.content_placement').hide('slow');
|
33 |
-
jQuery('.content_placement input').
|
34 |
jQuery('#pf-categories-metabox').hide('slow');
|
35 |
} else {
|
36 |
-
jQuery('.show_list').
|
37 |
jQuery('.content_placement').show('slow');
|
38 |
-
jQuery('.content_placement input').
|
39 |
}
|
40 |
}).change();
|
41 |
|
@@ -78,7 +78,7 @@ jQuery(document).ready(function() {
|
|
78 |
}).change();
|
79 |
|
80 |
jQuery('#css input').change(function() {
|
81 |
-
if(jQuery(this).
|
82 |
jQuery(this).val('off');
|
83 |
jQuery('#margin, #txt-color, #txt-size').hide('slow');
|
84 |
pf_reset_style();
|
@@ -89,7 +89,7 @@ jQuery(document).ready(function() {
|
|
89 |
}
|
90 |
}).change();
|
91 |
|
92 |
-
jQuery('#custom_text').
|
93 |
pf_custom_text_change();
|
94 |
});
|
95 |
|
@@ -109,7 +109,7 @@ jQuery(document).ready(function() {
|
|
109 |
var preview = jQuery(previewSelector + '-preview');
|
110 |
var error = jQuery(previewSelector + '-error');
|
111 |
|
112 |
-
el.
|
113 |
setTimeout(function() {
|
114 |
// ie shows error if we try to merge the two below into a single statement
|
115 |
var img = jQuery('<img/>');
|
@@ -123,18 +123,17 @@ jQuery(document).ready(function() {
|
|
123 |
imgUrl = customButtonIcon;
|
124 |
}
|
125 |
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
.
|
130 |
-
preview.html('');
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
})
|
135 |
-
|
136 |
-
|
137 |
-
error.html('');
|
138 |
}, 100);
|
139 |
});
|
140 |
}
|
@@ -142,20 +141,20 @@ jQuery(document).ready(function() {
|
|
142 |
pf_initialize_preview('#custom_image', '#pf-custom-button');
|
143 |
pf_initialize_preview("[name='printfriendly_option[custom_button_icon]']", '#pf-custom-button');
|
144 |
pf_initialize_preview('#upload-an-image', '#pf-image');
|
145 |
-
jQuery('#custom_image, #upload-an-image').change();
|
146 |
-
jQuery('#custom_image').
|
147 |
-
jQuery('#custom-image').
|
148 |
jQuery('#pf-custom-button-error').show();
|
149 |
});
|
150 |
-
jQuery('#button-style input.radio').
|
151 |
-
if(jQuery('#custom-image').
|
152 |
jQuery('#pf-custom-button-error').show();
|
153 |
} else {
|
154 |
jQuery('#pf-custom-button-error').hide();
|
155 |
}
|
156 |
}).change();
|
157 |
|
158 |
-
jQuery('#pf-logo').
|
159 |
if(jQuery(this).val() == 'favicon') {
|
160 |
jQuery('.custom-logo, #image-preview').hide();
|
161 |
} else {
|
@@ -164,7 +163,7 @@ jQuery(document).ready(function() {
|
|
164 |
}
|
165 |
}).change();
|
166 |
|
167 |
-
jQuery('#website_protocol').
|
168 |
if(jQuery(this).val() == 'https') {
|
169 |
jQuery('#https-beta-registration').show('slow');
|
170 |
} else {
|
@@ -172,7 +171,7 @@ jQuery(document).ready(function() {
|
|
172 |
}
|
173 |
}).change();
|
174 |
|
175 |
-
jQuery('#password_protected').
|
176 |
if(jQuery(this).val() == 'yes') {
|
177 |
jQuery('#javascript').val('yes').change();
|
178 |
if((jQuery('.password_protected_yes').attr('data-sub-status') == 'none') || (jQuery('.password_protected_yes').attr('data-sub-status') == 'expired')) {
|
@@ -181,16 +180,16 @@ jQuery(document).ready(function() {
|
|
181 |
jQuery('.password_protected_yes').hide();
|
182 |
}
|
183 |
pf_on_javascript();
|
184 |
-
jQuery('#javascript').
|
185 |
jQuery('#pf-javascript-container').hide('slow');
|
186 |
} else {
|
187 |
-
jQuery('#javascript').
|
188 |
jQuery('#pf-javascript-container').show('slow');
|
189 |
jQuery('.password_protected_yes').hide();
|
190 |
}
|
191 |
}).change();
|
192 |
|
193 |
-
jQuery('#dynamic_content').
|
194 |
if(jQuery(this).val() == 'yes') {
|
195 |
jQuery('#javascript').val('yes').change();
|
196 |
if((jQuery('.dynamic_content_yes').attr('data-sub-status') == 'none') || (jQuery('.dynamic_content_yes').attr('data-sub-status') == 'expired')) {
|
@@ -199,16 +198,16 @@ jQuery(document).ready(function() {
|
|
199 |
jQuery('.dynamic_content_yes').hide();
|
200 |
}
|
201 |
pf_on_javascript();
|
202 |
-
jQuery('#javascript').
|
203 |
jQuery('#pf-javascript-container').hide('slow');
|
204 |
} else {
|
205 |
-
jQuery('#javascript').
|
206 |
jQuery('#pf-javascript-container').show('slow');
|
207 |
jQuery('.dynamic_content_yes').hide();
|
208 |
}
|
209 |
}).change();
|
210 |
|
211 |
-
jQuery('#javascript').
|
212 |
if(jQuery(this).val() == 'yes') {
|
213 |
pf_on_javascript();
|
214 |
} else {
|
@@ -249,7 +248,7 @@ jQuery(document).ready(function() {
|
|
249 |
if(category_ids[0] == 'all') {
|
250 |
var ids = [];
|
251 |
jQuery('#categorydiv :checkbox').each(function() {
|
252 |
-
jQuery(this).
|
253 |
});
|
254 |
jQuery('#category-all :checkbox').each(function() {
|
255 |
ids.push(jQuery(this).val());
|
@@ -263,7 +262,7 @@ jQuery(document).ready(function() {
|
|
263 |
|
264 |
jQuery('#categorydiv :checkbox').each(function() {
|
265 |
if(jQuery.inArray(jQuery(this).val(), category_ids) != -1) {
|
266 |
-
jQuery(this).
|
267 |
}
|
268 |
});
|
269 |
}
|
3 |
jQuery('.show_list').change(function() {
|
4 |
if (jQuery('.show_list:checked').length == 0) {
|
5 |
jQuery('.content_placement').hide('slow');
|
6 |
+
jQuery('.content_placement input').prop('disabled', true);
|
7 |
+
jQuery('.show_template').prop('checked', true);
|
8 |
} else {
|
9 |
+
jQuery('.show_template').prop('checked', false);
|
10 |
jQuery('.content_placement').show('slow');
|
11 |
+
jQuery('.content_placement input').prop('disabled', false)
|
12 |
}
|
13 |
|
14 |
var postName = 'printfriendly_option[show_on_posts]';
|
27 |
|
28 |
jQuery('.show_template').change(function() {
|
29 |
if(jQuery(this).is(':checked')) {
|
30 |
+
jQuery('.show_list').prop('checked', false);
|
31 |
+
jQuery('.show_list').prop('disabled', true);
|
32 |
jQuery('.content_placement').hide('slow');
|
33 |
+
jQuery('.content_placement input').prop('disabled',true);
|
34 |
jQuery('#pf-categories-metabox').hide('slow');
|
35 |
} else {
|
36 |
+
jQuery('.show_list').prop('disabled', false);
|
37 |
jQuery('.content_placement').show('slow');
|
38 |
+
jQuery('.content_placement input').prop('disabled', false);
|
39 |
}
|
40 |
}).change();
|
41 |
|
78 |
}).change();
|
79 |
|
80 |
jQuery('#css input').change(function() {
|
81 |
+
if(jQuery(this).is(':checked')) {
|
82 |
jQuery(this).val('off');
|
83 |
jQuery('#margin, #txt-color, #txt-size').hide('slow');
|
84 |
pf_reset_style();
|
89 |
}
|
90 |
}).change();
|
91 |
|
92 |
+
jQuery('#custom_text').on('change keyup', function(){
|
93 |
pf_custom_text_change();
|
94 |
});
|
95 |
|
109 |
var preview = jQuery(previewSelector + '-preview');
|
110 |
var error = jQuery(previewSelector + '-error');
|
111 |
|
112 |
+
el.on('input paste change keyup', function() {
|
113 |
setTimeout(function() {
|
114 |
// ie shows error if we try to merge the two below into a single statement
|
115 |
var img = jQuery('<img/>');
|
123 |
imgUrl = customButtonIcon;
|
124 |
}
|
125 |
|
126 |
+
preview.html('');
|
127 |
+
error.html('');
|
128 |
+
if(imgUrl != '') {
|
129 |
+
img.on('load', function(){
|
130 |
+
preview.html('').append(img);
|
131 |
+
})
|
132 |
+
img.on('error', function(){
|
133 |
+
error.html('<div class="error settings-error"><p><strong>Invalid Image URL</strong></p></div>');
|
134 |
+
})
|
135 |
+
img.attr('src',imgUrl);
|
136 |
+
}
|
|
|
137 |
}, 100);
|
138 |
});
|
139 |
}
|
141 |
pf_initialize_preview('#custom_image', '#pf-custom-button');
|
142 |
pf_initialize_preview("[name='printfriendly_option[custom_button_icon]']", '#pf-custom-button');
|
143 |
pf_initialize_preview('#upload-an-image', '#pf-image');
|
144 |
+
//jQuery('#custom_image, #upload-an-image').change();
|
145 |
+
jQuery('#custom_image').on('focus', function() {
|
146 |
+
jQuery('#custom-image').prop('checked', true);
|
147 |
jQuery('#pf-custom-button-error').show();
|
148 |
});
|
149 |
+
jQuery('#button-style input.radio').on('change', function() {
|
150 |
+
if(jQuery('#custom-image').is(':checked')) {
|
151 |
jQuery('#pf-custom-button-error').show();
|
152 |
} else {
|
153 |
jQuery('#pf-custom-button-error').hide();
|
154 |
}
|
155 |
}).change();
|
156 |
|
157 |
+
jQuery('#pf-logo').on('change', function() {
|
158 |
if(jQuery(this).val() == 'favicon') {
|
159 |
jQuery('.custom-logo, #image-preview').hide();
|
160 |
} else {
|
163 |
}
|
164 |
}).change();
|
165 |
|
166 |
+
jQuery('#website_protocol').on('change', function() {
|
167 |
if(jQuery(this).val() == 'https') {
|
168 |
jQuery('#https-beta-registration').show('slow');
|
169 |
} else {
|
171 |
}
|
172 |
}).change();
|
173 |
|
174 |
+
jQuery('#password_protected').on('change', function() {
|
175 |
if(jQuery(this).val() == 'yes') {
|
176 |
jQuery('#javascript').val('yes').change();
|
177 |
if((jQuery('.password_protected_yes').attr('data-sub-status') == 'none') || (jQuery('.password_protected_yes').attr('data-sub-status') == 'expired')) {
|
180 |
jQuery('.password_protected_yes').hide();
|
181 |
}
|
182 |
pf_on_javascript();
|
183 |
+
jQuery('#javascript').prop('disabled', true);
|
184 |
jQuery('#pf-javascript-container').hide('slow');
|
185 |
} else {
|
186 |
+
jQuery('#javascript').prop('disabled', false);
|
187 |
jQuery('#pf-javascript-container').show('slow');
|
188 |
jQuery('.password_protected_yes').hide();
|
189 |
}
|
190 |
}).change();
|
191 |
|
192 |
+
jQuery('#dynamic_content').on('change', function() {
|
193 |
if(jQuery(this).val() == 'yes') {
|
194 |
jQuery('#javascript').val('yes').change();
|
195 |
if((jQuery('.dynamic_content_yes').attr('data-sub-status') == 'none') || (jQuery('.dynamic_content_yes').attr('data-sub-status') == 'expired')) {
|
198 |
jQuery('.dynamic_content_yes').hide();
|
199 |
}
|
200 |
pf_on_javascript();
|
201 |
+
jQuery('#javascript').prop('disabled', true);
|
202 |
jQuery('#pf-javascript-container').hide('slow');
|
203 |
} else {
|
204 |
+
jQuery('#javascript').prop('disabled', false);
|
205 |
jQuery('#pf-javascript-container').show('slow');
|
206 |
jQuery('.dynamic_content_yes').hide();
|
207 |
}
|
208 |
}).change();
|
209 |
|
210 |
+
jQuery('#javascript').on('change', function() {
|
211 |
if(jQuery(this).val() == 'yes') {
|
212 |
pf_on_javascript();
|
213 |
} else {
|
248 |
if(category_ids[0] == 'all') {
|
249 |
var ids = [];
|
250 |
jQuery('#categorydiv :checkbox').each(function() {
|
251 |
+
jQuery(this).prop('checked', true);
|
252 |
});
|
253 |
jQuery('#category-all :checkbox').each(function() {
|
254 |
ids.push(jQuery(this).val());
|
262 |
|
263 |
jQuery('#categorydiv :checkbox').each(function() {
|
264 |
if(jQuery.inArray(jQuery(this).val(), category_ids) != -1) {
|
265 |
+
jQuery(this).prop('checked', true);
|
266 |
}
|
267 |
});
|
268 |
}
|
pf.php
CHANGED
@@ -5,11 +5,12 @@ Plugin Name: Print, PDF & Email by PrintFriendly
|
|
5 |
Plugin URI: http://www.printfriendly.com
|
6 |
Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email.
|
7 |
Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared.
|
8 |
-
Version: 3.
|
9 |
Author: Print, PDF, & Email by PrintFriendly
|
10 |
Author URI: http://www.PrintFriendly.com
|
11 |
|
12 |
Changelog :
|
|
|
13 |
3.15.0 - CSS Bug fix for center align of PrintFriendly Button.
|
14 |
3.14.9 - Bug fix for PrintFriendly Button Alignment.
|
15 |
3.14.8 - Fix error from deprecated contextual help. Change printfriendly button CSS styles from internal (head) to inline (link). This ensures all styles are removed when button is not present.
|
5 |
Plugin URI: http://www.printfriendly.com
|
6 |
Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email.
|
7 |
Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared.
|
8 |
+
Version: 3.16.0
|
9 |
Author: Print, PDF, & Email by PrintFriendly
|
10 |
Author URI: http://www.PrintFriendly.com
|
11 |
|
12 |
Changelog :
|
13 |
+
3.16.0 - Update deprecated jQuery to prevent deprecation log noitice.
|
14 |
3.15.0 - CSS Bug fix for center align of PrintFriendly Button.
|
15 |
3.14.9 - Bug fix for PrintFriendly Button Alignment.
|
16 |
3.14.8 - Fix error from deprecated contextual help. Change printfriendly button CSS styles from internal (head) to inline (link). This ensures all styles are removed when button is not present.
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: printfriendly, joostdevalk, jrf
|
3 |
Tags: print, pdf, email, print button, wp-print, print recipe, print post, print page, print widget, print plugin, printable, wp-pdf, pdf post, pdf page, pdf button, pdf widget, pdf plugin, woocommerce print, woocommerce pdf
|
4 |
Requires at least: 2.8
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 3.
|
7 |
|
8 |
|
9 |
The #1 Print, PDF, Email button. Stylish, full featured, customizable. Add custom header, footer, and more.
|
@@ -23,7 +23,7 @@ PrintFriendly is used by millions of people everyday to help them save paper and
|
|
23 |
* Stylish, highly polished, intuitive UI/UX that end-users love.
|
24 |
* Editable Preview - change text/image size, and delete to save even more paper and ink.
|
25 |
* PDF - clickable links and custom paper sizes (A4 or Letter).
|
26 |
-
* Reliable & Fast -
|
27 |
|
28 |
**Benefits For Publishers**
|
29 |
* Automatically detects page content so you don't have to create print.css.
|
@@ -143,6 +143,10 @@ You can [hide the Print, PDF, and Email button](https://support.printfriendly.co
|
|
143 |
|
144 |
|
145 |
== Changelog ==
|
|
|
|
|
|
|
|
|
146 |
= 3.15.0 =
|
147 |
* CSS Bug fix for center align of PrintFriendly Button
|
148 |
|
2 |
Contributors: printfriendly, joostdevalk, jrf
|
3 |
Tags: print, pdf, email, print button, wp-print, print recipe, print post, print page, print widget, print plugin, printable, wp-pdf, pdf post, pdf page, pdf button, pdf widget, pdf plugin, woocommerce print, woocommerce pdf
|
4 |
Requires at least: 2.8
|
5 |
+
Tested up to: 5.6
|
6 |
+
Stable tag: 3.16.0
|
7 |
|
8 |
|
9 |
The #1 Print, PDF, Email button. Stylish, full featured, customizable. Add custom header, footer, and more.
|
23 |
* Stylish, highly polished, intuitive UI/UX that end-users love.
|
24 |
* Editable Preview - change text/image size, and delete to save even more paper and ink.
|
25 |
* PDF - clickable links and custom paper sizes (A4 or Letter).
|
26 |
+
* Reliable & Fast - Since 2009 we've optimized and improved.
|
27 |
|
28 |
**Benefits For Publishers**
|
29 |
* Automatically detects page content so you don't have to create print.css.
|
143 |
|
144 |
|
145 |
== Changelog ==
|
146 |
+
|
147 |
+
= 3.16.0 =
|
148 |
+
* Update deprecated jQuery to prevent deprecation log noitice.
|
149 |
+
|
150 |
= 3.15.0 =
|
151 |
* CSS Bug fix for center align of PrintFriendly Button
|
152 |
|
screenshot-1.png
DELETED
Binary file
|
screenshot-2.png
DELETED
Binary file
|
screenshot-3.png
DELETED
Binary file
|
screenshot-4.png
DELETED
Binary file
|