Version Description
- Bug fix for PrintFriendly button alignment.
Download this release
Release Info
Developer | printfriendly |
Plugin | Print, PDF, Email by PrintFriendly |
Version | 3.14.9 |
Comparing to | |
See all releases |
Code changes from version 3.14.8 to 3.14.9
- pf.php +25 -25
- printfriendly.css +0 -44
- readme.txt +3 -1
pf.php
CHANGED
@@ -5,12 +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.14.
|
9 |
Author: Print, PDF, & Email by PrintFriendly
|
10 |
Author URI: http://www.PrintFriendly.com
|
11 |
|
12 |
Changelog :
|
13 |
-
|
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.
|
16 |
3.14.6 - Improvements to CSS and how we load JS. Moved button CSS from page head to a seperate stylesheet. Load JS using async attribute (now that all major browsers support async attribute, we need not insert JS dynamically)
|
@@ -414,43 +414,43 @@ if (!class_exists('PrintFriendly_WordPress')) {
|
|
414 |
try {
|
415 |
if ($this->is_enabled()) {
|
416 |
?>
|
417 |
-
<style type="text/css">
|
418 |
-
@media screen {
|
419 |
-
|
420 |
-
div.printfriendly a,
|
421 |
-
div.printfriendly a:link,
|
422 |
-
div.printfriendly a:hover,
|
423 |
-
div.printfriendly a:visited,
|
424 |
-
div.printfriendly a:focus {
|
425 |
-
text-decoration: none;
|
426 |
-
border: none;
|
427 |
-
-webkit-box-shadow: none !important;
|
428 |
-
box-shadow: none !important;
|
429 |
-
}
|
430 |
-
}
|
431 |
-
</style>
|
432 |
<?php
|
433 |
if (isset($this->options['enable_css']) && $this->options['enable_css'] != 'on')
|
434 |
return;
|
435 |
?>
|
436 |
<style type="text/css">
|
437 |
@media screen {
|
438 |
-
|
|
|
|
|
439 |
margin: <?php echo $this->options['margin_top'] . 'px ' . $this->options['margin_right'] . 'px ' . $this->options['margin_bottom'] . 'px ' . $this->options['margin_left'] . 'px'; ?>;
|
440 |
}
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
445 |
font-size: <?php echo $this->options['text_size']; ?>px;
|
446 |
color: <?php echo $this->options['text_color']; ?>;
|
447 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
448 |
}
|
449 |
|
450 |
@media print {
|
451 |
-
.printfriendly {
|
452 |
-
display: none;
|
453 |
-
}
|
454 |
}
|
455 |
</style>
|
456 |
<?php if ($this->options['custom_css_url']) { ?>
|
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.14.9
|
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.
|
16 |
3.14.6 - Improvements to CSS and how we load JS. Moved button CSS from page head to a seperate stylesheet. Load JS using async attribute (now that all major browsers support async attribute, we need not insert JS dynamically)
|
414 |
try {
|
415 |
if ($this->is_enabled()) {
|
416 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
417 |
<?php
|
418 |
if (isset($this->options['enable_css']) && $this->options['enable_css'] != 'on')
|
419 |
return;
|
420 |
?>
|
421 |
<style type="text/css">
|
422 |
@media screen {
|
423 |
+
.printfriendly {
|
424 |
+
position: relative;
|
425 |
+
z-index: 1000;
|
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 {text-align: center}
|
450 |
}
|
451 |
|
452 |
@media print {
|
453 |
+
.printfriendly {display: none}
|
|
|
|
|
454 |
}
|
455 |
</style>
|
456 |
<?php if ($this->options['custom_css_url']) { ?>
|
printfriendly.css
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
div.printfriendly {
|
2 |
-
position: relative;
|
3 |
-
z-index: 1000;
|
4 |
-
}
|
5 |
-
|
6 |
-
div.printfriendly a, div.printfriendly a:link, div.printfriendly a:visited {
|
7 |
-
vertical-align: bottom;
|
8 |
-
}
|
9 |
-
|
10 |
-
.printfriendly a {
|
11 |
-
box-shadow:none;
|
12 |
-
}
|
13 |
-
|
14 |
-
.printfriendly a:hover {
|
15 |
-
cursor: pointer;
|
16 |
-
}
|
17 |
-
|
18 |
-
.printfriendly a img {
|
19 |
-
border: none;
|
20 |
-
padding:0;
|
21 |
-
margin-right: 6px;
|
22 |
-
box-shadow: none;
|
23 |
-
-webkit-box-shadow: none;
|
24 |
-
-moz-box-shadow: none;
|
25 |
-
}
|
26 |
-
|
27 |
-
.printfriendly a span{
|
28 |
-
vertical-align: bottom;
|
29 |
-
}
|
30 |
-
|
31 |
-
.pf-alignleft {
|
32 |
-
float: left;
|
33 |
-
}
|
34 |
-
|
35 |
-
.pf-alignright {
|
36 |
-
float: right;
|
37 |
-
}
|
38 |
-
|
39 |
-
div.pf-aligncenter {
|
40 |
-
display: block;
|
41 |
-
margin-left: auto;
|
42 |
-
margin-right: auto;
|
43 |
-
text-align: center;
|
44 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.14.
|
7 |
|
8 |
|
9 |
The #1 Print, PDF, Email button. Stylish, full featured, customizable. Add custom header, footer, and more.
|
@@ -143,6 +143,8 @@ You can [hide the Print, PDF, and Email button](https://support.printfriendly.co
|
|
143 |
|
144 |
|
145 |
== Changelog ==
|
|
|
|
|
146 |
|
147 |
= 3.14.8 =
|
148 |
* 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.
|
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.14.9
|
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.14.9 =
|
147 |
+
* Bug fix for PrintFriendly button alignment.
|
148 |
|
149 |
= 3.14.8 =
|
150 |
* 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.
|