Changeset 2550218
- Timestamp:
- 06/18/2021 05:36:52 AM (5 years ago)
- Location:
- booking-x/trunk
- Files:
-
- 19 edited
-
README.txt (modified) (3 diffs)
-
admin/class-bookingx-admin.php (modified) (7 diffs)
-
admin/css/bookingx-admin.css (modified) (1 diff)
-
admin/settings.php (modified) (1 diff)
-
admin/settings/bkx_biz-view.php (modified) (1 diff)
-
admin/settings/bkx_general-view.php (modified) (1 diff)
-
admin/settings/bkx_payment-view.php (modified) (1 diff)
-
admin/settings/setting-functions.php (modified) (1 diff)
-
admin/settings/settings_save.php (modified) (1 diff)
-
bookingx.php (modified) (2 diffs)
-
includes/class-bookingx-activator.php (modified) (1 diff)
-
includes/class-bookingx.php (modified) (1 diff)
-
includes/core/ajax/class-bkx-ajax-loader.php (modified) (1 diff)
-
includes/core/script/class-bkx-script-loader.php (modified) (3 diffs)
-
public/js/booking-form/bkx-booking-form.js (modified) (2 diffs)
-
templates/single-bkx_addition.php (modified) (1 diff)
-
templates/single-bkx_base.php (modified) (1 diff)
-
templates/single-bkx_seat.php (modified) (1 diff)
-
templates/single.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
booking-x/trunk/README.txt
r2544756 r2550218 5 5 Tested up to: 5.7.2 6 6 Requires PHP: 5.0 7 Stable tag: 1.0. 47 Stable tag: 1.0.5 8 8 License: GPLv2 or later 9 9 License URI: https://booking-x.com/gpl-licence/ … … 134 134 == Upgrade Notice == 135 135 136 = 1.0. 4=137 Improvements to edit booking UI and UX136 = 1.0.5 = 137 Improvements to administration monthly and weekly booking views 138 138 139 139 == Updating == … … 147 147 = 1.0.3 - Adding Sale Price functionality. 2021-20-04 = 148 148 = 1.0.4 - Improvements to edit booking UI and UX. 2021-04-06 = 149 = 1.0.5 - Improvements to administration monthly and weekly booking views. 2021-18-06 = -
booking-x/trunk/admin/class-bookingx-admin.php
r2544756 r2550218 4 4 * 5 5 * @link https://dunskii.com 6 * @since 1.0. 46 * @since 1.0.5 7 7 * 8 8 * @package Bookingx … … 14 14 * The ID of this plugin. 15 15 * 16 * @since 1.0. 416 * @since 1.0.5 17 17 * @access private 18 18 * @var string $plugin_name The ID of this plugin. … … 23 23 * The version of this plugin. 24 24 * 25 * @since 1.0. 425 * @since 1.0.5 26 26 * @access private 27 27 * @var string $version The current version of this plugin. … … 34 34 * @param string $plugin_name The name of this plugin. 35 35 * @param string $version The version of this plugin. 36 * @since 1.0. 436 * @since 1.0.5 37 37 */ 38 38 public function __construct( $plugin_name = null, $version = null ) { … … 622 622 * Register the stylesheets for the admin area. 623 623 * 624 * @since 1.0. 4624 * @since 1.0.5 625 625 */ 626 626 public function enqueue_styles() { … … 644 644 * Register the JavaScript for the admin area. 645 645 * 646 * @since 1.0. 4646 * @since 1.0.5 647 647 */ 648 648 public function enqueue_scripts() { … … 1211 1211 public function bkx_generate_listing_view( $type ) { 1212 1212 if ( 'weekly' === $type || 'monthly' === $type ) { 1213 $default_view = 'weekly' === $type ? ' agendaWeek' : 'month';1213 $default_view = 'weekly' === $type ? 'timeGridWeek' : 'dayGridMonth'; 1214 1214 // $bkx_calendar_json_data = bkx_crud_option_multisite( 'bkx_calendar_json_data' ); 1215 1215 $bkx_booking = new BkxBooking(); 1216 1216 $search['booking_date'] = date( 'Y-m-d' ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date 1217 $search['by'] = ' this_month';1217 $search['by'] = 'future'; 1218 1218 $search['type'] = $type; 1219 1219 1220 $bkx_calendar_json_data = $bkx_booking->CalendarJsonData( $search ); 1221 1220 1222 1221 1223 if ( isset( $bkx_calendar_json_data ) && ! empty( $bkx_calendar_json_data ) ) { 1222 1224 ?> 1223 jQuery(document).ready(function() { 1224 jQuery('#calendar').fullCalendar({ 1225 plugins: [ 'interaction', 'dayGrid', 'timeGrid' ], 1226 header: { 1227 left: 'prev,next', 1228 center: 'title', 1229 right: 'dayGridMonth,timeGridWeek,timeGridDay' 1230 }, 1231 defaultView: '<?php echo esc_attr( $default_view ); ?>', 1232 defaultDate: '<?php echo date( 'Y-m-d' ); //phpcs:ignore ?>', 1233 navLinks: true, // can click day/week names to navigate views 1234 editable: false, 1235 eventLimit: true, 1236 viewRender: function(currentView){ 1237 var minDate = moment(), 1238 maxDate = moment().add(2,'weeks'); 1239 // Past 1240 if (minDate >= currentView.start && minDate <= currentView.end) { 1241 jQuery(".fc-prev-button").prop('disabled', true); 1242 jQuery(".fc-prev-button").addClass('fc-state-disabled'); 1243 } 1244 else { 1245 jQuery(".fc-prev-button").removeClass('fc-state-disabled'); 1246 jQuery(".fc-prev-button").prop('disabled', false); 1247 } 1248 1249 }, 1250 events: [<?php echo $bkx_calendar_json_data; //phpcs:ignore ?>] 1251 }); 1252 }); 1225 1226 document.addEventListener('DOMContentLoaded', function() { 1227 var calendarEl = document.getElementById('calendar'); 1228 1229 var calendar = new FullCalendar.Calendar(calendarEl, { 1230 initialDate: '<?php echo date('Y-m-d'); ?>', 1231 initialView: '<?php echo $default_view;?>', 1232 nowIndicator: true, 1233 headerToolbar: { 1234 left: 'prev,next today', 1235 center: 'title', 1236 right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek' 1237 }, 1238 navLinks: true, // can click day/week names to navigate views 1239 editable: true, 1240 selectable: true, 1241 selectMirror: true, 1242 dayMaxEvents: true, // allow "more" link when too many events 1243 events: [ 1244 <?php echo $bkx_calendar_json_data; //phpcs:ignore ?> 1245 ] 1246 }); 1247 1248 calendar.render(); 1249 }); 1253 1250 <?php 1254 1251 } -
booking-x/trunk/admin/css/bookingx-admin.css
r2544756 r2550218 110 110 #calendar { 111 111 max-width: 900px; 112 width: 100%; 112 113 margin: 0 auto; 113 114 background: #fff; -
booking-x/trunk/admin/settings.php
r2544756 r2550218 4 4 * 5 5 * @package Bookingx/admin 6 * @since 1.0. 46 * @since 1.0.5 7 7 */ 8 8 -
booking-x/trunk/admin/settings/bkx_biz-view.php
r2544756 r2550218 4 4 * 5 5 * @package Bookingx/admin 6 * @since 1.0. 46 * @since 1.0.5 7 7 */ 8 8 -
booking-x/trunk/admin/settings/bkx_general-view.php
r2544756 r2550218 4 4 * 5 5 * @package Bookingx/admin 6 * @since 1.0. 46 * @since 1.0.5 7 7 */ 8 8 -
booking-x/trunk/admin/settings/bkx_payment-view.php
r2544756 r2550218 4 4 * 5 5 * @package Bookingx/admin 6 * @since 1.0. 46 * @since 1.0.5 7 7 */ 8 8 -
booking-x/trunk/admin/settings/setting-functions.php
r2544756 r2550218 4 4 * 5 5 * @package Bookingx/admin 6 * @since 1.0. 46 * @since 1.0.5 7 7 */ 8 8 -
booking-x/trunk/admin/settings/settings_save.php
r2544756 r2550218 4 4 * 5 5 * @package Bookingx/admin 6 * @since 1.0. 46 * @since 1.0.5 7 7 */ 8 8 -
booking-x/trunk/bookingx.php
r2544756 r2550218 4 4 * Plugin URI: https://booking-x.com/ 5 5 * Description: Booking X is a booking and appointments plugin for WordPress 6 * Version: 1.0. 46 * Version: 1.0.5 7 7 * Requires at least: 5.0 8 8 * Requires PHP: 5.0 … … 40 40 define( 'BKX_PLUGIN_PUBLIC_URL', BKX_PLUGIN_DIR_URL . 'public' ); 41 41 define( 'BKX_PLUGIN_PUBLIC_PATH', BKX_PLUGIN_DIR_PATH . 'public' ); 42 define( 'BKX_PLUGIN_VER', '1.0. 4' );42 define( 'BKX_PLUGIN_VER', '1.0.5' ); 43 43 define( 'BKX_BLOCKS_ASSETS', BKX_PLUGIN_DIR_URL . 'includes/core/blocks/assets/' ); 44 44 define( 'BKX_BLOCKS_ASSETS_BASE_PATH', BKX_PLUGIN_DIR_PATH . "includes\core\blocks\assets" ); -
booking-x/trunk/includes/class-bookingx-activator.php
r2544756 r2550218 5 5 * This class defines all code necessary to run during the plugin's activation. 6 6 * 7 * @since 1.0. 47 * @since 1.0.5 8 8 * @package Bookingx 9 9 * @subpackage Bookingx/includes -
booking-x/trunk/includes/class-bookingx.php
r2544756 r2550218 22 22 * version of the plugin. 23 23 * 24 * @since 1.0. 424 * @since 1.0.5 25 25 * @package Bookingx 26 26 * @subpackage Bookingx/includes -
booking-x/trunk/includes/core/ajax/class-bkx-ajax-loader.php
r2544756 r2550218 158 158 } else { 159 159 $user_data = wp_update_user( 160 array(161 'ID' => $user_id,162 'first_name' => $first_name,163 'last_name' => $last_name,164 'user_email' => $email_address,165 )160 array( 161 'ID' => $user_id, 162 'first_name' => $first_name, 163 'last_name' => $last_name, 164 'user_email' => $email_address, 165 ) 166 166 ); 167 167 if ( is_wp_error( $user_data ) ) { -
booking-x/trunk/includes/core/script/class-bkx-script-loader.php
r2496574 r2550218 93 93 ), 94 94 'fullcalendar' => array( 95 'src' => BKX_PLUGIN_PUBLIC_URL . '/js/fullcalendar/ min.js',95 'src' => BKX_PLUGIN_PUBLIC_URL . '/js/fullcalendar/lib/main.js', 96 96 'deps' => array( 'jquery' ), 97 97 'version' => BKX_PLUGIN_VER, … … 144 144 ),*/ 145 145 'fullcalendarcss' => array( 146 'src' => BKX_PLUGIN_PUBLIC_URL . '/ css/fullcalendar/min.css',146 'src' => BKX_PLUGIN_PUBLIC_URL . '/js/fullcalendar/lib/main.css', 147 147 'deps' => array( 'style-main' ), 148 148 'version' => BKX_PLUGIN_VER, … … 202 202 ), 203 203 'fullcalendarcss' => array( 204 'src' => BKX_PLUGIN_PUBLIC_URL . '/ css/fullcalendar/min.css',204 'src' => BKX_PLUGIN_PUBLIC_URL . '/js/fullcalendar/lib/main.css', 205 205 'deps' => array( 'style-main' ), 206 206 'version' => BKX_PLUGIN_VER, -
booking-x/trunk/public/js/booking-form/bkx-booking-form.js
r2544756 r2550218 351 351 e.preventDefault(); 352 352 block($('div.step-4')); 353 bkx_error_flag.val(0);353 //bkx_error_flag.val(0); 354 354 booking_form.validate_form_fields(); 355 355 var user_time_zone = $('#bkx_user_time_zone').val(); … … 394 394 }); 395 395 var submission_skip = false; 396 if ( GetCurrentStep() == 4&& 1 === flag() && 1 === GatewayFlag() && ( booking_form.is_prepayment == true || booking_form.is_prepayment == 'true' ) ) {396 if ( (4 ===GetCurrentStep() || '4' ===GetCurrentStep() ) && 1 === flag() && 1 === GatewayFlag() && ( booking_form.is_prepayment == true || booking_form.is_prepayment == 'true' ) ) { 397 397 submission_skip = true; 398 398 } 399 400 console.log(submission_skip) 399 if( $('#bkx_gateway_flag').val() == 'skip' ){ 400 submission_skip = true; 401 } 401 402 setTimeout(function () { 402 403 block($('div.step-4')); -
booking-x/trunk/templates/single-bkx_addition.php
r2544756 r2550218 5 5 * @package Bookingx 6 6 * @subpackage bookingx 7 * @since 1.0. 47 * @since 1.0.5 8 8 */ 9 9 -
booking-x/trunk/templates/single-bkx_base.php
r2544756 r2550218 5 5 * @package Bookingx 6 6 * @subpackage bookingx 7 * @since 1.0. 47 * @since 1.0.5 8 8 */ 9 9 -
booking-x/trunk/templates/single-bkx_seat.php
r2544756 r2550218 5 5 * @package Bookingx 6 6 * @subpackage bookingx 7 * @since 1.0. 47 * @since 1.0.5 8 8 */ 9 9 -
booking-x/trunk/templates/single.php
r2544756 r2550218 5 5 * @package Bookingx 6 6 * @subpackage bookingx 7 * @since 1.0. 47 * @since 1.0.5 8 8 */ 9 9
Note: See TracChangeset
for help on using the changeset viewer.