Version Description
- CSS Bug fix for center align of PrintFriendly Button
Download this release
Release Info
Developer | printfriendly |
Plugin | Print, PDF, Email by PrintFriendly |
Version | 3.15.0 |
Comparing to | |
See all releases |
Code changes from version 3.14.9 to 3.15.0
- admin.css +1 -0
- pf.php +12 -19
- readme.txt +4 -1
admin.css
CHANGED
@@ -45,6 +45,7 @@ input[type="radio"], img {
|
|
45 |
}
|
46 |
#custom-button-preview img {
|
47 |
margin-right: 6px;
|
|
|
48 |
}
|
49 |
#placement-adv-options {
|
50 |
float: left;
|
45 |
}
|
46 |
#custom-button-preview img {
|
47 |
margin-right: 6px;
|
48 |
+
vertical-align: bottom;
|
49 |
}
|
50 |
#placement-adv-options {
|
51 |
float: left;
|
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.14.9 - Bug fix for PrintFriendly Button Alignment.
|
14 |
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.
|
15 |
3.14.7 - Remove unnecessary closing style tag. Add outline:none to printfriendly button link to remove outline on click.
|
@@ -426,27 +427,18 @@ if (!class_exists('PrintFriendly_WordPress')) {
|
|
426 |
margin: <?php echo $this->options['margin_top'] . 'px ' . $this->options['margin_right'] . 'px ' . $this->options['margin_bottom'] . 'px ' . $this->options['margin_left'] . 'px'; ?>;
|
427 |
}
|
428 |
.printfriendly a, .printfriendly a:link, .printfriendly a:visited, .printfriendly a:hover, .printfriendly a:active {
|
429 |
-
display: flex;
|
430 |
-
align-items: center;
|
431 |
font-weight: 600;
|
432 |
-
box-shadow:none;
|
433 |
cursor: pointer;
|
434 |
text-decoration: none;
|
435 |
border: none;
|
436 |
-
-webkit-box-shadow: none !important;
|
437 |
-
box-shadow: none !important;
|
438 |
-
font-size: <?php echo $this->options['text_size']; ?>px;
|
439 |
-
color: <?php echo $this->options['text_color']; ?>;
|
440 |
-
}
|
441 |
-
.printfriendly img {
|
442 |
-
border: none;
|
443 |
-
padding:0;
|
444 |
-
margin-right: 6px;
|
445 |
-webkit-box-shadow: none;
|
446 |
-moz-box-shadow: none;
|
447 |
box-shadow: none;
|
|
|
|
|
|
|
448 |
}
|
449 |
-
.printfriendly.pf-alignleft {float: left}.printfriendly.pf-alignright {float: right}.printfriendly.pf-aligncenter {
|
450 |
}
|
451 |
|
452 |
@media print {
|
@@ -588,7 +580,7 @@ if (!class_exists('PrintFriendly_WordPress')) {
|
|
588 |
if ('none' != $this->options['content_position'])
|
589 |
$align = ' pf-align' . $this->options['content_position'];
|
590 |
$href = str_replace("&", "&", $href);
|
591 |
-
$button = apply_filters('printfriendly_button', '<div class="printfriendly' . $align . '"><a href="' . $href . '"
|
592 |
return $button;
|
593 |
}
|
594 |
|
@@ -1254,7 +1246,7 @@ if (!class_exists('PrintFriendly_WordPress')) {
|
|
1254 |
?>
|
1255 |
<label class="radio-custom-btn">
|
1256 |
<input type="radio" name="<?php echo $this->option_name ?>[custom_button_icon]" value="<?php echo $value ?>" <?php $this->checked('custom_button_icon', $value) ?>>
|
1257 |
-
<img src="<?php echo $value ?>" alt="Print Friendly, PDF & Email" style="display: inline" />
|
1258 |
</label>
|
1259 |
<?php
|
1260 |
}
|
@@ -1278,11 +1270,12 @@ if (!class_exists('PrintFriendly_WordPress')) {
|
|
1278 |
|
1279 |
if ($name == "custom-button") {
|
1280 |
if ($this->options['custom_button_icon'] == 'custom-image' && '' != trim($this->options['custom_image'])) {
|
1281 |
-
$return = '<img src="' . esc_url($this->options['custom_image']) . '" alt="Print Friendly, PDF & Email" style="display: inline" />';
|
1282 |
} else if ($this->options['custom_button_icon'] != 'no-image') {
|
1283 |
-
$return = '<img src="' . esc_url($this->options['custom_button_icon']) . '" alt="Print Friendly, PDF & Email" style="display:
|
1284 |
}
|
1285 |
|
|
|
1286 |
/* esc_html was removerd to support custom html, CSRF prevents from attack by using this field */
|
1287 |
if ($this->options['custom_button_text'] == 'custom-text') {
|
1288 |
$return .= $this->options['custom_text'];
|
@@ -1301,7 +1294,7 @@ if (!class_exists('PrintFriendly_WordPress')) {
|
|
1301 |
|
1302 |
function generic_button_css()
|
1303 |
{
|
1304 |
-
return "border:none;-webkit-box-shadow:none; box-shadow:none;";
|
1305 |
}
|
1306 |
|
1307 |
|
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.15.0
|
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.
|
16 |
3.14.7 - Remove unnecessary closing style tag. Add outline:none to printfriendly button link to remove outline on click.
|
427 |
margin: <?php echo $this->options['margin_top'] . 'px ' . $this->options['margin_right'] . 'px ' . $this->options['margin_bottom'] . 'px ' . $this->options['margin_left'] . 'px'; ?>;
|
428 |
}
|
429 |
.printfriendly a, .printfriendly a:link, .printfriendly a:visited, .printfriendly a:hover, .printfriendly a:active {
|
|
|
|
|
430 |
font-weight: 600;
|
|
|
431 |
cursor: pointer;
|
432 |
text-decoration: none;
|
433 |
border: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
-webkit-box-shadow: none;
|
435 |
-moz-box-shadow: none;
|
436 |
box-shadow: none;
|
437 |
+
outline:none;
|
438 |
+
font-size: <?php echo $this->options['text_size']; ?>px;
|
439 |
+
color: <?php echo $this->options['text_color']; ?>;
|
440 |
}
|
441 |
+
.printfriendly.pf-alignleft {float: left}.printfriendly.pf-alignright {float: right}.printfriendly.pf-aligncenter {display: flex;align-items: center;justify-content: center;}
|
442 |
}
|
443 |
|
444 |
@media print {
|
580 |
if ('none' != $this->options['content_position'])
|
581 |
$align = ' pf-align' . $this->options['content_position'];
|
582 |
$href = str_replace("&", "&", $href);
|
583 |
+
$button = apply_filters('printfriendly_button', '<div class="printfriendly' . $align . '"><a href="' . $href . '" rel="nofollow" ' . $onclick . ' title="Printer Friendly, PDF & Email">' . $this->button() . '</a></div>');
|
584 |
return $button;
|
585 |
}
|
586 |
|
1246 |
?>
|
1247 |
<label class="radio-custom-btn">
|
1248 |
<input type="radio" name="<?php echo $this->option_name ?>[custom_button_icon]" value="<?php echo $value ?>" <?php $this->checked('custom_button_icon', $value) ?>>
|
1249 |
+
<img src="<?php echo $value ?>" alt="Print Friendly, PDF & Email" style="display: inline; vertical-align: text-bottom; margin-right: 6px;" />
|
1250 |
</label>
|
1251 |
<?php
|
1252 |
}
|
1270 |
|
1271 |
if ($name == "custom-button") {
|
1272 |
if ($this->options['custom_button_icon'] == 'custom-image' && '' != trim($this->options['custom_image'])) {
|
1273 |
+
$return = '<img src="' . esc_url($this->options['custom_image']) . '" alt="Print Friendly, PDF & Email" style="display: inline; vertical-align:text-bottom; margin:0; padding:0; border:none; -webkit-box-shadow:none; -moz-box-shadow:none; box-shadow: none;" />';
|
1274 |
} else if ($this->options['custom_button_icon'] != 'no-image') {
|
1275 |
+
$return = '<img src="' . esc_url($this->options['custom_button_icon']) . '" alt="Print Friendly, PDF & Email" style="display:inline; vertical-align:text-bottom; margin: 0 6px 0 0; padding:0; border:none; -webkit-box-shadow:none; -moz-box-shadow:none; box-shadow:none;" />';
|
1276 |
}
|
1277 |
|
1278 |
+
|
1279 |
/* esc_html was removerd to support custom html, CSRF prevents from attack by using this field */
|
1280 |
if ($this->options['custom_button_text'] == 'custom-text') {
|
1281 |
$return .= $this->options['custom_text'];
|
1294 |
|
1295 |
function generic_button_css()
|
1296 |
{
|
1297 |
+
return "border:none;-webkit-box-shadow:none; -moz-box-shadow: none; box-shadow:none; padding:0; margin:0";
|
1298 |
}
|
1299 |
|
1300 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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.4
|
6 |
-
Stable tag: 3.
|
7 |
|
8 |
|
9 |
The #1 Print, PDF, Email button. Stylish, full featured, customizable. Add custom header, footer, and more.
|
@@ -143,6 +143,9 @@ You can [hide the Print, PDF, and Email button](https://support.printfriendly.co
|
|
143 |
|
144 |
|
145 |
== Changelog ==
|
|
|
|
|
|
|
146 |
= 3.14.9 =
|
147 |
* Bug fix for PrintFriendly button alignment.
|
148 |
|
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.4
|
6 |
+
Stable tag: 3.15.0
|
7 |
|
8 |
|
9 |
The #1 Print, PDF, Email button. Stylish, full featured, customizable. Add custom header, footer, and more.
|
143 |
|
144 |
|
145 |
== Changelog ==
|
146 |
+
= 3.15.0 =
|
147 |
+
* CSS Bug fix for center align of PrintFriendly Button
|
148 |
+
|
149 |
= 3.14.9 =
|
150 |
* Bug fix for PrintFriendly button alignment.
|
151 |
|