Version Description
Download this release
Release Info
Developer | printfriendly |
Plugin | Print, PDF, Email by PrintFriendly |
Version | 3.14.6 |
Comparing to | |
See all releases |
Code changes from version 3.14.5 to 3.14.6
- languages/printfriendly.pot +9 -0
- pf.php +8 -42
- printfriendly.css +44 -0
- readme.txt +4 -2
languages/printfriendly.pot
CHANGED
@@ -120,6 +120,10 @@ msgstr ""
|
|
120 |
msgid "Left Align"
|
121 |
msgstr ""
|
122 |
|
|
|
|
|
|
|
|
|
123 |
#: ../pf.php:1207
|
124 |
msgid "Right Align"
|
125 |
msgstr ""
|
@@ -353,3 +357,8 @@ msgstr ""
|
|
353 |
#: ../pf.php:1385
|
354 |
msgid "Need help or have suggestions?"
|
355 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
120 |
msgid "Left Align"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: ../pf.php:1718
|
124 |
+
msgid "Do not use CSS for button styles"
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
#: ../pf.php:1207
|
128 |
msgid "Right Align"
|
129 |
msgstr ""
|
357 |
#: ../pf.php:1385
|
358 |
msgid "Need help or have suggestions?"
|
359 |
msgstr ""
|
360 |
+
|
361 |
+
#: ../pf.php:1385
|
362 |
+
msgid "PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email."
|
363 |
+
"Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared."
|
364 |
+
msgstr ""
|
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.14.
|
9 |
Author: Print, PDF, & Email by PrintFriendly
|
10 |
Author URI: http://www.PrintFriendly.com
|
11 |
|
12 |
Changelog :
|
|
|
13 |
3.14.5 - New Feature: Password protected image option. Select this option if your images are password protected so they can be included in PDFs.
|
14 |
3.14.4 - Make save options work without Pro field(email, domain) validation check.
|
15 |
3.14.3 - Plugin copy and style changes. No functionality changes.
|
@@ -283,7 +284,7 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
283 |
|
284 |
function init_error_reporting() {
|
285 |
try {
|
286 |
-
require_once
|
287 |
|
288 |
PrintFriendly_Raven_Autoloader::register();
|
289 |
|
@@ -396,44 +397,13 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
396 |
<style type="text/css" media="screen">
|
397 |
div.printfriendly {
|
398 |
margin: <?php echo $this->options['margin_top'].'px '.$this->options['margin_right'].'px '.$this->options['margin_bottom'].'px '.$this->options['margin_left'].'px'; ?>;
|
399 |
-
position: relative;
|
400 |
-
z-index: 1000;
|
401 |
}
|
402 |
div.printfriendly a, div.printfriendly a:link, div.printfriendly a:visited {
|
403 |
font-size: <?php echo $this->options['text_size']; ?>px;
|
404 |
color: <?php echo $this->options['text_color']; ?>;
|
405 |
-
vertical-align: bottom;
|
406 |
-
}
|
407 |
-
.printfriendly a {
|
408 |
-
box-shadow:none;
|
409 |
-
}
|
410 |
-
.printfriendly a:hover {
|
411 |
-
cursor: pointer;
|
412 |
-
}
|
413 |
-
.printfriendly a img {
|
414 |
-
border: none;
|
415 |
-
padding:0;
|
416 |
-
margin-right: 6px;
|
417 |
-
box-shadow: none;
|
418 |
-
-webkit-box-shadow: none;
|
419 |
-
-moz-box-shadow: none;
|
420 |
-
}
|
421 |
-
.printfriendly a span{
|
422 |
-
vertical-align: bottom;
|
423 |
-
}
|
424 |
-
.pf-alignleft {
|
425 |
-
float: left;
|
426 |
-
}
|
427 |
-
.pf-alignright {
|
428 |
-
float: right;
|
429 |
-
}
|
430 |
-
div.pf-aligncenter {
|
431 |
-
display: block;
|
432 |
-
margin-left: auto;
|
433 |
-
margin-right: auto;
|
434 |
-
text-align: center;
|
435 |
}
|
436 |
</style>
|
|
|
437 |
<style type="text/css" media="print">
|
438 |
.printfriendly {
|
439 |
display: none;
|
@@ -477,12 +447,8 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
477 |
var pfDisablePrint = '<?php echo esc_js($this->options['print']); ?>';
|
478 |
var pfCustomCSS = '<?php echo esc_js(esc_url($this->options['custom_css_url'])); ?>';
|
479 |
var pfPlatform = 'Wordpress';
|
480 |
-
(function() {
|
481 |
-
var e = document.createElement('script'); e.type="text/javascript";
|
482 |
-
e.src = 'https://cdn.printfriendly.com/printfriendly.js';
|
483 |
-
document.getElementsByTagName('head')[0].appendChild(e);
|
484 |
-
})();
|
485 |
</script>
|
|
|
486 |
<?php
|
487 |
}
|
488 |
}
|
@@ -1440,8 +1406,8 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
1440 |
function on_load_printfriendly() {
|
1441 |
global $wp_version;
|
1442 |
if($this->wp_version_gt30()) {
|
1443 |
-
require_once('includes/meta-boxes.php');
|
1444 |
-
//require_once('includes/nav-menu.php');
|
1445 |
wp_enqueue_script('post');
|
1446 |
|
1447 |
add_meta_box('categorydiv', __('Only display when post is in:', $this->hook), 'post_categories_meta_box', 'settings_page_'. $this->hook, 'normal', 'core');
|
@@ -1712,7 +1678,7 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
1712 |
<!--Section 3 Button Positioning-->
|
1713 |
<div id="button-positioning">
|
1714 |
<h3><?php _e( "Button Positioning", $this->hook ); ?>
|
1715 |
-
<span id="css"><input type="checkbox" name="<?php echo $this->option_name; ?>[enable_css]" value="<?php $this->val('enable_css');?>" <?php $this->checked('enable_css', 'off'); ?> /><?php _e('Do not use CSS for button styles'); ?></span>
|
1716 |
</h3>
|
1717 |
<div id="button-positioning-options">
|
1718 |
<div id="alignment">
|
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.6
|
9 |
Author: Print, PDF, & Email by PrintFriendly
|
10 |
Author URI: http://www.PrintFriendly.com
|
11 |
|
12 |
Changelog :
|
13 |
+
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)
|
14 |
3.14.5 - New Feature: Password protected image option. Select this option if your images are password protected so they can be included in PDFs.
|
15 |
3.14.4 - Make save options work without Pro field(email, domain) validation check.
|
16 |
3.14.3 - Plugin copy and style changes. No functionality changes.
|
284 |
|
285 |
function init_error_reporting() {
|
286 |
try {
|
287 |
+
require_once(dirname(__FILE__).'/vendor/PrintFriendly/Raven/Autoloader.php');
|
288 |
|
289 |
PrintFriendly_Raven_Autoloader::register();
|
290 |
|
397 |
<style type="text/css" media="screen">
|
398 |
div.printfriendly {
|
399 |
margin: <?php echo $this->options['margin_top'].'px '.$this->options['margin_right'].'px '.$this->options['margin_bottom'].'px '.$this->options['margin_left'].'px'; ?>;
|
|
|
|
|
400 |
}
|
401 |
div.printfriendly a, div.printfriendly a:link, div.printfriendly a:visited {
|
402 |
font-size: <?php echo $this->options['text_size']; ?>px;
|
403 |
color: <?php echo $this->options['text_color']; ?>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
404 |
}
|
405 |
</style>
|
406 |
+
<link rel="stylesheet" href="<?php echo plugin_dir_url(__FILE__); ?>printfriendly.css" media="screen"></style>
|
407 |
<style type="text/css" media="print">
|
408 |
.printfriendly {
|
409 |
display: none;
|
447 |
var pfDisablePrint = '<?php echo esc_js($this->options['print']); ?>';
|
448 |
var pfCustomCSS = '<?php echo esc_js(esc_url($this->options['custom_css_url'])); ?>';
|
449 |
var pfPlatform = 'Wordpress';
|
|
|
|
|
|
|
|
|
|
|
450 |
</script>
|
451 |
+
<script async src='https://cdn.printfriendly.com/printfriendly.js'></script>
|
452 |
<?php
|
453 |
}
|
454 |
}
|
1406 |
function on_load_printfriendly() {
|
1407 |
global $wp_version;
|
1408 |
if($this->wp_version_gt30()) {
|
1409 |
+
//require_once(dirname(__FILE__).'/includes/meta-boxes.php');
|
1410 |
+
//require_once(dirname(__FILE__).''includes/nav-menu.php');
|
1411 |
wp_enqueue_script('post');
|
1412 |
|
1413 |
add_meta_box('categorydiv', __('Only display when post is in:', $this->hook), 'post_categories_meta_box', 'settings_page_'. $this->hook, 'normal', 'core');
|
1678 |
<!--Section 3 Button Positioning-->
|
1679 |
<div id="button-positioning">
|
1680 |
<h3><?php _e( "Button Positioning", $this->hook ); ?>
|
1681 |
+
<span id="css"><input type="checkbox" name="<?php echo $this->option_name; ?>[enable_css]" value="<?php $this->val('enable_css');?>" <?php $this->checked('enable_css', 'off'); ?> /><?php _e('Do not use CSS for button styles', $this->hook); ?></span>
|
1682 |
</h3>
|
1683 |
<div id="button-positioning-options">
|
1684 |
<div id="alignment">
|
printfriendly.css
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
@@ -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.14.
|
7 |
|
8 |
|
9 |
The #1 Print, PDF, Email button. Stylish, full featured, customizable. Add custom header, footer, and more.
|
@@ -144,6 +144,8 @@ You can [hide the Print, PDF, and Email button](https://support.printfriendly.co
|
|
144 |
|
145 |
== Changelog ==
|
146 |
|
|
|
|
|
147 |
= 3.14.5 =
|
148 |
* New Feature: Password protected image option. Select this option if your images are password protected so they can be included in PDFs.
|
149 |
|
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.2.1
|
6 |
+
Stable tag: 3.14.6
|
7 |
|
8 |
|
9 |
The #1 Print, PDF, Email button. Stylish, full featured, customizable. Add custom header, footer, and more.
|
144 |
|
145 |
== Changelog ==
|
146 |
|
147 |
+
= 3.15.6 =
|
148 |
+
* 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)
|
149 |
= 3.14.5 =
|
150 |
* New Feature: Password protected image option. Select this option if your images are password protected so they can be included in PDFs.
|
151 |
|