Changeset 2748002
- Timestamp:
- 06/25/2022 10:27:45 PM (4 years ago)
- Location:
- view-all-posts-pages
- Files:
-
- 6 edited
- 1 copied
-
tags/0.9.4 (copied) (copied from view-all-posts-pages/trunk)
-
tags/0.9.4/languages/view-all-posts-pages.pot (modified) (9 diffs)
-
tags/0.9.4/readme.txt (modified) (3 diffs)
-
tags/0.9.4/view-all-posts-pages.php (modified) (13 diffs)
-
trunk/languages/view-all-posts-pages.pot (modified) (9 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/view-all-posts-pages.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
view-all-posts-pages/tags/0.9.4/languages/view-all-posts-pages.pot
r2740961 r2748002 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: View All Posts Pages 0.9. 3\n"5 "Project-Id-Version: View All Posts Pages 0.9.4\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/view-all-posts-pages\n" 8 "POT-Creation-Date: 2022-06- 11 18:27:43+00:00\n"8 "POT-Creation-Date: 2022-06-25 22:08:04+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 #: view-all-posts-pages.php:1 79 view-all-posts-pages.php:18628 #: view-all-posts-pages.php:194 view-all-posts-pages.php:201 29 29 msgid "View All" 30 30 msgstr "" 31 31 32 #: view-all-posts-pages.php:4 67 view-all-posts-pages.php:49832 #: view-all-posts-pages.php:482 view-all-posts-pages.php:513 33 33 #. translators: 1: Plugin name. 34 34 #. translators: 1: WordPress function name. … … 36 36 msgstr "" 37 37 38 #: view-all-posts-pages.php:5 0238 #: view-all-posts-pages.php:517 39 39 msgid "" 40 40 "A \"view all\" link can be appended to WordPress' standard page navigation " … … 42 42 msgstr "" 43 43 44 #: view-all-posts-pages.php:5 0644 #: view-all-posts-pages.php:521 45 45 msgid "Automatically append link to post's page navigation?" 46 46 msgstr "" 47 47 48 #: view-all-posts-pages.php:5 08 view-all-posts-pages.php:55148 #: view-all-posts-pages.php:523 view-all-posts-pages.php:566 49 49 msgid "Yes" 50 50 msgstr "" 51 51 52 #: view-all-posts-pages.php:5 09 view-all-posts-pages.php:55252 #: view-all-posts-pages.php:524 view-all-posts-pages.php:567 53 53 msgid "No" 54 54 msgstr "" 55 55 56 #: view-all-posts-pages.php:5 13 view-all-posts-pages.php:57956 #: view-all-posts-pages.php:528 view-all-posts-pages.php:594 57 57 msgid "Link text:" 58 58 msgstr "" 59 59 60 #: view-all-posts-pages.php:5 19 view-all-posts-pages.php:58560 #: view-all-posts-pages.php:534 view-all-posts-pages.php:600 61 61 msgid "Link's CSS class(es):" 62 62 msgstr "" 63 63 64 #: view-all-posts-pages.php:5 23 view-all-posts-pages.php:58964 #: view-all-posts-pages.php:538 view-all-posts-pages.php:604 65 65 msgid "" 66 66 "Be aware that Internet Explorer will only interpret the first two CSS " … … 68 68 msgstr "" 69 69 70 #: view-all-posts-pages.php:5 27 view-all-posts-pages.php:56470 #: view-all-posts-pages.php:542 view-all-posts-pages.php:579 71 71 msgid "Display automatically on:" 72 72 msgstr "" 73 73 74 #: view-all-posts-pages.php:5 4374 #: view-all-posts-pages.php:558 75 75 msgid "Standalone Link Options" 76 76 msgstr "" 77 77 78 #: view-all-posts-pages.php:5 4578 #: view-all-posts-pages.php:560 79 79 msgid "" 80 80 "In addition to appending the \"view all\" link to WordPress' standard " … … 82 82 msgstr "" 83 83 84 #: view-all-posts-pages.php:5 4984 #: view-all-posts-pages.php:564 85 85 msgid "Automatically add links based on settings below?" 86 86 msgstr "" 87 87 88 #: view-all-posts-pages.php:5 5688 #: view-all-posts-pages.php:571 89 89 msgid "Automatically place link:" 90 90 msgstr "" 91 91 92 #: view-all-posts-pages.php:5 5892 #: view-all-posts-pages.php:573 93 93 msgid "Above content" 94 94 msgstr "" 95 95 96 #: view-all-posts-pages.php:5 5996 #: view-all-posts-pages.php:574 97 97 msgid "Below content" 98 98 msgstr "" 99 99 100 #: view-all-posts-pages.php:5 60100 #: view-all-posts-pages.php:575 101 101 msgid "Above and below content" 102 102 msgstr "" 103 103 104 #: view-all-posts-pages.php: 593104 #: view-all-posts-pages.php:608 105 105 msgid "Link's priority:" 106 106 msgstr "" 107 107 108 #: view-all-posts-pages.php: 597108 #: view-all-posts-pages.php:612 109 109 msgid "" 110 110 "Priority determines when the link is added to a post's content. You can use " … … 112 112 msgstr "" 113 113 114 #: view-all-posts-pages.php: 598114 #: view-all-posts-pages.php:613 115 115 msgid "" 116 116 "The default value is <strong>10</strong>. Lower values mean the link will " … … 118 118 msgstr "" 119 119 120 #: view-all-posts-pages.php:7 42120 #: view-all-posts-pages.php:757 121 121 msgid "View All Post's Pages" 122 122 msgstr "" 123 123 124 #: view-all-posts-pages.php:7 47124 #: view-all-posts-pages.php:762 125 125 #. translators: 1: Permalinks settings page URL. 126 126 msgid "" … … 131 131 msgstr "" 132 132 133 #: view-all-posts-pages.php:7 59133 #: view-all-posts-pages.php:774 134 134 #. translators: 1: URL to dismiss admin notice. 135 135 msgid "When finished, click <a href=\"%s\">here</a> to hide this message." -
view-all-posts-pages/tags/0.9.4/readme.txt
r2740961 r2748002 5 5 Requires at least: 3.2.1 6 6 Tested up to: 6.0 7 Stable tag: 0.9. 37 Stable tag: 0.9.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 46 46 == Changelog == 47 48 = 0.9.4 = 49 * Fix translation support. 47 50 48 51 = 0.9.3 = … … 104 107 == Upgrade Notice == 105 108 109 = 0.9.4 = 110 Fixes translation support. 111 106 112 = 0.9.3 = 107 113 Ensures compatibility with WordPress 5.2. -
view-all-posts-pages/tags/0.9.4/view-all-posts-pages.php
r2199778 r2748002 8 8 * Author: Erick Hitter & Oomph, Inc. 9 9 * Author URI: http://www.oomphinc.com/ 10 * Text Domain: view _all_posts_pages10 * Text Domain: view-all-posts-pages 11 11 * Domain Path: /languages 12 * Version: 0.9. 312 * Version: 0.9.4 13 13 * 14 14 * @package View_All_Posts_Pages … … 105 105 register_deactivation_hook( __FILE__, array( $this, 'deactivation_hook' ) ); 106 106 107 add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) ); 108 107 109 add_action( 'admin_init', array( $this, 'action_admin_init' ) ); 108 110 add_action( 'admin_menu', array( $this, 'action_admin_menu' ) ); … … 126 128 delete_option( $this->settings_key ); 127 129 delete_option( $this->notice_key ); 130 } 131 132 /** 133 * Load plugin translations. 134 * 135 * @return void 136 */ 137 public function load_textdomain() { 138 load_plugin_textdomain( 139 'view-all-posts-pages', 140 false, 141 dirname( plugin_basename( __FILE__ ) ) . '/languages/' 142 ); 128 143 } 129 144 … … 177 192 $this->settings_defaults = array( 178 193 'wlp' => true, 179 'wlp_text' => __( 'View All', 'view _all_posts_pages' ),194 'wlp_text' => __( 'View All', 'view-all-posts-pages' ), 180 195 'wlp_class' => 'vapp', 181 196 'wlp_post_types' => array( … … 184 199 'link' => false, 185 200 'link_position' => 'below', 186 'link_text' => __( 'View All', 'view _all_posts_pages' ),201 'link_text' => __( 'View All', 'view-all-posts-pages' ), 187 202 'link_class' => 'vapp', 188 203 'link_post_types' => array( … … 465 480 public function action_admin_menu() { 466 481 /* translators: 1: Plugin name. */ 467 add_options_page( sprintf( __( '%s Options', 'view _all_posts_pages' ), "View All Post's Pages" ), "View All Post's Pages", 'manage_options', $this->ns, array( $this, 'admin_options' ) );482 add_options_page( sprintf( __( '%s Options', 'view-all-posts-pages' ), "View All Post's Pages" ), "View All Post's Pages", 'manage_options', $this->ns, array( $this, 'admin_options' ) ); 468 483 } 469 484 … … 496 511 <?php 497 512 /* translators: 1: WordPress function name. */ 498 printf( wp_kses_post( __( '%s Options', 'view _all_posts_pages' ) ), '<em>wp_link_pages</em>' );513 printf( wp_kses_post( __( '%s Options', 'view-all-posts-pages' ) ), '<em>wp_link_pages</em>' ); 499 514 ?> 500 515 </h3> 501 516 502 <p class="description"><?php esc_html_e( 'A "view all" link can be appended to WordPress\' standard page navigation using the options below.', 'view _all_posts_pages' ); ?></p>517 <p class="description"><?php esc_html_e( 'A "view all" link can be appended to WordPress\' standard page navigation using the options below.', 'view-all-posts-pages' ); ?></p> 503 518 504 519 <table class="form-table"> 505 520 <tr> 506 <th scope="row"><?php esc_html_e( 'Automatically append link to post\'s page navigation?', 'view _all_posts_pages' ); ?></th>507 <td> 508 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp]" id="wlp-true" value="1"<?php checked( $options['wlp'], true, true ); ?> /> <label for="wlp-true"><?php esc_html_e( 'Yes', 'view _all_posts_pages' ); ?></label><br />509 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp]" id="wlp-false" value="0"<?php checked( $options['wlp'], false, true ); ?> /> <label for="wlp-false"><?php esc_html_e( 'No', 'view _all_posts_pages' ); ?></label>510 </td> 511 </tr> 512 <tr> 513 <th scope="row"><label for="wlp_text"><?php esc_html_e( 'Link text:', 'view _all_posts_pages' ); ?></label></th>521 <th scope="row"><?php esc_html_e( 'Automatically append link to post\'s page navigation?', 'view-all-posts-pages' ); ?></th> 522 <td> 523 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp]" id="wlp-true" value="1"<?php checked( $options['wlp'], true, true ); ?> /> <label for="wlp-true"><?php esc_html_e( 'Yes', 'view-all-posts-pages' ); ?></label><br /> 524 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp]" id="wlp-false" value="0"<?php checked( $options['wlp'], false, true ); ?> /> <label for="wlp-false"><?php esc_html_e( 'No', 'view-all-posts-pages' ); ?></label> 525 </td> 526 </tr> 527 <tr> 528 <th scope="row"><label for="wlp_text"><?php esc_html_e( 'Link text:', 'view-all-posts-pages' ); ?></label></th> 514 529 <td> 515 530 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp_text]" id="wlp_text" value="<?php echo esc_attr( $options['wlp_text'] ); ?>" class="regular-text" /> … … 517 532 </tr> 518 533 <tr> 519 <th scope="row"><label for="wlp_class"><?php esc_html_e( 'Link\'s CSS class(es):', 'view _all_posts_pages' ); ?></label></th>534 <th scope="row"><label for="wlp_class"><?php esc_html_e( 'Link\'s CSS class(es):', 'view-all-posts-pages' ); ?></label></th> 520 535 <td> 521 536 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp_class]" id="wlp_class" value="<?php echo esc_attr( $options['wlp_class'] ); ?>" class="regular-text" /> 522 537 523 <p class="description"><?php esc_html_e( 'Be aware that Internet Explorer will only interpret the first two CSS classes.', 'view _all_posts_pages' ); ?></p>524 </td> 525 </tr> 526 <tr> 527 <th scope="row"><?php esc_html_e( 'Display automatically on:', 'view _all_posts_pages' ); ?></th>538 <p class="description"><?php esc_html_e( 'Be aware that Internet Explorer will only interpret the first two CSS classes.', 'view-all-posts-pages' ); ?></p> 539 </td> 540 </tr> 541 <tr> 542 <th scope="row"><?php esc_html_e( 'Display automatically on:', 'view-all-posts-pages' ); ?></th> 528 543 <td> 529 544 <?php foreach ( $post_types as $post_type ) : ?> … … 541 556 </table> 542 557 543 <h3><?php esc_html_e( 'Standalone Link Options', 'view _all_posts_pages' ); ?></h3>544 545 <p class="description"><?php esc_html_e( 'In addition to appending the "view all" link to WordPress\' standard navigation, link(s) can be added above and below post content.', 'view _all_posts_pages' ); ?></p>558 <h3><?php esc_html_e( 'Standalone Link Options', 'view-all-posts-pages' ); ?></h3> 559 560 <p class="description"><?php esc_html_e( 'In addition to appending the "view all" link to WordPress\' standard navigation, link(s) can be added above and below post content.', 'view-all-posts-pages' ); ?></p> 546 561 547 562 <table class="form-table"> 548 563 <tr> 549 <th scope="row"><?php esc_html_e( 'Automatically add links based on settings below?', 'view _all_posts_pages' ); ?></th>550 <td> 551 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link]" id="link-true" value="1"<?php checked( $options['link'], true, true ); ?> /> <label for="link-true"><?php esc_html_e( 'Yes', 'view _all_posts_pages' ); ?></label><br />552 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link]" id="link-false" value="0"<?php checked( $options['link'], false, true ); ?> /> <label for="link-false"><?php esc_html_e( 'No', 'view _all_posts_pages' ); ?></label>553 </td> 554 </tr> 555 <tr> 556 <th scope="row"><?php esc_html_e( 'Automatically place link:', 'view _all_posts_pages' ); ?></th>557 <td> 558 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-above" value="above"<?php checked( $options['link_position'], 'above', true ); ?> /> <label for="link_position-above"><?php esc_html_e( 'Above content', 'view _all_posts_pages' ); ?></label><br />559 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-below" value="below"<?php checked( $options['link_position'], 'below', true ); ?> /> <label for="link_position-below"><?php esc_html_e( 'Below content', 'view _all_posts_pages' ); ?></label><br />560 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-both" value="both"<?php checked( $options['link_position'], 'both', true ); ?> /> <label for="link_position-both"><?php esc_html_e( 'Above and below content', 'view _all_posts_pages' ); ?></label>561 </td> 562 </tr> 563 <tr> 564 <th scope="row"><?php esc_html_e( 'Display automatically on:', 'view _all_posts_pages' ); ?></th>564 <th scope="row"><?php esc_html_e( 'Automatically add links based on settings below?', 'view-all-posts-pages' ); ?></th> 565 <td> 566 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link]" id="link-true" value="1"<?php checked( $options['link'], true, true ); ?> /> <label for="link-true"><?php esc_html_e( 'Yes', 'view-all-posts-pages' ); ?></label><br /> 567 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link]" id="link-false" value="0"<?php checked( $options['link'], false, true ); ?> /> <label for="link-false"><?php esc_html_e( 'No', 'view-all-posts-pages' ); ?></label> 568 </td> 569 </tr> 570 <tr> 571 <th scope="row"><?php esc_html_e( 'Automatically place link:', 'view-all-posts-pages' ); ?></th> 572 <td> 573 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-above" value="above"<?php checked( $options['link_position'], 'above', true ); ?> /> <label for="link_position-above"><?php esc_html_e( 'Above content', 'view-all-posts-pages' ); ?></label><br /> 574 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-below" value="below"<?php checked( $options['link_position'], 'below', true ); ?> /> <label for="link_position-below"><?php esc_html_e( 'Below content', 'view-all-posts-pages' ); ?></label><br /> 575 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-both" value="both"<?php checked( $options['link_position'], 'both', true ); ?> /> <label for="link_position-both"><?php esc_html_e( 'Above and below content', 'view-all-posts-pages' ); ?></label> 576 </td> 577 </tr> 578 <tr> 579 <th scope="row"><?php esc_html_e( 'Display automatically on:', 'view-all-posts-pages' ); ?></th> 565 580 <td> 566 581 <?php foreach ( $post_types as $post_type ) : ?> … … 577 592 </tr> 578 593 <tr> 579 <th scope="row"><label for="link_text"><?php esc_html_e( 'Link text:', 'view _all_posts_pages' ); ?></label></th>594 <th scope="row"><label for="link_text"><?php esc_html_e( 'Link text:', 'view-all-posts-pages' ); ?></label></th> 580 595 <td> 581 596 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[link_text]" id="link_text" value="<?php echo esc_attr( $options['link_text'] ); ?>" class="regular-text" /> … … 583 598 </tr> 584 599 <tr> 585 <th scope="row"><label for="link_class"><?php esc_html_e( 'Link\'s CSS class(es):', 'view _all_posts_pages' ); ?></label></th>600 <th scope="row"><label for="link_class"><?php esc_html_e( 'Link\'s CSS class(es):', 'view-all-posts-pages' ); ?></label></th> 586 601 <td> 587 602 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[link_class]" id="link_class" value="<?php echo esc_attr( $options['link_class'] ); ?>" class="regular-text" /> 588 603 589 <p class="description"><?php esc_html_e( 'Be aware that Internet Explorer will only interpret the first two CSS classes.', 'view _all_posts_pages' ); ?></p>590 </td> 591 </tr> 592 <tr> 593 <th scope="row"><label for="link_priority"><?php esc_html_e( 'Link\'s priority:', 'view _all_posts_pages' ); ?></label></th>604 <p class="description"><?php esc_html_e( 'Be aware that Internet Explorer will only interpret the first two CSS classes.', 'view-all-posts-pages' ); ?></p> 605 </td> 606 </tr> 607 <tr> 608 <th scope="row"><label for="link_priority"><?php esc_html_e( 'Link\'s priority:', 'view-all-posts-pages' ); ?></label></th> 594 609 <td> 595 610 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[link_priority]" id="link_priority" class="small-text code" value="<?php echo esc_attr( $options['link_priority'] ); ?>" /> 596 611 597 <p class="description"><?php esc_html_e( 'Priority determines when the link is added to a post\'s content. You can use the above setting to modulate the link\'s placement.', 'view _all_posts_pages' ); ?></p>598 <p class="description"><?php echo wp_kses_post( __( 'The default value is <strong>10</strong>. Lower values mean the link will be added earlier, while higher values will add the link later.', 'view _all_posts_pages' ) ); ?></p>612 <p class="description"><?php esc_html_e( 'Priority determines when the link is added to a post\'s content. You can use the above setting to modulate the link\'s placement.', 'view-all-posts-pages' ); ?></p> 613 <p class="description"><?php echo wp_kses_post( __( 'The default value is <strong>10</strong>. Lower values mean the link will be added earlier, while higher values will add the link later.', 'view-all-posts-pages' ) ); ?></p> 599 614 </td> 600 615 </tr> … … 740 755 741 756 <div id="wpf-rewrite-flush-warning" class="error fade"> 742 <p><strong><?php esc_html_e( 'View All Post\'s Pages', 'view _all_posts_pages' ); ?></strong></p>757 <p><strong><?php esc_html_e( 'View All Post\'s Pages', 'view-all-posts-pages' ); ?></strong></p> 743 758 744 759 <p> 745 760 <?php 746 761 /* translators: 1: Permalinks settings page URL. */ 747 printf( wp_kses_post( __( 'You must refresh your site\'s permalinks before <em>View All Post\'s Pages</em> 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.', 'view _all_posts_pages' ) ), esc_url( admin_url( 'options-permalink.php' ) ) );762 printf( wp_kses_post( __( 'You must refresh your site\'s permalinks before <em>View All Post\'s Pages</em> 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.', 'view-all-posts-pages' ) ), esc_url( admin_url( 'options-permalink.php' ) ) ); 748 763 ?> 749 764 </p> … … 757 772 758 773 /* translators: 1: URL to dismiss admin notice. */ 759 printf( wp_kses_post( __( 'When finished, click <a href="%s">here</a> to hide this message.', 'view _all_posts_pages' ) ), esc_url( admin_url( add_query_arg( $query_args, 'index.php' ) ) ) );774 printf( wp_kses_post( __( 'When finished, click <a href="%s">here</a> to hide this message.', 'view-all-posts-pages' ) ), esc_url( admin_url( add_query_arg( $query_args, 'index.php' ) ) ) ); 760 775 ?> 761 776 </p> -
view-all-posts-pages/trunk/languages/view-all-posts-pages.pot
r2740961 r2748002 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: View All Posts Pages 0.9. 3\n"5 "Project-Id-Version: View All Posts Pages 0.9.4\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/view-all-posts-pages\n" 8 "POT-Creation-Date: 2022-06- 11 18:27:43+00:00\n"8 "POT-Creation-Date: 2022-06-25 22:08:04+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 #: view-all-posts-pages.php:1 79 view-all-posts-pages.php:18628 #: view-all-posts-pages.php:194 view-all-posts-pages.php:201 29 29 msgid "View All" 30 30 msgstr "" 31 31 32 #: view-all-posts-pages.php:4 67 view-all-posts-pages.php:49832 #: view-all-posts-pages.php:482 view-all-posts-pages.php:513 33 33 #. translators: 1: Plugin name. 34 34 #. translators: 1: WordPress function name. … … 36 36 msgstr "" 37 37 38 #: view-all-posts-pages.php:5 0238 #: view-all-posts-pages.php:517 39 39 msgid "" 40 40 "A \"view all\" link can be appended to WordPress' standard page navigation " … … 42 42 msgstr "" 43 43 44 #: view-all-posts-pages.php:5 0644 #: view-all-posts-pages.php:521 45 45 msgid "Automatically append link to post's page navigation?" 46 46 msgstr "" 47 47 48 #: view-all-posts-pages.php:5 08 view-all-posts-pages.php:55148 #: view-all-posts-pages.php:523 view-all-posts-pages.php:566 49 49 msgid "Yes" 50 50 msgstr "" 51 51 52 #: view-all-posts-pages.php:5 09 view-all-posts-pages.php:55252 #: view-all-posts-pages.php:524 view-all-posts-pages.php:567 53 53 msgid "No" 54 54 msgstr "" 55 55 56 #: view-all-posts-pages.php:5 13 view-all-posts-pages.php:57956 #: view-all-posts-pages.php:528 view-all-posts-pages.php:594 57 57 msgid "Link text:" 58 58 msgstr "" 59 59 60 #: view-all-posts-pages.php:5 19 view-all-posts-pages.php:58560 #: view-all-posts-pages.php:534 view-all-posts-pages.php:600 61 61 msgid "Link's CSS class(es):" 62 62 msgstr "" 63 63 64 #: view-all-posts-pages.php:5 23 view-all-posts-pages.php:58964 #: view-all-posts-pages.php:538 view-all-posts-pages.php:604 65 65 msgid "" 66 66 "Be aware that Internet Explorer will only interpret the first two CSS " … … 68 68 msgstr "" 69 69 70 #: view-all-posts-pages.php:5 27 view-all-posts-pages.php:56470 #: view-all-posts-pages.php:542 view-all-posts-pages.php:579 71 71 msgid "Display automatically on:" 72 72 msgstr "" 73 73 74 #: view-all-posts-pages.php:5 4374 #: view-all-posts-pages.php:558 75 75 msgid "Standalone Link Options" 76 76 msgstr "" 77 77 78 #: view-all-posts-pages.php:5 4578 #: view-all-posts-pages.php:560 79 79 msgid "" 80 80 "In addition to appending the \"view all\" link to WordPress' standard " … … 82 82 msgstr "" 83 83 84 #: view-all-posts-pages.php:5 4984 #: view-all-posts-pages.php:564 85 85 msgid "Automatically add links based on settings below?" 86 86 msgstr "" 87 87 88 #: view-all-posts-pages.php:5 5688 #: view-all-posts-pages.php:571 89 89 msgid "Automatically place link:" 90 90 msgstr "" 91 91 92 #: view-all-posts-pages.php:5 5892 #: view-all-posts-pages.php:573 93 93 msgid "Above content" 94 94 msgstr "" 95 95 96 #: view-all-posts-pages.php:5 5996 #: view-all-posts-pages.php:574 97 97 msgid "Below content" 98 98 msgstr "" 99 99 100 #: view-all-posts-pages.php:5 60100 #: view-all-posts-pages.php:575 101 101 msgid "Above and below content" 102 102 msgstr "" 103 103 104 #: view-all-posts-pages.php: 593104 #: view-all-posts-pages.php:608 105 105 msgid "Link's priority:" 106 106 msgstr "" 107 107 108 #: view-all-posts-pages.php: 597108 #: view-all-posts-pages.php:612 109 109 msgid "" 110 110 "Priority determines when the link is added to a post's content. You can use " … … 112 112 msgstr "" 113 113 114 #: view-all-posts-pages.php: 598114 #: view-all-posts-pages.php:613 115 115 msgid "" 116 116 "The default value is <strong>10</strong>. Lower values mean the link will " … … 118 118 msgstr "" 119 119 120 #: view-all-posts-pages.php:7 42120 #: view-all-posts-pages.php:757 121 121 msgid "View All Post's Pages" 122 122 msgstr "" 123 123 124 #: view-all-posts-pages.php:7 47124 #: view-all-posts-pages.php:762 125 125 #. translators: 1: Permalinks settings page URL. 126 126 msgid "" … … 131 131 msgstr "" 132 132 133 #: view-all-posts-pages.php:7 59133 #: view-all-posts-pages.php:774 134 134 #. translators: 1: URL to dismiss admin notice. 135 135 msgid "When finished, click <a href=\"%s\">here</a> to hide this message." -
view-all-posts-pages/trunk/readme.txt
r2740961 r2748002 5 5 Requires at least: 3.2.1 6 6 Tested up to: 6.0 7 Stable tag: 0.9. 37 Stable tag: 0.9.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 46 46 == Changelog == 47 48 = 0.9.4 = 49 * Fix translation support. 47 50 48 51 = 0.9.3 = … … 104 107 == Upgrade Notice == 105 108 109 = 0.9.4 = 110 Fixes translation support. 111 106 112 = 0.9.3 = 107 113 Ensures compatibility with WordPress 5.2. -
view-all-posts-pages/trunk/view-all-posts-pages.php
r2199778 r2748002 8 8 * Author: Erick Hitter & Oomph, Inc. 9 9 * Author URI: http://www.oomphinc.com/ 10 * Text Domain: view _all_posts_pages10 * Text Domain: view-all-posts-pages 11 11 * Domain Path: /languages 12 * Version: 0.9. 312 * Version: 0.9.4 13 13 * 14 14 * @package View_All_Posts_Pages … … 105 105 register_deactivation_hook( __FILE__, array( $this, 'deactivation_hook' ) ); 106 106 107 add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) ); 108 107 109 add_action( 'admin_init', array( $this, 'action_admin_init' ) ); 108 110 add_action( 'admin_menu', array( $this, 'action_admin_menu' ) ); … … 126 128 delete_option( $this->settings_key ); 127 129 delete_option( $this->notice_key ); 130 } 131 132 /** 133 * Load plugin translations. 134 * 135 * @return void 136 */ 137 public function load_textdomain() { 138 load_plugin_textdomain( 139 'view-all-posts-pages', 140 false, 141 dirname( plugin_basename( __FILE__ ) ) . '/languages/' 142 ); 128 143 } 129 144 … … 177 192 $this->settings_defaults = array( 178 193 'wlp' => true, 179 'wlp_text' => __( 'View All', 'view _all_posts_pages' ),194 'wlp_text' => __( 'View All', 'view-all-posts-pages' ), 180 195 'wlp_class' => 'vapp', 181 196 'wlp_post_types' => array( … … 184 199 'link' => false, 185 200 'link_position' => 'below', 186 'link_text' => __( 'View All', 'view _all_posts_pages' ),201 'link_text' => __( 'View All', 'view-all-posts-pages' ), 187 202 'link_class' => 'vapp', 188 203 'link_post_types' => array( … … 465 480 public function action_admin_menu() { 466 481 /* translators: 1: Plugin name. */ 467 add_options_page( sprintf( __( '%s Options', 'view _all_posts_pages' ), "View All Post's Pages" ), "View All Post's Pages", 'manage_options', $this->ns, array( $this, 'admin_options' ) );482 add_options_page( sprintf( __( '%s Options', 'view-all-posts-pages' ), "View All Post's Pages" ), "View All Post's Pages", 'manage_options', $this->ns, array( $this, 'admin_options' ) ); 468 483 } 469 484 … … 496 511 <?php 497 512 /* translators: 1: WordPress function name. */ 498 printf( wp_kses_post( __( '%s Options', 'view _all_posts_pages' ) ), '<em>wp_link_pages</em>' );513 printf( wp_kses_post( __( '%s Options', 'view-all-posts-pages' ) ), '<em>wp_link_pages</em>' ); 499 514 ?> 500 515 </h3> 501 516 502 <p class="description"><?php esc_html_e( 'A "view all" link can be appended to WordPress\' standard page navigation using the options below.', 'view _all_posts_pages' ); ?></p>517 <p class="description"><?php esc_html_e( 'A "view all" link can be appended to WordPress\' standard page navigation using the options below.', 'view-all-posts-pages' ); ?></p> 503 518 504 519 <table class="form-table"> 505 520 <tr> 506 <th scope="row"><?php esc_html_e( 'Automatically append link to post\'s page navigation?', 'view _all_posts_pages' ); ?></th>507 <td> 508 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp]" id="wlp-true" value="1"<?php checked( $options['wlp'], true, true ); ?> /> <label for="wlp-true"><?php esc_html_e( 'Yes', 'view _all_posts_pages' ); ?></label><br />509 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp]" id="wlp-false" value="0"<?php checked( $options['wlp'], false, true ); ?> /> <label for="wlp-false"><?php esc_html_e( 'No', 'view _all_posts_pages' ); ?></label>510 </td> 511 </tr> 512 <tr> 513 <th scope="row"><label for="wlp_text"><?php esc_html_e( 'Link text:', 'view _all_posts_pages' ); ?></label></th>521 <th scope="row"><?php esc_html_e( 'Automatically append link to post\'s page navigation?', 'view-all-posts-pages' ); ?></th> 522 <td> 523 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp]" id="wlp-true" value="1"<?php checked( $options['wlp'], true, true ); ?> /> <label for="wlp-true"><?php esc_html_e( 'Yes', 'view-all-posts-pages' ); ?></label><br /> 524 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp]" id="wlp-false" value="0"<?php checked( $options['wlp'], false, true ); ?> /> <label for="wlp-false"><?php esc_html_e( 'No', 'view-all-posts-pages' ); ?></label> 525 </td> 526 </tr> 527 <tr> 528 <th scope="row"><label for="wlp_text"><?php esc_html_e( 'Link text:', 'view-all-posts-pages' ); ?></label></th> 514 529 <td> 515 530 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp_text]" id="wlp_text" value="<?php echo esc_attr( $options['wlp_text'] ); ?>" class="regular-text" /> … … 517 532 </tr> 518 533 <tr> 519 <th scope="row"><label for="wlp_class"><?php esc_html_e( 'Link\'s CSS class(es):', 'view _all_posts_pages' ); ?></label></th>534 <th scope="row"><label for="wlp_class"><?php esc_html_e( 'Link\'s CSS class(es):', 'view-all-posts-pages' ); ?></label></th> 520 535 <td> 521 536 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp_class]" id="wlp_class" value="<?php echo esc_attr( $options['wlp_class'] ); ?>" class="regular-text" /> 522 537 523 <p class="description"><?php esc_html_e( 'Be aware that Internet Explorer will only interpret the first two CSS classes.', 'view _all_posts_pages' ); ?></p>524 </td> 525 </tr> 526 <tr> 527 <th scope="row"><?php esc_html_e( 'Display automatically on:', 'view _all_posts_pages' ); ?></th>538 <p class="description"><?php esc_html_e( 'Be aware that Internet Explorer will only interpret the first two CSS classes.', 'view-all-posts-pages' ); ?></p> 539 </td> 540 </tr> 541 <tr> 542 <th scope="row"><?php esc_html_e( 'Display automatically on:', 'view-all-posts-pages' ); ?></th> 528 543 <td> 529 544 <?php foreach ( $post_types as $post_type ) : ?> … … 541 556 </table> 542 557 543 <h3><?php esc_html_e( 'Standalone Link Options', 'view _all_posts_pages' ); ?></h3>544 545 <p class="description"><?php esc_html_e( 'In addition to appending the "view all" link to WordPress\' standard navigation, link(s) can be added above and below post content.', 'view _all_posts_pages' ); ?></p>558 <h3><?php esc_html_e( 'Standalone Link Options', 'view-all-posts-pages' ); ?></h3> 559 560 <p class="description"><?php esc_html_e( 'In addition to appending the "view all" link to WordPress\' standard navigation, link(s) can be added above and below post content.', 'view-all-posts-pages' ); ?></p> 546 561 547 562 <table class="form-table"> 548 563 <tr> 549 <th scope="row"><?php esc_html_e( 'Automatically add links based on settings below?', 'view _all_posts_pages' ); ?></th>550 <td> 551 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link]" id="link-true" value="1"<?php checked( $options['link'], true, true ); ?> /> <label for="link-true"><?php esc_html_e( 'Yes', 'view _all_posts_pages' ); ?></label><br />552 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link]" id="link-false" value="0"<?php checked( $options['link'], false, true ); ?> /> <label for="link-false"><?php esc_html_e( 'No', 'view _all_posts_pages' ); ?></label>553 </td> 554 </tr> 555 <tr> 556 <th scope="row"><?php esc_html_e( 'Automatically place link:', 'view _all_posts_pages' ); ?></th>557 <td> 558 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-above" value="above"<?php checked( $options['link_position'], 'above', true ); ?> /> <label for="link_position-above"><?php esc_html_e( 'Above content', 'view _all_posts_pages' ); ?></label><br />559 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-below" value="below"<?php checked( $options['link_position'], 'below', true ); ?> /> <label for="link_position-below"><?php esc_html_e( 'Below content', 'view _all_posts_pages' ); ?></label><br />560 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-both" value="both"<?php checked( $options['link_position'], 'both', true ); ?> /> <label for="link_position-both"><?php esc_html_e( 'Above and below content', 'view _all_posts_pages' ); ?></label>561 </td> 562 </tr> 563 <tr> 564 <th scope="row"><?php esc_html_e( 'Display automatically on:', 'view _all_posts_pages' ); ?></th>564 <th scope="row"><?php esc_html_e( 'Automatically add links based on settings below?', 'view-all-posts-pages' ); ?></th> 565 <td> 566 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link]" id="link-true" value="1"<?php checked( $options['link'], true, true ); ?> /> <label for="link-true"><?php esc_html_e( 'Yes', 'view-all-posts-pages' ); ?></label><br /> 567 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link]" id="link-false" value="0"<?php checked( $options['link'], false, true ); ?> /> <label for="link-false"><?php esc_html_e( 'No', 'view-all-posts-pages' ); ?></label> 568 </td> 569 </tr> 570 <tr> 571 <th scope="row"><?php esc_html_e( 'Automatically place link:', 'view-all-posts-pages' ); ?></th> 572 <td> 573 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-above" value="above"<?php checked( $options['link_position'], 'above', true ); ?> /> <label for="link_position-above"><?php esc_html_e( 'Above content', 'view-all-posts-pages' ); ?></label><br /> 574 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-below" value="below"<?php checked( $options['link_position'], 'below', true ); ?> /> <label for="link_position-below"><?php esc_html_e( 'Below content', 'view-all-posts-pages' ); ?></label><br /> 575 <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-both" value="both"<?php checked( $options['link_position'], 'both', true ); ?> /> <label for="link_position-both"><?php esc_html_e( 'Above and below content', 'view-all-posts-pages' ); ?></label> 576 </td> 577 </tr> 578 <tr> 579 <th scope="row"><?php esc_html_e( 'Display automatically on:', 'view-all-posts-pages' ); ?></th> 565 580 <td> 566 581 <?php foreach ( $post_types as $post_type ) : ?> … … 577 592 </tr> 578 593 <tr> 579 <th scope="row"><label for="link_text"><?php esc_html_e( 'Link text:', 'view _all_posts_pages' ); ?></label></th>594 <th scope="row"><label for="link_text"><?php esc_html_e( 'Link text:', 'view-all-posts-pages' ); ?></label></th> 580 595 <td> 581 596 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[link_text]" id="link_text" value="<?php echo esc_attr( $options['link_text'] ); ?>" class="regular-text" /> … … 583 598 </tr> 584 599 <tr> 585 <th scope="row"><label for="link_class"><?php esc_html_e( 'Link\'s CSS class(es):', 'view _all_posts_pages' ); ?></label></th>600 <th scope="row"><label for="link_class"><?php esc_html_e( 'Link\'s CSS class(es):', 'view-all-posts-pages' ); ?></label></th> 586 601 <td> 587 602 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[link_class]" id="link_class" value="<?php echo esc_attr( $options['link_class'] ); ?>" class="regular-text" /> 588 603 589 <p class="description"><?php esc_html_e( 'Be aware that Internet Explorer will only interpret the first two CSS classes.', 'view _all_posts_pages' ); ?></p>590 </td> 591 </tr> 592 <tr> 593 <th scope="row"><label for="link_priority"><?php esc_html_e( 'Link\'s priority:', 'view _all_posts_pages' ); ?></label></th>604 <p class="description"><?php esc_html_e( 'Be aware that Internet Explorer will only interpret the first two CSS classes.', 'view-all-posts-pages' ); ?></p> 605 </td> 606 </tr> 607 <tr> 608 <th scope="row"><label for="link_priority"><?php esc_html_e( 'Link\'s priority:', 'view-all-posts-pages' ); ?></label></th> 594 609 <td> 595 610 <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[link_priority]" id="link_priority" class="small-text code" value="<?php echo esc_attr( $options['link_priority'] ); ?>" /> 596 611 597 <p class="description"><?php esc_html_e( 'Priority determines when the link is added to a post\'s content. You can use the above setting to modulate the link\'s placement.', 'view _all_posts_pages' ); ?></p>598 <p class="description"><?php echo wp_kses_post( __( 'The default value is <strong>10</strong>. Lower values mean the link will be added earlier, while higher values will add the link later.', 'view _all_posts_pages' ) ); ?></p>612 <p class="description"><?php esc_html_e( 'Priority determines when the link is added to a post\'s content. You can use the above setting to modulate the link\'s placement.', 'view-all-posts-pages' ); ?></p> 613 <p class="description"><?php echo wp_kses_post( __( 'The default value is <strong>10</strong>. Lower values mean the link will be added earlier, while higher values will add the link later.', 'view-all-posts-pages' ) ); ?></p> 599 614 </td> 600 615 </tr> … … 740 755 741 756 <div id="wpf-rewrite-flush-warning" class="error fade"> 742 <p><strong><?php esc_html_e( 'View All Post\'s Pages', 'view _all_posts_pages' ); ?></strong></p>757 <p><strong><?php esc_html_e( 'View All Post\'s Pages', 'view-all-posts-pages' ); ?></strong></p> 743 758 744 759 <p> 745 760 <?php 746 761 /* translators: 1: Permalinks settings page URL. */ 747 printf( wp_kses_post( __( 'You must refresh your site\'s permalinks before <em>View All Post\'s Pages</em> 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.', 'view _all_posts_pages' ) ), esc_url( admin_url( 'options-permalink.php' ) ) );762 printf( wp_kses_post( __( 'You must refresh your site\'s permalinks before <em>View All Post\'s Pages</em> 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.', 'view-all-posts-pages' ) ), esc_url( admin_url( 'options-permalink.php' ) ) ); 748 763 ?> 749 764 </p> … … 757 772 758 773 /* translators: 1: URL to dismiss admin notice. */ 759 printf( wp_kses_post( __( 'When finished, click <a href="%s">here</a> to hide this message.', 'view _all_posts_pages' ) ), esc_url( admin_url( add_query_arg( $query_args, 'index.php' ) ) ) );774 printf( wp_kses_post( __( 'When finished, click <a href="%s">here</a> to hide this message.', 'view-all-posts-pages' ) ), esc_url( admin_url( add_query_arg( $query_args, 'index.php' ) ) ) ); 760 775 ?> 761 776 </p>
Note: See TracChangeset
for help on using the changeset viewer.