ID, true ); $reached_limit = $upcoming_user_appointments >= $appointment_limit; // check the reached limit when there are more than one appointment to book // in some cases the limit might be reached after booking too many appointments at a time if ( $total_appts > 1 ) { $will_reached_limit = ( $upcoming_user_appointments + $total_appts ) >= $appointment_limit; } } ?>
'', 'title' => '', 'timeslot' => '', 'calendar_id' => '' ); ?>

' . booked_get_name( $booked_current_user->ID ) . '' ) . ' ' . _n( 'Please review and confirm that you would like to request the following appointment:', 'Please review and confirm that you would like to request the following appointments:', $total_appts, 'booked' ); echo wpautop( $msg ); } // If there aren't any errors, and the user isn't logged in if ( ! $is_user_logged_in && ! $error_message ) { $msg = _n( 'Please confirm that you would like to request the following appointment:', 'Please confirm that you would like to request the following appointments:', $total_appts, 'booked' ); echo wpautop( $msg ); } // If no errors, list the bookings if ( ! $error_message ) { // list calendars and their appointments include( BOOKED_AJAX_INCLUDES_DIR . 'front/appointment-form/bookings.php' ); } if ( ! $is_user_logged_in && ! $error_message && class_exists('ReallySimpleCaptcha') ) : ?> bg = array(245,245,245); $captcha->fg = array(150,150,150); $captcha_word = $captcha->generate_random_word(); //generate a random string with letters $captcha_prefix = mt_rand(); //random number $captcha_image = $captcha->generate_image($captcha_prefix, $captcha_word); //generate the image file. it returns the file name $captcha_file = rtrim(get_bloginfo('wpurl'), '/') . '/wp-content/plugins/really-simple-captcha/tmp/' . $captcha_image; //construct the absolute URL of the captcha image ?>