Changeset 2747998
- Timestamp:
- 06/25/2022 09:10:07 PM (3 years ago)
- Location:
- wp-print-friendly
- Files:
-
- 8 edited
- 1 copied
-
tags/0.6.3 (copied) (copied from wp-print-friendly/trunk)
-
tags/0.6.3/default-template.php (modified) (2 diffs)
-
tags/0.6.3/languages/wp-print-friendly.pot (modified) (8 diffs)
-
tags/0.6.3/readme.txt (modified) (3 diffs)
-
tags/0.6.3/wp-print-friendly.php (modified) (8 diffs)
-
trunk/default-template.php (modified) (2 diffs)
-
trunk/languages/wp-print-friendly.pot (modified) (8 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wp-print-friendly.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-print-friendly/tags/0.6.3/default-template.php
r2372020 r2747998 31 31 ?> 32 32 33 <p class="wpf-source"><strong>Source URL:</strong> <?php the_permalink(); ?></p> 33 <p class="wpf-source"> 34 <?php 35 printf( 36 /* translators: 1. Post permalink. */ 37 __( 38 '<strong>Source URL:</strong> %1$s', 39 'wp-print-friendly' 40 ), 41 get_the_permalink() 42 ); 43 ?> 44 </p> 34 45 35 46 <hr class="wpf-divider" /> … … 40 51 ?> 41 52 42 <p class="copyright">Copyright ©<?php echo date( 'Y' ); ?> <strong><?php bloginfo( 'name' ); ?></strong> unless otherwise noted.</p> 53 <p class="copyright"> 54 <?php 55 printf( 56 /* translators: 1. Copyright year, 2. Site name. */ 57 __( 58 'Copyright ©%1$d %2$s unless otherwise noted.', 59 'wp-print-friendly' 60 ), 61 date( 'Y' ), 62 get_bloginfo( 'name' ) 63 ); 64 ?> 65 </p> 43 66 44 67 </body> -
wp-print-friendly/tags/0.6.3/languages/wp-print-friendly.pot
r2740942 r2747998 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP Print Friendly 0.6. 2\n"5 "Project-Id-Version: WP Print Friendly 0.6.3\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/wp-print-friendly\n" 8 "POT-Creation-Date: 2022-06- 11 18:14:57+00:00\n"8 "POT-Creation-Date: 2022-06-25 21:01:31+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 26 26 "X-Generator: grunt-wp-i18n 1.0.3\n" 27 27 28 #: wp-print-friendly.php:121 28 #: default-template.php:37 29 #. translators: 1. Post permalink. 30 msgid "<strong>Source URL:</strong> %1$s" 31 msgstr "" 32 33 #: default-template.php:57 34 #. translators: 1. Copyright year, 2. Site name. 35 msgid "Copyright ©%1$d %2$s unless otherwise noted." 36 msgstr "" 37 38 #: wp-print-friendly.php:128 29 39 msgid "Print this entry" 30 40 msgstr "" 31 41 32 #: wp-print-friendly.php:12 242 #: wp-print-friendly.php:129 33 43 msgid "Print this page" 34 44 msgstr "" 35 45 36 #: wp-print-friendly.php:1 2646 #: wp-print-friendly.php:133 37 47 msgid "Endnotes:" 38 48 msgstr "" 39 49 40 #: wp-print-friendly.php:67 150 #: wp-print-friendly.php:678 41 51 msgid "Automatically add print links based on settings below?" 42 52 msgstr "" 43 53 44 #: wp-print-friendly.php:6 73 wp-print-friendly.php:73754 #: wp-print-friendly.php:680 wp-print-friendly.php:744 45 55 msgid "Yes" 46 56 msgstr "" 47 57 48 #: wp-print-friendly.php:6 7458 #: wp-print-friendly.php:681 49 59 msgid "No" 50 60 msgstr "" 51 61 52 #: wp-print-friendly.php:6 7862 #: wp-print-friendly.php:685 53 63 msgid "Automatically place link:" 54 64 msgstr "" 55 65 56 #: wp-print-friendly.php:68 066 #: wp-print-friendly.php:687 57 67 msgid "Above content" 58 68 msgstr "" 59 69 60 #: wp-print-friendly.php:68 170 #: wp-print-friendly.php:688 61 71 msgid "Below content" 62 72 msgstr "" 63 73 64 #: wp-print-friendly.php:68 274 #: wp-print-friendly.php:689 65 75 msgid "Above and below content" 66 76 msgstr "" 67 77 68 #: wp-print-friendly.php:6 8678 #: wp-print-friendly.php:693 69 79 msgid "Display automatically on:" 70 80 msgstr "" 71 81 72 #: wp-print-friendly.php: 69982 #: wp-print-friendly.php:706 73 83 msgid "Text for link to print entire item:" 74 84 msgstr "" 75 85 76 #: wp-print-friendly.php:7 0586 #: wp-print-friendly.php:712 77 87 msgid "Text for link to print current page:" 78 88 msgstr "" 79 89 80 #: wp-print-friendly.php:7 0990 #: wp-print-friendly.php:716 81 91 msgid "" 82 92 "If viewing a multipage post (set by using the <!--nextpage--> tag), " … … 84 94 msgstr "" 85 95 86 #: wp-print-friendly.php:71 096 #: wp-print-friendly.php:717 87 97 msgid "<strong>To hide this link,</strong> clear the field's contents." 88 98 msgstr "" 89 99 90 #: wp-print-friendly.php:7 14100 #: wp-print-friendly.php:721 91 101 msgid "CSS for print links:" 92 102 msgstr "" 93 103 94 #: wp-print-friendly.php:7 18104 #: wp-print-friendly.php:725 95 105 msgid "" 96 106 "For page-specific print links, a second class, created by appending " … … 98 108 msgstr "" 99 109 100 #: wp-print-friendly.php:7 19110 #: wp-print-friendly.php:726 101 111 msgid "" 102 112 "Be aware that Internet Explorer will only interpret the first two CSS " … … 105 115 msgstr "" 106 116 107 #: wp-print-friendly.php:7 23117 #: wp-print-friendly.php:730 108 118 msgid "Open print-friendly views:" 109 119 msgstr "" 110 120 111 #: wp-print-friendly.php:7 25121 #: wp-print-friendly.php:732 112 122 msgid "In the same window" 113 123 msgstr "" 114 124 115 #: wp-print-friendly.php:7 26125 #: wp-print-friendly.php:733 116 126 msgid "In a new window" 117 127 msgstr "" 118 128 119 #: wp-print-friendly.php:7 35129 #: wp-print-friendly.php:742 120 130 msgid "Include endnotes for links found in content?" 121 131 msgstr "" 122 132 123 #: wp-print-friendly.php:7 39133 #: wp-print-friendly.php:746 124 134 msgid "" 125 135 "If enabled, content is automatically scanned for links and an endnote is " … … 128 138 msgstr "" 129 139 130 #: wp-print-friendly.php:7 43140 #: wp-print-friendly.php:750 131 141 msgid "Endnotes heading:" 132 142 msgstr "" 133 143 134 #: wp-print-friendly.php:7 47144 #: wp-print-friendly.php:754 135 145 msgid "" 136 146 "If endnotes are enabled, the text entered above will be output above the " … … 142 152 msgstr "" 143 153 144 #: wp-print-friendly.php:8 83154 #: wp-print-friendly.php:890 145 155 msgid "" 146 156 "You must refresh your site's permalinks before WP Print Friendly is fully " … … 149 159 msgstr "" 150 160 151 #: wp-print-friendly.php:8 85161 #: wp-print-friendly.php:892 152 162 msgid "When finished, click <a href=\"%s\">here</a> to hide this message." 153 163 msgstr "" -
wp-print-friendly/tags/0.6.3/readme.txt
r2740942 r2747998 5 5 Requires at least: 3.1 6 6 Tested up to: 6.0 7 Stable tag: 0.6. 27 Stable tag: 0.6.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 59 59 60 60 == Changelog == 61 62 = 0.6.3 = 63 * Fix translation support. 61 64 62 65 = 0.6.2 = … … 155 158 == Upgrade Notice == 156 159 160 = 0.6.3 = 161 Fixes translation support. 162 157 163 = 0.6.2 = 158 164 Resolves a warning arising in PHP 7.3. -
wp-print-friendly/tags/0.6.3/wp-print-friendly.php
r2372020 r2747998 1 1 <?php 2 2 // phpcs:ignoreFile -- legacy code in need of refactoring. 3 /* 4 Plugin Name: WP Print Friendly 5 Plugin URI: http://oomphinc.com/plugins-modules/wp-print-friendly/ 6 Description: Extends WordPress' template system to support printer-friendly templates. Works with permalink structures to support nice URLs. 7 Author: Erick Hitter, Steven K Word, and Oomph, Inc. 8 Version: 0.6.2 9 Author URI: http://oomphinc.com/ 10 Text Domain: wp_print_friendly 11 12 This program is free software; you can redistribute it and/or modify 13 it under the terms of the GNU General Public License as published by 14 the Free Software Foundation; either version 2 of the License, or 15 (at your option) any later version. 16 17 This program is distributed in the hope that it will be useful, 18 but WITHOUT ANY WARRANTY; without even the implied warranty of 19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 GNU General Public License for more details. 21 22 You should have received a copy of the GNU General Public License 23 along with this program; if not, write to the Free Software 24 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 */ 3 /** 4 * Plugin Name: WP Print Friendly 5 * Plugin URI: http://oomphinc.com/plugins-modules/wp-print-friendly/ 6 * Description: Extends WordPress' template system to support printer-friendly templates. Works with permalink structures to support nice URLs. 7 * Author: Erick Hitter, Steven K Word, and Oomph, Inc. 8 * Version: 0.6.3 9 * Author URI: http://oomphinc.com/ 10 * Text Domain: wp-print-friendly 11 * Domain Path: /languages/ 12 * 13 * This program is free software; you can redistribute it and/or modify 14 * it under the terms of the GNU General Public License as published by 15 * the Free Software Foundation; either version 2 of the License, or 16 * (at your option) any later version. 17 * 18 * This program is distributed in the hope that it will be useful, 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * GNU General Public License for more details. 22 * 23 * You should have received a copy of the GNU General Public License 24 * along with this program; if not, write to the Free Software 25 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 26 */ 26 27 27 28 class wp_print_friendly { … … 114 115 */ 115 116 public function action_plugins_loaded() { 117 load_plugin_textdomain( 118 'wp-print-friendly', 119 false, 120 dirname( plugin_basename( __FILE__ ) ) . '/languages/' 121 ); 122 116 123 // Populate default settings, with translation support 117 124 $this->settings_defaults = array( … … 119 126 'placement' => 'below', 120 127 'post_types' => array( 'post', 'page' ), 121 'print_text' => __( 'Print this entry', 'wp _print_friendly' ),122 'print_text_page' => __( 'Print this page', 'wp _print_friendly' ),128 'print_text' => __( 'Print this entry', 'wp-print-friendly' ), 129 'print_text_page' => __( 'Print this page', 'wp-print-friendly' ), 123 130 'css_class' => 'print_link', 124 131 'link_target' => 'same', 125 132 'endnotes' => true, 126 'endnotes_label' => __( 'Endnotes:', 'wp _print_friendly' ),133 'endnotes_label' => __( 'Endnotes:', 'wp-print-friendly' ), 127 134 ); 128 135 … … 669 676 <table class="form-table"> 670 677 <tr> 671 <th scope="row"><?php _e( 'Automatically add print links based on settings below?', 'wp _print_friendly' ); ?></th>678 <th scope="row"><?php _e( 'Automatically add print links based on settings below?', 'wp-print-friendly' ); ?></th> 672 679 <td> 673 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[auto]" id="auto-true" value="1"<?php checked( $options[ 'auto' ], true, true ); ?> /> <label for="auto-true"><?php _e( 'Yes', 'wp _print_friendly' ); ?></label><br />674 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[auto]" id="auto-false" value="0"<?php checked( $options[ 'auto' ], false, true ); ?> /> <label for="auto-false"><?php _e( 'No', 'wp _print_friendly' ); ?></label>680 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[auto]" id="auto-true" value="1"<?php checked( $options[ 'auto' ], true, true ); ?> /> <label for="auto-true"><?php _e( 'Yes', 'wp-print-friendly' ); ?></label><br /> 681 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[auto]" id="auto-false" value="0"<?php checked( $options[ 'auto' ], false, true ); ?> /> <label for="auto-false"><?php _e( 'No', 'wp-print-friendly' ); ?></label> 675 682 </td> 676 683 </tr> 677 684 <tr> 678 <th scope="row"><?php _e( 'Automatically place link:', 'wp _print_friendly' ); ?></th>685 <th scope="row"><?php _e( 'Automatically place link:', 'wp-print-friendly' ); ?></th> 679 686 <td> 680 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[placement]" id="placement-above" value="above"<?php checked( $options[ 'placement' ], 'above', true ); ?> /> <label for="placement-above"><?php _e( 'Above content', 'wp _print_friendly' ); ?></label><br />681 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[placement]" id="placement-below" value="below"<?php checked( $options[ 'placement' ], 'below', true ); ?> /> <label for="placement-below"><?php _e( 'Below content', 'wp _print_friendly' ); ?></label><br />682 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[placement]" id="placement-both" value="both"<?php checked( $options[ 'placement' ], 'both', true ); ?> /> <label for="placement-both"><?php _e( 'Above and below content', 'wp _print_friendly' ); ?></label>687 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[placement]" id="placement-above" value="above"<?php checked( $options[ 'placement' ], 'above', true ); ?> /> <label for="placement-above"><?php _e( 'Above content', 'wp-print-friendly' ); ?></label><br /> 688 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[placement]" id="placement-below" value="below"<?php checked( $options[ 'placement' ], 'below', true ); ?> /> <label for="placement-below"><?php _e( 'Below content', 'wp-print-friendly' ); ?></label><br /> 689 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[placement]" id="placement-both" value="both"<?php checked( $options[ 'placement' ], 'both', true ); ?> /> <label for="placement-both"><?php _e( 'Above and below content', 'wp-print-friendly' ); ?></label> 683 690 </td> 684 691 </tr> 685 692 <tr> 686 <th scope="row"><?php _e( 'Display automatically on:', 'wp _print_friendly' ); ?></th>693 <th scope="row"><?php _e( 'Display automatically on:', 'wp-print-friendly' ); ?></th> 687 694 <td> 688 695 <?php foreach ( $post_types as $post_type ): ?> … … 697 704 <table class="form-table"> 698 705 <tr> 699 <th scope="row"><?php _e( 'Text for link to print entire item:', 'wp _print_friendly' ); ?></th>706 <th scope="row"><?php _e( 'Text for link to print entire item:', 'wp-print-friendly' ); ?></th> 700 707 <td> 701 708 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[print_text]" id="print_text" value="<?php echo esc_attr( $options[ 'print_text' ] ); ?>" style="width: 40%;" /> … … 703 710 </tr> 704 711 <tr> 705 <th scope="row"><?php _e( 'Text for link to print current page:', 'wp _print_friendly' ); ?></th>712 <th scope="row"><?php _e( 'Text for link to print current page:', 'wp-print-friendly' ); ?></th> 706 713 <td> 707 714 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[print_text_page]" id="print_text_page" value="<?php echo esc_attr( $options[ 'print_text_page' ] ); ?>" style="width: 40%;" /> 708 715 709 <p class="description"><?php _e( 'If viewing a multipage post (set by using the <!--nextpage--> tag), the text above is used for a link to print just the current page.', 'wp _print_friendly' ); ?></p>710 <p class="description"><?php _e( '<strong>To hide this link,</strong> clear the field\'s contents.', 'wp _print_friendly' ); ?></p>716 <p class="description"><?php _e( 'If viewing a multipage post (set by using the <!--nextpage--> tag), the text above is used for a link to print just the current page.', 'wp-print-friendly' ); ?></p> 717 <p class="description"><?php _e( '<strong>To hide this link,</strong> clear the field\'s contents.', 'wp-print-friendly' ); ?></p> 711 718 </td> 712 719 </tr> 713 720 <tr> 714 <th scope="row"><?php _e( 'CSS for print links:', 'wp _print_friendly' ); ?></th>721 <th scope="row"><?php _e( 'CSS for print links:', 'wp-print-friendly' ); ?></th> 715 722 <td> 716 723 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[css_class]" id="css_class" value="<?php echo esc_attr( $options[ 'css_class' ] ); ?>" style="width: 40%;" /> 717 724 718 <p class="description"><?php _e( 'For page-specific print links, a second class, created by appending <strong>_cur</strong> to the above text, is added to each link.', 'wp _print_friendly' ); ?></p>719 <p class="description"><?php _e( 'Be aware that Internet Explorer will only interpret the first two CSS classes, so if multiple classes are entered above, the page-specific class may not be available in IE.', 'wp _print_friendly' ); ?></p>725 <p class="description"><?php _e( 'For page-specific print links, a second class, created by appending <strong>_cur</strong> to the above text, is added to each link.', 'wp-print-friendly' ); ?></p> 726 <p class="description"><?php _e( 'Be aware that Internet Explorer will only interpret the first two CSS classes, so if multiple classes are entered above, the page-specific class may not be available in IE.', 'wp-print-friendly' ); ?></p> 720 727 </td> 721 728 </tr> 722 729 <tr> 723 <th scope="row"><?php _e( 'Open print-friendly views:', 'wp _print_friendly' ); ?></th>730 <th scope="row"><?php _e( 'Open print-friendly views:', 'wp-print-friendly' ); ?></th> 724 731 <td> 725 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_target]" id="target-same" value="same"<?php checked( $options[ 'link_target' ], 'same', true ); ?> /> <label for="target-same"><?php _e( 'In the same window', 'wp _print_friendly' ); ?></label><br />726 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_target]" id="target-new" value="new"<?php checked( $options[ 'link_target' ], 'new', true ); ?> /> <label for="target-new"><?php _e( 'In a new window', 'wp _print_friendly' ); ?></label>732 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_target]" id="target-same" value="same"<?php checked( $options[ 'link_target' ], 'same', true ); ?> /> <label for="target-same"><?php _e( 'In the same window', 'wp-print-friendly' ); ?></label><br /> 733 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_target]" id="target-new" value="new"<?php checked( $options[ 'link_target' ], 'new', true ); ?> /> <label for="target-new"><?php _e( 'In a new window', 'wp-print-friendly' ); ?></label> 727 734 </td> 728 735 </tr> … … 733 740 <table class="form-table"> 734 741 <tr> 735 <th scope="row"><?php _e( 'Include endnotes for links found in content?', 'wp _print_friendly' ); ?></th>742 <th scope="row"><?php _e( 'Include endnotes for links found in content?', 'wp-print-friendly' ); ?></th> 736 743 <td> 737 <input type="checkbox" name="<?php echo esc_attr( $this->settings_key ); ?>[endnotes]" id="endnotes" value="1"<?php checked( $options[ 'endnotes' ], true, true ); ?> /> <label for="endnotes"><?php _e( 'Yes', 'wp _print_friendly' ); ?></label>738 739 <p class="description"><?php _e( 'If enabled, content is automatically scanned for links and an endnote is added for each link found. This can be helpful for users if your content includes many links.', 'wp _print_friendly' ); ?></p>744 <input type="checkbox" name="<?php echo esc_attr( $this->settings_key ); ?>[endnotes]" id="endnotes" value="1"<?php checked( $options[ 'endnotes' ], true, true ); ?> /> <label for="endnotes"><?php _e( 'Yes', 'wp-print-friendly' ); ?></label> 745 746 <p class="description"><?php _e( 'If enabled, content is automatically scanned for links and an endnote is added for each link found. This can be helpful for users if your content includes many links.', 'wp-print-friendly' ); ?></p> 740 747 </td> 741 748 </tr> 742 749 <tr> 743 <th scope="row"><label for="endnotes-label"><?php _e( 'Endnotes heading:', 'wp _print_friendly' ); ?></label></th>750 <th scope="row"><label for="endnotes-label"><?php _e( 'Endnotes heading:', 'wp-print-friendly' ); ?></label></th> 744 751 <td> 745 752 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[endnotes_label]" class="regular-text code" id="endnotes-label" value="<?php echo esc_attr( $options[ 'endnotes_label' ] ); ?>" /> 746 753 747 <p class="description"><?php _e( 'If endnotes are enabled, the text entered above will be output above the list of links.', 'wp _print_friendly' ); ?></p>754 <p class="description"><?php _e( 'If endnotes are enabled, the text entered above will be output above the list of links.', 'wp-print-friendly' ); ?></p> 748 755 </td> 749 756 </tr> … … 879 886 880 887 <div id="wpf-rewrite-flush-warning" class="error fade"> 881 <p><strong><?php _e( 'WP Print Friendly', 'wp _print_friendly' ); ?></strong></p>882 883 <p><?php printf( __( 'You must refresh your site\'s permalinks before WP Print Friendly is fully activated. To do so, go to <a href="%s">Permalinks</a> and click the <strong><em>Save Changes</em></strong> button at the bottom of the screen.', 'wp _print_friendly' ), esc_url( admin_url( 'options-permalink.php' ) ) ); ?></p>884 885 <p><?php printf( __( 'When finished, click <a href="%s">here</a> to hide this message.', 'wp _print_friendly' ), esc_url( admin_url( add_query_arg( $this->notice_key, 1, 'index.php' ) ) ) ); ?></p>888 <p><strong><?php _e( 'WP Print Friendly', 'wp-print-friendly' ); ?></strong></p> 889 890 <p><?php printf( __( 'You must refresh your site\'s permalinks before WP Print Friendly is fully activated. To do so, go to <a href="%s">Permalinks</a> and click the <strong><em>Save Changes</em></strong> button at the bottom of the screen.', 'wp-print-friendly' ), esc_url( admin_url( 'options-permalink.php' ) ) ); ?></p> 891 892 <p><?php printf( __( 'When finished, click <a href="%s">here</a> to hide this message.', 'wp-print-friendly' ), esc_url( admin_url( add_query_arg( $this->notice_key, 1, 'index.php' ) ) ) ); ?></p> 886 893 </div> 887 894 -
wp-print-friendly/trunk/default-template.php
r2372020 r2747998 31 31 ?> 32 32 33 <p class="wpf-source"><strong>Source URL:</strong> <?php the_permalink(); ?></p> 33 <p class="wpf-source"> 34 <?php 35 printf( 36 /* translators: 1. Post permalink. */ 37 __( 38 '<strong>Source URL:</strong> %1$s', 39 'wp-print-friendly' 40 ), 41 get_the_permalink() 42 ); 43 ?> 44 </p> 34 45 35 46 <hr class="wpf-divider" /> … … 40 51 ?> 41 52 42 <p class="copyright">Copyright ©<?php echo date( 'Y' ); ?> <strong><?php bloginfo( 'name' ); ?></strong> unless otherwise noted.</p> 53 <p class="copyright"> 54 <?php 55 printf( 56 /* translators: 1. Copyright year, 2. Site name. */ 57 __( 58 'Copyright ©%1$d %2$s unless otherwise noted.', 59 'wp-print-friendly' 60 ), 61 date( 'Y' ), 62 get_bloginfo( 'name' ) 63 ); 64 ?> 65 </p> 43 66 44 67 </body> -
wp-print-friendly/trunk/languages/wp-print-friendly.pot
r2740942 r2747998 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP Print Friendly 0.6. 2\n"5 "Project-Id-Version: WP Print Friendly 0.6.3\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/wp-print-friendly\n" 8 "POT-Creation-Date: 2022-06- 11 18:14:57+00:00\n"8 "POT-Creation-Date: 2022-06-25 21:01:31+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 26 26 "X-Generator: grunt-wp-i18n 1.0.3\n" 27 27 28 #: wp-print-friendly.php:121 28 #: default-template.php:37 29 #. translators: 1. Post permalink. 30 msgid "<strong>Source URL:</strong> %1$s" 31 msgstr "" 32 33 #: default-template.php:57 34 #. translators: 1. Copyright year, 2. Site name. 35 msgid "Copyright ©%1$d %2$s unless otherwise noted." 36 msgstr "" 37 38 #: wp-print-friendly.php:128 29 39 msgid "Print this entry" 30 40 msgstr "" 31 41 32 #: wp-print-friendly.php:12 242 #: wp-print-friendly.php:129 33 43 msgid "Print this page" 34 44 msgstr "" 35 45 36 #: wp-print-friendly.php:1 2646 #: wp-print-friendly.php:133 37 47 msgid "Endnotes:" 38 48 msgstr "" 39 49 40 #: wp-print-friendly.php:67 150 #: wp-print-friendly.php:678 41 51 msgid "Automatically add print links based on settings below?" 42 52 msgstr "" 43 53 44 #: wp-print-friendly.php:6 73 wp-print-friendly.php:73754 #: wp-print-friendly.php:680 wp-print-friendly.php:744 45 55 msgid "Yes" 46 56 msgstr "" 47 57 48 #: wp-print-friendly.php:6 7458 #: wp-print-friendly.php:681 49 59 msgid "No" 50 60 msgstr "" 51 61 52 #: wp-print-friendly.php:6 7862 #: wp-print-friendly.php:685 53 63 msgid "Automatically place link:" 54 64 msgstr "" 55 65 56 #: wp-print-friendly.php:68 066 #: wp-print-friendly.php:687 57 67 msgid "Above content" 58 68 msgstr "" 59 69 60 #: wp-print-friendly.php:68 170 #: wp-print-friendly.php:688 61 71 msgid "Below content" 62 72 msgstr "" 63 73 64 #: wp-print-friendly.php:68 274 #: wp-print-friendly.php:689 65 75 msgid "Above and below content" 66 76 msgstr "" 67 77 68 #: wp-print-friendly.php:6 8678 #: wp-print-friendly.php:693 69 79 msgid "Display automatically on:" 70 80 msgstr "" 71 81 72 #: wp-print-friendly.php: 69982 #: wp-print-friendly.php:706 73 83 msgid "Text for link to print entire item:" 74 84 msgstr "" 75 85 76 #: wp-print-friendly.php:7 0586 #: wp-print-friendly.php:712 77 87 msgid "Text for link to print current page:" 78 88 msgstr "" 79 89 80 #: wp-print-friendly.php:7 0990 #: wp-print-friendly.php:716 81 91 msgid "" 82 92 "If viewing a multipage post (set by using the <!--nextpage--> tag), " … … 84 94 msgstr "" 85 95 86 #: wp-print-friendly.php:71 096 #: wp-print-friendly.php:717 87 97 msgid "<strong>To hide this link,</strong> clear the field's contents." 88 98 msgstr "" 89 99 90 #: wp-print-friendly.php:7 14100 #: wp-print-friendly.php:721 91 101 msgid "CSS for print links:" 92 102 msgstr "" 93 103 94 #: wp-print-friendly.php:7 18104 #: wp-print-friendly.php:725 95 105 msgid "" 96 106 "For page-specific print links, a second class, created by appending " … … 98 108 msgstr "" 99 109 100 #: wp-print-friendly.php:7 19110 #: wp-print-friendly.php:726 101 111 msgid "" 102 112 "Be aware that Internet Explorer will only interpret the first two CSS " … … 105 115 msgstr "" 106 116 107 #: wp-print-friendly.php:7 23117 #: wp-print-friendly.php:730 108 118 msgid "Open print-friendly views:" 109 119 msgstr "" 110 120 111 #: wp-print-friendly.php:7 25121 #: wp-print-friendly.php:732 112 122 msgid "In the same window" 113 123 msgstr "" 114 124 115 #: wp-print-friendly.php:7 26125 #: wp-print-friendly.php:733 116 126 msgid "In a new window" 117 127 msgstr "" 118 128 119 #: wp-print-friendly.php:7 35129 #: wp-print-friendly.php:742 120 130 msgid "Include endnotes for links found in content?" 121 131 msgstr "" 122 132 123 #: wp-print-friendly.php:7 39133 #: wp-print-friendly.php:746 124 134 msgid "" 125 135 "If enabled, content is automatically scanned for links and an endnote is " … … 128 138 msgstr "" 129 139 130 #: wp-print-friendly.php:7 43140 #: wp-print-friendly.php:750 131 141 msgid "Endnotes heading:" 132 142 msgstr "" 133 143 134 #: wp-print-friendly.php:7 47144 #: wp-print-friendly.php:754 135 145 msgid "" 136 146 "If endnotes are enabled, the text entered above will be output above the " … … 142 152 msgstr "" 143 153 144 #: wp-print-friendly.php:8 83154 #: wp-print-friendly.php:890 145 155 msgid "" 146 156 "You must refresh your site's permalinks before WP Print Friendly is fully " … … 149 159 msgstr "" 150 160 151 #: wp-print-friendly.php:8 85161 #: wp-print-friendly.php:892 152 162 msgid "When finished, click <a href=\"%s\">here</a> to hide this message." 153 163 msgstr "" -
wp-print-friendly/trunk/readme.txt
r2740942 r2747998 5 5 Requires at least: 3.1 6 6 Tested up to: 6.0 7 Stable tag: 0.6. 27 Stable tag: 0.6.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 59 59 60 60 == Changelog == 61 62 = 0.6.3 = 63 * Fix translation support. 61 64 62 65 = 0.6.2 = … … 155 158 == Upgrade Notice == 156 159 160 = 0.6.3 = 161 Fixes translation support. 162 157 163 = 0.6.2 = 158 164 Resolves a warning arising in PHP 7.3. -
wp-print-friendly/trunk/wp-print-friendly.php
r2372020 r2747998 1 1 <?php 2 2 // phpcs:ignoreFile -- legacy code in need of refactoring. 3 /* 4 Plugin Name: WP Print Friendly 5 Plugin URI: http://oomphinc.com/plugins-modules/wp-print-friendly/ 6 Description: Extends WordPress' template system to support printer-friendly templates. Works with permalink structures to support nice URLs. 7 Author: Erick Hitter, Steven K Word, and Oomph, Inc. 8 Version: 0.6.2 9 Author URI: http://oomphinc.com/ 10 Text Domain: wp_print_friendly 11 12 This program is free software; you can redistribute it and/or modify 13 it under the terms of the GNU General Public License as published by 14 the Free Software Foundation; either version 2 of the License, or 15 (at your option) any later version. 16 17 This program is distributed in the hope that it will be useful, 18 but WITHOUT ANY WARRANTY; without even the implied warranty of 19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 GNU General Public License for more details. 21 22 You should have received a copy of the GNU General Public License 23 along with this program; if not, write to the Free Software 24 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 */ 3 /** 4 * Plugin Name: WP Print Friendly 5 * Plugin URI: http://oomphinc.com/plugins-modules/wp-print-friendly/ 6 * Description: Extends WordPress' template system to support printer-friendly templates. Works with permalink structures to support nice URLs. 7 * Author: Erick Hitter, Steven K Word, and Oomph, Inc. 8 * Version: 0.6.3 9 * Author URI: http://oomphinc.com/ 10 * Text Domain: wp-print-friendly 11 * Domain Path: /languages/ 12 * 13 * This program is free software; you can redistribute it and/or modify 14 * it under the terms of the GNU General Public License as published by 15 * the Free Software Foundation; either version 2 of the License, or 16 * (at your option) any later version. 17 * 18 * This program is distributed in the hope that it will be useful, 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * GNU General Public License for more details. 22 * 23 * You should have received a copy of the GNU General Public License 24 * along with this program; if not, write to the Free Software 25 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 26 */ 26 27 27 28 class wp_print_friendly { … … 114 115 */ 115 116 public function action_plugins_loaded() { 117 load_plugin_textdomain( 118 'wp-print-friendly', 119 false, 120 dirname( plugin_basename( __FILE__ ) ) . '/languages/' 121 ); 122 116 123 // Populate default settings, with translation support 117 124 $this->settings_defaults = array( … … 119 126 'placement' => 'below', 120 127 'post_types' => array( 'post', 'page' ), 121 'print_text' => __( 'Print this entry', 'wp _print_friendly' ),122 'print_text_page' => __( 'Print this page', 'wp _print_friendly' ),128 'print_text' => __( 'Print this entry', 'wp-print-friendly' ), 129 'print_text_page' => __( 'Print this page', 'wp-print-friendly' ), 123 130 'css_class' => 'print_link', 124 131 'link_target' => 'same', 125 132 'endnotes' => true, 126 'endnotes_label' => __( 'Endnotes:', 'wp _print_friendly' ),133 'endnotes_label' => __( 'Endnotes:', 'wp-print-friendly' ), 127 134 ); 128 135 … … 669 676 <table class="form-table"> 670 677 <tr> 671 <th scope="row"><?php _e( 'Automatically add print links based on settings below?', 'wp _print_friendly' ); ?></th>678 <th scope="row"><?php _e( 'Automatically add print links based on settings below?', 'wp-print-friendly' ); ?></th> 672 679 <td> 673 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[auto]" id="auto-true" value="1"<?php checked( $options[ 'auto' ], true, true ); ?> /> <label for="auto-true"><?php _e( 'Yes', 'wp _print_friendly' ); ?></label><br />674 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[auto]" id="auto-false" value="0"<?php checked( $options[ 'auto' ], false, true ); ?> /> <label for="auto-false"><?php _e( 'No', 'wp _print_friendly' ); ?></label>680 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[auto]" id="auto-true" value="1"<?php checked( $options[ 'auto' ], true, true ); ?> /> <label for="auto-true"><?php _e( 'Yes', 'wp-print-friendly' ); ?></label><br /> 681 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[auto]" id="auto-false" value="0"<?php checked( $options[ 'auto' ], false, true ); ?> /> <label for="auto-false"><?php _e( 'No', 'wp-print-friendly' ); ?></label> 675 682 </td> 676 683 </tr> 677 684 <tr> 678 <th scope="row"><?php _e( 'Automatically place link:', 'wp _print_friendly' ); ?></th>685 <th scope="row"><?php _e( 'Automatically place link:', 'wp-print-friendly' ); ?></th> 679 686 <td> 680 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[placement]" id="placement-above" value="above"<?php checked( $options[ 'placement' ], 'above', true ); ?> /> <label for="placement-above"><?php _e( 'Above content', 'wp _print_friendly' ); ?></label><br />681 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[placement]" id="placement-below" value="below"<?php checked( $options[ 'placement' ], 'below', true ); ?> /> <label for="placement-below"><?php _e( 'Below content', 'wp _print_friendly' ); ?></label><br />682 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[placement]" id="placement-both" value="both"<?php checked( $options[ 'placement' ], 'both', true ); ?> /> <label for="placement-both"><?php _e( 'Above and below content', 'wp _print_friendly' ); ?></label>687 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[placement]" id="placement-above" value="above"<?php checked( $options[ 'placement' ], 'above', true ); ?> /> <label for="placement-above"><?php _e( 'Above content', 'wp-print-friendly' ); ?></label><br /> 688 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[placement]" id="placement-below" value="below"<?php checked( $options[ 'placement' ], 'below', true ); ?> /> <label for="placement-below"><?php _e( 'Below content', 'wp-print-friendly' ); ?></label><br /> 689 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[placement]" id="placement-both" value="both"<?php checked( $options[ 'placement' ], 'both', true ); ?> /> <label for="placement-both"><?php _e( 'Above and below content', 'wp-print-friendly' ); ?></label> 683 690 </td> 684 691 </tr> 685 692 <tr> 686 <th scope="row"><?php _e( 'Display automatically on:', 'wp _print_friendly' ); ?></th>693 <th scope="row"><?php _e( 'Display automatically on:', 'wp-print-friendly' ); ?></th> 687 694 <td> 688 695 <?php foreach ( $post_types as $post_type ): ?> … … 697 704 <table class="form-table"> 698 705 <tr> 699 <th scope="row"><?php _e( 'Text for link to print entire item:', 'wp _print_friendly' ); ?></th>706 <th scope="row"><?php _e( 'Text for link to print entire item:', 'wp-print-friendly' ); ?></th> 700 707 <td> 701 708 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[print_text]" id="print_text" value="<?php echo esc_attr( $options[ 'print_text' ] ); ?>" style="width: 40%;" /> … … 703 710 </tr> 704 711 <tr> 705 <th scope="row"><?php _e( 'Text for link to print current page:', 'wp _print_friendly' ); ?></th>712 <th scope="row"><?php _e( 'Text for link to print current page:', 'wp-print-friendly' ); ?></th> 706 713 <td> 707 714 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[print_text_page]" id="print_text_page" value="<?php echo esc_attr( $options[ 'print_text_page' ] ); ?>" style="width: 40%;" /> 708 715 709 <p class="description"><?php _e( 'If viewing a multipage post (set by using the <!--nextpage--> tag), the text above is used for a link to print just the current page.', 'wp _print_friendly' ); ?></p>710 <p class="description"><?php _e( '<strong>To hide this link,</strong> clear the field\'s contents.', 'wp _print_friendly' ); ?></p>716 <p class="description"><?php _e( 'If viewing a multipage post (set by using the <!--nextpage--> tag), the text above is used for a link to print just the current page.', 'wp-print-friendly' ); ?></p> 717 <p class="description"><?php _e( '<strong>To hide this link,</strong> clear the field\'s contents.', 'wp-print-friendly' ); ?></p> 711 718 </td> 712 719 </tr> 713 720 <tr> 714 <th scope="row"><?php _e( 'CSS for print links:', 'wp _print_friendly' ); ?></th>721 <th scope="row"><?php _e( 'CSS for print links:', 'wp-print-friendly' ); ?></th> 715 722 <td> 716 723 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[css_class]" id="css_class" value="<?php echo esc_attr( $options[ 'css_class' ] ); ?>" style="width: 40%;" /> 717 724 718 <p class="description"><?php _e( 'For page-specific print links, a second class, created by appending <strong>_cur</strong> to the above text, is added to each link.', 'wp _print_friendly' ); ?></p>719 <p class="description"><?php _e( 'Be aware that Internet Explorer will only interpret the first two CSS classes, so if multiple classes are entered above, the page-specific class may not be available in IE.', 'wp _print_friendly' ); ?></p>725 <p class="description"><?php _e( 'For page-specific print links, a second class, created by appending <strong>_cur</strong> to the above text, is added to each link.', 'wp-print-friendly' ); ?></p> 726 <p class="description"><?php _e( 'Be aware that Internet Explorer will only interpret the first two CSS classes, so if multiple classes are entered above, the page-specific class may not be available in IE.', 'wp-print-friendly' ); ?></p> 720 727 </td> 721 728 </tr> 722 729 <tr> 723 <th scope="row"><?php _e( 'Open print-friendly views:', 'wp _print_friendly' ); ?></th>730 <th scope="row"><?php _e( 'Open print-friendly views:', 'wp-print-friendly' ); ?></th> 724 731 <td> 725 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_target]" id="target-same" value="same"<?php checked( $options[ 'link_target' ], 'same', true ); ?> /> <label for="target-same"><?php _e( 'In the same window', 'wp _print_friendly' ); ?></label><br />726 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_target]" id="target-new" value="new"<?php checked( $options[ 'link_target' ], 'new', true ); ?> /> <label for="target-new"><?php _e( 'In a new window', 'wp _print_friendly' ); ?></label>732 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_target]" id="target-same" value="same"<?php checked( $options[ 'link_target' ], 'same', true ); ?> /> <label for="target-same"><?php _e( 'In the same window', 'wp-print-friendly' ); ?></label><br /> 733 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_target]" id="target-new" value="new"<?php checked( $options[ 'link_target' ], 'new', true ); ?> /> <label for="target-new"><?php _e( 'In a new window', 'wp-print-friendly' ); ?></label> 727 734 </td> 728 735 </tr> … … 733 740 <table class="form-table"> 734 741 <tr> 735 <th scope="row"><?php _e( 'Include endnotes for links found in content?', 'wp _print_friendly' ); ?></th>742 <th scope="row"><?php _e( 'Include endnotes for links found in content?', 'wp-print-friendly' ); ?></th> 736 743 <td> 737 <input type="checkbox" name="<?php echo esc_attr( $this->settings_key ); ?>[endnotes]" id="endnotes" value="1"<?php checked( $options[ 'endnotes' ], true, true ); ?> /> <label for="endnotes"><?php _e( 'Yes', 'wp _print_friendly' ); ?></label>738 739 <p class="description"><?php _e( 'If enabled, content is automatically scanned for links and an endnote is added for each link found. This can be helpful for users if your content includes many links.', 'wp _print_friendly' ); ?></p>744 <input type="checkbox" name="<?php echo esc_attr( $this->settings_key ); ?>[endnotes]" id="endnotes" value="1"<?php checked( $options[ 'endnotes' ], true, true ); ?> /> <label for="endnotes"><?php _e( 'Yes', 'wp-print-friendly' ); ?></label> 745 746 <p class="description"><?php _e( 'If enabled, content is automatically scanned for links and an endnote is added for each link found. This can be helpful for users if your content includes many links.', 'wp-print-friendly' ); ?></p> 740 747 </td> 741 748 </tr> 742 749 <tr> 743 <th scope="row"><label for="endnotes-label"><?php _e( 'Endnotes heading:', 'wp _print_friendly' ); ?></label></th>750 <th scope="row"><label for="endnotes-label"><?php _e( 'Endnotes heading:', 'wp-print-friendly' ); ?></label></th> 744 751 <td> 745 752 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[endnotes_label]" class="regular-text code" id="endnotes-label" value="<?php echo esc_attr( $options[ 'endnotes_label' ] ); ?>" /> 746 753 747 <p class="description"><?php _e( 'If endnotes are enabled, the text entered above will be output above the list of links.', 'wp _print_friendly' ); ?></p>754 <p class="description"><?php _e( 'If endnotes are enabled, the text entered above will be output above the list of links.', 'wp-print-friendly' ); ?></p> 748 755 </td> 749 756 </tr> … … 879 886 880 887 <div id="wpf-rewrite-flush-warning" class="error fade"> 881 <p><strong><?php _e( 'WP Print Friendly', 'wp _print_friendly' ); ?></strong></p>882 883 <p><?php printf( __( 'You must refresh your site\'s permalinks before WP Print Friendly is fully activated. To do so, go to <a href="%s">Permalinks</a> and click the <strong><em>Save Changes</em></strong> button at the bottom of the screen.', 'wp _print_friendly' ), esc_url( admin_url( 'options-permalink.php' ) ) ); ?></p>884 885 <p><?php printf( __( 'When finished, click <a href="%s">here</a> to hide this message.', 'wp _print_friendly' ), esc_url( admin_url( add_query_arg( $this->notice_key, 1, 'index.php' ) ) ) ); ?></p>888 <p><strong><?php _e( 'WP Print Friendly', 'wp-print-friendly' ); ?></strong></p> 889 890 <p><?php printf( __( 'You must refresh your site\'s permalinks before WP Print Friendly is fully activated. To do so, go to <a href="%s">Permalinks</a> and click the <strong><em>Save Changes</em></strong> button at the bottom of the screen.', 'wp-print-friendly' ), esc_url( admin_url( 'options-permalink.php' ) ) ); ?></p> 891 892 <p><?php printf( __( 'When finished, click <a href="%s">here</a> to hide this message.', 'wp-print-friendly' ), esc_url( admin_url( add_query_arg( $this->notice_key, 1, 'index.php' ) ) ) ); ?></p> 886 893 </div> 887 894
Note: See TracChangeset
for help on using the changeset viewer.