'; echo '
'; echo get_avatar( $comment, 40 ); //echo '' . esc_html__( 'Anchor', 'shapeshifter' ) . ''; echo '' . get_comment_author_link() . ''; if ( $comment->comment_approved == '0' ) { echo '

'; esc_html_e( '* Waiting for being approved *', 'shapeshifter' ); echo '

'; } echo '
'; echo ''; echo get_comment_date(); echo ''; echo get_comment_time(); edit_comment_link( esc_html__( 'Edit', 'shapeshifter' ), ' ', '' ); echo '
'; comment_text(); echo '
'; comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args[ 'max_depth' ] ) ) ); echo '
'; echo '
'; } } if ( ! function_exists( 'shapeshifter_comments_pagination' ) ) { /** * Print Comment Pagination **/ function shapeshifter_comments_pagination() { echo shapeshifter_get_comments_pagination(); } } if ( ! function_exists( 'shapeshifter_get_comments_pagination' ) ) { /** * Get Comment Pagination HTML * * @global object $wp_query * * @return string HTML **/ function shapeshifter_get_comments_pagination() { global $wp_query; $total = ( $wp_query->max_num_comment_pages ? absint( $wp_query->max_num_comment_pages ) : 0 ); if ( $total > 1 ) { $current = intval( get_query_var( 'cpage' ) ) ? intval( get_query_var( 'cpage' ) ) : 1; $args = array( 'end_size' => 3, 'mid_size' => 3, 'prev_text' => esc_html__( '« Previous', 'shapeshifter' ), 'next_text' => esc_html__( 'Next »', 'shapeshifter' ), ); return sprintf( '', $current, $total, get_the_comments_pagination( $args ) ); } return ''; } } # Pings if ( ! function_exists( 'shapeshifter_pings_list' ) ) { /** * Print Ping List * * @param object $comment * @param array $args * @param int $depth **/ function shapeshifter_pings_list( $comment, $args, $depth ) { echo '
  • '; echo '
    '; echo get_comment_author_link(); echo '
    '; get_comment_date(); edit_comment_link( esc_html__( 'Edit', 'shapeshifter' ), ' ', '' ); echo '
    '; comment_text(); echo '
    '; } } ?>