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 */ ?> get_option( 'monetize_by' ); /** * If Monetization is PMPRO then ignore ajax enrolment * to avoid Paid course enrollment without payment. * * Note: There is no mapping between Tutor Course and PMPRO * That is way there is no way to determine whether course if free * or paid * * @since v2.1.2 */ $button_class = 'pmpro' === $monetization ? ' ' : ' tutor-course-list-enroll'; if ( ! is_user_logged_in() ) { $button_class = apply_filters( 'tutor_enroll_required_login_class', 'tutor-open-login-modal' ); } $enroll_btn = '
' . apply_filters( 'tutor_course_restrict_new_entry', '' . __( 'Enroll Course', 'tutor' ) . '' ) . '
'; $free_html = $enroll_btn; if ( tutor_utils()->is_course_purchasable() ) { $enroll_btn = tutor_course_loop_add_to_cart( false ); $product_id = tutor_utils()->get_course_product_id( $course_id ); $product = function_exists( 'wc_get_product' ) ? wc_get_product( $product_id ) : 0; $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 ( 0 != $maximum_students && $total_enrolled != $maximum_students ) { $total_booked = 100 / $maximum_students * $total_enrolled; $b_total = $total_booked; //phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped echo '
' . $product->get_price_html() . '
' . esc_html( $b_total ) . __( '% Booked', 'tutor' ) . '
'; } if ( $product && $maximum_students == $total_enrolled && 0 != $maximum_students ) { $price_html = '
' . $product->get_price_html() . '
'; $restrict = '
' . __( 'Fully Booked', 'tutor' ) . '
'; echo wp_kses_post( $price_html ); echo wp_kses_post( $restrict ); } if ( $product && 0 == $maximum_students ) { $price_html = '
' . $product->get_price_html() . '
'; $cart_html = '
' . apply_filters( 'tutor_course_restrict_new_entry', $enroll_btn ) . '
'; echo wp_kses_post( $price_html ); echo wp_kses_post( $cart_html ); } } else { echo wp_kses_post( $free_html ); }