Changeset 3147211
- Timestamp:
- 09/05/2024 04:43:20 PM (19 months ago)
- Location:
- salon-booking-system/trunk
- Files:
-
- 5 edited
-
js/salon.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
salon.php (modified) (2 diffs)
-
src/SLN/Shortcode/Salon/DetailsStep.php (modified) (1 diff)
-
views/settings/_tab_booking_holiday_rules.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
salon-booking-system/trunk/js/salon.js
r3142993 r3147211 2088 2088 var datetimepicker = $(".sln_timepicker div").data("datetimepicker"); 2089 2089 2090 var DtHours = datetimepicker.viewDate.getUTCHours(); 2091 DtHours = DtHours >= 10 ? DtHours : "0" + DtHours; 2092 var DtMinutes = datetimepicker.viewDate.getUTCMinutes(); 2093 DtMinutes = DtMinutes >= 10 ? DtMinutes : "0" + DtMinutes; 2094 var DtTime = DtHours + ":" + DtMinutes; 2090 if (salon.time_format.includes('H:iip')) { 2091 var DtHours = datetimepicker.viewDate.getUTCHours(); 2092 var DtHoursOld = DtHours; 2093 var DtHours = DtHours >= 13 ? DtHours % 12 : DtHours; 2094 DtHours = DtHours >= 10 ? DtHours : "0" + DtHours; 2095 var DtMinutes = datetimepicker.viewDate.getUTCMinutes(); 2096 DtMinutes = DtMinutes >= 10 ? DtMinutes : "0" + DtMinutes; 2097 var DtTime = DtHours + ":" + DtMinutes; 2098 DtTime = DtHoursOld >= 12 ? DtTime + "pm" : DtTime + "am"; 2099 } else { 2100 var DtHours = datetimepicker.viewDate.getUTCHours(); 2101 DtHours = DtHours >= 10 ? DtHours : "0" + DtHours; 2102 var DtMinutes = datetimepicker.viewDate.getUTCMinutes(); 2103 DtMinutes = DtMinutes >= 10 ? DtMinutes : "0" + DtMinutes; 2104 var DtTime = DtHours + ":" + DtMinutes; 2105 } 2095 2106 let dateString = $('#sln_timepicker_viewdate').text().split('|')[0] + ' | ' + DtTime; 2096 2107 $("#sln_timepicker_viewdate").text(dateString); -
salon-booking-system/trunk/readme.txt
r3145954 r3147211 5 5 Tested up to: 6.5 6 6 Requires PHP: 7.4.8 7 Stable tag: 10.9. 27 Stable tag: 10.9.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 396 396 == Changelog == 397 397 398 05.09.2024 399 400 * Fixed issue with holidays rules 401 398 402 02.09.2024 399 403 -
salon-booking-system/trunk/salon.php
r3145954 r3147211 4 4 Plugin Name: Salon Booking Wordpress Plugin - Free Version 5 5 Description: Let your customers book you services through your website. Perfect for hairdressing salons, barber shops and beauty centers. 6 Version: 10.9. 26 Version: 10.9.3 7 7 Plugin URI: http://salonbookingsystem.com/ 8 8 Author: Salon Booking System … … 44 44 define('SLN_PLUGIN_DIR', untrailingslashit(dirname(__FILE__))); 45 45 define('SLN_PLUGIN_URL', untrailingslashit(plugins_url('', __FILE__))); 46 define('SLN_VERSION', '10.9. 2');46 define('SLN_VERSION', '10.9.3'); 47 47 define('SLN_STORE_URL', 'https://salonbookingsystem.com'); 48 48 define('SLN_AUTHOR', 'Salon Booking'); -
salon-booking-system/trunk/src/SLN/Shortcode/Salon/DetailsStep.php
r3030174 r3147211 260 260 261 261 public function getTitleKey(){ 262 if(!is_user_logged_in() ){262 if(!is_user_logged_in() && !isset($this->getPlugin()->getSEttings()->get('custom_texts')['Checkout'])){ 263 263 if($this->getPlugin()->getSettings()->get('enabled_force_guest_checkout')){ 264 264 return 'Returning customer?'; -
salon-booking-system/trunk/views/settings/_tab_booking_holiday_rules.php
r3145954 r3147211 17 17 ?> 18 18 <div id="sln-holidays_days" class="sln-box sln-box--main sln-booking-holiday-rules sln-box--haspanel"> 19 <h2 class="sln-box-title sln-box__paneltitle"><?php echo esc_attr($label); ?> <span class="block"><?php echo $block ?></span></h2> 20 <div class="collapse sln-box__panelcollapse"> 21 <div class="row"> 22 <div class="sln-booking-holiday-rules-wrapper"> 23 <?php $n = 0; 24 foreach ($holidays as $k => $row): $n++;?> 25 <?php echo $plugin->loadView( 26 'settings/_holiday_row', 27 array( 28 'prefix' => esc_attr($base) . "[$k]", 29 'row' => esc_attr($row), 30 'rulenumber' => esc_attr($n), 31 ) 32 ); ?> 33 <?php endforeach?> 34 </div> 35 <div class="col-xs-12 sln-box__actions"> 36 <button data-collection="addnewholiday" 37 class="sln-btn sln-btn--main sln-btn--big sln-btn--icon sln-icon--file"><?php esc_html_e( 38 'Add new', 39 'salon-booking-system' 40 )?> 41 </button> 42 </div> 43 <div data-collection="prototype" data-count="<?php echo count($holidays) ?>"> 44 <?php echo $plugin->loadView( 45 'settings/_holiday_row', 46 array( 47 'prefix' => $base . "[__new__]", 48 'row' => array(), 49 'rulenumber' => 'New', 50 ) 51 ); ?> 52 </div> 53 </div> 54 </div> 19 <h2 class="sln-box-title sln-box__paneltitle"><?php echo esc_attr($label); ?> <span class="block"><?php echo $block ?></span></h2> 20 <div class="collapse sln-box__panelcollapse"> 21 <div class="row"> 22 <div class="sln-booking-holiday-rules-wrapper"> 23 <?php $n = 0; 24 foreach ($holidays as $k => $row): 25 $n++; 26 echo $plugin->loadView( 27 'settings/_holiday_row', 28 array( 29 'prefix' => esc_attr($base) . "[$k]", 30 'row' => $row, 31 'rulenumber' => esc_attr($n), 32 ) 33 ); 34 endforeach; 35 ?> 36 </div> 37 <div class="col-xs-12 sln-box__actions"> 38 <button data-collection="addnewholiday" 39 class="sln-btn sln-btn--main sln-btn--big sln-btn--icon sln-icon--file"><?php esc_html_e('Add new','salon-booking-system')?> 40 </button> 41 </div> 42 <div data-collection="prototype" data-count="<?php echo count($holidays) ?>"> 43 <?php echo $plugin->loadView( 44 'settings/_holiday_row', 45 array( 46 'prefix' => $base . "[__new__]", 47 'row' => array(), 48 'rulenumber' => 'New', 49 ) 50 ); ?> 51 </div> 52 </div> 53 </div> 55 54 </div> 56 55
Note: See TracChangeset
for help on using the changeset viewer.