Changeset 682308
- Timestamp:
- 03/15/2013 12:27:22 PM (13 years ago)
- Location:
- single-latest-posts-lite/trunk
- Files:
-
- 1 deleted
- 4 edited
-
core/classes/single-latest-posts-widget.php (modified) (1 diff)
-
core/js/jquery-ui/js (deleted)
-
readme.txt (modified) (2 diffs)
-
single-latest-posts-config.php (modified) (2 diffs)
-
single-latest-posts.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
single-latest-posts-lite/trunk/core/classes/single-latest-posts-widget.php
r674772 r682308 2 2 /* 3 3 * Single Latest Posts Lite Widget 4 * Version 1.2. 24 * Version 1.2.4 5 5 * Author L'Elite 6 6 * Author URI http://laelite.info/ -
single-latest-posts-lite/trunk/readme.txt
r680662 r682308 5 5 Requires at least: 3.0 6 6 Tested up to: 3.5.1 7 Stable tag: 1.2. 37 Stable tag: 1.2.4 8 8 9 9 This plugin allows you to pull all the recent posts from your WordPress blog and display them the way you want … … 76 76 == Changelog == 77 77 78 = 1.2.4 = 79 * Improvement: now when using auto_excerpt=true, excerpts will be generated only for posts without one. 80 * Bug fix: excerpts were cropped exceeding the value specified through the excerpt_length parameter. 81 * Bug fix: parameters containing uppercase values were being ignored. 82 78 83 = 1.2.3 = 79 84 * Added support for translated date formats. -
single-latest-posts-lite/trunk/single-latest-posts-config.php
r680662 r682308 2 2 /* 3 3 * Single Latest Posts Lite Configuration 4 * Version: 1.2. 34 * Version: 1.2.4 5 5 * Author: L'Elite 6 6 * Author URI: http://laelite.info/ … … 21 21 define( 'SLPosts_Root', $slp_root, true ); 22 22 // Current Version 23 define( 'SLPosts_Version', '1.2. 3', true );23 define( 'SLPosts_Version', '1.2.4', true ); 24 24 // Classes 25 25 require_once dirname( __FILE__ ) . '/core/classes/single-latest-posts-widget.php'; -
single-latest-posts-lite/trunk/single-latest-posts.php
r680662 r682308 4 4 Plugin URI: http://wordpress.org/extend/plugins/single-latest-posts-lite/ 5 5 Description: Display the latest posts available in your WordPress blog using functions, shortcodes or widgets. 6 Version: 1.2. 36 Version: 1.2.4 7 7 Author: L'Elite 8 8 Author URI: http://laelite.info/ … … 101 101 foreach($settings as $parameter => $value) { 102 102 if( !is_array( $value ) ) { 103 // Strip everything 104 $settings[$parameter] = strip_tags($value); 103 if( !is_numeric($value) 104 && $parameter != 'title' 105 && $parameter != 'instance' 106 && $parameter != 'thumbnail_class' 107 && $parameter != 'css_style' 108 && $parameter != 'wrapper_list_css' 109 && $parameter != 'wrapper_block_css' ) { 110 // Strip & lowercase everything 111 $settings[$parameter] = trim( strip_tags( strtolower( $value ) ) ); 112 } else { 113 // Strip everything 114 $settings[$parameter] = strip_tags($value); 115 } 105 116 } 106 117 } … … 334 345 // Extract excerpt from content 335 346 } else { 336 // Get the excerpt 337 echo slp_custom_excerpt($excerpt_length, $field->post_content, $all_permalinks[$field->guid],$excerpt_trail); 347 // If post has excerpt then print that 348 if( !empty( $field->post_excerpt ) ) { 349 echo slp_custom_excerpt( $excerpt_length, $field->post_excerpt, $all_permalinks[$field->guid],$excerpt_trail ); 350 // Otherwise, create one from content 351 } else { 352 // Get the excerpt 353 echo slp_custom_excerpt($excerpt_length, $field->post_content, $all_permalinks[$field->guid],$excerpt_trail); 354 } 338 355 } 339 356 // Close excerpt wrapper … … 416 433 // Extract excerpt from content 417 434 } else { 418 // Get the excerpt 419 echo slp_custom_excerpt($excerpt_length, $field->post_content, $all_permalinks[$field->guid],$excerpt_trail); 435 // If post has excerpt then print that 436 if( !empty( $field->post_excerpt ) ) { 437 echo slp_custom_excerpt( $excerpt_length, $field->post_excerpt, $all_permalinks[$field->guid],$excerpt_trail ); 438 // Otherwise, create one from content 439 } else { 440 // Get the excerpt 441 echo slp_custom_excerpt($excerpt_length, $field->post_content, $all_permalinks[$field->guid],$excerpt_trail); 442 } 420 443 } 421 444 // Close excerpt wrapper … … 583 606 // Extract excerpt from content 584 607 } else { 585 // Get the excerpt 586 echo slp_custom_excerpt($excerpt_length, $field->post_content, $all_permalinks[$field->guid],$excerpt_trail); 608 // If post has excerpt then print that 609 if( !empty( $field->post_excerpt ) ) { 610 echo slp_custom_excerpt( $excerpt_length, $field->post_excerpt, $all_permalinks[$field->guid],$excerpt_trail ); 611 // Otherwise, create one from content 612 } else { 613 // Get the excerpt 614 echo slp_custom_excerpt($excerpt_length, $field->post_content, $all_permalinks[$field->guid],$excerpt_trail); 615 } 587 616 } 588 617 // Close excerpt wrapper … … 666 695 // Extract excerpt from content 667 696 } else { 668 // Get the excerpt 669 echo slp_custom_excerpt($excerpt_length, $field->post_content, $all_permalinks[$field->guid],$excerpt_trail); 697 // If post has excerpt then print that 698 if( !empty( $field->post_excerpt ) ) { 699 echo slp_custom_excerpt( $excerpt_length, $field->post_excerpt, $all_permalinks[$field->guid],$excerpt_trail ); 700 // Otherwise, create one from content 701 } else { 702 // Get the excerpt 703 echo slp_custom_excerpt($excerpt_length, $field->post_content, $all_permalinks[$field->guid],$excerpt_trail); 704 } 670 705 } 671 706 // Close excerpt wrapper … … 789 824 // Get the words 790 825 $words = explode(' ', $content, $count + 1); 791 // Pop everything 792 array_pop($words); 826 // Check if the content exceeds the number of words specified 827 if( count($words) > $count ) { 828 // Pop off the rest 829 array_pop($words); 830 } 793 831 // Add trailing dots 794 832 array_push($words, '...');
Note: See TracChangeset
for help on using the changeset viewer.