';
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 '
'; esc_html_e( '* Waiting for being approved *', 'shapeshifter' ); echo '
'; } echo '