wpex_hook_entry_bottom(); ?> </article> </section> <?php wpex_hook_entry_after(); } } ?> <!-- /wpex-grid-wrap --> <?php if (of_get_option('pagination_style', 'infinite_scroll') == 'infinite_scroll') { ?> <?php wpex_infinite_scroll(); ?> <?php } elseif (of_get_option('pagination_style', 'infinite_scroll') == 'load_more') { ?> <?php echo aq_load_more(); ?> <?php } else { ?> <?php wpex_paginate_pages(); ?> <?php }
function wpex_blog_pagination() { // Admin Options $blog_style = wpex_get_mod('blog_style', 'large-image'); $pagination_style = wpex_get_mod('blog_pagination_style', 'standard'); // Category based settings if (is_category()) { // Get taxonomy meta $term = get_query_var('cat'); $term_data = get_option('category_' . $term); $term_style = $term_pagination = ''; if (isset($term_data['wpex_term_style'])) { $term_style = '' != $term_data['wpex_term_style'] ? $term_data['wpex_term_style'] . '' : $term_style; } if (isset($term_data['wpex_term_pagination'])) { $term_pagination = '' != $term_data['wpex_term_pagination'] ? $term_data['wpex_term_pagination'] . '' : ''; } if ($term_style) { $blog_style = $term_style . '-entry-style'; } if ($term_pagination) { $pagination_style = $term_pagination; } } // Set default $type for infnite scroll if ('grid-entry-style' == $blog_style) { $infinite_type = 'standard-grid'; } else { $infinite_type = 'standard'; } // Execute the correct pagination function if ('infinite_scroll' == $pagination_style) { wpex_infinite_scroll($infinite_type); } elseif ($pagination_style == 'next_prev') { wpex_pagejump(); } else { wpex_pagination(); } }