Plugin Directory

Changeset 3146510


Ignore:
Timestamp:
09/04/2024 02:33:34 PM (7 months ago)
Author:
deetronix
Message:

V1.1.16

Location:
booking-ultra-pro
Files:
394 added
16 edited

Legend:

Unmodified
Added
Removed
  • booking-ultra-pro/trunk/addons/maintenance/admin/admin.php

    r3139187 r3146510  
    198198            endforeach;
    199199            foreach ( $links as $link )
    200                 echo escape_with_custom_html($link);
     200                echo $link;
    201201    }
    202202
  • booking-ultra-pro/trunk/addons/maintenance/admin/panels/manage.php

    r3139187 r3146510  
    2222            $html = '<div class="bup-ultra-error">'. __("Some appointment(s) are linked to a non-existent service.", 'booking-ultra-pro').'</div>';
    2323           
    24             echo escape_with_custom_html($html) ;
     24            echo $html ;
    2525         ?>
    2626               
     
    6868                    <td><?php echo esc_attr($appointment->booking_id); ?></td>
    6969                   
    70                      <td><?php echo  esc_attr(date($date_format, strtotime($date_from))); ?>      </td>
     70                     <td><?php echo  date($date_format, strtotime($date_from)); ?>      </td>
    7171                     
    7272                                         
     
    7575                    <td><?php echo esc_attr($staff->display_name); ?></td>
    7676                    <td>N/A </td>
    77                     <td><?php echo  esc_attr($booking_time); ?></td>                 
     77                    <td><?php echo  $booking_time; ?></td>                 
    7878                     
    7979                      <td><?php echo $bookingultrapro->appointment->get_status_legend($appointment->booking_status); ?></td>
     
    130130            $html = '<div class="bup-ultra-error">'. __("Some appointment(s) are linked to a non-existent service.", 'booking-ultra-pro').'</div>';
    131131           
    132             echo escape_with_custom_html($html) ;
     132            echo $html ;
    133133         ?>
    134134               
     
    176176                    <td><?php echo esc_attr($appointment->booking_id); ?></td>
    177177                   
    178                      <td><?php echo  esc_attr(date($date_format, strtotime($date_from))); ?>      </td>
     178                     <td><?php echo  date($date_format, strtotime($date_from)); ?>      </td>
    179179                     
    180180                                         
     
    183183                    <td>N/A</td>
    184184                   
    185                     <td><?php echo  esc_attr($booking_time); ?></td>                 
     185                    <td><?php echo  $booking_time; ?></td>                 
    186186                     
    187187                      <td><?php echo $bookingultrapro->appointment->get_status_legend($appointment->booking_status); ?></td>
  • booking-ultra-pro/trunk/admin/scripts/admin.js

    r3139187 r3146510  
    12611261                       
    12621262                        if(BUPdayslimitarray.version == 1 && BUPdayslimitarray.dayslimit_key != ''){
    1263                             jQuery( ".bupro-datepicker" ).datepicker({ 
     1263                            jQuery( ".bupro-datepicker" ).datepicker({
    12641264                                showOtherMonths: true,
    12651265                                dateFormat: bup_admin_v98.bb_date_picker_format,
     
    37943794function bup_edit_appointment_inline(appointment_id, conf_message, show_conf_message)   
    37953795{
    3796    
    37973796    jQuery("#bup-spinner").show();
    37983797   
     
    38033802                         "appointment_id": appointment_id,_ajax_nonce: bup_admin_v98.nonce, },
    38043803                       
    3805                     success: function(data){                   
    3806                                                        
     3804                    success: function(data){                               
    38073805                            jQuery("#bup-appointment-edit-box" ).html( data );
    38083806                            jQuery("#bup-appointment-edit-box" ).dialog( "open" );
  • booking-ultra-pro/trunk/admin/scripts/booking-ultra-calendar.js

    r2945485 r3146510  
    154154               
    155155            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);
    157158           
    158159            jQuery("#bup-spinner").show();                     
     
    170171                   
    171172                    success: function(data){           
    172                            
    173173                        jQuery("#bup-app-status" ).html( data );
    174174                        jQuery("#bup-td-status" ).html( data );
  • booking-ultra-pro/trunk/admin/scripts/bup-calendar.js

    r3139187 r3146510  
    6262           
    6363            e.preventDefault();
    64             jQuery("#bup-spinner").show();             
     64            jQuery("#bup-spinner").show();         
    6565           
    6666            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               
    6869           
    6970            e.preventDefault();
  • booking-ultra-pro/trunk/admin/tabs/appointments.php

    r3139187 r3146510  
    321321                    <td><?php echo esc_attr($staff_display_name); ?></td>
    322322                    <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>                 
    324324                     
    325325                      <td><?php echo $bookingultrapro->appointment->get_status_legend($appointment->booking_status); ?></td>
  • booking-ultra-pro/trunk/admin/tabs/bookingultra.php

    r3144068 r3146510  
    218218                   
    219219                   
    220                      <td><?php echo  esc_attr(date($date_format, strtotime($date_from))); ?>      </td>
     220                     <td><?php echo  date($date_format, strtotime($date_from)); ?>      </td>
    221221                     
    222222                      <?php if(isset($bup_filter) && isset($bupultimate)){?>
     
    229229                    <td><?php echo esc_attr($staff_display_name); ?></td>
    230230                    <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>                 
    232232                     
    233233                      <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  
    2121<div class="bup-adm-new-appointment bup-adm-schedule-info-bar">
    2222
    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));?>)           
    2424             
    2525</div>
    26 
    2726<div class="bup-adm-new-appointment">   
    2827
     
    8887               
    8988               
    90                
     89       
    9190    </div>
    9291   
     
    112111    <div class="bup-adm-extrainfo-box" id="bup-additioninfo-cont-res" >         
    113112               
    114                <?php echo $bookingultrapro->appointment->get_appointment_edition_form_fields($appointment_id);?>
     113               <?php echo  $bookingultrapro->appointment->get_appointment_edition_form_fields($appointment_id);?>
    115114               
    116115    </div>
    117    
     116
    118117    <div class="bup-adm-check-av-button"  id="bup-addpayment-box-btn" >
    119118         
     
    122121        </div>
    123122</div>
    124 
    125123<?php if(isset($bupcomplement)){
    126124   
  • booking-ultra-pro/trunk/classes/bookingultra.admin.php

    r3139187 r3146510  
    624624            endforeach;
    625625            foreach ( $links as $link )
    626                 echo escape_with_custom_html($link);
     626                echo $link;
    627627    }
    628628
     
    20882088        }
    20892089        echo "Domain: " . esc_url($domain);
    2090         echo escape_with_custom_html($html);
     2090        echo $html;
    20912091        die();
    20922092    }
     
    21342134                    }
    21352135            }
    2136         echo escape_with_custom_html($html);
     2136        echo $html;
    21372137        wp_die();
    21382138        }
  • booking-ultra-pro/trunk/classes/bookingultra.appointment.php

    r3139187 r3146510  
    5757        }
    5858       
    59         echo escape_with_custom_html($html);       
     59        echo $html;     
    6060       
    6161    }
     
    350350    {
    351351        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');     
    355353        $form_id = '';
    356354        $display ='';
    357355        if(isset($_POST["form_id"])){$form_id = esc_attr($_POST["form_id"]);}
    358        
    359356        /* Get end of array */         
    360         if($custom_form!="" || $form_id !="")
     357        if($custom_form!="" || $form_id !="" )
    361358        {
    362359            //do we have a pre-set value in the get?           
     
    365362                $custom_form =$form_id;         
    366363            }
    367            
    368364            $custom_form = 'bup_profile_fields_'.$custom_form;     
    369365            $array = get_option($custom_form);         
     
    376372       
    377373        }
    378        
     374   
    379375
    380376        foreach($array as $key=>$field)
     
    386382            }
    387383        }
    388        
     384
    389385        $i_array_end = end($array);
    390        
     386   
    391387        if(isset($i_array_end['position']))
    392388        {
    393389            $array_end = $i_array_end['position'];
    394            
     390
    395391            if (isset($array[$array_end]['type']) && $array[$array_end]['type'] == 'seperator')
    396392            {
     
    401397            }
    402398        }
    403        
    404        
     399
    405400        /*Display custom profile fields added by the user*/     
    406401        foreach($array as $key => $field)
     
    427422                $required_text = '(*)';             
    428423            }
     424
    429425           
    430426           
     
    437433                   
    438434            }
    439            
    440435                   
    441436            //check if display emtpy               
     
    443438            if ($type == 'usermeta' &&  isset($array[$key]['show_in_register']) && $array[$key]['show_in_register'] == 1)
    444439            {
    445                                
    446440                $display .= '<div class="bup-profile-field">';
    447441               
     
    626620                $display .= '</div>';
    627621                $display .= '</div>';
    628                
     622
    629623            }
    630624        } //end for each
    631        
    632         return $display;
     625        echo $display;
     626
     627        die();
    633628    }
    634629   
     
    723718       
    724719        global $wpdb, $bookingultrapro;
    725         $booking_id =esc_sql($booking_id);
     720        $booking_id =esc_attr($booking_id);
    726721        $key = esc_sql($key);
     722       
    727723       
    728724        $html='';
     
    737733        $rows = $wpdb->get_results($sql);
    738734       
     735       
    739736    //  echo $sql ;
    740737       
     
    745742            foreach ( $rows as $row )
    746743            {               
    747                 $html =stripslashes($row->meta_booking_value);     
     744                $html =stripslashes($row->meta_booking_value);
    748745           
    749746            }   
     
    843840        }
    844841       
    845         echo escape_with_custom_html($html);
     842        echo $html;
    846843        die();
    847844       
     
    902899       
    903900               
    904         echo escape_with_custom_html($html);       
     901        echo $html;     
    905902        die();
    906903   
     
    10691066        $html .= '<p>'.__('Cost: ','booking-ultra-pro').$currency.$amount.'</p>';
    10701067               
    1071         echo escape_with_custom_html($html);       
     1068        echo $html;     
    10721069        die();
    10731070   
     
    11661163       
    11671164               
    1168         echo escape_with_custom_html($html);       
     1165        echo $html;     
    11691166        die();
    11701167   
     
    13681365                    }
    13691366                   
    1370                     echo escape_with_custom_html($html);   
     1367                    echo $html;
    13711368                }
    13721369               
     
    18861883               
    18871884               
    1888         echo escape_with_custom_html($html);
     1885        echo $html;
    18891886        die();
    18901887   
     
    19171914        }
    19181915       
    1919         echo escape_with_custom_html($html);
     1916        echo $html;
    19201917        die();
    19211918   
     
    19611958        $appointment_id = esc_attr($_POST['appointment_id']);
    19621959       
    1963         $sql = $wpdb->prepare('UPDATE ' . $wpdb->prefix . 'bup_bookings SET booking_status =%d WHERE 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));     
    19641961        $results = $wpdb->query($sql);
    19651962       
     
    19861983        $appointment = $this->get_one($appointment_id);     
    19871984        $html = $this->get_status_legend($appointment->booking_status);
    1988         echo escape_with_custom_html($html);
     1985        echo $html;
    19891986        die();
    19901987       
  • booking-ultra-pro/trunk/classes/bookingultra.service.php

    r3139187 r3146510  
    4747       
    4848       
    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' ));       
    5151        add_action( 'wp_ajax_get_cate_dw_admin_ajax',  array( &$this, 'get_cate_dw_admin_ajax' )); 
    5252        add_action( 'wp_ajax_ubp_check_adm_availability',  array( &$this, 'ubp_check_adm_availability' ));
     
    512512        $html ='';             
    513513        $html .= $this->bup_get_shopping_cart($template_id);       
    514         echo escape_with_custom_html($html);       
     514        echo $html;     
    515515        die();
    516516       
     
    650650        {
    651651           
    652             echo escape_with_custom_html($html);
     652            echo $html;
    653653            //echo " ajax";
    654654            die();
     
    10061006        $html .= '<p>'.$message.'</p>';
    10071007       
    1008         echo escape_with_custom_html($html) ;   
     1008        echo $html ;   
    10091009       
    10101010        die();
     
    10631063        {       
    10641064            $html .='<p>'.__("Please select a date.",'booking-ultra-pro').'</p>';           
    1065             echo escape_with_custom_html($html);
     1065            echo $html;
    10661066            die();
    10671067       
     
    10711071        {       
    10721072            $html .='<p>'.__("Please select a service.",'booking-ultra-pro').'</p>';           
    1073             echo escape_with_custom_html($html);
     1073            echo $html;
    10741074            die();
    10751075       
     
    13811381        {       
    13821382            $html .='<p>'.__("Please select a date.",'booking-ultra-pro').'</p>';           
    1383             echo escape_with_custom_html($html);
     1383            echo $html;
    13841384            die();
    13851385       
     
    13891389        {       
    13901390            $html .='<p>'.__("Please select a service.",'booking-ultra-pro').'</p>';           
    1391             echo escape_with_custom_html($html);
     1391            echo $html;
    13921392            die();
    13931393       
     
    33253325        }
    33263326       
    3327         echo escape_with_custom_html($html);
     3327        echo $html;
    33283328        die();
    33293329       
     
    33583358        $html .= '<input type="hidden" id="bup_category_id" value="'.$category_id .'" />' ;     
    33593359           
    3360         echo escape_with_custom_html($html) ;       
     3360        echo $html ;       
    33613361        die();     
    33623362   
     
    33883388        $html .= '<p id="bup-add-client-message"></p>' ;       
    33893389           
    3390         echo escape_with_custom_html($html) ;       
     3390        echo $html ;       
    33913391        die();     
    33923392   
     
    40044004        $html .= '</div>' ;
    40054005       
    4006         echo escape_with_custom_html($html);
     4006        echo $html;
    40074007       
    40084008        die();
     
    41394139    function get_cate_dw_admin_ajax()
    41404140    {
     4141
    41414142        check_ajax_referer('ajax-new_appointment' );
    41424143        global  $bookingultrapro, $wpdb;
     
    42174218       
    42184219       
    4219         echo escape_with_custom_html($html);
     4220        echo $html;
    42204221        die();
    42214222   
     
    42484249        $selected = '';
    42494250       
    4250         if($filter_id=='')
     4251        if($filter_id==''||$filter_id==0)
    42514252        {
    42524253           
     
    43024303       
    43034304       
    4304         echo escape_with_custom_html($html);
     4305        echo $html;
    43054306        die();
    43064307   
     
    43514352       
    43524353        $category_id = esc_attr($_POST['b_category']);
    4353         $filter_id = esc_sql($_POST['filter_id']);
     4354        $filter_id = esc_attr($_POST['filter_id']);
    43544355        $template_id = esc_attr($_POST['template_id']);
    43554356       
     
    43664367        $selected = '';
    43674368       
    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);         
    43734374                   
    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            );
    43794390           
    43804391       
    43814392        }else{
    43824393           
    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     ' ;
    43904401                           
    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            );
    43924417           
    43934418        }
     
    43954420       
    43964421        $users = $wpdb->get_results($sql);
     4422       
    43974423   
    43984424        $html = '';
     
    44244450       
    44254451       
    4426         echo escape_with_custom_html($html);
     4452        echo $html;
    44274453        die();
    44284454   
  • booking-ultra-pro/trunk/index.php

    r3144052 r3146510  
    55Description: 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.
    66Tested up to: 6.6.1
    7 Version: 1.1.15
     7Version: 1.1.16
    88Author: Booking Ultra Pro
    99Domain Path: /languages
  • booking-ultra-pro/trunk/js/bup-front.js

    r2768377 r3146510  
    244244        jQuery(document).on("change", "#bup-category, #bup-filter-id", function(e) {
    245245           
    246                        
    247246            var b_category=   jQuery("#bup-category").val();
    248247            var filter_id=   jQuery("#bup-filter-id").val();
     
    265264            $('#bup-staff option:first-child').text(bup_pro_front.message_wait_staff_box);     
    266265                                   
    267                        
     266
    268267            jQuery.ajax({
    269268                    type: 'POST',
    270269                    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},
    272271                   
    273272                    success: function(data){                       
    274                        
    275273                        var res = data;
    276274                        jQuery("#bup-staff-booking-list").html(res);
     
    687685                    type: 'POST',
    688686                    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},
    690688                   
    691689                    success: function(data){                   
  • booking-ultra-pro/trunk/readme.txt

    r3144052 r3146510  
    44Requires at least: 4.0
    55Tested up to: 6.6.1
    6 Stable tag: 1.1.15
     6Stable tag: 1.1.16
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    170170
    171171== Changelog ==
     172= 1.1.16 (04-09-2024) =
     173* Fix - Appointment edit option not working properly after security updated, fixed.
     174
    172175= 1.1.15 (30-08-2024) =
    173176* Fix - frontend appointment page showing raw html instead of select service dropdown.
  • booking-ultra-pro/trunk/templates/appointment.php

    r3144052 r3146510  
    3434       
    3535                <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>
    3737       
    3838        </div>
     
    4444       
    4545                <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>
    4747       
    4848        </div>
     
    5353       
    5454                <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>
    5656       
    5757        </div>
     
    6262       
    6363                <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>
    6565       
    6666        </div>
     
    7272       
    7373                <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> 
    7575       
    7676       
     
    9191       
    9292                <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>
    9595       
    9696        </div>
     
    102102       
    103103                <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>
    105105       
    106106        </div>
     
    111111       
    112112                <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>
    114114       
    115115        </div>
     
    121121       
    122122                <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> 
    124124       
    125125       
     
    149149                   
    150150                   
    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>
    152152                   
    153153                      <?php echo esc_attr($bupcomplement->get_all_locations_front_booking());
     
    167167                   
    168168                   
    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>
    170170                   
    171171                      <?php echo $bookingultrapro->service->get_categories_drop_down_public($service_id, $staff_id, $category_ids, $template_id);
     
    182182           <div class="bup-book-info-block1 <?php echo esc_attr($four_colums_class)?>" >
    183183           
    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 )) ?>"/>       
    186186             
    187187                       
     
    192192               <div class="bup-book-info-block1" >
    193193               
    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 ) )?>"/>       
    196196                 
    197197                           
     
    203203                <div class="bup-book-info-block1 <?php echo esc_attr($four_colums_class)?>" id="bup-staff-booking-list" >
    204204               
    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>
    206206                                 
    207207                  <select name="bup-staff" id="bup-staff">                 
     
    232232           <?php }?>
    233233         
    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>
    235235         
    236236         </div>       
     
    240240         <div class="bup-book-info-text" id="bup-steps-cont-res" > 
    241241         
    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>       
    243243           
    244244         </div>
     
    257257 <?php }?>
    258258 
    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?>" />
    260260
    261261<?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?>" />
    263263<?php }?>
    264264
  • booking-ultra-pro/trunk/templates/slots.php

    r3139187 r3146510  
    1616                       
    1717             ?>
    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>
    1919             
    2020              ?>
     
    3636                <li id="bup-time-slot-hour-range-<?php echo esc_attr($cdiv)?>-<?php echo esc_attr($cdiv_range)?>">
    3737               
    38                 <span class="bup-timeslot-time"><i class="fa fa-clock-o"></i>&nbsp;&nbsp;<?php echo escape_with_custom_html($slot['from'].' &ndash; '.$slot['to'])?></span>
     38                <span class="bup-timeslot-time"><i class="fa fa-clock-o"></i>&nbsp;&nbsp;<?php echo $slot['from'].' &ndash; '.$slot['to']?></span>
    3939                <span class="bup-timeslot-count"><span class="spots-available">1 time slot available</span></span>
    4040                <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?>">
    4242               
    4343                <span class="button-timeslot"></span><span class="bup-button-text">
Note: See TracChangeset for help on using the changeset viewer.