Changeset 3146510
- Timestamp:
- 09/04/2024 02:33:34 PM (7 months ago)
- Location:
- booking-ultra-pro
- Files:
-
- 394 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
booking-ultra-pro/trunk/addons/maintenance/admin/admin.php
r3139187 r3146510 198 198 endforeach; 199 199 foreach ( $links as $link ) 200 echo escape_with_custom_html($link);200 echo $link; 201 201 } 202 202 -
booking-ultra-pro/trunk/addons/maintenance/admin/panels/manage.php
r3139187 r3146510 22 22 $html = '<div class="bup-ultra-error">'. __("Some appointment(s) are linked to a non-existent service.", 'booking-ultra-pro').'</div>'; 23 23 24 echo escape_with_custom_html($html);24 echo $html ; 25 25 ?> 26 26 … … 68 68 <td><?php echo esc_attr($appointment->booking_id); ?></td> 69 69 70 <td><?php echo esc_attr(date($date_format, strtotime($date_from))); ?> </td>70 <td><?php echo date($date_format, strtotime($date_from)); ?> </td> 71 71 72 72 … … 75 75 <td><?php echo esc_attr($staff->display_name); ?></td> 76 76 <td>N/A </td> 77 <td><?php echo esc_attr($booking_time); ?></td>77 <td><?php echo $booking_time; ?></td> 78 78 79 79 <td><?php echo $bookingultrapro->appointment->get_status_legend($appointment->booking_status); ?></td> … … 130 130 $html = '<div class="bup-ultra-error">'. __("Some appointment(s) are linked to a non-existent service.", 'booking-ultra-pro').'</div>'; 131 131 132 echo escape_with_custom_html($html);132 echo $html ; 133 133 ?> 134 134 … … 176 176 <td><?php echo esc_attr($appointment->booking_id); ?></td> 177 177 178 <td><?php echo esc_attr(date($date_format, strtotime($date_from))); ?> </td>178 <td><?php echo date($date_format, strtotime($date_from)); ?> </td> 179 179 180 180 … … 183 183 <td>N/A</td> 184 184 185 <td><?php echo esc_attr($booking_time); ?></td>185 <td><?php echo $booking_time; ?></td> 186 186 187 187 <td><?php echo $bookingultrapro->appointment->get_status_legend($appointment->booking_status); ?></td> -
booking-ultra-pro/trunk/admin/scripts/admin.js
r3139187 r3146510 1261 1261 1262 1262 if(BUPdayslimitarray.version == 1 && BUPdayslimitarray.dayslimit_key != ''){ 1263 jQuery( ".bupro-datepicker" ).datepicker({ 1263 jQuery( ".bupro-datepicker" ).datepicker({ 1264 1264 showOtherMonths: true, 1265 1265 dateFormat: bup_admin_v98.bb_date_picker_format, … … 3794 3794 function bup_edit_appointment_inline(appointment_id, conf_message, show_conf_message) 3795 3795 { 3796 3797 3796 jQuery("#bup-spinner").show(); 3798 3797 … … 3803 3802 "appointment_id": appointment_id,_ajax_nonce: bup_admin_v98.nonce, }, 3804 3803 3805 success: function(data){ 3806 3804 success: function(data){ 3807 3805 jQuery("#bup-appointment-edit-box" ).html( data ); 3808 3806 jQuery("#bup-appointment-edit-box" ).dialog( "open" ); -
booking-ultra-pro/trunk/admin/scripts/booking-ultra-calendar.js
r2945485 r3146510 154 154 155 155 var appointment_id = jQuery(this).attr("appointment-id"); 156 var appointment_status = jQuery(this).attr("appointment-status"); 156 var appointment_status = jQuery(this).attr("appointment-status"); 157 alert(appointment_id); 157 158 158 159 jQuery("#bup-spinner").show(); … … 170 171 171 172 success: function(data){ 172 173 173 jQuery("#bup-app-status" ).html( data ); 174 174 jQuery("#bup-td-status" ).html( data ); -
booking-ultra-pro/trunk/admin/scripts/bup-calendar.js
r3139187 r3146510 62 62 63 63 e.preventDefault(); 64 jQuery("#bup-spinner").show(); 64 jQuery("#bup-spinner").show(); 65 65 66 66 var appointment_id = jQuery(this).attr("appointment-id"); 67 bup_edit_appointment_inline(appointment_id,null,'no'); 67 bup_edit_appointment_inline(appointment_id,null,'no'); 68 68 69 69 70 e.preventDefault(); -
booking-ultra-pro/trunk/admin/tabs/appointments.php
r3139187 r3146510 321 321 <td><?php echo esc_attr($staff_display_name); ?></td> 322 322 <td><?php echo esc_attr($appointment->service_title); ?> </td> 323 <td><?php echo esc_attr($booking_time); ?></td>323 <td><?php echo $booking_time; ?></td> 324 324 325 325 <td><?php echo $bookingultrapro->appointment->get_status_legend($appointment->booking_status); ?></td> -
booking-ultra-pro/trunk/admin/tabs/bookingultra.php
r3144068 r3146510 218 218 219 219 220 <td><?php echo esc_attr(date($date_format, strtotime($date_from))); ?> </td>220 <td><?php echo date($date_format, strtotime($date_from)); ?> </td> 221 221 222 222 <?php if(isset($bup_filter) && isset($bupultimate)){?> … … 229 229 <td><?php echo esc_attr($staff_display_name); ?></td> 230 230 <td><?php echo esc_attr($appointment->service_title); ?> </td> 231 <td><?php echo esc_attr($booking_time); ?></td>231 <td><?php echo $booking_time; ?></td> 232 232 233 233 <td id="bup-td-status"><?php echo $bookingultrapro->appointment->get_status_legend($appointment->booking_status); ?></td> -
booking-ultra-pro/trunk/admin/templates/edit_appointment.php
r3139187 r3146510 21 21 <div class="bup-adm-new-appointment bup-adm-schedule-info-bar"> 22 22 23 <strong><?php esc_html_e('Created on : ','booking-ultra-pro')?></strong> <?php echo date('m/d/Y', strtotime($appointment->booking_date));?> | <strong><?php esc_html_e('Appointment Date: ','booking-ultra-pro');?></strong> <?php echo esc_attr($booking_day);?> <?php esc_html_e('at ','booking-ultra-pro');?> <?php echo escape_with_custom_html($booking_time);?> | <strong><?php esc_html_e('Client: ','booking-ultra-pro');?></strong> <?php echo esc_attr($client->ID);?>, <?php echo esc_attr($client->display_name);?> (<?php echo esc_attr($client->user_email);?>) (<?php echo esc_attr(get_user_meta($client->id,"reg_telephone", true));?>)23 <strong><?php esc_html_e('Created on : ','booking-ultra-pro')?></strong> <?php echo date('m/d/Y', strtotime($appointment->booking_date));?> | <strong><?php esc_html_e('Appointment Date: ','booking-ultra-pro');?></strong> <?php echo esc_attr($booking_day);?> <?php esc_html_e('at ','booking-ultra-pro');?> <?php echo $booking_time;?> | <strong><?php esc_html_e('Client: ','booking-ultra-pro');?></strong> <?php echo esc_attr($client->ID);?>, <?php echo esc_attr($client->display_name);?> (<?php echo esc_attr($client->user_email);?>) (<?php echo esc_attr(get_user_meta($client->id,"reg_telephone", true));?>) 24 24 25 25 </div> 26 27 26 <div class="bup-adm-new-appointment"> 28 27 … … 88 87 89 88 90 89 91 90 </div> 92 91 … … 112 111 <div class="bup-adm-extrainfo-box" id="bup-additioninfo-cont-res" > 113 112 114 <?php echo $bookingultrapro->appointment->get_appointment_edition_form_fields($appointment_id);?>113 <?php echo $bookingultrapro->appointment->get_appointment_edition_form_fields($appointment_id);?> 115 114 116 115 </div> 117 116 118 117 <div class="bup-adm-check-av-button" id="bup-addpayment-box-btn" > 119 118 … … 122 121 </div> 123 122 </div> 124 125 123 <?php if(isset($bupcomplement)){ 126 124 -
booking-ultra-pro/trunk/classes/bookingultra.admin.php
r3139187 r3146510 624 624 endforeach; 625 625 foreach ( $links as $link ) 626 echo escape_with_custom_html($link);626 echo $link; 627 627 } 628 628 … … 2088 2088 } 2089 2089 echo "Domain: " . esc_url($domain); 2090 echo escape_with_custom_html($html);2090 echo $html; 2091 2091 die(); 2092 2092 } … … 2134 2134 } 2135 2135 } 2136 echo escape_with_custom_html($html);2136 echo $html; 2137 2137 wp_die(); 2138 2138 } -
booking-ultra-pro/trunk/classes/bookingultra.appointment.php
r3139187 r3146510 57 57 } 58 58 59 echo escape_with_custom_html($html);59 echo $html; 60 60 61 61 } … … 350 350 { 351 351 global $wpdb, $bookingultrapro; 352 $custom_form = $this->get_booking_meta($booking_id, 'custom_form'); 353 354 352 $custom_form = $this->get_booking_meta($booking_id, 'custom_form'); 355 353 $form_id = ''; 356 354 $display =''; 357 355 if(isset($_POST["form_id"])){$form_id = esc_attr($_POST["form_id"]);} 358 359 356 /* Get end of array */ 360 if($custom_form!="" || $form_id !="" )357 if($custom_form!="" || $form_id !="" ) 361 358 { 362 359 //do we have a pre-set value in the get? … … 365 362 $custom_form =$form_id; 366 363 } 367 368 364 $custom_form = 'bup_profile_fields_'.$custom_form; 369 365 $array = get_option($custom_form); … … 376 372 377 373 } 378 374 379 375 380 376 foreach($array as $key=>$field) … … 386 382 } 387 383 } 388 384 389 385 $i_array_end = end($array); 390 386 391 387 if(isset($i_array_end['position'])) 392 388 { 393 389 $array_end = $i_array_end['position']; 394 390 395 391 if (isset($array[$array_end]['type']) && $array[$array_end]['type'] == 'seperator') 396 392 { … … 401 397 } 402 398 } 403 404 399 405 400 /*Display custom profile fields added by the user*/ 406 401 foreach($array as $key => $field) … … 427 422 $required_text = '(*)'; 428 423 } 424 429 425 430 426 … … 437 433 438 434 } 439 440 435 441 436 //check if display emtpy … … 443 438 if ($type == 'usermeta' && isset($array[$key]['show_in_register']) && $array[$key]['show_in_register'] == 1) 444 439 { 445 446 440 $display .= '<div class="bup-profile-field">'; 447 441 … … 626 620 $display .= '</div>'; 627 621 $display .= '</div>'; 628 622 629 623 } 630 624 } //end for each 631 632 return $display; 625 echo $display; 626 627 die(); 633 628 } 634 629 … … 723 718 724 719 global $wpdb, $bookingultrapro; 725 $booking_id =esc_ sql($booking_id);720 $booking_id =esc_attr($booking_id); 726 721 $key = esc_sql($key); 722 727 723 728 724 $html=''; … … 737 733 $rows = $wpdb->get_results($sql); 738 734 735 739 736 // echo $sql ; 740 737 … … 745 742 foreach ( $rows as $row ) 746 743 { 747 $html =stripslashes($row->meta_booking_value); 744 $html =stripslashes($row->meta_booking_value); 748 745 749 746 } … … 843 840 } 844 841 845 echo escape_with_custom_html($html);842 echo $html; 846 843 die(); 847 844 … … 902 899 903 900 904 echo escape_with_custom_html($html);901 echo $html; 905 902 die(); 906 903 … … 1069 1066 $html .= '<p>'.__('Cost: ','booking-ultra-pro').$currency.$amount.'</p>'; 1070 1067 1071 echo escape_with_custom_html($html);1068 echo $html; 1072 1069 die(); 1073 1070 … … 1166 1163 1167 1164 1168 echo escape_with_custom_html($html);1165 echo $html; 1169 1166 die(); 1170 1167 … … 1368 1365 } 1369 1366 1370 echo escape_with_custom_html($html);1367 echo $html; 1371 1368 } 1372 1369 … … 1886 1883 1887 1884 1888 echo escape_with_custom_html($html);1885 echo $html; 1889 1886 die(); 1890 1887 … … 1917 1914 } 1918 1915 1919 echo escape_with_custom_html($html);1916 echo $html; 1920 1917 die(); 1921 1918 … … 1961 1958 $appointment_id = esc_attr($_POST['appointment_id']); 1962 1959 1963 $sql = $wpdb->prepare('UPDATE ' . $wpdb->prefix . 'bup_bookings SET booking_status =% dWHERE booking_id=%d ;',array($status,$appointment_id));1960 $sql = $wpdb->prepare('UPDATE ' . $wpdb->prefix . 'bup_bookings SET booking_status =%s WHERE booking_id=%d ;',array($status,$appointment_id)); 1964 1961 $results = $wpdb->query($sql); 1965 1962 … … 1986 1983 $appointment = $this->get_one($appointment_id); 1987 1984 $html = $this->get_status_legend($appointment->booking_status); 1988 echo escape_with_custom_html($html);1985 echo $html; 1989 1986 die(); 1990 1987 -
booking-ultra-pro/trunk/classes/bookingultra.service.php
r3139187 r3146510 47 47 48 48 49 add_action( 'wp_ajax_ ubp_load_dw_of_staff', array( &$this, 'get_cate_dw_ajax' ));50 add_action( 'wp_ajax_nopriv_ ubp_load_dw_of_staff', array( &$this, 'get_cate_dw_ajax' ));49 add_action( 'wp_ajax_bup_load_dw_of_staff', array( &$this, 'get_cate_dw_ajax' )); 50 add_action( 'wp_ajax_nopriv_bup_load_dw_of_staff', array( &$this, 'get_cate_dw_ajax' )); 51 51 add_action( 'wp_ajax_get_cate_dw_admin_ajax', array( &$this, 'get_cate_dw_admin_ajax' )); 52 52 add_action( 'wp_ajax_ubp_check_adm_availability', array( &$this, 'ubp_check_adm_availability' )); … … 512 512 $html =''; 513 513 $html .= $this->bup_get_shopping_cart($template_id); 514 echo escape_with_custom_html($html);514 echo $html; 515 515 die(); 516 516 … … 650 650 { 651 651 652 echo escape_with_custom_html($html);652 echo $html; 653 653 //echo " ajax"; 654 654 die(); … … 1006 1006 $html .= '<p>'.$message.'</p>'; 1007 1007 1008 echo escape_with_custom_html($html);1008 echo $html ; 1009 1009 1010 1010 die(); … … 1063 1063 { 1064 1064 $html .='<p>'.__("Please select a date.",'booking-ultra-pro').'</p>'; 1065 echo escape_with_custom_html($html);1065 echo $html; 1066 1066 die(); 1067 1067 … … 1071 1071 { 1072 1072 $html .='<p>'.__("Please select a service.",'booking-ultra-pro').'</p>'; 1073 echo escape_with_custom_html($html);1073 echo $html; 1074 1074 die(); 1075 1075 … … 1381 1381 { 1382 1382 $html .='<p>'.__("Please select a date.",'booking-ultra-pro').'</p>'; 1383 echo escape_with_custom_html($html);1383 echo $html; 1384 1384 die(); 1385 1385 … … 1389 1389 { 1390 1390 $html .='<p>'.__("Please select a service.",'booking-ultra-pro').'</p>'; 1391 echo escape_with_custom_html($html);1391 echo $html; 1392 1392 die(); 1393 1393 … … 3325 3325 } 3326 3326 3327 echo escape_with_custom_html($html);3327 echo $html; 3328 3328 die(); 3329 3329 … … 3358 3358 $html .= '<input type="hidden" id="bup_category_id" value="'.$category_id .'" />' ; 3359 3359 3360 echo escape_with_custom_html($html);3360 echo $html ; 3361 3361 die(); 3362 3362 … … 3388 3388 $html .= '<p id="bup-add-client-message"></p>' ; 3389 3389 3390 echo escape_with_custom_html($html);3390 echo $html ; 3391 3391 die(); 3392 3392 … … 4004 4004 $html .= '</div>' ; 4005 4005 4006 echo escape_with_custom_html($html);4006 echo $html; 4007 4007 4008 4008 die(); … … 4139 4139 function get_cate_dw_admin_ajax() 4140 4140 { 4141 4141 4142 check_ajax_referer('ajax-new_appointment' ); 4142 4143 global $bookingultrapro, $wpdb; … … 4217 4218 4218 4219 4219 echo escape_with_custom_html($html);4220 echo $html; 4220 4221 die(); 4221 4222 … … 4248 4249 $selected = ''; 4249 4250 4250 if($filter_id=='' )4251 if($filter_id==''||$filter_id==0) 4251 4252 { 4252 4253 … … 4302 4303 4303 4304 4304 echo escape_with_custom_html($html);4305 echo $html; 4305 4306 die(); 4306 4307 … … 4351 4352 4352 4353 $category_id = esc_attr($_POST['b_category']); 4353 $filter_id = esc_ sql($_POST['filter_id']);4354 $filter_id = esc_attr($_POST['filter_id']); 4354 4355 $template_id = esc_attr($_POST['template_id']); 4355 4356 … … 4366 4367 $selected = ''; 4367 4368 4368 if($filter_id=='' )4369 { 4370 4371 $sql = ' SELECT serv.*, user.* FROM ' . $wpdb->users . ' user ' ;4372 $sql .= $wpdb->prepare("RIGHT JOIN ".$wpdb->prefix ."bup_service_rates serv ON (serv.rate_service_id = %d )",$category_id);4369 if($filter_id=='' || $filter_id==0) 4370 { 4371 4372 // $sql = ' SELECT serv.*, user.* FROM ' . $wpdb->users . ' user ' ; 4373 // $sql .= $wpdb->prepare("RIGHT JOIN ".$wpdb->prefix ."bup_service_rates serv ON (serv.rate_service_id = %d )",$category_id); 4373 4374 4374 $sql .= $wpdb->prepare(' WHERE user.ID = serv.rate_staff_id AND serv.rate_service_id = %d ',$category_id) ; 4375 $sql .= ' GROUP BY user.ID ' ; 4376 4377 $sql .= ' ORDER BY user.display_name ASC ' ; 4378 4375 // $sql .= $wpdb->prepare(' WHERE user.ID = serv.rate_staff_id AND serv.rate_service_id = %d ',$category_id) ; 4376 // $sql .= ' GROUP BY user.ID ' ; 4377 4378 // $sql .= ' ORDER BY user.display_name ASC ' ; 4379 4380 $sql = $wpdb->prepare( 4381 "SELECT serv.*, user.* 4382 FROM {$wpdb->users} AS user 4383 RIGHT JOIN {$wpdb->prefix}bup_service_rates AS serv 4384 ON (serv.rate_service_id = %d) 4385 WHERE user.ID = serv.rate_staff_id 4386 GROUP BY user.ID 4387 ORDER BY user.display_name ASC", 4388 $category_id 4389 ); 4379 4390 4380 4391 4381 4392 }else{ 4382 4393 4383 $sql = ' SELECT serv.*, user.*, staff_location.* FROM ' . $wpdb->users . ' user ' ;4384 $sql .= $wpdb->prepare("RIGHT JOIN ".$wpdb->prefix ."bup_service_rates serv ON (serv.rate_service_id = %d )",$category_id);4385 $sql .= " RIGHT JOIN ". $wpdb->prefix."bup_filter_staff staff_location ON (staff_location.fstaff_staff_id = user.ID)";4386 4387 $sql .= $wpdb->prepare(" WHERE user.ID = serv.rate_staff_id AND staff_location.fstaff_staff_id = user.ID AND staff_location.fstaff_location_id = %d ",$filter_id) ;4388 4389 $sql .= ' GROUP BY user.ID ' ;4394 // $sql = ' SELECT serv.*, user.*, staff_location.* FROM ' . $wpdb->users . ' user ' ; 4395 // $sql .= $wpdb->prepare("RIGHT JOIN ".$wpdb->prefix ."bup_service_rates serv ON (serv.rate_service_id = %d )",$category_id); 4396 // $sql .= " RIGHT JOIN ". $wpdb->prefix."bup_filter_staff staff_location ON (staff_location.fstaff_staff_id = user.ID)"; 4397 4398 // $sql .= $wpdb->prepare(" WHERE user.ID = serv.rate_staff_id AND staff_location.fstaff_staff_id = user.ID AND staff_location.fstaff_location_id = %d ",$filter_id) ; 4399 4400 // $sql .= ' GROUP BY user.ID ' ; 4390 4401 4391 $sql .= ' ORDER BY user.display_name ASC ' ; 4402 // $sql .= ' ORDER BY user.display_name ASC ' ; 4403 4404 $sql = $wpdb->prepare( 4405 "SELECT serv.*, user.*, staff_location.* 4406 FROM {$wpdb->users} AS user 4407 RIGHT JOIN {$wpdb->prefix}bup_service_rates AS serv 4408 ON (serv.rate_service_id = %d) 4409 RIGHT JOIN {$wpdb->prefix}bup_filter_staff AS staff_location 4410 ON (staff_location.fstaff_staff_id = user.ID) 4411 WHERE user.ID = serv.rate_staff_id 4412 AND staff_location.fstaff_staff_id = user.ID 4413 AND staff_location.fstaff_location_id = %d", 4414 $category_id, 4415 $filter_id 4416 ); 4392 4417 4393 4418 } … … 4395 4420 4396 4421 $users = $wpdb->get_results($sql); 4422 4397 4423 4398 4424 $html = ''; … … 4424 4450 4425 4451 4426 echo escape_with_custom_html($html);4452 echo $html; 4427 4453 die(); 4428 4454 -
booking-ultra-pro/trunk/index.php
r3144052 r3146510 5 5 Description: Booking Plugin for every service provider: dentists, medical services, hair & beauty salons, repair services, event planners, rental agencies, educational services, government agencies, school counsellors and more. This plugin allows you to manage your appointments easily. 6 6 Tested up to: 6.6.1 7 Version: 1.1.1 57 Version: 1.1.16 8 8 Author: Booking Ultra Pro 9 9 Domain Path: /languages -
booking-ultra-pro/trunk/js/bup-front.js
r2768377 r3146510 244 244 jQuery(document).on("change", "#bup-category, #bup-filter-id", function(e) { 245 245 246 247 246 var b_category= jQuery("#bup-category").val(); 248 247 var filter_id= jQuery("#bup-filter-id").val(); … … 265 264 $('#bup-staff option:first-child').text(bup_pro_front.message_wait_staff_box); 266 265 267 266 268 267 jQuery.ajax({ 269 268 type: 'POST', 270 269 url: ajaxurl, 271 data: {"action": " ubp_load_dw_of_staff", "b_category": b_category, "filter_id": filter_id , "template_id": template_id},270 data: {"action": "bup_load_dw_of_staff", "b_category": b_category, "filter_id": filter_id , "template_id": template_id}, 272 271 273 272 success: function(data){ 274 275 273 var res = data; 276 274 jQuery("#bup-staff-booking-list").html(res); … … 687 685 type: 'POST', 688 686 url: ajaxurl, 689 data: {"action": " ubp_load_dw_of_staff", "b_category": b_category, "filter_id": filter_id , "template_id": template_id},687 data: {"action": "bup_load_dw_of_staff", "b_category": b_category, "filter_id": filter_id , "template_id": template_id}, 690 688 691 689 success: function(data){ -
booking-ultra-pro/trunk/readme.txt
r3144052 r3146510 4 4 Requires at least: 4.0 5 5 Tested up to: 6.6.1 6 Stable tag: 1.1.1 56 Stable tag: 1.1.16 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 170 170 171 171 == Changelog == 172 = 1.1.16 (04-09-2024) = 173 * Fix - Appointment edit option not working properly after security updated, fixed. 174 172 175 = 1.1.15 (30-08-2024) = 173 176 * Fix - frontend appointment page showing raw html instead of select service dropdown. -
booking-ultra-pro/trunk/templates/appointment.php
r3144052 r3146510 34 34 35 35 <div class="bup-cart-step-active bup-move-steps" id="bup-step-rounded-1">1</div> 36 <div class="bup-cart-step-text-active"><?php echo esc_attr($bookingultrapro->get_template_label("step1_label",$template_id));?></div>36 <div class="bup-cart-step-text-active"><?php echo $bookingultrapro->get_template_label("step1_label",$template_id);?></div> 37 37 38 38 </div> … … 44 44 45 45 <div class="bup-cart-step-inactive bup-move-steps" id="bup-step-rounded-2">2</div> 46 <div class="bup-cart-step-text-inactive"><?php echo esc_attr($bookingultrapro->get_template_label("step2_label",$template_id));?></div>46 <div class="bup-cart-step-text-inactive"><?php echo $bookingultrapro->get_template_label("step2_label",$template_id);?></div> 47 47 48 48 </div> … … 53 53 54 54 <div class="bup-cart-step-inactive bup-move-steps" id="bup-step-rounded-33">3</div> 55 <div class="bup-cart-step-text-inactive"><?php echo esc_attr($bookingultrapro->get_template_label("step3cart_label",$template_id));?></div>55 <div class="bup-cart-step-text-inactive"><?php echo $bookingultrapro->get_template_label("step3cart_label",$template_id);?></div> 56 56 57 57 </div> … … 62 62 63 63 <div class="bup-cart-step-inactive bup-move-steps" id="bup-step-rounded-3">4</div> 64 <div class="bup-cart-step-text-inactive"><?php echo esc_attr($bookingultrapro->get_template_label("step3_label",$template_id));?></div>64 <div class="bup-cart-step-text-inactive"><?php echo $bookingultrapro->get_template_label("step3_label",$template_id);?></div> 65 65 66 66 </div> … … 72 72 73 73 <div class="bup-cart-step-inactive bup-move-steps" id="bup-step-rounded-4">5</div> 74 <div class="bup-cart-step-text-inactive"><?php echo esc_attr($bookingultrapro->get_template_label("step4_label",$template_id));?></div>74 <div class="bup-cart-step-text-inactive"><?php echo $bookingultrapro->get_template_label("step4_label",$template_id);?></div> 75 75 76 76 … … 91 91 92 92 <div class="bup-cart-step-active bup-move-steps" id="bup-step-rounded-1">1</div> 93 <div class="bup-cart-step-text-active"><?php echo esc_attr($bookingultrapro->get_template_label("step1_label",$template_id)94 );?></div>93 <div class="bup-cart-step-text-active"><?php echo $bookingultrapro->get_template_label("step1_label",$template_id); 94 ?></div> 95 95 96 96 </div> … … 102 102 103 103 <div class="bup-cart-step-inactive bup-move-steps" id="bup-step-rounded-2">2</div> 104 <div class="bup-cart-step-text-inactive"><?php echo esc_attr($bookingultrapro->get_template_label("step2_label",$template_id));?></div>104 <div class="bup-cart-step-text-inactive"><?php echo $bookingultrapro->get_template_label("step2_label",$template_id);?></div> 105 105 106 106 </div> … … 111 111 112 112 <div class="bup-cart-step-inactive bup-move-steps" id="bup-step-rounded-3">3</div> 113 <div class="bup-cart-step-text-inactive"><?php echo esc_attr($bookingultrapro->get_template_label("step3_label",$template_id));?></div>113 <div class="bup-cart-step-text-inactive"><?php echo $bookingultrapro->get_template_label("step3_label",$template_id);?></div> 114 114 115 115 </div> … … 121 121 122 122 <div class="bup-cart-step-inactive bup-move-steps" id="bup-step-rounded-4">4</div> 123 <div class="bup-cart-step-text-inactive"><?php echo esc_attr($bookingultrapro->get_template_label("step4_label",$template_id));?></div>123 <div class="bup-cart-step-text-inactive"><?php echo $bookingultrapro->get_template_label("step4_label",$template_id);?></div> 124 124 125 125 … … 149 149 150 150 151 <label><?php echo esc_attr($bookingultrapro->get_template_label("select_location_label",$template_id));?></label>151 <label><?php echo $bookingultrapro->get_template_label("select_location_label",$template_id);?></label> 152 152 153 153 <?php echo esc_attr($bupcomplement->get_all_locations_front_booking()); … … 167 167 168 168 169 <label><?php echo esc_attr($bookingultrapro->get_template_label("select_service_label",$template_id));?></label>169 <label><?php echo $bookingultrapro->get_template_label("select_service_label",$template_id);?></label> 170 170 171 171 <?php echo $bookingultrapro->service->get_categories_drop_down_public($service_id, $staff_id, $category_ids, $template_id); … … 182 182 <div class="bup-book-info-block1 <?php echo esc_attr($four_colums_class)?>" > 183 183 184 <label><?php echo esc_attr($bookingultrapro->get_template_label("select_date_label",$template_id));?></label>185 <input type="text" class="bupro-datepicker" id="bup-start-date" value="<?php echo escape_with_custom_html(date( $bookingultrapro->get_date_picker_date()), current_time( 'timestamp', 0 ) )?>"/>184 <label><?php echo $bookingultrapro->get_template_label("select_date_label",$template_id);?></label> 185 <input type="text" class="bupro-datepicker" id="bup-start-date" value="<?php echo date( $bookingultrapro->get_date_picker_date(), current_time( 'timestamp', 0 )) ?>"/> 186 186 187 187 … … 192 192 <div class="bup-book-info-block1" > 193 193 194 <label><?php echo esc_attr($bookingultrapro->get_template_label("select_date_to_label",$template_id));?></label>195 <input type="text" class="bupro-datepicker" id="bup-end-date" value="<?php echo escape_with_custom_html(date( $bookingultrapro->get_date_picker_date(), current_time( 'timestamp', 0 ) ))?>"/>194 <label><?php echo $bookingultrapro->get_template_label("select_date_to_label",$template_id);?></label> 195 <input type="text" class="bupro-datepicker" id="bup-end-date" value="<?php echo date( $bookingultrapro->get_date_picker_date(), current_time( 'timestamp', 0 ) )?>"/> 196 196 197 197 … … 203 203 <div class="bup-book-info-block1 <?php echo esc_attr($four_colums_class)?>" id="bup-staff-booking-list" > 204 204 205 <label><?php echo esc_attr($bookingultrapro->get_template_label("select_provider_label",$template_id));?> <a id="bup-provider-tooltip" title="Please Select Service First"><i class="fa fa-question-circle" aria-hidden="true"></i></a> </label>205 <label><?php echo $bookingultrapro->get_template_label("select_provider_label",$template_id);?> <a id="bup-provider-tooltip" title="Please Select Service First"><i class="fa fa-question-circle" aria-hidden="true"></i></a> </label> 206 206 207 207 <select name="bup-staff" id="bup-staff"> … … 232 232 <?php }?> 233 233 234 <span class="bupbtnfind"><button id="bup-btn-next-step1" class="bup-button-submit"><?php echo esc_attr($bookingultrapro->get_template_label("btn_check_availability_button_text",$template_id));?></button></span>234 <span class="bupbtnfind"><button id="bup-btn-next-step1" class="bup-button-submit"><?php echo $bookingultrapro->get_template_label("btn_check_availability_button_text",$template_id);?></button></span> 235 235 236 236 </div> … … 240 240 <div class="bup-book-info-text" id="bup-steps-cont-res" > 241 241 242 <p ><?php echo esc_attr($bookingultrapro->get_template_label("step1_texts",$template_id));?></p>242 <p ><?php echo $bookingultrapro->get_template_label("step1_texts",$template_id);?></p> 243 243 244 244 </div> … … 257 257 <?php }?> 258 258 259 <input type="hidden" id="bup-custom-form-id" name="bup-custom-form-id" value="<?php echo (int)$form_id?>" />259 <input type="hidden" id="bup-custom-form-id" name="bup-custom-form-id" value="<?php echo $form_id?>" /> 260 260 261 261 <?php if($show_location!=1 && isset($bupcomplement)){?> 262 <input type="hidden" id="bup-filter-id" name="bup-filter-id" value="<?php echo (int)$location_id?>" />262 <input type="hidden" id="bup-filter-id" name="bup-filter-id" value="<?php echo $location_id?>" /> 263 263 <?php }?> 264 264 -
booking-ultra-pro/trunk/templates/slots.php
r3139187 r3146510 16 16 17 17 ?> 18 <h3><?php echo escape_with_custom_html(date('l, j F, Y', strtotime($date_from)))?> - <?php echo esc_attr($day_num_of_week)?></h3>18 <h3><?php echo date('l, j F, Y', strtotime($date_from))?> - <?php echo esc_attr($day_num_of_week)?></h3> 19 19 20 20 ?> … … 36 36 <li id="bup-time-slot-hour-range-<?php echo esc_attr($cdiv)?>-<?php echo esc_attr($cdiv_range)?>"> 37 37 38 <span class="bup-timeslot-time"><i class="fa fa-clock-o"></i> <?php echo escape_with_custom_html($slot['from'].' – '.$slot['to'])?></span>38 <span class="bup-timeslot-time"><i class="fa fa-clock-o"></i> <?php echo $slot['from'].' – '.$slot['to']?></span> 39 39 <span class="bup-timeslot-count"><span class="spots-available">1 time slot available</span></span> 40 40 <span class="bup-timeslot-people"> 41 <button class="new-appt bup-button bup-btn-book-app" bup-data-date="<?php echo escape_with_custom_html(date('Y-m-d', strtotime($date_from)))?>" bup-data-timeslot="<?php echo escape_with_custom_html($b_category.'-'.$staff_id)?>">41 <button class="new-appt bup-button bup-btn-book-app" bup-data-date="<?php echo date('Y-m-d', strtotime($date_from))?>" bup-data-timeslot="<?php echo $b_category.'-'.$staff_id?>"> 42 42 43 43 <span class="button-timeslot"></span><span class="bup-button-text">
Note: See TracChangeset
for help on using the changeset viewer.