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.0.0 */ use TUTOR\Input; use TUTOR\Lesson; $per_page = tutor_utils()->get_option( 'pagination_per_page', 10 ); $current_page = max( 1, Input::post( 'current_page', 0, Input::TYPE_INT ) ); $lesson_id = Input::post( 'comment_post_ID', get_the_ID(), Input::TYPE_INT ); $comments_list_args = array( 'post_id' => $lesson_id, 'parent' => 0, 'paged' => $current_page, 'number' => $per_page, ); $comment_count_args = array( 'post_id' => $lesson_id, 'parent' => 0, 'count' => true, ); $comments = Lesson::get_comments( $comments_list_args ); $comments_count = Lesson::get_comments( $comment_count_args ); $action = Input::post( 'action', '' ); $load_more_btn = ''; $max_page = (int) ceil( $comments_count / $per_page ); // Prepare load more button. $data = array( 'layout' => array( 'type' => 'load_more', 'load_more_text' => __( 'Load More', 'tutor' ), ), 'ajax' => array( 'action' => 'tutor_single_course_lesson_load_more', 'comment_post_ID' => $lesson_id, 'current_page_num' => $current_page, ), ); $template = tutor()->path . 'templates/dashboard/elements/load-more.php'; if ( file_exists( $template ) && $max_page > $current_page ) { ob_start(); tutor_load_template_from_custom_path( $template, $data ); $load_more_btn = apply_filters( 'tutor_lesson_comment_load_more_button', ob_get_clean() ); ?> = $max_page ) { echo ''; } if ( 'tutor_single_course_lesson_load_more' === $action ) { tutor_load_template( 'single.lesson.comments-loop', array( 'comments' => $comments, 'lesson_id' => $lesson_id, ) ); return; } ?>
nonce_action, tutor()->nonce ); ?>
$comments, 'lesson_id' => $lesson_id, ) ); ?>