Changeset 2346122
- Timestamp:
- 07/24/2020 02:11:29 PM (6 years ago)
- Location:
- lendingq
- Files:
-
- 23 added
- 4 edited
-
tags/0.97 (added)
-
tags/0.97/includes (added)
-
tags/0.97/includes/jquery.validate.min.js (added)
-
tags/0.97/languages (added)
-
tags/0.97/lendingq.css (added)
-
tags/0.97/lendingq.js (added)
-
tags/0.97/lendingq.php (added)
-
tags/0.97/readme.txt (added)
-
tags/0.97/template_cancel_hold_form.php (added)
-
tags/0.97/template_cancel_stock_form.php (added)
-
tags/0.97/template_cancel_stock_form_checked_out.php (added)
-
tags/0.97/template_check_in_form.php (added)
-
tags/0.97/template_check_in_list.php (added)
-
tags/0.97/template_check_out_form.php (added)
-
tags/0.97/template_check_out_list.php (added)
-
tags/0.97/template_contact_hold_form.php (added)
-
tags/0.97/template_no_item_types.php (added)
-
tags/0.97/template_no_locations.php (added)
-
tags/0.97/template_no_stock.php (added)
-
tags/0.97/template_post_hold.php (added)
-
tags/0.97/template_post_item.php (added)
-
tags/0.97/template_quick_widget.php (added)
-
tags/0.97/widget.css (added)
-
trunk/lendingq.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/template_check_out_list.php (modified) (2 diffs)
-
trunk/template_post_hold.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lendingq/trunk/lendingq.php
r2334348 r2346122 4 4 Plugin URI: https://wordpress.org/plugins/lendingq/ 5 5 Description: A simple system to manage the lending of items (like hotspots) with an integrated waiting list. 6 Version: 0.9 6.36 Version: 0.97 7 7 License: GPLv2 or later 8 8 Text Domain: lendingq … … 956 956 $temp['w_date_nice'] = date_i18n( get_option('date_format'), $waiting_date ) . '<br>' . date_i18n( get_option('time_format'), $waiting_date ); 957 957 $temp['waiting_date'] = $waiting_date; 958 $hold_list['dates_nice'][$val->ID] = $waiting_date; 958 959 $hold_list['dates'][$val->ID] = $waiting_date; 960 959 961 $hold_list['all'][$val->ID] = $temp; 960 962 $hold_list[$val->post_status][$temp_it[0]->slug][$temp_loc[0]->slug][$val->ID] = $temp; 961 963 } // END if( empty( $meta['waiting_date']) ) 962 964 } 963 asort( $hold_list['dates'] ); 964 } 965 arsort( $hold_list['dates'] ); 966 967 foreach( $hold_list['dates'] as $key => $val ) { 968 $waiting_date = $val; 969 $hold_list['dates_nice'][$key] = date_i18n( get_option('date_format'), $waiting_date ) . '<br>' . date_i18n( get_option('time_format'), $waiting_date ); 970 } 971 } 972 965 973 return $hold_list; 966 974 } … … 1323 1331 // date on form 1324 1332 if( !is_array( $post_meta['form_date'] ) and empty( current( array_filter( $post_meta['form_date'] ) ) ) ) { 1325 $post_meta['form_date'] = null;1333 #$post_meta['form_date'] = null; 1326 1334 $error = $error | 2**LENDINGQ_DATE_NONE; 1327 1335 } else { … … 1334 1342 // time on form 1335 1343 if( !is_array( $post_meta['form_time'] ) and empty( current( array_filter( $post_meta['form_time'] ) ) ) ) { 1336 $post_meta['form_time'] = null;1344 #$post_meta['form_time'] = null; 1337 1345 $error = $error | 2**LENDINGQ_TIME_NONE; 1338 1346 } else { … … 1745 1753 $form[$val] = ( !isset( $meta[$val] ) ) ? null : htmlspecialchars( current( array_filter( $meta[$val] ) ) ); 1746 1754 } // END foreach( [ 'name', 'card' ] as $val ) 1755 1747 1756 $item_list = $this::get_items(); 1748 1757 if( ( isset( $meta['item_id'] ) and !empty( current( array_filter( $meta['item_id'] ) ) ) ) and -
lendingq/trunk/readme.txt
r2334348 r2346122 33 33 34 34 == Changelog == 35 = 0.97 = 36 * BUGFIX: Check out list was in reverse order! 37 * BUGFIX: Made it so that if you draft a ticket with a bad entry, you can still edit the waiting date and time, if applicable. 38 35 39 = 0.96.3 = 36 40 * Added in Bulk Delete in stock to make pagination reset work again. 37 * Changed how I pull meta data. Big change to the code that shouldn't do anything to the user side except make imports work.38 41 39 42 = 0.96.2 = -
lendingq/trunk/template_check_out_list.php
r2334348 r2346122 43 43 #echo '<article style="-webkit-column-width: 250px; -moz-column-width: 250px; column-width: 250px;">'; 44 44 echo "<div style=\"display:flex; flex-flow: row wrap;\">"; 45 45 46 foreach( $locations as $lkey => $loc ) { 46 47 if( !empty( $filter) ) { … … 53 54 continue; 54 55 } 56 55 57 if( !empty( $hold_list['waiting_list'][$type_key][$lkey] ) ) { 56 58 if( !empty( $stock['available'][$type_key][$lkey] ) ) { 59 57 60 $holds = array_slice( $hold_list['dates'], 0, count( $stock['available'][$type_key][$lkey] ), true ); 58 61 } -
lendingq/trunk/template_post_hold.php
r2325180 r2346122 99 99 </tr> 100 100 <?php 101 } elseif( $post->post_status == 'waiting_list' ) {101 } elseif( $post->post_status == 'waiting_list' or !empty( $form['form_date'] ) or !empty( $form['form_time'] ) ) { 102 102 ?> 103 103 <tr>
Note: See TracChangeset
for help on using the changeset viewer.