Version Description
- Add printfriendly options to allow/not allow print, pdf, email from the Printfriendly and PDF dialog.
Download this release
Release Info
| Developer | printfriendly |
| Plugin | |
| Version | 3.1.8 |
| Comparing to | |
| See all releases | |
Code changes from version 3.1.7 to 3.1.8
- pf.php +42 -2
- readme.txt +5 -1
pf.php
CHANGED
|
@@ -4,11 +4,12 @@ Plugin Name: Print Friendly and PDF
|
|
| 4 |
Plugin URI: http://www.printfriendly.com
|
| 5 |
Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email.
|
| 6 |
Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared.
|
| 7 |
-
Version: 3.1.
|
| 8 |
Author: Print Friendly
|
| 9 |
Author URI: http://www.PrintFriendly.com
|
| 10 |
|
| 11 |
Changelog :
|
|
|
|
| 12 |
3.1.7 - Revert default print button show settings. Prevent easy override of print button text-decoration and border style properties.
|
| 13 |
3.1.6 - Adding PrintFriendly and PDF alignment style classes.
|
| 14 |
3.1.5 - Set button appearance in more flexible way. Remove styles that interfered with wordpress themes. Add shortcode for printfriendly button. Fix redirect to printfriendly.com link. Added custom css feature.
|
|
@@ -78,7 +79,7 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
| 78 |
* Database version, used to allow for easy upgrades to / additions in plugin options between plugin versions.
|
| 79 |
* @var int
|
| 80 |
*/
|
| 81 |
-
var $db_version =
|
| 82 |
|
| 83 |
/**
|
| 84 |
* Settings page, used within the plugin to reliably load the plugins admin JS and CSS files only on the admin page.
|
|
@@ -228,6 +229,9 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
| 228 |
var pfHeaderImgUrl = "<?php echo $image_url ?>";
|
| 229 |
var pfHeaderTagline = "<?php echo $tagline ?>";
|
| 230 |
var pfdisableClickToDel = "<?php echo $this->options['click_to_delete'] ?>";
|
|
|
|
|
|
|
|
|
|
| 231 |
var pfCustomCSS = "<?php echo $this->options['custom_css_url'] ?>";
|
| 232 |
|
| 233 |
// PrintFriendly
|
|
@@ -451,6 +455,9 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
| 451 |
'image_url' => '',
|
| 452 |
'tagline' => '',
|
| 453 |
'click_to_delete' => '0', // 0 - allow, 1 - do not allow
|
|
|
|
|
|
|
|
|
|
| 454 |
'website_protocol' => 'http',
|
| 455 |
'password_protected' => 'no',
|
| 456 |
'javascript' => 'yes',
|
|
@@ -555,6 +562,18 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
| 555 |
$this->options = array_merge($this->options, $additional_options);
|
| 556 |
}
|
| 557 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 558 |
$this->options['db_version'] = $this->db_version;
|
| 559 |
update_option( $this->option_name, $this->options );
|
| 560 |
}
|
|
@@ -871,6 +890,27 @@ if ( ! class_exists( 'PrintFriendly_WordPress' ) ) {
|
|
| 871 |
<option value="1" <?php selected( $this->options['click_to_delete'], '1' ); ?>><?php _e( "Not Allow", $this->hook ); ?></option>
|
| 872 |
</select>
|
| 873 |
</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 874 |
<label for="custom_css_url">
|
| 875 |
<?php _e( "Custom css url", $this->hook ); ?>
|
| 876 |
<input id="custom_css_url" type="text" class="regular-text" name="<?php echo $this->option_name; ?>[custom_css_url]" value="<?php $this->val( 'custom_css_url' ); ?>" />
|
| 4 |
Plugin URI: http://www.printfriendly.com
|
| 5 |
Description: PrintFriendly & PDF button for your website. Optimizes your pages and brand for print, pdf, and email.
|
| 6 |
Name and URL are included to ensure repeat visitors and new visitors when printed versions are shared.
|
| 7 |
+
Version: 3.1.8
|
| 8 |
Author: Print Friendly
|
| 9 |
Author URI: http://www.PrintFriendly.com
|
| 10 |
|
| 11 |
Changelog :
|
| 12 |
+
3.1.8 - Add printfriendly options to allow/not allow print, pdf, email from the Printfriendly and PDF dialog.
|
| 13 |
3.1.7 - Revert default print button show settings. Prevent easy override of print button text-decoration and border style properties.
|
| 14 |
3.1.6 - Adding PrintFriendly and PDF alignment style classes.
|
| 15 |
3.1.5 - Set button appearance in more flexible way. Remove styles that interfered with wordpress themes. Add shortcode for printfriendly button. Fix redirect to printfriendly.com link. Added custom css feature.
|
| 79 |
* Database version, used to allow for easy upgrades to / additions in plugin options between plugin versions.
|
| 80 |
* @var int
|
| 81 |
*/
|
| 82 |
+
var $db_version = 4;
|
| 83 |
|
| 84 |
/**
|
| 85 |
* Settings page, used within the plugin to reliably load the plugins admin JS and CSS files only on the admin page.
|
| 229 |
var pfHeaderImgUrl = "<?php echo $image_url ?>";
|
| 230 |
var pfHeaderTagline = "<?php echo $tagline ?>";
|
| 231 |
var pfdisableClickToDel = "<?php echo $this->options['click_to_delete'] ?>";
|
| 232 |
+
var pfDisableEmail = "<?php echo $this->options['email'] ?>";
|
| 233 |
+
var pfDisablePDF = "<?php echo $this->options['pdf'] ?>";
|
| 234 |
+
var pfDisablePrint = "<?php echo $this->options['print'] ?>";
|
| 235 |
var pfCustomCSS = "<?php echo $this->options['custom_css_url'] ?>";
|
| 236 |
|
| 237 |
// PrintFriendly
|
| 455 |
'image_url' => '',
|
| 456 |
'tagline' => '',
|
| 457 |
'click_to_delete' => '0', // 0 - allow, 1 - do not allow
|
| 458 |
+
'email' => '0', // 0 - allow, 1 - do not allow
|
| 459 |
+
'pdf' => '0', // 0 - allow, 1 - do not allow
|
| 460 |
+
'print' => '0', // 0 - allow, 1 - do not allow
|
| 461 |
'website_protocol' => 'http',
|
| 462 |
'password_protected' => 'no',
|
| 463 |
'javascript' => 'yes',
|
| 562 |
$this->options = array_merge($this->options, $additional_options);
|
| 563 |
}
|
| 564 |
|
| 565 |
+
// update options to version 4
|
| 566 |
+
if($this->options['db_version'] < 4) {
|
| 567 |
+
|
| 568 |
+
$additional_options = array(
|
| 569 |
+
'email' => '0',
|
| 570 |
+
'pdf' => '0',
|
| 571 |
+
'print' => '0',
|
| 572 |
+
);
|
| 573 |
+
|
| 574 |
+
$this->options = array_merge($this->options, $additional_options);
|
| 575 |
+
}
|
| 576 |
+
|
| 577 |
$this->options['db_version'] = $this->db_version;
|
| 578 |
update_option( $this->option_name, $this->options );
|
| 579 |
}
|
| 890 |
<option value="1" <?php selected( $this->options['click_to_delete'], '1' ); ?>><?php _e( "Not Allow", $this->hook ); ?></option>
|
| 891 |
</select>
|
| 892 |
</label>
|
| 893 |
+
<label for="email">
|
| 894 |
+
<?php _e( "Email", $this->hook ); ?>
|
| 895 |
+
<select name="<?php echo $this->option_name; ?>[email]" id="email">
|
| 896 |
+
<option value="0" <?php selected( $this->options['email'], '0' ); ?>><?php _e( "Allow", $this->hook ); ?></option>
|
| 897 |
+
<option value="1" <?php selected( $this->options['email'], '1' ); ?>><?php _e( "Not Allow", $this->hook ); ?></option>
|
| 898 |
+
</select>
|
| 899 |
+
</label>
|
| 900 |
+
<label for="pdf">
|
| 901 |
+
<?php _e( "PDF", $this->hook ); ?>
|
| 902 |
+
<select name="<?php echo $this->option_name; ?>[pdf]" id="pdf">
|
| 903 |
+
<option value="0" <?php selected( $this->options['pdf'], '0' ); ?>><?php _e( "Allow", $this->hook ); ?></option>
|
| 904 |
+
<option value="1" <?php selected( $this->options['pdf'], '1' ); ?>><?php _e( "Not Allow", $this->hook ); ?></option>
|
| 905 |
+
</select>
|
| 906 |
+
</label>
|
| 907 |
+
<label for="print">
|
| 908 |
+
<?php _e( "Print", $this->hook ); ?>
|
| 909 |
+
<select name="<?php echo $this->option_name; ?>[print]" id="print">
|
| 910 |
+
<option value="0" <?php selected( $this->options['print'], '0' ); ?>><?php _e( "Allow", $this->hook ); ?></option>
|
| 911 |
+
<option value="1" <?php selected( $this->options['print'], '1' ); ?>><?php _e( "Not Allow", $this->hook ); ?></option>
|
| 912 |
+
</select>
|
| 913 |
+
</label>
|
| 914 |
<label for="custom_css_url">
|
| 915 |
<?php _e( "Custom css url", $this->hook ); ?>
|
| 916 |
<input id="custom_css_url" type="text" class="regular-text" name="<?php echo $this->option_name; ?>[custom_css_url]" value="<?php $this->val( 'custom_css_url' ); ?>" />
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: printfriendly,joostdevalk
|
|
| 3 |
Tags: print, pdf, printer, printing, printable, widget, plugin
|
| 4 |
Requires at least: 2.8
|
| 5 |
Tested up to: 3.5
|
| 6 |
-
Stable tag: 3.1.
|
| 7 |
|
| 8 |
The #1 Print and PDF button for your WordPress site. Printer Friendly pages without coding, css, or print.css. Fast, easy, and professional.
|
| 9 |
|
|
@@ -98,6 +98,10 @@ If you have any other issues with the plugin or the PrintFriendly widget, please
|
|
| 98 |
|
| 99 |
== Changelog ==
|
| 100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
= 3.1.7 =
|
| 102 |
|
| 103 |
* Revert default print button show settings. Prevent easy override of print button text-decoration and border style properties.
|
| 3 |
Tags: print, pdf, printer, printing, printable, widget, plugin
|
| 4 |
Requires at least: 2.8
|
| 5 |
Tested up to: 3.5
|
| 6 |
+
Stable tag: 3.1.8
|
| 7 |
|
| 8 |
The #1 Print and PDF button for your WordPress site. Printer Friendly pages without coding, css, or print.css. Fast, easy, and professional.
|
| 9 |
|
| 98 |
|
| 99 |
== Changelog ==
|
| 100 |
|
| 101 |
+
= 3.1.8 =
|
| 102 |
+
|
| 103 |
+
* Add printfriendly options to allow/not allow print, pdf, email from the Printfriendly and PDF dialog.
|
| 104 |
+
|
| 105 |
= 3.1.7 =
|
| 106 |
|
| 107 |
* Revert default print button show settings. Prevent easy override of print button text-decoration and border style properties.
|
