Plugin Directory

Changeset 3305403


Ignore:
Timestamp:
06/03/2025 02:25:28 AM (6 months ago)
Author:
daisyplugins
Message:

v1.0.3

Location:
daisy-related-posts
Files:
10 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • daisy-related-posts/trunk/daisy-related-posts.php

    r3303411 r3305403  
    44 * Plugin URI:          https://wordpress.org/plugins/daisy-related-posts
    55 * Description:         Adds a beautifully designed related posts section after each post with customizable settings.
    6  * Version:             1.0.2
     6 * Version:             1.0.3
    77 * Tested Up to:        6.8
    88 * Requires at least:   5.2
     
    2424         * Plugin version
    2525         */
    26         const VERSION = '1.0.2';
     26        const VERSION = '1.0.3';
    2727
    2828        /**
     
    147147            );
    148148
    149             add_settings_field(
    150                 'display_excerpt',
    151                 __( 'Display Excerpt', 'daisy-related-posts' ),
    152                 array( $this, 'display_excerpt_callback' ),
    153                 'daisy-related-posts',
    154                 'daisyplugins_related_posts_general_section'
    155             );
     149            // add_settings_field(
     150            // 'display_excerpt',
     151            // __( 'Display Excerpt', 'daisy-related-posts' ),
     152            // array( $this, 'display_excerpt_callback' ),
     153            // 'daisy-related-posts',
     154            // 'daisyplugins_related_posts_general_section'
     155            // );
    156156
    157157            add_settings_field(
     
    303303            $sanitized_input['posts_count']          = absint( $input['posts_count'] );
    304304            $sanitized_input['display_thumbnails']   = isset( $input['display_thumbnails'] ) ? absint( $input['display_thumbnails'] ) : 0;
    305             $sanitized_input['display_excerpt']      = isset( $input['display_excerpt'] ) ? absint( $input['display_excerpt'] ) : 0;
     305            // $sanitized_input['display_excerpt']      = isset( $input['display_excerpt'] ) ? absint( $input['display_excerpt'] ) : 0;
    306306            $sanitized_input['display_author']       = isset( $input['display_author'] ) ? absint( $input['display_author'] ) : 0;
    307307            $sanitized_input['display_date']         = isset( $input['display_date'] ) ? absint( $input['display_date'] ) : 0;
     
    372372        }
    373373
    374         public function display_excerpt_callback() {
    375             $checked = isset( $this->options['display_excerpt'] ) && $this->options['display_excerpt'] ? 'checked' : '';
    376             echo '<input type="checkbox" id="display_excerpt" name="daisyplugins_related_posts_options[display_excerpt]" value="1" ' . esc_attr( $checked ) . ' />';
    377             echo '<label for="display_excerpt">' . esc_html__( 'Show post excerpts', 'daisy-related-posts' ) . '</label>';
    378         }
     374        // public function display_excerpt_callback() {
     375        // $checked = isset( $this->options['display_excerpt'] ) && $this->options['display_excerpt'] ? 'checked' : '';
     376        // echo '<input type="checkbox" id="display_excerpt" name="daisyplugins_related_posts_options[display_excerpt]" value="1" ' . esc_attr( $checked ) . ' />';
     377        // echo '<label for="display_excerpt">' . esc_html__( 'Show post excerpts', 'daisy-related-posts' ) . '</label>';
     378        // }
    379379
    380380        public function display_author_callback() {
     
    620620                                <?php endif; ?>
    621621                               
    622                                 <?php if ( isset( $this->options['display_excerpt'] ) && $this->options['display_excerpt'] ) : ?>
    623                                     <div class="daisy-related-excerpt"><?php echo wp_kses_post( wp_trim_words( get_the_excerpt( $post->ID ), 20 ) ); ?></div>
    624                                 <?php endif; ?>
     622                                <?php //if ( isset( $this->options['display_excerpt'] ) && $this->options['display_excerpt'] ) : ?>
     623                                    <!-- <div class="daisy-related-excerpt"> -->
     624                                        <?php //echo wp_kses_post( wp_trim_words( get_the_excerpt( $post->ID ), 20 ) ); ?>
     625                                    <!-- </div> -->
     626                                <?php //endif; ?>
     627
    625628                            </div>
    626629                        </div>
  • daisy-related-posts/trunk/readme.txt

    r3303411 r3305403  
    1 === Daisy Related Posts ===
     1=== Daisy Related Posts — Display Related Articles, Related Contents, Recommended Posts ===
    22Contributors: daisyplugins
    3 Tags: related posts, related articles, recommended, related content, you may also like
     3Tags: related posts, related articles, recommended, related contents, you may also like
    44Requires at least: 5.2
    55Tested up to: 6.8
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7575== Changelog ==
    7676
     77= 1.0.3 - Jun 03, 2025 =
     78* Routine maintenance
     79
    7780= 1.0.2 - May 30, 2025 =
    7881* Initial release
     
    100103== Support ==
    101104
    102 For support, please use the [WordPress support forums](https://wordpress.org/support/plugin/daisy-related-posts) or visit the [plugin's website](https://mehrazmorshed.com/daisy-related-posts).
     105For support, please use the [WordPress support forums](https://wordpress.org/support/plugin/daisy-related-posts) or visit the [plugin's website](https://daisyplugins.com).
    103106
    104107== Contributing ==
    105108
    106 Contributions are welcome! Please fork the [GitHub repository](https://github.com/mehrazmorshed/daisy-related-posts) and submit pull requests.
     109Contributions are welcome! Please fork the [GitHub repository](https://github.com/daisyplugins/daisy-related-posts) and submit pull requests.
    107110
    108111== Credits ==
    109112
    110 Developed with ❤ by [Mehraz Morshed](https://mehrazmorshed.com).
     113Developed with ❤ by [DaisyPlugins](https://daisyplugins.com).
    111114
    112115Special thanks to the WordPress community for inspiration and support.
Note: See TracChangeset for help on using the changeset viewer.