File manager - Edit - /home/theblueo/questionnaire/wp-content/plugins/sfwd-lms/themes/ld30/templates/focus/comments_list.php
Back
<?php if ( ! function_exists( 'learndash_focus_mode_comments_list' ) ) { function learndash_focus_mode_comments_list( $comment, $args, $depth ) { global $wp_roles; global $post; $GLOBALS['comment'] = $comment; $user_data = get_userdata( $comment->user_id ); $roles = $user_data->roles; $role_classes = ''; if ( ! empty( $roles ) ) { foreach ( $roles as $role ) : $role_classes .= 'role-' . $role; if ( 'administrator' === $role || 'group_leader' === $role ) { $role_name = translate_user_role( $wp_roles->roles[ $role ]['name'] ); } endforeach; } $learndash_avatar_class = empty( get_avatar( $comment->comment_author_email ) ) ? ' ld-no-avatar-image' : ''; ?> <div <?php comment_class( 'ld-focus-comment ptype-' . $post->post_type . ' ' . $role_classes . $learndash_avatar_class ); ?> id="comment-<?php comment_ID(); ?>"> <div class="ld-comment-wrapper"> <?php if ( '0' == $comment->comment_approved ) : ?> <span class="ld-comment-alert"><?php esc_html_e( 'Your response is awaiting for approval.', 'learndash' ); ?></span> <?php endif; ?> <div class="ld-comment-avatar"> <?php echo wp_kses_post( get_avatar( $comment->comment_author_email ) ); ?> <span class="ld-comment-avatar-author"> <span class="ld-comment-author-name"> <?php echo esc_html( $comment->comment_author ); if ( ! empty( $role_name ) ) { echo esc_html( ' (' . $role_name . ')' ); } ?> </span> <a class="ld-comment-permalink" href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"> <?php printf( // translators: placeholders: %1$s: Comment Date, %2$s: Comment Time esc_html_x( '%1$s at %2$s', 'placeholders: comment date, comment time', 'learndash' ), '<span> ' . esc_html( get_comment_date() ) . '</span>', '<span> ' . esc_html( get_comment_time() ) . '</span>' ); ?> </a> </span> </div> <div class="ld-comment-body"> <?php comment_text(); ?> <div class="ld-comment-reply"> <?php comment_reply_link( array_merge( $args, array( 'reply_text' => esc_html__( 'Reply', 'learndash' ), 'after' => '', 'depth' => $depth, 'max_depth' => $args['max_depth'], ) ) ); ?> </div> </div> </div> <?php } } if ( ! isset( $_GET['replytocom'] ) ) { $args = apply_filters( 'learndash_focus_mode_list_comments_args', array( 'style' => 'div', 'page' => get_query_var( 'cpage', 1 ), 'callback' => 'learndash_focus_mode_comments_list', ) ); wp_list_comments( $args ); }
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings