Version Description
Download this release
Release Info
Developer | printfriendly |
Plugin | Print, PDF, Email by PrintFriendly |
Version | 5.1.0 |
Comparing to | |
See all releases |
Code changes from version 5.1 to 5.1.0
- pf.php +4 -4
- readme.txt +4 -1
pf.php
CHANGED
@@ -5,7 +5,7 @@
|
|
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: 5.1
|
9 |
Author: Print, PDF, & Email by PrintFriendly
|
10 |
Author URI: http://www.printfriendly.com
|
11 |
Domain Path: /languages
|
@@ -24,7 +24,7 @@
|
|
24 |
*
|
25 |
* @package PrintFriendly_WordPress
|
26 |
* @author PrintFriendly <support@printfriendly.com>
|
27 |
-
* @copyright Copyright (C)
|
28 |
*/
|
29 |
|
30 |
if (! class_exists('PrintFriendly_WordPress')) {
|
@@ -41,7 +41,7 @@ if (! class_exists('PrintFriendly_WordPress')) {
|
|
41 |
*
|
42 |
* @var string
|
43 |
*/
|
44 |
-
var $plugin_version = '5.1';
|
45 |
/**
|
46 |
* The hook, used for text domain as well as hooks on pages and in get requests for admin.
|
47 |
*
|
@@ -1248,12 +1248,12 @@ if (! class_exists('PrintFriendly_WordPress')) {
|
|
1248 |
$img_path = 'https://cdn.printfriendly.com/';
|
1249 |
|
1250 |
$return = '';
|
|
|
1251 |
|
1252 |
if ($name === 'custom-button') {
|
1253 |
if ($this->options['custom_button_icon'] === 'custom-image' && '' !== trim($this->options['custom_image'])) {
|
1254 |
$width = $this->options['custom_image_width'];
|
1255 |
$height = $this->options['custom_image_height'];
|
1256 |
-
$imgStyle = '';
|
1257 |
if (! empty($width)) {
|
1258 |
$imgStyle .= sprintf('width: %dpx;', $width);
|
1259 |
}
|
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: 5.1.1
|
9 |
Author: Print, PDF, & Email by PrintFriendly
|
10 |
Author URI: http://www.printfriendly.com
|
11 |
Domain Path: /languages
|
24 |
*
|
25 |
* @package PrintFriendly_WordPress
|
26 |
* @author PrintFriendly <support@printfriendly.com>
|
27 |
+
* @copyright Copyright (C) 2022, PrintFriendly
|
28 |
*/
|
29 |
|
30 |
if (! class_exists('PrintFriendly_WordPress')) {
|
41 |
*
|
42 |
* @var string
|
43 |
*/
|
44 |
+
var $plugin_version = '5.1.1';
|
45 |
/**
|
46 |
* The hook, used for text domain as well as hooks on pages and in get requests for admin.
|
47 |
*
|
1248 |
$img_path = 'https://cdn.printfriendly.com/';
|
1249 |
|
1250 |
$return = '';
|
1251 |
+
$imgStyle = '';
|
1252 |
|
1253 |
if ($name === 'custom-button') {
|
1254 |
if ($this->options['custom_button_icon'] === 'custom-image' && '' !== trim($this->options['custom_image'])) {
|
1255 |
$width = $this->options['custom_image_width'];
|
1256 |
$height = $this->options['custom_image_height'];
|
|
|
1257 |
if (! empty($width)) {
|
1258 |
$imgStyle .= sprintf('width: %dpx;', $width);
|
1259 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: printfriendly, joostdevalk, jrf, rozroz
|
|
3 |
Tags: print, pdf, email, woocommerce print, woocommerce pdf, print plugin, print button, pdf plugin, pdf button
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.8
|
6 |
-
Stable tag: 5.1
|
7 |
|
8 |
|
9 |
The #1 Print, PDF, Email button. Stylish, full featured, customizable. Add custom header, footer, and more.
|
@@ -144,6 +144,9 @@ You can [hide the Print, PDF, and Email button](https://support.printfriendly.co
|
|
144 |
|
145 |
== Changelog ==
|
146 |
|
|
|
|
|
|
|
147 |
= 5.1 =
|
148 |
* In category pages, the default behaviour of button added by shortcode/template is to link to a printable version of the individual posts. Sometimes, it is desirable to print the category page itself and not the individual posts. Added new template function/shortcode to always print the current page to use in this scenario.
|
149 |
* Add support for newer google analytics versions and google tag manager
|
3 |
Tags: print, pdf, email, woocommerce print, woocommerce pdf, print plugin, print button, pdf plugin, pdf button
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.8
|
6 |
+
Stable tag: 5.1.1
|
7 |
|
8 |
|
9 |
The #1 Print, PDF, Email button. Stylish, full featured, customizable. Add custom header, footer, and more.
|
144 |
|
145 |
== Changelog ==
|
146 |
|
147 |
+
= 5.1.1 =
|
148 |
+
* Fix PHP Notice
|
149 |
+
|
150 |
= 5.1 =
|
151 |
* In category pages, the default behaviour of button added by shortcode/template is to link to a printable version of the individual posts. Sometimes, it is desirable to print the category page itself and not the individual posts. Added new template function/shortcode to always print the current page to use in this scenario.
|
152 |
* Add support for newer google analytics versions and google tag manager
|