',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
$author = sprintf( ' %3$s',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( '%s', 'aquaapp' ), get_the_author() ) ),
get_the_author()
);
$comment_number = get_comments_number();
$comment_number = sprintf( _n( '1 Comment', '%s Comments', $comment_number, 'aquaapp' ), $comment_number );
$comment_number = sprintf( ' ',
get_comments_link(),
$comment_number
);
$utility_text = __( ' %1$s %2$s %3$s', 'aquaapp' );
echo "";
echo "" . $date . "" ;
echo "" ;
echo "" ;
echo "
";
}
endif;
/*---------------------------------------------------
Pagination.
----------------------------------------------------*/
if ( ! function_exists( 'aquaapp_number_post_nav' ) ) :
function aquaapp_number_post_nav() {
if( is_singular() )
return;
global $wp_query;
/** Stop execution if there's only 1 page */
if( $wp_query->max_num_pages <= 1 )
return;
$paged = get_query_var( 'paged' ) ? absint( get_query_var( 'paged' ) ) : 1;
$max = intval( $wp_query->max_num_pages );
/** Add current page to the array */
if ( $paged >= 1 )
$links[] = $paged;
/** Add the pages around the current page to the array */
if ( $paged >= 3 ) {
$links[] = $paged - 1;
$links[] = $paged - 2;
}
if ( ( $paged + 2 ) <= $max ) {
$links[] = $paged + 2;
$links[] = $paged + 1;
}
echo '' . "\n";
}
endif;