'; $output .= '

' . __( 'Comments:', 'wm_domain' ) . '' . get_comments_number() . '

'; if ( have_comments() ) { if ( ! comments_open() ) { $output .= '

' . __( 'Comments are closed. You can not add new comments.', 'wm_domain' ) . '

'; } //Paginated comments if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { $output .= wm_comments_navigation( 'comment-nav-above' ); } //Actual comments list $output .= '
    '; $output .= wp_list_comments( array( 'avatar_size' => 120, 'short_ping' => true, 'style' => 'ol', 'echo' => false, ) ); $output .= '
'; //Paginated comments if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { $output .= wm_comments_navigation( 'comment-nav-below' ); } } // /have_comments() //Comments form only if comments open if ( comments_open() ) { ob_start(); comment_form( apply_filters( 'wmhook_comment_form_args', array( 'comment_notes_after' => '', ) ) ); $output .= ob_get_clean(); } $output .= ''; wmhook_comments_before(); if ( ! function_exists( 'wma_amplifier' ) ) { echo '
' . $output . '
'; } else { echo do_shortcode( '[wm_row]' . $output . '[/wm_row]' ); } wmhook_comments_after(); } ?>