Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
* @link https://themeum.com
* @since 1.4.3
*/
$course_id = get_the_ID();
$is_logged_in = is_user_logged_in();
$enable_guest_course_cart = tutor_utils()->get_option( 'enable_guest_course_cart' );
$required_loggedin_class = '';
if ( ! $is_logged_in && ! $enable_guest_course_cart ) {
$required_loggedin_class = apply_filters( 'tutor_enroll_required_login_class', 'tutor-open-login-modal' );
}
$enroll_btn = '';
$free_html = $enroll_btn;
// Show purchase button if purchaseable.
if ( tutor_utils()->is_course_purchasable() ) {
$enroll_btn = tutor_course_loop_add_to_cart( false );
$price_html = tutor_utils()->get_course_price();
$utility_classes = 'tutor-d-flex tutor-align-center tutor-justify-between';
$total_enrolled = (int) tutor_utils()->count_enrolled_users_by_course( $course_id );
$maximum_students = (int) tutor_utils()->get_course_settings( $course_id, 'maximum_students' );
if ( ! $price_html ) {
echo $free_html; //phpcs:ignore --contain safe data
} else {
if ( 0 === $maximum_students ) {
?>
0 && $total_enrolled < $maximum_students ) {
$total_booked = 100 / $maximum_students * $total_enrolled;
$b_total = ceil( $total_booked );
?>
0 && $maximum_students === $total_enrolled ) {
?>