';
if ( $wp_query->max_num_pages > 1 )
{
// The Developer requested a train of archive page numbers.
if ( $args->train )
{
$big = 999999999; // need an unlikely integer
$paginate_args = array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var( 'paged' ) ),
'total' => $wp_query->max_num_pages,
'type' => 'array',
'prev_next' => true,
'prev_text' => '
'.__( 'Previous', 'bpq' ),
'next_text' => __( 'Next', 'bpq' ).'
',
'mid_size' => $args->train_size,
'end_size' => 1
);
$links = paginate_links( $paginate_args );
echo '
';
echo '';
echo '
';
}
// Or the Developer just requested a simple next/prev button combination.
else
{
echo
'';
}
}
echo '