Changeset 2702847
- Timestamp:
- 03/31/2022 05:14:26 PM (4 years ago)
- Location:
- stafflist/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
stafflist.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stafflist/trunk/readme.txt
r2551711 r2702847 104 104 == Changelog == 105 105 106 = 3.1.2 = 107 * Fixed default sort issue discoverd by @biblab (thank you); 108 106 109 = 3.1.1 = 107 110 * Spreadsheet library adjustments per suggestion by @thomasprice61 (thank you); -
stafflist/trunk/stafflist.php
r2551711 r2702847 4 4 Plugin URI: http://wordpress.org/plugins/stafflist/ 5 5 Description: A super simplified staff directory tool 6 Version: 3.1. 16 Version: 3.1.2 7 7 Author: era404 8 8 Author URI: http://www.era404.com … … 1198 1198 **************************************************************************************************/ 1199 1199 function insert_stafflist( $atts ) { 1200 global $rows, $messaging; 1200 global $rows, $messaging, 1201 $staffmetadb, $wpdb; 1201 1202 $subset = false; 1202 1203 $on = "both"; 1203 1204 1205 //default sort 1206 if(!$sort = $wpdb->get_var("SELECT id FROM {$staffmetadb} WHERE active>0 ORDER BY colpos ASC LIMIT 1")) $sort = 1; 1204 1207 //number of results rows 1205 1208 if(isset($atts['rows']) && is_numeric($atts['rows']) && $atts['rows'] > 0 && $atts['rows'] <= 100) $rows = $atts['rows']; … … 1216 1219 <div class='pagerblock'> 1217 1220 <div class='stafflistctl'> 1218 <input type='hidden' rel='sl_sort' value=' 1' autocomplete='Off'>1221 <input type='hidden' rel='sl_sort' value='{$sort}' autocomplete='Off'> 1219 1222 <input type='hidden' rel='sl_page' value='1' autocomplete='Off'> 1220 1223 <input type='hidden' rel='sl_rows' value='{$rows}' autocomplete='Off'>".
Note: See TracChangeset
for help on using the changeset viewer.