Changeset 1491155
- Timestamp:
- 09/06/2016 02:03:02 PM (10 years ago)
- Location:
- authors/trunk
- Files:
-
- 2 edited
-
authors.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
authors/trunk/authors.php
r929950 r1491155 4 4 Plugin URI: http://blog.fleischer.hu/wordpress/authors/ 5 5 Description: Authors Widget shows the list or cloud of the authors, with the number of posts, link to RSS feed next to their name, avatar. It is useful in a multi-author blog, where you want to have the list in the sidemenu. 6 Version: 2.4. 36 Version: 2.4.4 7 7 Author: Gavriel Fleischer 8 8 Author URI: http://blog.fleischer.hu/author/gavriel/ … … 44 44 $bC = is_array($matches) && count($matches) >= 2 ? intval($matches[1]) : 0; 45 45 return $aC < $bC ? 1 : -1; 46 } 47 48 function widget_authors_sort_by_random($a, $b) { 49 return rand(-1,1); 46 50 } 47 51 … … 61 65 case 'id': 62 66 usort($authors, widget_authors_sort_by_id); 67 break; 68 case 'random': 69 usort($authors, widget_authors_sort_by_random); 63 70 break; 64 71 # case 'posts': … … 464 471 <label for="authors-order-<?php echo $number; ?>-posts"><input type="radio" class="radio" id="authors-order-<?php echo $number; ?>-posts" name="widget-authors[<?php echo $number; ?>][order]" value="posts"<?php echo 'posts' == $order ? ' checked="checked"' : '' ?> /> <?php _e('Post count','authors') ?></label> 465 472 <label for="authors-order-<?php echo $number; ?>-id"><input type="radio" class="radio" id="authors-order-<?php echo $number; ?>-id" name="widget-authors[<?php echo $number; ?>][order]" value="id"<?php echo 'id' == $order ? ' checked="checked"' : '' ?> /> <?php _e('ID','authors') ?></label> 473 <label for="authors-order-<?php echo $number; ?>-random"><input type="radio" class="radio" id="authors-order-<?php echo $number; ?>-random" name="widget-authors[<?php echo $number; ?>][order]" value="random"<?php echo 'random' == $order ? ' checked="checked"' : '' ?> /> <?php _e('random','authors') ?></label> 466 474 </p> 467 475 <p><label for="authors-limit-<?php echo $number; ?>"><?php _e('Number of authors to show', 'authors') ?>: <input type="text" class="widefat" style="width: 25px; text-align: center;" id="authors-limit-<?php echo $number; ?>" name="widget-authors[<?php echo $number; ?>][limit]" value="<?php echo $limit ?>" /></label></p> -
authors/trunk/readme.txt
r929950 r1491155 4 4 Tags: authors, author, multi-author, multi-user, list, sidemenu, sidebar, links, widgets, widget, plugin, avatar, gravatar 5 5 Requires at least: 2.0.2 6 Tested up to: 3.8.16 Tested up to: 4.2.2 7 7 Stable tag: trunk 8 8 … … 28 28 1. Title 29 29 2. Format: list | cloud | dropdown 30 3. Order by: name | post count30 3. Order by: display name | first name | last name | post count | id | random 31 31 4. Number of authors to show 32 32 5. Show Avatar … … 86 86 87 87 == Changelog == 88 89 = 2.4.4 = 90 * Added order by: random 88 91 89 92 = 2.4.3 =
Note: See TracChangeset
for help on using the changeset viewer.