Changeset 3305403
- Timestamp:
- 06/03/2025 02:25:28 AM (6 months ago)
- Location:
- daisy-related-posts
- Files:
-
- 10 added
- 1 deleted
- 2 edited
-
assets/icon-256x256.png (added)
-
tags/1.0.2 (deleted)
-
tags/1.0.3 (added)
-
tags/1.0.3/assets (added)
-
tags/1.0.3/assets/css (added)
-
tags/1.0.3/assets/css/admin.css (added)
-
tags/1.0.3/assets/css/daisy-related-posts.css (added)
-
tags/1.0.3/assets/js (added)
-
tags/1.0.3/assets/js/admin.js (added)
-
tags/1.0.3/daisy-related-posts.php (added)
-
tags/1.0.3/readme.txt (added)
-
trunk/daisy-related-posts.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
daisy-related-posts/trunk/daisy-related-posts.php
r3303411 r3305403 4 4 * Plugin URI: https://wordpress.org/plugins/daisy-related-posts 5 5 * Description: Adds a beautifully designed related posts section after each post with customizable settings. 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Tested Up to: 6.8 8 8 * Requires at least: 5.2 … … 24 24 * Plugin version 25 25 */ 26 const VERSION = '1.0. 2';26 const VERSION = '1.0.3'; 27 27 28 28 /** … … 147 147 ); 148 148 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 // ); 156 156 157 157 add_settings_field( … … 303 303 $sanitized_input['posts_count'] = absint( $input['posts_count'] ); 304 304 $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; 306 306 $sanitized_input['display_author'] = isset( $input['display_author'] ) ? absint( $input['display_author'] ) : 0; 307 307 $sanitized_input['display_date'] = isset( $input['display_date'] ) ? absint( $input['display_date'] ) : 0; … … 372 372 } 373 373 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 // } 379 379 380 380 public function display_author_callback() { … … 620 620 <?php endif; ?> 621 621 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 625 628 </div> 626 629 </div> -
daisy-related-posts/trunk/readme.txt
r3303411 r3305403 1 === Daisy Related Posts ===1 === Daisy Related Posts — Display Related Articles, Related Contents, Recommended Posts === 2 2 Contributors: daisyplugins 3 Tags: related posts, related articles, recommended, related content , you may also like3 Tags: related posts, related articles, recommended, related contents, you may also like 4 4 Requires at least: 5.2 5 5 Tested up to: 6.8 6 Stable tag: 1.0. 26 Stable tag: 1.0.3 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 75 75 == Changelog == 76 76 77 = 1.0.3 - Jun 03, 2025 = 78 * Routine maintenance 79 77 80 = 1.0.2 - May 30, 2025 = 78 81 * Initial release … … 100 103 == Support == 101 104 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).105 For support, please use the [WordPress support forums](https://wordpress.org/support/plugin/daisy-related-posts) or visit the [plugin's website](https://daisyplugins.com). 103 106 104 107 == Contributing == 105 108 106 Contributions are welcome! Please fork the [GitHub repository](https://github.com/ mehrazmorshed/daisy-related-posts) and submit pull requests.109 Contributions are welcome! Please fork the [GitHub repository](https://github.com/daisyplugins/daisy-related-posts) and submit pull requests. 107 110 108 111 == Credits == 109 112 110 Developed with ❤ by [ Mehraz Morshed](https://mehrazmorshed.com).113 Developed with ❤ by [DaisyPlugins](https://daisyplugins.com). 111 114 112 115 Special thanks to the WordPress community for inspiration and support.
Note: See TracChangeset
for help on using the changeset viewer.