Changeset 2857158
- Timestamp:
- 01/30/2023 03:13:05 PM (3 years ago)
- Location:
- lendingq
- Files:
-
- 46 added
- 5 edited
-
tags/0.98 (added)
-
tags/0.98/includes (added)
-
tags/0.98/includes/jquery.validate.min.js (added)
-
tags/0.98/languages (added)
-
tags/0.98/lendingq.css (added)
-
tags/0.98/lendingq.js (added)
-
tags/0.98/lendingq.php (added)
-
tags/0.98/readme.txt (added)
-
tags/0.98/template_cancel_hold_form.php (added)
-
tags/0.98/template_cancel_stock_form.php (added)
-
tags/0.98/template_cancel_stock_form_checked_out.php (added)
-
tags/0.98/template_check_in_form.php (added)
-
tags/0.98/template_check_in_list.php (added)
-
tags/0.98/template_check_out_form.php (added)
-
tags/0.98/template_check_out_list.php (added)
-
tags/0.98/template_contact_hold_form.php (added)
-
tags/0.98/template_no_item_types.php (added)
-
tags/0.98/template_no_locations.php (added)
-
tags/0.98/template_no_stock.php (added)
-
tags/0.98/template_post_hold.php (added)
-
tags/0.98/template_post_item.php (added)
-
tags/0.98/template_quick_widget.php (added)
-
tags/0.98/widget.css (added)
-
tags/1.0 (added)
-
tags/1.0/includes (added)
-
tags/1.0/includes/jquery.validate.min.js (added)
-
tags/1.0/languages (added)
-
tags/1.0/lendingq.css (added)
-
tags/1.0/lendingq.js (added)
-
tags/1.0/lendingq.php (added)
-
tags/1.0/readme.txt (added)
-
tags/1.0/template_cancel_hold_form.php (added)
-
tags/1.0/template_cancel_stock_form.php (added)
-
tags/1.0/template_cancel_stock_form_checked_out.php (added)
-
tags/1.0/template_check_in_form.php (added)
-
tags/1.0/template_check_in_list.php (added)
-
tags/1.0/template_check_out_form.php (added)
-
tags/1.0/template_check_out_list.php (added)
-
tags/1.0/template_contact_hold_form.php (added)
-
tags/1.0/template_no_item_types.php (added)
-
tags/1.0/template_no_locations.php (added)
-
tags/1.0/template_no_stock.php (added)
-
tags/1.0/template_post_hold.php (added)
-
tags/1.0/template_post_item.php (added)
-
tags/1.0/template_quick_widget.php (added)
-
tags/1.0/widget.css (added)
-
trunk/lendingq.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/template_check_in_list.php (modified) (2 diffs)
-
trunk/template_check_out_form.php (modified) (3 diffs)
-
trunk/template_check_out_list.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lendingq/trunk/lendingq.php
r2599442 r2857158 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.986 Version: 1.0 7 7 License: GPLv2 or later 8 8 Text Domain: lendingq … … 981 981 $form_time = current( array_filter( $meta['form_time'] ) ); 982 982 } 983 #preme( $form_time );983 984 984 $waiting_date = strtotime( date_i18n( 'Y-m-d', current( array_filter( $meta['waiting_date'] ) ) ) . ' ' . $form_time ); 985 985 … … 1001 1001 $waiting_date = $val; 1002 1002 $hold_list['dates_nice'][$key] = date_i18n( get_option('date_format'), $waiting_date ) . '<br>' . date_i18n( 'g:i:s a', $waiting_date ); 1003 } 1004 } 1005 1003 } 1004 } 1006 1005 return $hold_list; 1007 1006 } … … 1012 1011 'post_status' => 'any' ]; 1013 1012 $item_list_raw = get_posts( $args ); 1014 1013 1015 1014 $items = []; 1016 1015 foreach( $item_list_raw as $key => $val ) { … … 1027 1026 ]; 1028 1027 } // END foreach( $item_list_raw as $key => $val ) 1028 1029 1029 return $items; 1030 1030 } … … 2052 2052 2053 2053 $hold_list = $this->get_holds(); 2054 2054 2055 2055 2056 $this->show_error(); -
lendingq/trunk/readme.txt
r2599442 r2857158 33 33 34 34 == Changelog == 35 = 1.0 = 36 * BUGFIX: Fixed the sorting for the order check out list so it's correct 37 * BUGFIX: Changed the display in several places from post title to the Item Name 38 35 39 = 0.98 = 36 40 * BUGFIX: If you try to add a hold on an item type that isn't in the stock for that location, the hold will error and go to draft. -
lendingq/trunk/template_check_in_list.php
r2334348 r2857158 29 29 } 30 30 } 31 31 32 uasort($holds, function($a, $b) { 32 33 if ($a['due_date'] == $b['due_date']) { … … 80 81 echo " <td class=\"column-location\">{$locations[$hval['location']]}</td>"; 81 82 echo " <td class=\"column-location\">{$due_date}<br>{$due_message}</td>"; 82 echo " <td class=\"column-wait_date\">{$hval[' name']}</td>";83 echo " <td class=\"column-wait_date\">{$hval['item']['item_name']}</td>"; 83 84 echo " <td class=\"column-check-in\">"; 84 85 echo " <a href=\"{$check_in_link}\">".__( 'Check In', 'lendingq' )."</a> -
lendingq/trunk/template_check_out_form.php
r2332943 r2857158 72 72 $item_list = get_posts( $args ); 73 73 $available = []; 74 $item = $this->get_items(); 75 74 76 foreach( $item_list as $key => $post ) { 75 77 $temp = []; … … 79 81 $item_type = $item_type_raw[0]->slug; 80 82 if( $location == $lend['location'] and $item_type == $lend['item_type'] ) { 81 $available[$post->ID] = $ post;83 $available[$post->ID] = $item[$post->ID][item_name]; 82 84 } 83 85 } … … 87 89 echo '<select name="lending_item" id="lending_item">'; 88 90 foreach( $available as $key => $val ) { 89 echo "<option value=\"{$key}\">{$val ->post_title}</option>";91 echo "<option value=\"{$key}\">{$val}</option>"; 90 92 } 91 93 echo '</select>'; -
lendingq/trunk/template_check_out_list.php
r2346122 r2857158 25 25 } 26 26 } 27 28 29 27 30 ?> 28 31 <div class="wrap"> … … 122 125 # make a list of hold IDS to sort by waiting date 123 126 $hold_ids = array_column( $cur_holds, 'waiting_date', 'post_id' ); 124 ksort( $hold_ids ); 127 128 asort( $hold_ids ); 125 129 $on_deck_ids = array_slice( $hold_ids, count( $cur_stock ), null, TRUE ); 126 130 $hold_ids = array_slice( $hold_ids, 0, count( $cur_stock ), TRUE );
Note: See TracChangeset
for help on using the changeset viewer.