Plugin Directory

Changeset 2748002


Ignore:
Timestamp:
06/25/2022 10:27:45 PM (4 years ago)
Author:
ethitter
Message:

Update to version 0.9.4 from GitLab (https://git.ethitter.com/wp-plugins/view-all-posts-pages; https://git.ethitter.com/wp-plugins/view-all-posts-pages/-/jobs/19378)

Location:
view-all-posts-pages
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • view-all-posts-pages/tags/0.9.4/languages/view-all-posts-pages.pot

    r2740961 r2748002  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: View All Posts Pages 0.9.3\n"
     5"Project-Id-Version: View All Posts Pages 0.9.4\n"
    66"Report-Msgid-Bugs-To: "
    77"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"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=utf-8\n"
     
    2626"X-Generator: grunt-wp-i18n 1.0.3\n"
    2727
    28 #: view-all-posts-pages.php:179 view-all-posts-pages.php:186
     28#: view-all-posts-pages.php:194 view-all-posts-pages.php:201
    2929msgid "View All"
    3030msgstr ""
    3131
    32 #: view-all-posts-pages.php:467 view-all-posts-pages.php:498
     32#: view-all-posts-pages.php:482 view-all-posts-pages.php:513
    3333#. translators: 1: Plugin name.
    3434#. translators: 1: WordPress function name.
     
    3636msgstr ""
    3737
    38 #: view-all-posts-pages.php:502
     38#: view-all-posts-pages.php:517
    3939msgid ""
    4040"A \"view all\" link can be appended to WordPress' standard page navigation "
     
    4242msgstr ""
    4343
    44 #: view-all-posts-pages.php:506
     44#: view-all-posts-pages.php:521
    4545msgid "Automatically append link to post's page navigation?"
    4646msgstr ""
    4747
    48 #: view-all-posts-pages.php:508 view-all-posts-pages.php:551
     48#: view-all-posts-pages.php:523 view-all-posts-pages.php:566
    4949msgid "Yes"
    5050msgstr ""
    5151
    52 #: view-all-posts-pages.php:509 view-all-posts-pages.php:552
     52#: view-all-posts-pages.php:524 view-all-posts-pages.php:567
    5353msgid "No"
    5454msgstr ""
    5555
    56 #: view-all-posts-pages.php:513 view-all-posts-pages.php:579
     56#: view-all-posts-pages.php:528 view-all-posts-pages.php:594
    5757msgid "Link text:"
    5858msgstr ""
    5959
    60 #: view-all-posts-pages.php:519 view-all-posts-pages.php:585
     60#: view-all-posts-pages.php:534 view-all-posts-pages.php:600
    6161msgid "Link's CSS class(es):"
    6262msgstr ""
    6363
    64 #: view-all-posts-pages.php:523 view-all-posts-pages.php:589
     64#: view-all-posts-pages.php:538 view-all-posts-pages.php:604
    6565msgid ""
    6666"Be aware that Internet Explorer will only interpret the first two CSS "
     
    6868msgstr ""
    6969
    70 #: view-all-posts-pages.php:527 view-all-posts-pages.php:564
     70#: view-all-posts-pages.php:542 view-all-posts-pages.php:579
    7171msgid "Display automatically on:"
    7272msgstr ""
    7373
    74 #: view-all-posts-pages.php:543
     74#: view-all-posts-pages.php:558
    7575msgid "Standalone Link Options"
    7676msgstr ""
    7777
    78 #: view-all-posts-pages.php:545
     78#: view-all-posts-pages.php:560
    7979msgid ""
    8080"In addition to appending the \"view all\" link to WordPress' standard "
     
    8282msgstr ""
    8383
    84 #: view-all-posts-pages.php:549
     84#: view-all-posts-pages.php:564
    8585msgid "Automatically add links based on settings below?"
    8686msgstr ""
    8787
    88 #: view-all-posts-pages.php:556
     88#: view-all-posts-pages.php:571
    8989msgid "Automatically place link:"
    9090msgstr ""
    9191
    92 #: view-all-posts-pages.php:558
     92#: view-all-posts-pages.php:573
    9393msgid "Above content"
    9494msgstr ""
    9595
    96 #: view-all-posts-pages.php:559
     96#: view-all-posts-pages.php:574
    9797msgid "Below content"
    9898msgstr ""
    9999
    100 #: view-all-posts-pages.php:560
     100#: view-all-posts-pages.php:575
    101101msgid "Above and below content"
    102102msgstr ""
    103103
    104 #: view-all-posts-pages.php:593
     104#: view-all-posts-pages.php:608
    105105msgid "Link's priority:"
    106106msgstr ""
    107107
    108 #: view-all-posts-pages.php:597
     108#: view-all-posts-pages.php:612
    109109msgid ""
    110110"Priority determines when the link is added to a post's content. You can use "
     
    112112msgstr ""
    113113
    114 #: view-all-posts-pages.php:598
     114#: view-all-posts-pages.php:613
    115115msgid ""
    116116"The default value is <strong>10</strong>. Lower values mean the link will "
     
    118118msgstr ""
    119119
    120 #: view-all-posts-pages.php:742
     120#: view-all-posts-pages.php:757
    121121msgid "View All Post's Pages"
    122122msgstr ""
    123123
    124 #: view-all-posts-pages.php:747
     124#: view-all-posts-pages.php:762
    125125#. translators: 1: Permalinks settings page URL.
    126126msgid ""
     
    131131msgstr ""
    132132
    133 #: view-all-posts-pages.php:759
     133#: view-all-posts-pages.php:774
    134134#. translators: 1: URL to dismiss admin notice.
    135135msgid "When finished, click <a href=\"%s\">here</a> to hide this message."
  • view-all-posts-pages/tags/0.9.4/readme.txt

    r2740961 r2748002  
    55Requires at least: 3.2.1
    66Tested up to: 6.0
    7 Stable tag: 0.9.3
     7Stable tag: 0.9.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545
    4646== Changelog ==
     47
     48= 0.9.4 =
     49* Fix translation support.
    4750
    4851= 0.9.3 =
     
    104107== Upgrade Notice ==
    105108
     109= 0.9.4 =
     110Fixes translation support.
     111
    106112= 0.9.3 =
    107113Ensures compatibility with WordPress 5.2.
  • view-all-posts-pages/tags/0.9.4/view-all-posts-pages.php

    r2199778 r2748002  
    88 * Author:          Erick Hitter & Oomph, Inc.
    99 * Author URI:      http://www.oomphinc.com/
    10  * Text Domain:     view_all_posts_pages
     10 * Text Domain:     view-all-posts-pages
    1111 * Domain Path:     /languages
    12  * Version:         0.9.3
     12 * Version:         0.9.4
    1313 *
    1414 * @package         View_All_Posts_Pages
     
    105105        register_deactivation_hook( __FILE__, array( $this, 'deactivation_hook' ) );
    106106
     107        add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
     108
    107109        add_action( 'admin_init', array( $this, 'action_admin_init' ) );
    108110        add_action( 'admin_menu', array( $this, 'action_admin_menu' ) );
     
    126128        delete_option( $this->settings_key );
    127129        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        );
    128143    }
    129144
     
    177192        $this->settings_defaults = array(
    178193            'wlp'             => true,
    179             'wlp_text'        => __( 'View All', 'view_all_posts_pages' ),
     194            'wlp_text'        => __( 'View All', 'view-all-posts-pages' ),
    180195            'wlp_class'       => 'vapp',
    181196            'wlp_post_types'  => array(
     
    184199            'link'            => false,
    185200            'link_position'   => 'below',
    186             'link_text'       => __( 'View All', 'view_all_posts_pages' ),
     201            'link_text'       => __( 'View All', 'view-all-posts-pages' ),
    187202            'link_class'      => 'vapp',
    188203            'link_post_types' => array(
     
    465480    public function action_admin_menu() {
    466481        /* 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' ) );
    468483    }
    469484
     
    496511                    <?php
    497512                    /* 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>' );
    499514                    ?>
    500515                </h3>
    501516
    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>
    503518
    504519                <table class="form-table">
    505520                    <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>
    514529                        <td>
    515530                            <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" />
     
    517532                    </tr>
    518533                    <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>
    520535                        <td>
    521536                            <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" />
    522537
    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>
    528543                        <td>
    529544                            <?php foreach ( $post_types as $post_type ) : ?>
     
    541556                </table>
    542557
    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>
    546561
    547562                <table class="form-table">
    548563                    <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>
    565580                        <td>
    566581                            <?php foreach ( $post_types as $post_type ) : ?>
     
    577592                    </tr>
    578593                    <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>
    580595                        <td>
    581596                            <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" />
     
    583598                    </tr>
    584599                    <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>
    586601                        <td>
    587602                            <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" />
    588603
    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>
    594609                        <td>
    595610                            <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'] ); ?>" />
    596611
    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>
    599614                        </td>
    600615                    </tr>
     
    740755
    741756        <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>
    743758
    744759            <p>
    745760                <?php
    746761                    /* 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' ) ) );
    748763                ?>
    749764            </p>
     
    757772
    758773                    /* 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' ) ) ) );
    760775                    ?>
    761776            </p>
  • view-all-posts-pages/trunk/languages/view-all-posts-pages.pot

    r2740961 r2748002  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: View All Posts Pages 0.9.3\n"
     5"Project-Id-Version: View All Posts Pages 0.9.4\n"
    66"Report-Msgid-Bugs-To: "
    77"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"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=utf-8\n"
     
    2626"X-Generator: grunt-wp-i18n 1.0.3\n"
    2727
    28 #: view-all-posts-pages.php:179 view-all-posts-pages.php:186
     28#: view-all-posts-pages.php:194 view-all-posts-pages.php:201
    2929msgid "View All"
    3030msgstr ""
    3131
    32 #: view-all-posts-pages.php:467 view-all-posts-pages.php:498
     32#: view-all-posts-pages.php:482 view-all-posts-pages.php:513
    3333#. translators: 1: Plugin name.
    3434#. translators: 1: WordPress function name.
     
    3636msgstr ""
    3737
    38 #: view-all-posts-pages.php:502
     38#: view-all-posts-pages.php:517
    3939msgid ""
    4040"A \"view all\" link can be appended to WordPress' standard page navigation "
     
    4242msgstr ""
    4343
    44 #: view-all-posts-pages.php:506
     44#: view-all-posts-pages.php:521
    4545msgid "Automatically append link to post's page navigation?"
    4646msgstr ""
    4747
    48 #: view-all-posts-pages.php:508 view-all-posts-pages.php:551
     48#: view-all-posts-pages.php:523 view-all-posts-pages.php:566
    4949msgid "Yes"
    5050msgstr ""
    5151
    52 #: view-all-posts-pages.php:509 view-all-posts-pages.php:552
     52#: view-all-posts-pages.php:524 view-all-posts-pages.php:567
    5353msgid "No"
    5454msgstr ""
    5555
    56 #: view-all-posts-pages.php:513 view-all-posts-pages.php:579
     56#: view-all-posts-pages.php:528 view-all-posts-pages.php:594
    5757msgid "Link text:"
    5858msgstr ""
    5959
    60 #: view-all-posts-pages.php:519 view-all-posts-pages.php:585
     60#: view-all-posts-pages.php:534 view-all-posts-pages.php:600
    6161msgid "Link's CSS class(es):"
    6262msgstr ""
    6363
    64 #: view-all-posts-pages.php:523 view-all-posts-pages.php:589
     64#: view-all-posts-pages.php:538 view-all-posts-pages.php:604
    6565msgid ""
    6666"Be aware that Internet Explorer will only interpret the first two CSS "
     
    6868msgstr ""
    6969
    70 #: view-all-posts-pages.php:527 view-all-posts-pages.php:564
     70#: view-all-posts-pages.php:542 view-all-posts-pages.php:579
    7171msgid "Display automatically on:"
    7272msgstr ""
    7373
    74 #: view-all-posts-pages.php:543
     74#: view-all-posts-pages.php:558
    7575msgid "Standalone Link Options"
    7676msgstr ""
    7777
    78 #: view-all-posts-pages.php:545
     78#: view-all-posts-pages.php:560
    7979msgid ""
    8080"In addition to appending the \"view all\" link to WordPress' standard "
     
    8282msgstr ""
    8383
    84 #: view-all-posts-pages.php:549
     84#: view-all-posts-pages.php:564
    8585msgid "Automatically add links based on settings below?"
    8686msgstr ""
    8787
    88 #: view-all-posts-pages.php:556
     88#: view-all-posts-pages.php:571
    8989msgid "Automatically place link:"
    9090msgstr ""
    9191
    92 #: view-all-posts-pages.php:558
     92#: view-all-posts-pages.php:573
    9393msgid "Above content"
    9494msgstr ""
    9595
    96 #: view-all-posts-pages.php:559
     96#: view-all-posts-pages.php:574
    9797msgid "Below content"
    9898msgstr ""
    9999
    100 #: view-all-posts-pages.php:560
     100#: view-all-posts-pages.php:575
    101101msgid "Above and below content"
    102102msgstr ""
    103103
    104 #: view-all-posts-pages.php:593
     104#: view-all-posts-pages.php:608
    105105msgid "Link's priority:"
    106106msgstr ""
    107107
    108 #: view-all-posts-pages.php:597
     108#: view-all-posts-pages.php:612
    109109msgid ""
    110110"Priority determines when the link is added to a post's content. You can use "
     
    112112msgstr ""
    113113
    114 #: view-all-posts-pages.php:598
     114#: view-all-posts-pages.php:613
    115115msgid ""
    116116"The default value is <strong>10</strong>. Lower values mean the link will "
     
    118118msgstr ""
    119119
    120 #: view-all-posts-pages.php:742
     120#: view-all-posts-pages.php:757
    121121msgid "View All Post's Pages"
    122122msgstr ""
    123123
    124 #: view-all-posts-pages.php:747
     124#: view-all-posts-pages.php:762
    125125#. translators: 1: Permalinks settings page URL.
    126126msgid ""
     
    131131msgstr ""
    132132
    133 #: view-all-posts-pages.php:759
     133#: view-all-posts-pages.php:774
    134134#. translators: 1: URL to dismiss admin notice.
    135135msgid "When finished, click <a href=\"%s\">here</a> to hide this message."
  • view-all-posts-pages/trunk/readme.txt

    r2740961 r2748002  
    55Requires at least: 3.2.1
    66Tested up to: 6.0
    7 Stable tag: 0.9.3
     7Stable tag: 0.9.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545
    4646== Changelog ==
     47
     48= 0.9.4 =
     49* Fix translation support.
    4750
    4851= 0.9.3 =
     
    104107== Upgrade Notice ==
    105108
     109= 0.9.4 =
     110Fixes translation support.
     111
    106112= 0.9.3 =
    107113Ensures compatibility with WordPress 5.2.
  • view-all-posts-pages/trunk/view-all-posts-pages.php

    r2199778 r2748002  
    88 * Author:          Erick Hitter & Oomph, Inc.
    99 * Author URI:      http://www.oomphinc.com/
    10  * Text Domain:     view_all_posts_pages
     10 * Text Domain:     view-all-posts-pages
    1111 * Domain Path:     /languages
    12  * Version:         0.9.3
     12 * Version:         0.9.4
    1313 *
    1414 * @package         View_All_Posts_Pages
     
    105105        register_deactivation_hook( __FILE__, array( $this, 'deactivation_hook' ) );
    106106
     107        add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
     108
    107109        add_action( 'admin_init', array( $this, 'action_admin_init' ) );
    108110        add_action( 'admin_menu', array( $this, 'action_admin_menu' ) );
     
    126128        delete_option( $this->settings_key );
    127129        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        );
    128143    }
    129144
     
    177192        $this->settings_defaults = array(
    178193            'wlp'             => true,
    179             'wlp_text'        => __( 'View All', 'view_all_posts_pages' ),
     194            'wlp_text'        => __( 'View All', 'view-all-posts-pages' ),
    180195            'wlp_class'       => 'vapp',
    181196            'wlp_post_types'  => array(
     
    184199            'link'            => false,
    185200            'link_position'   => 'below',
    186             'link_text'       => __( 'View All', 'view_all_posts_pages' ),
     201            'link_text'       => __( 'View All', 'view-all-posts-pages' ),
    187202            'link_class'      => 'vapp',
    188203            'link_post_types' => array(
     
    465480    public function action_admin_menu() {
    466481        /* 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' ) );
    468483    }
    469484
     
    496511                    <?php
    497512                    /* 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>' );
    499514                    ?>
    500515                </h3>
    501516
    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>
    503518
    504519                <table class="form-table">
    505520                    <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>
    514529                        <td>
    515530                            <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" />
     
    517532                    </tr>
    518533                    <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>
    520535                        <td>
    521536                            <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" />
    522537
    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>
    528543                        <td>
    529544                            <?php foreach ( $post_types as $post_type ) : ?>
     
    541556                </table>
    542557
    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>
    546561
    547562                <table class="form-table">
    548563                    <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>
    565580                        <td>
    566581                            <?php foreach ( $post_types as $post_type ) : ?>
     
    577592                    </tr>
    578593                    <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>
    580595                        <td>
    581596                            <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" />
     
    583598                    </tr>
    584599                    <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>
    586601                        <td>
    587602                            <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" />
    588603
    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>
    594609                        <td>
    595610                            <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'] ); ?>" />
    596611
    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>
    599614                        </td>
    600615                    </tr>
     
    740755
    741756        <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>
    743758
    744759            <p>
    745760                <?php
    746761                    /* 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' ) ) );
    748763                ?>
    749764            </p>
     
    757772
    758773                    /* 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' ) ) ) );
    760775                    ?>
    761776            </p>
Note: See TracChangeset for help on using the changeset viewer.