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
*/
$product_id = tutor_utils()->get_course_product_id();
$download = new EDD_Download( $product_id );
add_filter(
'edd_purchase_link_defaults',
function( $defaults ) {
if ( isset( $defaults['class'] ) ) {
$defaults['class'] = 'edd-add-to-cart button white edd-submit edd-has-js tutor-btn tutor-btn-outline-primary tutor-btn-md tutor-btn-block ';
}
return $defaults;
}
);
?>
' . 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 );
$edd_price = function_exists( 'edd_price' ) ? edd_price( $product_id, false ) : '';
$total_enrolled = tutor_utils()->count_enrolled_users_by_course( $course_id );
$maximum_students = tutor_utils()->get_course_settings( $course_id, 'maximum_students' );
if ( $maximum_students != 0 && $total_enrolled != $maximum_students ) {
$total_booked = 100 / $maximum_students * $total_enrolled;
$b_total = ceil( $total_booked );
// @codingStandardsIgnoreStart
/**
* Remove price since is also coming from add tutor_course_loop_add_to_cart
*
* @see $enroll_btn if purchase able
*
* @since v2.0.9
*/
echo '
'.
$b_total . __('% Booked', 'tutor') . '
' . apply_filters( 'tutor_course_restrict_new_entry', $enroll_btn ) . '
';
// @codingStandardsIgnoreEnd
}
if ( $maximum_students == $total_enrolled && $maximum_students != 0 ) {
$price_html = '
' .
$edd_price . '
';
$restrict = '
' .
__( 'Fully Booked', 'tutor' ) . '
';
echo $price_html;//phpcs:ignore --trusted markups
echo $restrict;//phpcs:ignore --trusted markups
}
if ( 0 == $maximum_students ) {
?>