* * ========================================================================== */ if ( ! function_exists( 'avd_the_pagination' ) ) : function avd_the_pagination( $total = true, $prev = '', $next = '' ){ global $wp_query; $prev = ( !empty($prev) ) ? $prev : __( '« Prev', 'basic'); $next = ( !empty($next) ) ? $next : __( 'Next »', 'basic'); $big = 999999999; $currentpage = max( 1, get_query_var('paged') ); $maxpage = $wp_query->max_num_pages; $res = '